/* =====================================================
   page.css  — inner-page component styles
   ===================================================== */

/* ---- Page hero ---- */
.page-hero {
  padding: 80px 0 60px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-1);
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
}
.ph-text .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ph-text h1 { font-size: var(--text-4xl); line-height: 1.15; margin-bottom: 20px; }
.ph-text .lead {
  font-size: var(--text-lg);
  color: var(--ink-3);
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.ph-text .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.ph-stats {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-width: 210px;
  flex-shrink: 0;
}
.ph-stat {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-1);
}
.ph-stat:last-child { border-bottom: none; }
.ps-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-coral);
  line-height: 1.1;
}
.ps-lbl { font-size: var(--text-sm); color: var(--ink-3); margin-top: 2px; }

/* ---- Two-col info cards ---- */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-card {
  padding: 28px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
}
.info-card.accent-border { border-left: 3px solid var(--brand-coral); }
.ic-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ic-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-coral);
}
.ic-icon svg { width: 20px; height: 20px; }
.ic-header h3 { font-size: var(--text-xl); margin: 0; }
.info-card > p { color: var(--ink-3); line-height: 1.65; margin-bottom: 16px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-coral);
  border-bottom: 2px solid var(--brand-coral);
  transform: rotate(-45deg);
}

/* ---- Structure grid ---- */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.str-card {
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
}
.str-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-coral);
  letter-spacing: .06em;
  margin-bottom: 12px;
  font-weight: 600;
}
.str-card h4 { font-size: var(--text-lg); margin-bottom: 4px; }
.str-meta {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-bottom: 12px;
  font-weight: 500;
}
.str-card p {
  color: var(--ink-3);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

/* 3-column variant for GRE / GMAT ---- */
.structure-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- Mode banner ---- */
.mode-banner {
  display: flex;
  align-items: stretch;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 32px;
}
.mode-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
}
.mode-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--brand-coral);
}
.mode-item div { display: flex; flex-direction: column; }
.mode-item strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.3;
}
.mode-item span {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-top: 2px;
}
.mode-divider {
  width: 1px;
  background: var(--border-1);
  flex-shrink: 0;
}

/* ---- Band table (IELTS) ---- */
.band-table {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
}
.band-row {
  display: grid;
  grid-template-columns: 64px 190px 1fr;
  gap: 16px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border-1);
  align-items: center;
}
.band-row:last-child { border-bottom: none; }
.band-row.header-row {
  background: var(--surface-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.band-row.highlight { background: var(--surface-2); }
.band-row.muted { opacity: .65; }
.band-score {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brand-coral);
}
.band-level { font-weight: 600; font-size: var(--text-sm); color: var(--ink-1); }
.band-row > span:last-child { font-size: var(--text-sm); color: var(--ink-3); }

/* ---- Fee strip ---- */
.fee-strip {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.fee-item {
  flex: 1;
  padding: 18px 24px;
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fee-item:last-child { border-right: none; }
.fee-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.fee-val { font-size: var(--text-sm); color: var(--ink-1); font-weight: 500; }
.fee-val small { color: var(--ink-3); font-weight: 400; }

/* ---- Score info grid ---- */
.score-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.si-card {
  padding: 28px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
}
.si-val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--brand-coral);
  line-height: 1.1;
  margin-bottom: 4px;
}
.si-label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); margin-bottom: 10px; }
.si-card p { font-size: var(--text-sm); color: var(--ink-3); line-height: 1.6; margin: 0; }

/* ---- Why Anglais grid ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
}
.why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-coral);
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: var(--text-sm); color: var(--ink-3); line-height: 1.6; margin: 0; }

/* ---- Contact CTA bar ---- */
.contact-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--brand-coral);
  color: #fff;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
}
.contact-cta-bar h3 { font-size: var(--text-2xl); margin-bottom: 6px; color: #fff; }
.contact-cta-bar p { font-size: var(--text-sm); color: #fff; opacity: .85; margin: 0; }
.cta-bar-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.contact-cta-bar .btn.primary {
  background: #fff;
  color: var(--brand-coral);
  border-color: #fff;
}
.contact-cta-bar .btn.primary:hover { background: #f5f5f5; }
.contact-cta-bar .btn.outline {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.contact-cta-bar .btn.outline:hover { background: rgba(255,255,255,.12); }

/* ---- Country destinations grid (study-overseas) ---- */
.country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.country-card {
  padding: 24px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--brand-coral);
  border-radius: var(--radius-xl);
}
.country-card h3 { font-size: var(--text-lg); margin-bottom: 10px; }
.country-card p { font-size: var(--text-sm); color: var(--ink-3); line-height: 1.65; margin: 0; }

/* ---- Four-column team grid (study-overseas) ---- */
.team-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-photo-blank {
  width: 100%;
  height: 220px;
  background: var(--surface-2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.team-photo-blank svg { width: 56px; height: 56px; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1100px) {
  .structure-grid { grid-template-columns: repeat(2, 1fr); }
  .structure-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-hero { padding: 56px 0 44px; }
  .page-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .ph-stats { flex-direction: row; flex-wrap: wrap; }
  .ph-stat { flex: 1 1 130px; border-bottom: none; border-right: 1px solid var(--border-1); }
  .ph-stat:last-child { border-right: none; }
  .two-col-cards { grid-template-columns: 1fr; }
  .score-info-grid { grid-template-columns: 1fr; }
  .fee-strip { flex-direction: column; }
  .fee-item { border-right: none; border-bottom: 1px solid var(--border-1); }
  .fee-item:last-child { border-bottom: none; }
  .contact-cta-bar { flex-direction: column; align-items: flex-start; }
  .country-grid { grid-template-columns: 1fr; }
  .team-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .ph-text h1 { font-size: var(--text-3xl); }
  .structure-grid { grid-template-columns: 1fr; }
  .structure-grid.cols-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .mode-banner { flex-direction: column; }
  .mode-divider { width: 100%; height: 1px; }
  .band-row { grid-template-columns: 52px 140px 1fr; gap: 12px; padding: 12px 16px; }
  .cta-bar-actions { flex-direction: column; width: 100%; }
  .contact-cta-bar { padding: 28px 24px; }
  .team-grid-4 { grid-template-columns: 1fr; }
}
