/* ============================================================
   LAYOUT.CSS — Grid, Containers, Spacing, Page Structure
   Exium Classes · exium.in
   ============================================================ */

/* ── Divider ── */
.divider {
  height: 1px;
  margin: 0 4rem;
  background: linear-gradient(90deg, transparent, rgba(200, 210, 232, 0.18), transparent);
}

/* ── Sections ── */
section {
  padding: 8rem 4rem;
  position: relative;
  z-index: 1;
}

/* ── Hero (Homepage) ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 9rem 4rem 5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 120%;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-left  { position: relative; z-index: 2; }
.hero-right { position: relative; z-index: 2; padding-left: 3.5rem; }

.hero-glow {
  position: absolute;
  top: 10%; right: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(204, 31, 31, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Why Section ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}

/* ── Schedule Section ── */
.schedule-section {
  background: linear-gradient(180deg, transparent, rgba(26, 45, 90, 0.4), transparent);
}

.sched-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.sched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

/* ── FAQ Section ── */
#faq {
  position: relative;
  z-index: 1;
  padding: 8rem 4rem;
  background: linear-gradient(180deg, transparent, rgba(26, 45, 90, 0.3), transparent);
}

#faq .faq-header {
  margin-bottom: 3.5rem;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(26, 45, 90, 0.5));
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(74, 111, 199, 0.07), transparent 70%);
  pointer-events: none;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

/* ── Page Hero Strip (inner pages) ── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 9rem 4rem 3.5rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 70% 100% at 80% 50%, rgba(74, 111, 199, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 60%, rgba(204, 31, 31, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '//';
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 14rem; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 111, 199, 0.07);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

/* ── Accent Line (inner pages) ── */
.accent-line {
  height: 1px;
  margin: 0 4rem;
  background: linear-gradient(90deg, transparent, rgba(200, 210, 232, 0.18), transparent);
  position: relative;
  z-index: 1;
}

/* ── Main Content (registration/contact) ── */
.main-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  margin: 0 4rem 5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-acc) 0%, var(--red) 100%);
  z-index: 2;
}

/* ── Sidebar ── */
.sidebar {
  background: rgba(26, 45, 90, 0.55);
  border-right: 1px solid var(--line);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .page-hero  { padding: 8rem 1.5rem 2.5rem; }
  .page-hero::after { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .accent-line { margin: 0 1.5rem; }

  .main-content {
    grid-template-columns: 1fr;
    margin: 0 1.5rem 4rem;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  section   { padding: 5rem 1.5rem; }
  .divider  { margin: 0 1.5rem; }

  .hero {
    grid-template-columns: 1fr;
    padding: 7.5rem 1.5rem 4rem;
  }

  .hero::before { display: none; }
  .hero::after  { display: none; }
  .hero-right   { padding-left: 0; margin-top: 2rem; }

  .why-grid,
  .sched-grid,
  .reviews-grid { grid-template-columns: 1fr; }

  .sched-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .rev-card:first-child { grid-column: 1; }

  #faq { padding: 5rem 1.5rem; }
}
