/*
 * responsive.css — EdHills Website
 * Professional SaaS-grade responsive layout system.
 * Breakpoints:
 *   Desktop    : > 1024px  — full horizontal layout, centered
 *   Tablet     : 768–1024px — compressed but aligned
 *   Mobile     : < 768px   — stacked, single-column, proper spacing
 *
 * IMPORTANT: This file intentionally removes the old min-width:1100px lock.
 * All layouts now adapt naturally to every screen size.
 */

/* ══════════════════════════════════════════════════
   1.  BASE / BOX MODEL
══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* ══════════════════════════════════════════════════
   2.  LAYOUT CONTAINERS  (max-width centred wrappers)
══════════════════════════════════════════════════ */
.wrap,
.container,
.hero-inner,
.app-inner,
.footer-row,
.footer-inner,
.footer-top,
.stats-grid {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  /* Remove any min-width that would cause overflow */
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   3.  SECTION PADDING — scale with viewport
══════════════════════════════════════════════════ */
.sec {
  padding: 96px 5%;
}

/* ══════════════════════════════════════════════════
   4.  HERO SECTION
══════════════════════════════════════════════════ */

/* Desktop: side-by-side */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: nowrap;
  /* force row on desktop */
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex: 0 0 440px;
  max-width: 440px;
  display: flex;
  justify-content: flex-end;
}

/* ══════════════════════════════════════════════════
   5.  EXAM GRID — 4 columns desktop, adapts down
══════════════════════════════════════════════════ */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.exam-card {
  width: auto !important;
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   6.  FEATURES GRID — 3 columns desktop
══════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.feat-card {
  width: auto !important;
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   7.  STATS STRIP — 4 columns desktop
══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 5%;
}

.stat-item {
  width: auto !important;
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   8.  HOW IT WORKS — 3 columns desktop
══════════════════════════════════════════════════ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  position: relative;
  min-width: 0 !important;
}

.step-item {
  width: auto !important;
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   9.  COURSES GRID — 3 columns desktop
══════════════════════════════════════════════════ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

/* ══════════════════════════════════════════════════
   10. TESTIMONIALS GRID — 3 columns desktop
══════════════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.testi-card {
  width: auto !important;
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   11. APP SECTION
══════════════════════════════════════════════════ */
.app-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: nowrap;
}

.app-text {
  flex: 1;
  min-width: 0;
}

.app-visual {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   12. FOOTER GRID — 4 columns desktop
══════════════════════════════════════════════════ */
.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════
   13. FOUNDERS / WHY GRID (about page)
══════════════════════════════════════════════════ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.founder-card,
.startup-card {
  width: auto !important;
  min-width: 0 !important;
}

/* ══════════════════════════════════════════════════
   14. FORM GRID (contact / register)
══════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ══════════════════════════════════════════════════
   15. HERO BUTTONS & TRUST ITEMS
══════════════════════════════════════════════════ */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   ██  DESKTOP SCALING IMPLEMENTATION REMOVED
   (Replaced with proper fluid media queries)
══════════════════════════════════════════════════ */
body {
  min-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

@media screen and (max-width: 1024px) {
  .exam-grid, .stats-grid, .footer-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .features-grid, .steps-row, .courses-grid, .testi-grid, .founders-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .app-inner, .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-visual {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .exam-grid, .stats-grid, .features-grid, .steps-row, .courses-grid, .testi-grid, .founders-grid, .form-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-row {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hero h1 {
    font-size: 32px !important;
  }
  .sec-title {
    font-size: 28px !important;
  }
  .sec {
    padding: 60px 5%;
  }
}
