/* ═══════════════════════════════════════════════════════════════════
   AUTHENT ED  —  Custom Design System  v3
   Public palette  : Warm Slate + Amber
   Portal palette  : Slate + Gold (unchanged)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Core warm slate (was cold navy) */
  /* To switch to Espresso: swap these three to #2C2320 / #3D302C / #4E3E39 */
  --ae-navy:        #1B3358;
  --ae-navy-mid:    #234070;
  --ae-navy-light:  #2D5090;

  /* Amber accent — public pages */
  --ae-amber:       #E07A3C;
  --ae-amber-dark:  #c4662c;
  --ae-amber-light: #FFF3EA;
  --ae-amber-mid:   #f59f6d;

  /* Gold — kept for portal elements */
  --ae-gold:        #c9a84c;
  --ae-gold-light:  #e8c872;

  --ae-blue:        #2563eb;
  --ae-blue-light:  #dbeafe;

  --ae-bg:          #FAFAF8;
  --ae-bg-light:    #F4F1EC;
  --ae-bg-card:     #FEFCFA;
  --ae-border:      #E2DDD7;
  --ae-text:        #1A1612;
  --ae-muted:       #6B6560;

  --ae-reach-color:  #dc2626;
  --ae-match-color:  #2563eb;
  --ae-likely-color: #16a34a;

  --ae-radius:      0.875rem;
  --ae-radius-sm:   0.5rem;
  --ae-radius-lg:   1.25rem;
  --ae-shadow:      0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
  --ae-shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05);
  --ae-shadow-lg:   0 4px 24px rgba(0,0,0,0.1), 0 16px 64px rgba(0,0,0,0.1);
}

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ae-bg);
  color: var(--ae-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

/* ── Navbar ────────────────────────────────────────────────────── */
.ae-navbar {
  background: var(--ae-navy) !important;
  border-bottom: 2px solid var(--ae-amber);
  padding: 0.85rem 0;
  transition: box-shadow 0.3s;
  position: relative;
  z-index: 1050;  /* sit above everything, including hero overlays */
}

.ae-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.ae-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Logo image in navbar — invert to white on dark navy */
.ae-nav-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

/* Logo in footer — also inverted to white */
.ae-footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
}

.ae-navbar .nav-link {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem !important;
  border-radius: var(--ae-radius-sm);
  transition: background 0.15s, color 0.15s;
}

.ae-navbar .nav-link:hover,
.ae-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.ae-btn-outline-nav {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff !important;
  border-radius: var(--ae-radius-sm);
  padding: 0.38rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  transition: all 0.15s;
  text-decoration: none !important;
}

.ae-btn-outline-nav:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #fff !important;
}

.ae-btn-amber-nav {
  background: var(--ae-amber);
  color: #fff !important;
  border: none;
  border-radius: var(--ae-radius-sm);
  padding: 0.4rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ae-btn-amber-nav:hover {
  background: var(--ae-amber-dark);
  transform: translateY(-1px);
  color: #fff !important;
}

.ae-user-pill { font-size: 0.875rem; font-weight: 500; }

/* ── Buttons ───────────────────────────────────────────────────── */
.ae-btn-primary {
  background: var(--ae-navy);
  color: #fff;
  border: none;
  border-radius: var(--ae-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.35rem;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.ae-btn-primary:hover {
  background: var(--ae-navy-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,32,68,0.3);
}

.ae-btn-amber {
  background: var(--ae-amber);
  color: #fff;
  border: none;
  border-radius: var(--ae-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.ae-btn-amber:hover {
  background: var(--ae-amber-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,122,60,0.4);
  text-decoration: none;
}

.ae-btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: var(--ae-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.ae-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.ae-btn-outline-dark {
  border: 2px solid var(--ae-navy);
  color: var(--ae-navy);
  background: transparent;
  border-radius: var(--ae-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.ae-btn-outline-dark:hover {
  background: var(--ae-navy);
  color: #fff;
  text-decoration: none;
}

.ae-btn-white {
  background: #fff;
  color: var(--ae-navy);
  border: none;
  border-radius: var(--ae-radius-sm);
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.ae-btn-white:hover {
  background: var(--ae-amber-light);
  color: var(--ae-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* ── Portal Cards ──────────────────────────────────────────────── */
.ae-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius);
  box-shadow: var(--ae-shadow-sm);
}

.ae-card-header { border-bottom: 1px solid var(--ae-border); }

/* ── Tables ────────────────────────────────────────────────────── */
.ae-table { font-size: 0.9rem; }

.ae-table thead tr th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ae-muted);
  font-weight: 600;
  border-bottom: 1.5px solid var(--ae-border);
  padding: 0.75rem 1rem;
  background: var(--ae-bg-light);
}

.ae-table tbody tr td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ae-border);
  vertical-align: middle;
}

.ae-table tbody tr:last-child td { border-bottom: none; }
.ae-table tbody tr:hover td { background: #f9fafb; }
.ae-row-notes td { background: #fafbfc !important; }

/* ── Pills & Badges ────────────────────────────────────────────── */
.ae-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  line-height: 1.4;
}

.ae-pill-success  { background: #dcfce7; color: #15803d; }
.ae-pill-muted    { background: #f3f4f6; color: #6b7280; }
.ae-pill-primary  { background: #dbeafe; color: #1d4ed8; }

.ae-pill-reach  { background: #fee2e2; color: #b91c1c; }
.ae-pill-match  { background: #dbeafe; color: #1d4ed8; }
.ae-pill-likely { background: #dcfce7; color: #15803d; }

.ae-pill-status-pending     { background: #fef9c3; color: #854d0e; }
.ae-pill-status-in_progress { background: #dbeafe; color: #1e40af; }
.ae-pill-status-completed   { background: #dcfce7; color: #166534; }
.ae-pill-status-cancelled   { background: #f3f4f6; color: #6b7280; }

.ae-pill-level-regular { background: #f3f4f6; color: #374151; }
.ae-pill-level-honors  { background: #e0f2fe; color: #0369a1; }
.ae-pill-level-ap      { background: #ede9fe; color: #6d28d9; }
.ae-pill-level-ib      { background: #fce7f3; color: #9d174d; }
.ae-pill-level-de      { background: #ecfdf5; color: #065f46; }
.ae-pill-level-other   { background: #f3f4f6; color: #374151; }

.ae-badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ae-border); color: var(--ae-muted);
  font-size: 0.7rem; font-weight: 700;
  min-width: 1.3em; height: 1.3em;
  border-radius: 999px; padding: 0 0.3em;
}

/* ── Stat Cards (portal) ───────────────────────────────────────── */
.ae-stat-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius);
  position: relative;
  overflow: hidden;
}

.ae-stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.1s;
}

.ae-stat-card-link:hover {
  box-shadow: var(--ae-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.ae-stat-card-num { font-size: 2rem; font-weight: 800; color: var(--ae-navy); line-height: 1; }
.ae-stat-card-label { font-size: 0.8rem; color: var(--ae-muted); font-weight: 500; margin-top: 0.25rem; }
.ae-stat-card-icon { position: absolute; top: 0.75rem; right: 0.75rem; font-size: 1.4rem; color: var(--ae-border); }

/* ── Lists ─────────────────────────────────────────────────────── */
.ae-list { list-style: none; padding: 0; margin: 0; }
.ae-list-item { border-bottom: 1px solid var(--ae-border); }
.ae-list-item:last-child { border-bottom: none; }

/* ── Event date widget ─────────────────────────────────────────── */
.ae-event-date {
  min-width: 2.8rem;
  background: var(--ae-bg-light);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
  padding: 0.2rem 0.4rem;
  flex-shrink: 0;
}

.ae-event-month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--ae-muted); line-height: 1.2; }
.ae-event-day   { font-size: 1.1rem; font-weight: 800; color: var(--ae-navy); line-height: 1.2; }

/* ── Quick links ───────────────────────────────────────────────── */
.ae-quick-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; padding: 1rem 0.5rem;
  background: var(--ae-bg-light); border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius); text-decoration: none;
  color: var(--ae-navy); font-size: 0.8rem; font-weight: 600;
  transition: all 0.15s;
}

.ae-quick-link i { font-size: 1.4rem; color: var(--ae-navy-mid); }

.ae-quick-link:hover {
  background: var(--ae-navy); color: #fff;
  border-color: var(--ae-navy);
  transform: translateY(-2px); box-shadow: var(--ae-shadow);
}

.ae-quick-link:hover i { color: var(--ae-gold); }

/* ── Bucket labels ─────────────────────────────────────────────── */
.ae-bucket-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 0.3em 0.8em;
  border-radius: 999px; display: inline-block;
}

.ae-bucket-reach  { background: #fee2e2; color: #b91c1c; }
.ae-bucket-match  { background: #dbeafe; color: #1d4ed8; }
.ae-bucket-likely { background: #dcfce7; color: #166534; }

.ae-bucket-summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: var(--ae-radius); }
.ae-bucket-reach-bg  { background: #fee2e2; }
.ae-bucket-match-bg  { background: #dbeafe; }
.ae-bucket-likely-bg { background: #dcfce7; }
.ae-bucket-count { font-size: 1.5rem; font-weight: 800; }
.ae-bucket-name  { font-size: 0.85rem; font-weight: 600; color: var(--ae-muted); }

/* ── Score bar ─────────────────────────────────────────────────── */
.ae-score-bar { display: inline-block; width: 60px; height: 6px; background: var(--ae-border); border-radius: 999px; vertical-align: middle; }
.ae-score-fill { height: 100%; background: var(--ae-navy); border-radius: 999px; }

/* ── Academic plan ─────────────────────────────────────────────── */
.ae-grade-label {
  color: var(--ae-navy); font-size: 1rem; font-weight: 700;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--ae-gold);
  display: inline-block;
}

.ae-semester-card { background: var(--ae-bg-card); border: 1px solid var(--ae-border); border-radius: var(--ae-radius); }
.ae-semester-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ae-course-list { list-style: none; padding: 0; margin: 0; }
.ae-course-item { padding: 0.4rem 0; border-bottom: 1px solid var(--ae-border); font-size: 0.875rem; }
.ae-course-item:last-child { border-bottom: none; }
.ae-empty-semester { font-size: 0.8rem; font-style: italic; }

/* ── Activity cards ────────────────────────────────────────────── */
.ae-activity-card { border-radius: var(--ae-radius); transition: box-shadow 0.15s; }
.ae-activity-card:hover { box-shadow: var(--ae-shadow); }
.ae-activity-primary { border-left: 3px solid var(--ae-gold); }

/* ── Messages ──────────────────────────────────────────────────── */
.ae-messages-container { border-radius: var(--ae-radius); display: flex; flex-direction: column; max-height: 70vh; }
.ae-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; min-height: 300px; max-height: calc(70vh - 100px); }
.ae-message { display: flex; flex-direction: column; max-width: 75%; }
.ae-message-mine   { align-self: flex-end;  align-items: flex-end;  }
.ae-message-theirs { align-self: flex-start; align-items: flex-start; }
.ae-message-bubble { padding: 0.6rem 1rem; border-radius: 1rem; font-size: 0.9rem; line-height: 1.5; }
.ae-message-mine .ae-message-bubble   { background: var(--ae-navy); color: #fff; border-bottom-right-radius: 0.25rem; }
.ae-message-theirs .ae-message-bubble { background: #f3f4f6; color: var(--ae-text); border-bottom-left-radius: 0.25rem; }
.ae-message-meta { font-size: 0.7rem; color: var(--ae-muted); margin-top: 0.2rem; padding: 0 0.25rem; }

/* ── Icon buttons ──────────────────────────────────────────────── */
.ae-icon-btn {
  background: none; border: none; padding: 0.2rem 0.3rem;
  color: var(--ae-muted); font-size: 0.85rem; border-radius: 4px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  line-height: 1; display: inline-flex; align-items: center;
}

.ae-icon-btn:hover { background: var(--ae-bg-light); color: var(--ae-navy); }
.ae-icon-btn.text-danger:hover { background: #fee2e2; color: #b91c1c; }

/* ── Forms ─────────────────────────────────────────────────────── */
.ae-form-section-title {
  color: var(--ae-navy); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--ae-border);
  margin-bottom: 1rem; margin-top: 1.5rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--ae-amber);
  box-shadow: 0 0 0 3px rgba(224,122,60,0.15);
}

/* ── Tabs ──────────────────────────────────────────────────────── */
.ae-tabs .nav-link { color: var(--ae-muted); font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1rem; border: none; border-bottom: 2px solid transparent; }
.ae-tabs .nav-link.active { color: var(--ae-navy); border-bottom-color: var(--ae-navy); background: none; }
.ae-tabs .nav-link:hover:not(.active) { color: var(--ae-navy); border-bottom-color: var(--ae-border); }

/* ── Links / utilities ─────────────────────────────────────────── */
.ae-link { color: var(--ae-blue); text-decoration: none; font-weight: 500; }
.ae-link:hover { color: var(--ae-navy); text-decoration: underline; }
.ae-text-primary { color: var(--ae-navy) !important; }
.ae-text-amber   { color: var(--ae-amber) !important; }
.ae-accent       { color: var(--ae-gold); }

/* ── Empty states ──────────────────────────────────────────────── */
.ae-empty-state { color: var(--ae-muted); }
.ae-empty-icon  { font-size: 3rem; color: var(--ae-border); }

/* ── Consultant run match confirm ──────────────────────────────── */
.ae-run-confirm { background: var(--ae-bg-card); border: 1px solid var(--ae-border); border-radius: var(--ae-radius); padding: 2rem; text-align: center; }


/* ═══════════════════════════════════════════════════════════════
   PUBLIC MARKETING PAGES
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared section utilities ──────────────────────────────────── */
.ae-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ae-amber);
  background: var(--ae-amber-light);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.ae-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ae-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.ae-section-title-light {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ae-section-sub {
  font-size: 1.05rem;
  color: var(--ae-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 0.75rem;
}

.ae-divider {
  width: 48px;
  height: 3px;
  background: var(--ae-amber);
  border-radius: 2px;
  margin: 1.25rem 0;
}

.ae-check-list {
  list-style: none;
  padding: 0;
}

.ae-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ae-check-list li i { color: var(--ae-amber); font-size: 1rem; flex-shrink: 0; margin-top: 0.15em; }

/* ── Hero ──────────────────────────────────────────────────────── */
.ae-hero {
  background: linear-gradient(145deg, #0f1f35 0%, var(--ae-navy) 45%, #234070 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.ae-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(224,122,60,0.18) 0%, transparent 62%);
  pointer-events: none;
}

.ae-hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(27,51,88,0.65) 0%, transparent 65%);
  pointer-events: none;
}

.ae-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ae-amber-mid);
  background: rgba(224,122,60,0.14);
  border: 1px solid rgba(224,122,60,0.28);
  padding: 0.35em 1em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.ae-hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.ae-hero-headline em { font-style: italic; color: var(--ae-amber-mid); }

.ae-hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.7);
  max-width: 490px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.ae-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

/* Floating photo placeholder card */
.ae-hero-photo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ae-radius-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 340px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  position: relative;
  margin-left: auto;
}

.ae-hero-photo-card .ae-photo-icon { font-size: 4rem; color: rgba(255,255,255,0.15); }
.ae-hero-photo-card .ae-photo-hint { font-size: 0.7rem; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; text-align: center; padding: 0 1.5rem; }

/* Floating stat badges */
.ae-hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--ae-radius);
  padding: 0.6rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.ae-hero-badge--tl { top: 1.25rem;  left: -3rem; }
.ae-hero-badge--br { bottom: 2rem;  right: -2rem; }

.ae-hero-badge-num   { font-size: 1.05rem; font-weight: 800; color: var(--ae-navy); line-height: 1; }
.ae-hero-badge-label { font-size: 0.68rem; color: var(--ae-muted); font-weight: 500; line-height: 1.3; }
.ae-hero-badge i     { color: var(--ae-amber); font-size: 1rem; }

/* Stats strip */
.ae-stats-strip {
  background: #fff;
  border-top: 3px solid var(--ae-amber);
  border-bottom: 1px solid var(--ae-border);
  padding: 2.25rem 0;
}

.ae-stat-block { text-align: center; padding: 0.5rem 1rem; }

.ae-stat-block + .ae-stat-block { border-left: 1px solid var(--ae-border); }

.ae-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ae-navy);
  line-height: 1;
  display: block;
}

.ae-stat-num sup { font-size: 1.1rem; color: var(--ae-amber); font-family: 'Inter', sans-serif; font-weight: 700; vertical-align: super; }

.ae-stat-label { font-size: 0.8rem; color: var(--ae-muted); font-weight: 500; margin-top: 0.3rem; display: block; }

/* ── Value props ───────────────────────────────────────────────── */
.ae-value-section { padding: 5.5rem 0; background: var(--ae-bg-light); }

.ae-value-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
  height: 100%;
}

.ae-value-card:hover {
  box-shadow: var(--ae-shadow);
  transform: translateY(-5px);
  border-color: rgba(224,122,60,0.3);
}

.ae-value-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--ae-amber-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ae-value-icon-wrap i { font-size: 1.4rem; color: var(--ae-amber); }

.ae-value-card h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ae-navy);
  margin-bottom: 0.75rem;
}

.ae-value-card p { color: var(--ae-muted); font-size: 0.95rem; line-height: 1.75; }

/* ── Services preview section ──────────────────────────────────── */
.ae-services-section { padding: 5.5rem 0; }

.ae-service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ae-border);
}

.ae-service-list-item:last-child { border-bottom: none; }

.ae-service-list-icon {
  width: 38px;
  height: 38px;
  background: var(--ae-amber-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ae-service-list-icon i { font-size: 1.05rem; color: var(--ae-amber); }

.ae-service-list-item h6 { font-weight: 600; color: var(--ae-navy); margin-bottom: 0.15rem; font-size: 0.95rem; }
.ae-service-list-item p  { font-size: 0.85rem; color: var(--ae-muted); margin: 0; line-height: 1.55; }

/* Preview stat grid */
.ae-preview-stat {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ae-stat-plus, .ae-stat-pct { font-size: 1.2rem; font-weight: 700; color: var(--ae-amber); }
.ae-stat-label-sm            { font-size: 1rem; color: var(--ae-navy-mid); font-weight: 700; }

/* ── Success stories teaser ────────────────────────────────────── */
.ae-stories-section { background: var(--ae-bg-light); padding: 5.5rem 0; }

.ae-story-card {
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.ae-story-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ae-amber), var(--ae-amber-mid));
  opacity: 0;
  transition: opacity 0.2s;
}

.ae-story-card:hover { box-shadow: var(--ae-shadow); transform: translateY(-4px); }
.ae-story-card:hover::before { opacity: 1; }

.ae-story-category { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ae-amber); margin-bottom: 0.75rem; }

.ae-story-card h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ae-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.ae-story-achievement {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ae-amber-light);
  color: var(--ae-amber-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.ae-story-card p { font-size: 0.9rem; color: var(--ae-muted); line-height: 1.7; }

.ae-story-strategy {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--ae-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ae-navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ae-story-strategy i { color: var(--ae-amber); }

/* ── CTA banner ────────────────────────────────────────────────── */
.ae-cta-section {
  background: linear-gradient(140deg, #0f1f35 0%, var(--ae-navy) 50%, #234070 100%);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.ae-cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(224,122,60,0.14) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Inner page hero ───────────────────────────────────────────── */
.ae-page-hero {
  background: linear-gradient(145deg, #0f1f35 0%, var(--ae-navy) 60%, #234070 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.ae-page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,122,60,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.ae-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ae-page-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 550px;
}

/* ── Services full page ────────────────────────────────────────── */
.ae-service-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
}

.ae-service-card:hover {
  box-shadow: var(--ae-shadow);
  transform: translateY(-5px);
  border-color: rgba(224,122,60,0.25);
}

.ae-service-icon {
  width: 52px;
  height: 52px;
  background: var(--ae-amber-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ae-service-icon i { font-size: 1.4rem; color: var(--ae-amber); }

.ae-service-card h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ae-navy);
  margin-bottom: 0.75rem;
}

.ae-service-card p { color: var(--ae-muted); font-size: 0.95rem; line-height: 1.75; }

/* ── About page ────────────────────────────────────────────────── */

/* Credential chip list below the photo */
.ae-about-creds {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ae-about-cred-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ae-navy);
  font-weight: 500;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  background: var(--ae-bg-light);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
}

.ae-about-cred-item i {
  color: var(--ae-amber);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ae-about-photo {
  background: linear-gradient(145deg, #dde5f0, #c8d5e6);
  border-radius: var(--ae-radius-lg);
  aspect-ratio: 3/4;
  max-width: 380px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--ae-shadow);
}

.ae-about-photo i    { font-size: 4rem; color: #a8bdd3; }
.ae-about-photo span { font-size: 0.78rem; letter-spacing: 0.05em; color: #8fafc6; }

.ae-approach-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ae-border);
}

.ae-approach-step:last-child { border-bottom: none; }

.ae-step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(15,32,68,0.11);
  min-width: 2.75rem;
  line-height: 1;
  padding-top: 0.05em;
}

.ae-about-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  box-shadow: var(--ae-shadow);
  padding: 2rem;
  position: sticky;
  top: 1.5rem;
}

/* ── Success Stories full page ─────────────────────────────────── */
.ae-story-full-card {
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
}

.ae-story-full-card:hover { box-shadow: var(--ae-shadow); transform: translateY(-4px); }

.ae-story-full-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ae-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.ae-story-full-card p { font-size: 0.9rem; color: var(--ae-muted); line-height: 1.75; flex-grow: 1; }

.ae-story-student-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ae-amber);
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
  flex-grow: 0 !important;
}

.ae-story-key {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--ae-amber-light);
  border-left: 3px solid var(--ae-amber);
  border-radius: 0 var(--ae-radius-sm) var(--ae-radius-sm) 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ae-amber-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Contact page ──────────────────────────────────────────────── */
.ae-contact-info { background: var(--ae-bg-card); border: 1px solid var(--ae-border); border-radius: var(--ae-radius-lg); }
.ae-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.ae-contact-icon { font-size: 1.25rem; color: var(--ae-amber); flex-shrink: 0; padding-top: 0.1em; }
.ae-contact-note { background: var(--ae-bg-light); border-radius: var(--ae-radius-sm); border: 1px solid var(--ae-border); }

/* Hero stat mini widgets */
.ae-contact-hero-stat { text-align: center; }
.ae-contact-hero-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 700; color: #fff;
  display: block; line-height: 1.1;
}
.ae-contact-hero-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); font-weight: 500; letter-spacing: 0.04em; margin-top: 0.25rem; display: block; }
.ae-contact-hero-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.18); }

/* Left info column */
.ae-contact-side { padding: 0; }
.ae-contact-side-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--ae-navy); margin-bottom: 0.6rem;
}
.ae-contact-side-sub { font-size: 0.95rem; color: var(--ae-muted); line-height: 1.75; margin-bottom: 2rem; }

/* Steps */
.ae-contact-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.ae-contact-step { display: flex; align-items: flex-start; gap: 1rem; }
.ae-contact-step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--ae-amber); min-width: 2.2rem;
  line-height: 1.1;
}
.ae-contact-step-title { font-weight: 600; font-size: 0.9rem; color: var(--ae-navy); margin-bottom: 0.15rem; }
.ae-contact-step-sub   { font-size: 0.82rem; color: var(--ae-muted); line-height: 1.55; }

/* Contact icon wrap */
.ae-contact-icon-wrap {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--ae-amber-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-amber); font-size: 1rem;
}

/* Portal box */
.ae-contact-portal-box {
  background: var(--ae-bg-light);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

/* Form card */
.ae-contact-form-card {
  background: #fff;
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  overflow: hidden;
  box-shadow: var(--ae-shadow);
}
.ae-contact-form-header {
  padding: 1.75rem 2rem 0;
}
.ae-contact-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--ae-navy); margin-bottom: 0.25rem;
}
.ae-contact-form-sub { font-size: 0.875rem; color: var(--ae-muted); margin-bottom: 0; }
.ae-contact-form-body { padding: 1.5rem 2rem 2rem; }

/* Form label style */
.ae-form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ae-navy);
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: 0.01em;
}
.ae-form-control {
  border: 1.5px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);
  font-size: 0.9rem;
  color: var(--ae-text);
  padding: 0.55rem 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafbfc;
}
.ae-form-control:focus {
  border-color: var(--ae-amber);
  box-shadow: 0 0 0 3px rgba(224,122,60,0.12);
  background: #fff;
  outline: none;
}

/* py-6 utility for contact section */
.py-lg-6 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }

/* ── Auth page ─────────────────────────────────────────────────── */
.ae-auth-page { background: #f1f3f7; }

.ae-brand-large {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ae-navy);
  text-decoration: none;
}

.ae-auth-subtitle { color: var(--ae-muted); font-size: 0.9rem; }

/* ── Footer ────────────────────────────────────────────────────── */
.ae-footer {
  background: var(--ae-navy);
  color: rgba(255,255,255,0.65);
  margin-top: auto;
  padding: 3.5rem 0 1.5rem;
}

.ae-footer-brand { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: #fff; font-size: 1.2rem; }
.ae-footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-left: 0.5rem; }

.ae-footer-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
  display: block;
  margin-bottom: 0.45rem;
}

.ae-footer-link:hover { color: var(--ae-amber-mid); }

.ae-footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.5rem; }
.ae-footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.ae-footer-col-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); font-weight: 600; margin-bottom: 1rem; }

/* ── FAQ page ──────────────────────────────────────────────────── */
.ae-faq-group {
  margin-bottom: 2.5rem;
}

.ae-faq-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ae-amber);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.ae-faq-accordion {
  border-radius: var(--ae-radius);
  overflow: hidden;
  border: 1px solid var(--ae-border);
  background: #fff;
}

.ae-faq-item {
  border-bottom: 1px solid var(--ae-border);
}

.ae-faq-item:last-child {
  border-bottom: none;
}

.ae-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ae-navy);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin: 0;
  font-family: inherit;
  line-height: 1.4;
}

.ae-faq-question:hover {
  background: var(--ae-bg-light);
  color: var(--ae-amber-dark);
}

.ae-faq-question[aria-expanded="true"] {
  color: var(--ae-amber-dark);
  background: var(--ae-amber-light);
}

.ae-faq-chevron {
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--ae-muted);
}

.ae-faq-question[aria-expanded="true"] .ae-faq-chevron {
  transform: rotate(180deg);
  color: var(--ae-amber);
}

.ae-faq-answer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--ae-border);
}

.ae-faq-answer p {
  font-size: 0.9rem;
  color: var(--ae-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.ae-faq-answer p:last-child { margin-bottom: 0; }

/* Bottom CTA box */
.ae-faq-cta {
  background: linear-gradient(140deg, #0f1f35 0%, var(--ae-navy) 60%, #234070 100%);
  border-radius: var(--ae-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.ae-faq-cta-icon {
  font-size: 2rem;
  color: var(--ae-amber-mid);
  display: block;
  margin-bottom: 1rem;
}

.ae-faq-cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.ae-faq-cta-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Scroll fade animations ────────────────────────────────────── */
.ae-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.ae-fade-up.visible { opacity: 1; transform: translateY(0); }
.ae-fade-up.delay-1 { transition-delay: 0.1s; }
.ae-fade-up.delay-2 { transition-delay: 0.2s; }
.ae-fade-up.delay-3 { transition-delay: 0.3s; }

/* ── Services page — Process Track ────────────────────────────── */
.ae-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
}

.ae-process-num {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ae-amber);
  margin-bottom: 0.875rem;
}

.ae-process-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--ae-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 5px var(--ae-bg-light), 0 4px 16px rgba(27,51,88,0.2);
}

.ae-process-icon-wrap i { font-size: 1.3rem; color: #fff; }

.ae-process-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ae-navy);
  margin-bottom: 0.65rem;
}

.ae-process-desc {
  font-size: 0.875rem;
  color: var(--ae-muted);
  line-height: 1.75;
  max-width: 220px;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .ae-process-step {
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ae-border);
  }
}

/* ── Services page — Package Cards ────────────────────────────── */
.ae-package-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ae-shadow-sm);
  transition: box-shadow 0.25s, transform 0.2s;
  position: relative;
}

.ae-package-card:hover {
  box-shadow: var(--ae-shadow);
  transform: translateY(-3px);
}

.ae-package-featured {
  border-color: var(--ae-navy-mid);
  box-shadow: var(--ae-shadow);
}

.ae-package-featured:hover {
  box-shadow: var(--ae-shadow-lg);
  transform: translateY(-4px);
}

.ae-package-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--ae-amber);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28em 0.8em;
  border-radius: 999px;
  z-index: 2;
}

.ae-package-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1.35rem;
  background: var(--ae-bg-light);
  border-bottom: 1px solid var(--ae-border);
}

.ae-package-featured .ae-package-header {
  background: var(--ae-navy);
  border-bottom: 2px solid var(--ae-amber);
}

.ae-package-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ae-package-icon i { font-size: 1.35rem; color: #fff; }

.ae-package-icon-sm {
  width: 42px;
  height: 42px;
  background: var(--ae-amber-light);
  border-radius: 9px;
}

.ae-package-icon-sm i { font-size: 1.1rem; color: var(--ae-amber); }

.ae-package-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ae-navy);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.ae-package-featured .ae-package-title { color: #fff; }

.ae-package-for {
  font-size: 0.78rem;
  color: var(--ae-muted);
  margin: 0;
  line-height: 1.45;
}

.ae-package-featured .ae-package-for { color: rgba(255,255,255,0.58); }

.ae-package-body { padding: 1.5rem 1.75rem; flex: 1; }

.ae-package-desc {
  font-size: 0.9rem;
  color: var(--ae-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.ae-package-list li { margin-bottom: 0.45rem; font-size: 0.875rem; }

.ae-package-footer {
  padding: 1.2rem 1.75rem;
  border-top: 1px solid var(--ae-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--ae-bg-light);
}

.ae-package-featured .ae-package-footer { background: #fff; }

.ae-package-price {
  font-size: 0.78rem;
  color: var(--ae-muted);
  font-weight: 500;
}

/* Blueprint Diagnostic card — full two-column card */
.ae-blueprint-card {
  background: var(--ae-bg-card);
  border: 1px solid var(--ae-border);
  border-top: 3px solid var(--ae-amber);
  border-radius: var(--ae-radius-lg);
  overflow: hidden;
  box-shadow: var(--ae-shadow);
}

.ae-blueprint-left {
  padding: 2rem 2rem 2rem 2rem;
}

.ae-blueprint-right {
  background: var(--ae-bg-light);
  border-left: 1px solid var(--ae-border);
  display: flex;
  align-items: stretch;
}

@media (max-width: 767px) {
  .ae-blueprint-right {
    border-left: none;
    border-top: 1px solid var(--ae-border);
  }
}

/* Blueprint facts box */
.ae-blueprint-facts-box {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ae-blueprint-fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ae-border);
  font-size: 0.875rem;
  color: var(--ae-navy);
  font-weight: 500;
  line-height: 1.4;
}
.ae-blueprint-fact:last-of-type { border-bottom: none; }
.ae-blueprint-fact i { color: var(--ae-amber); font-size: 1.05rem; flex-shrink: 0; }

/* ── Amber outline button ───────────────────────────────────── */
.ae-btn-outline-amber {
  border: 2px solid var(--ae-amber);
  color: var(--ae-amber-dark);
  background: transparent;
  border-radius: var(--ae-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.15rem;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.ae-btn-outline-amber:hover {
  background: var(--ae-amber);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Responsive adjustments ────────────────────────────────────── */
@media (max-width: 991.98px) {
  .ae-hero-photo-card { display: none; }
  .ae-hero { padding: 3.5rem 0 3rem; }
  .ae-hero-badge { display: none; }
}

@media (max-width: 767.98px) {
  .ae-stat-block + .ae-stat-block { border-left: none; border-top: 1px solid var(--ae-border); }
  .ae-stats-strip { padding: 1.75rem 0; }
}


/* ═══════════════════════════════════════════════════════════════════
   PUBLIC SITE — MODERN CREAM DESIGN OVERRIDES
   Scoped to body.ae-public so portal styles are never affected.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Body background ────────────────────────────────────────────── */
body.ae-public {
  background: #F2EDE4;
}

/* ── Frosted cream navbar ───────────────────────────────────────── */
body.ae-public .ae-navbar {
  background: rgba(242,237,228,0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(210,200,185,0.5) !important;
  padding: 0;
  height: 62px;
}

body.ae-public .ae-navbar.scrolled {
  box-shadow: 0 1px 28px rgba(0,0,0,0.07);
}

/* Logo — navy-tinted on cream */
body.ae-public .ae-nav-logo {
  filter: brightness(0) saturate(100%) invert(18%) sepia(41%) saturate(740%) hue-rotate(188deg) brightness(92%) contrast(95%);
  height: 30px;
}

/* Nav links — dark on cream */
body.ae-public .ae-navbar .nav-link {
  color: rgba(26,22,18,0.52) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.72rem !important;
  position: relative;
}

body.ae-public .ae-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.72rem; right: 0.72rem;
  height: 1.5px;
  background: var(--ae-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

body.ae-public .ae-navbar .nav-link:hover { color: var(--ae-navy) !important; background: none; }
body.ae-public .ae-navbar .nav-link:hover::after { transform: scaleX(1); }
body.ae-public .ae-navbar .nav-link.active { color: var(--ae-navy) !important; background: none; }
body.ae-public .ae-navbar .nav-link.active::after { transform: scaleX(1); }

/* Sign in button — navy bordered */
body.ae-public .ae-btn-outline-nav {
  border: 1.5px solid rgba(27,51,88,0.28);
  color: var(--ae-navy) !important;
  background: transparent;
}
body.ae-public .ae-btn-outline-nav:hover {
  background: rgba(27,51,88,0.05);
  border-color: var(--ae-navy);
  color: var(--ae-navy) !important;
}

/* Mobile hamburger — dark icon on cream */
body.ae-public .navbar-toggler-icon {
  filter: invert(1) brightness(0);
}

/* Mobile expanded menu — solid cream background so it sits above the hero */
@media (max-width: 991.98px) {
  body.ae-public .ae-navbar .navbar-collapse {
    background: rgba(242,237,228,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(210,200,185,0.5);
    padding: 0.75rem 1rem 1rem;
    margin-top: 0;
    position: relative;
    z-index: 1050;
  }
  body.ae-public .ae-lang-switcher { margin-left: 0 !important; margin-top: 0.5rem; }
}

/* ── Hero — cream textured background ───────────────────────────── */
body.ae-public .ae-hero {
  background:
    linear-gradient(125deg, rgba(235,228,216,0.97) 0%, rgba(225,216,202,0.95) 45%, rgba(210,200,184,0.92) 100%),
    url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1920&q=80')
    center 30%/cover no-repeat;
  background-color: #EDE6DA;
  color: var(--ae-navy);
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Linen texture overlay */
body.ae-public .ae-hero::before {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0,0,0,0.025) 28px, rgba(0,0,0,0.025) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0,0,0,0.016) 28px, rgba(0,0,0,0.016) 29px);
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 0;
}
body.ae-public .ae-hero::after { display: none; }

/* Hero text on cream */
body.ae-public .ae-hero-eyebrow {
  color: var(--ae-amber);
  background: rgba(224,122,60,0.1);
  border-color: rgba(224,122,60,0.22);
}
body.ae-public .ae-hero-headline     { color: var(--ae-navy); }
body.ae-public .ae-hero-headline em  { color: var(--ae-amber); font-style: italic; }
body.ae-public .ae-hero-sub          { color: var(--ae-muted); }

/* Outline button on cream hero */
body.ae-public .ae-hero .ae-btn-outline {
  border-color: rgba(27,51,88,0.28);
  color: var(--ae-navy);
  background: rgba(27,51,88,0.04);
}
body.ae-public .ae-hero .ae-btn-outline:hover {
  background: rgba(27,51,88,0.08);
  border-color: var(--ae-navy);
  color: var(--ae-navy);
}

/* ── Stats strip ────────────────────────────────────────────────── */
body.ae-public .ae-stats-strip {
  background: #E8E0D4;
  border-top: none;
  border-bottom: 1px solid rgba(210,200,185,0.6);
}

body.ae-public .ae-stat-block + .ae-stat-block { border-left-color: rgba(210,200,185,0.6); }

/* ── Value / why section ────────────────────────────────────────── */
body.ae-public .ae-value-section { background: #F2EDE4; }
body.ae-public .ae-value-card    { background: rgba(255,255,255,0.7); }

/* ── Services section ───────────────────────────────────────────── */
body.ae-public .ae-services-section { background: #EAE3D9; }

/* ── Stories section ────────────────────────────────────────────── */
body.ae-public .ae-stories-section { background: #F2EDE4; }
body.ae-public .ae-story-card      { background: rgba(255,255,255,0.8); }

/* ── Inner page hero ────────────────────────────────────────────── */
body.ae-public .ae-page-hero {
  background:
    linear-gradient(125deg, rgba(235,228,216,0.98) 0%, rgba(220,211,198,0.96) 100%),
    url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1920&q=80')
    center 30%/cover no-repeat;
  background-color: #EDE6DA;
  color: var(--ae-navy);
}

body.ae-public .ae-page-hero::before {
  background: radial-gradient(circle, rgba(224,122,60,0.08) 0%, transparent 65%);
}

body.ae-public .ae-page-title { color: var(--ae-navy); }
body.ae-public .ae-page-sub   { color: var(--ae-muted); }

/* Contact page hero stats — fix white text on cream background */
body.ae-public .ae-contact-hero-num     { color: var(--ae-navy); }
body.ae-public .ae-contact-hero-label   { color: var(--ae-muted); }
body.ae-public .ae-contact-hero-divider { background: rgba(27,51,88,0.18); }

/* ── Hero layout override for home page ─────────────────────────── */
body.ae-public .ae-hero .container { padding-top: 62px; } /* offset for fixed navbar */

/* ── Portal preview frame (homepage hero) ──────────────────────── */
.pf-wrap {
  position: relative;
  width: 100%;
}

.pf-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 20px 60px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.07);
  position: relative;
  background: #F0F2F7;
}

/* Floating badge cards on the portal illustration */
.pf-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  z-index: 10;
}
.pf-badge--tl { top: 1.5rem;  left: -2.5rem; }
.pf-badge--br { bottom: 2rem; right: -2rem; }
.pf-badge-num   { font-size: 1rem; font-weight: 800; color: var(--ae-navy); line-height: 1; }
.pf-badge-label { font-size: 0.65rem; color: var(--ae-muted); font-weight: 500; line-height: 1.3; }
.pf-badge i     { color: var(--ae-amber); font-size: 1rem; }

/* Browser chrome bar */
.pf-chrome {
  background: #DFE2EA;
  border-bottom: 1px solid #C8CDD9;
  padding: 0 0.875rem;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pf-dots     { display: flex; gap: 5px; }
.pf-dot      { width: 9px; height: 9px; border-radius: 50%; }
.pf-dot:nth-child(1) { background: #FF5F57; }
.pf-dot:nth-child(2) { background: #FEBC2E; }
.pf-dot:nth-child(3) { background: #28C840; }
.pf-url {
  flex: 1; background: #F5F6FA; border: 1px solid #C8CDD9;
  border-radius: 4px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #666; gap: 0.3rem; max-width: 200px; margin: 0 auto;
}

/* App shell */
.pf-app  { display: flex; height: 430px; }

/* Sidebar */
.pf-sidebar {
  width: 48px;
  background: var(--ae-navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0;
  gap: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.pf-logo {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.pf-logo img { width: 24px; height: auto; filter: brightness(0) invert(1); }

.pf-sidebar-nav { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 5px; }
.pf-btn {
  width: 100%; height: 34px; border: none; background: transparent;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 0.95rem; cursor: default;
  transition: background 0.15s, color 0.15s;
}
.pf-btn.active { background: rgba(224,122,60,0.22); color: var(--ae-amber); }
.pf-btn:not(.active):hover { color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.07); }
.pf-sidebar-bottom { margin-top: auto; padding: 0 5px; }

/* Main content area */
.pf-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Topbar */
.pf-topbar {
  background: #fff; border-bottom: 1px solid #E2E6EF;
  padding: 0 0.875rem; height: 36px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.pf-greeting  { font-size: 0.7rem; font-weight: 600; color: var(--ae-navy); }
.pf-date      { font-size: 0.6rem; color: #8E95A3; margin-left: 0.35rem; }
.pf-topbar-r  { display: flex; align-items: center; gap: 0.45rem; }
.pf-notif {
  width: 23px; height: 23px; border-radius: 50%; background: #F0F2F7;
  border: 1px solid #E2E6EF; display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; color: #8E95A3; position: relative;
}
.pf-notif-dot {
  position: absolute; top: 2px; right: 2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ae-amber);
}
.pf-avatar {
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--ae-amber-light); border: 1.5px solid var(--ae-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: var(--ae-amber-dark);
}

/* Tab nav */
.pf-tabnav {
  background: #fff; border-bottom: 1px solid #E2E6EF;
  display: flex; padding: 0 0.875rem; flex-shrink: 0;
}
.pf-tab {
  font-size: 0.65rem; font-weight: 600; color: #8E95A3;
  background: transparent; border: none; padding: 0.48rem 0.65rem;
  cursor: default; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s; white-space: nowrap;
}
.pf-tab.active { color: var(--ae-navy); border-bottom-color: var(--ae-amber); }

/* Panel */
.pf-panel { flex: 1; overflow: hidden; padding: 0.65rem; }

/* Stat row */
.pf-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.35rem; margin-bottom: 0.55rem; }
.pf-stat-card {
  background: #fff; border: 1px solid #E2E6EF; border-radius: 7px;
  padding: 0.5rem 0.6rem;
}
.pf-stat-card.accent { border-color: rgba(224,122,60,0.3); background: var(--ae-amber-light); }
.pf-stat-lbl { font-size: 0.55rem; color: #8E95A3; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pf-stat-val { font-size: 1.05rem; font-weight: 700; color: var(--ae-navy); line-height: 1.1; margin: 0.08rem 0; }
.pf-stat-val.amber { color: var(--ae-amber-dark); }
.pf-stat-sub { font-size: 0.55rem; color: #8E95A3; }

/* Stat card pills (college tier distribution) */
.pf-stat-pills { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 4px; }
.pf-spill { font-size: 0.46rem; font-weight: 700; padding: 0.1em 0.38em; border-radius: 999px; }
.pf-spill-r { background: rgba(220,38,38,0.1);  color: #dc2626; }
.pf-spill-m { background: rgba(37,99,235,0.1);  color: #2563eb; }
.pf-spill-l { background: rgba(22,163,74,0.1);  color: #16a34a; }

/* Inline badge for unread count */
.pf-stat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #dc2626; color: #fff;
  font-size: 0.42rem; font-weight: 700; border-radius: 999px;
  min-width: 1em; height: 1em; padding: 0 0.15em;
  margin-left: 0.18rem; vertical-align: middle;
}

.pf-section-title {
  font-size: 0.6rem; font-weight: 700; color: var(--ae-navy);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0.65rem 0 0.35rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* Upcoming event rows inside illustration */
.pf-event-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0; border-bottom: 1px solid #F0F2F7;
}
.pf-event-item:last-child { border-bottom: none; }
.pf-event-date {
  min-width: 26px; text-align: center;
  background: #F0F2F7; border-radius: 5px; padding: 0.15rem 0.3rem; flex-shrink: 0;
}
.pf-event-mo  { font-size: 0.46rem; font-weight: 700; text-transform: uppercase; color: #8E95A3; line-height: 1; }
.pf-event-day { font-size: 0.72rem; font-weight: 800; color: #1B3358; line-height: 1.1; }
.pf-event-title { font-size: 0.6rem; font-weight: 600; color: #1B3358; line-height: 1.2; }
.pf-event-sub   { font-size: 0.52rem; color: #8E95A3; }

/* College group divider label */
.pf-col-group { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #8E95A3; margin: 0.5rem 0 0.2rem; }

/* College rows */
.pf-col-row {
  background: #fff; border: 1px solid #E2E6EF; border-radius: 7px;
  padding: 0.45rem 0.6rem; margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.pf-col-name  { font-size: 0.66rem; font-weight: 600; color: var(--ae-navy); flex: 1; }
.pf-col-tier  { font-size: 0.55rem; font-weight: 700; padding: 0.1em 0.45em; border-radius: 999px; }
.pf-tier-r    { background: rgba(220,38,38,0.1);  color: #dc2626; }
.pf-tier-t    { background: rgba(37,99,235,0.1);  color: #2563eb; }
.pf-tier-l    { background: rgba(22,163,74,0.1);  color: #16a34a; }
.pf-col-bar   { width: 38px; height: 3px; background: #E2E6EF; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.pf-col-fill  { height: 100%; border-radius: 999px; }
.pf-fill-r    { background: #dc2626; }
.pf-fill-t    { background: #2563eb; }
.pf-fill-l    { background: #16a34a; }
.pf-col-score { font-size: 0.6rem; font-weight: 700; color: #8E95A3; min-width: 24px; text-align: right; }

/* Message preview */
.pf-msg {
  background: #fff; border: 1px solid #E2E6EF; border-radius: 7px;
  padding: 0.5rem 0.6rem; display: flex; gap: 0.45rem; margin-top: 0.5rem;
}
.pf-msg-av {
  width: 20px; height: 20px; border-radius: 50%; background: var(--ae-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.48rem; font-weight: 700; color: var(--ae-amber); flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}
.pf-msg-sender { font-size: 0.6rem; font-weight: 700; color: var(--ae-navy); }
.pf-msg-text   { font-size: 0.6rem; color: var(--ae-muted); line-height: 1.45; margin-top: 0.08rem; }

/* ── Hero watermark ─────────────────────────────────────────────── */
.ae-hero-watermark {
  position: absolute;
  right: -1rem; top: 50%;
  transform: translateY(-52%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(14rem, 22vw, 22rem);
  font-weight: 800; font-style: italic;
  color: rgba(27,51,88,0.04);
  line-height: 1; pointer-events: none;
  user-select: none; z-index: 0;
  letter-spacing: -0.06em;
}

/* ── Animated pulse dot ─────────────────────────────────────────── */
@keyframes ae-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.ae-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--ae-amber); border-radius: 50%;
  display: inline-block;
  animation: ae-pulse 2.2s infinite;
}

/* ── Hero stats row ─────────────────────────────────────────────── */
.ae-hero-stat-row    { display: flex; align-items: center; gap: 2rem; }
.ae-hero-stat-num    { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--ae-navy); line-height: 1; display: block; }
.ae-hero-stat-label  { font-size: 0.68rem; color: var(--ae-muted); font-weight: 500; margin-top: 0.15rem; display: block; }
.ae-hero-stat-div    { width: 1px; height: 34px; background: rgba(27,51,88,0.15); }

/* ── Responsive: hide portal frame on tablet ────────────────────── */
@media (max-width: 991.98px) {
  .pf-wrap { display: none; }
  body.ae-public .ae-hero { min-height: auto; padding: 5rem 0 4rem; }
}


/* ═══════════════════════════════════════════════════════════════════
   PROTOTYPE MATCH UPDATES — v2
   ═══════════════════════════════════════════════════════════════════ */

/* ── Navbar CTA → navy on public pages ──────────────────────────── */
body.ae-public .ae-btn-amber-nav {
  background: var(--ae-navy) !important;
}
body.ae-public .ae-btn-amber-nav:hover {
  background: var(--ae-navy-mid) !important;
}

/* ── Hero decorative arcs ───────────────────────────────────────── */
.ae-hero-arc, .ae-hero-arc-2 {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.ae-hero-arc {
  bottom: -140px; left: -140px;
  width: 520px; height: 520px;
  border: 1.5px solid rgba(224,122,60,0.14);
}
.ae-hero-arc-2 {
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(224,122,60,0.08);
}

/* ── Dark navy stats bar (below hero) ───────────────────────────── */
.ae-dark-stats-bar {
  background: linear-gradient(135deg, #0a1628 0%, #1B3358 55%, #0f1f35 100%);
  padding: 3rem 0;
  position: relative; overflow: hidden;
}
.ae-dark-stats-bar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 24px, rgba(255,255,255,0.018) 24px, rgba(255,255,255,0.018) 25px);
}
.ae-dark-stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ae-radius);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
  height: 100%;
}
.ae-dark-stat-item:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(224,122,60,0.3);
}
.ae-dark-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem; font-weight: 700; color: #fff;
  line-height: 1; display: block;
}
.ae-dark-stat-num sup { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--ae-amber); vertical-align: super; }
.ae-dark-stat-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 500; margin-top: 0.4rem; display: block; line-height: 1.45; }

/* ── Amber CTA strip ────────────────────────────────────────────── */
.ae-amber-cta {
  background: linear-gradient(135deg, #c4662c 0%, #E07A3C 50%, #d4783a 100%);
  padding: 5rem 0;
  position: relative; overflow: hidden;
}
.ae-amber-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 18px, rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 19px);
}
.ae-amber-cta::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.ae-amber-cta-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 700; color: #fff; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 0.875rem;
  position: relative; z-index: 1;
}
.ae-amber-cta-sub {
  font-size: 0.98rem; color: rgba(255,255,255,0.75);
  line-height: 1.8; margin-bottom: 2rem; max-width: 560px;
  margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}

/* ── Interactive portal: additional panel CSS ───────────────────── */
.pf-panel { display: none; flex: 1; overflow-y: auto; padding: 0.65rem; }
.pf-panel.active { display: block; }
.pf-panel::-webkit-scrollbar { width: 3px; }
.pf-panel::-webkit-scrollbar-thumb { background: #E2E6EF; border-radius: 2px; }

/* Colleges panel */
.pf-col-filter-row { display: flex; gap: 0.3rem; margin-bottom: 0.55rem; }
.pf-chip {
  font-size: 0.58rem; font-weight: 600; padding: 0.18em 0.55em; border-radius: 999px;
  border: 1px solid #E2E6EF; background: #fff; color: #8E95A3; cursor: pointer;
}
.pf-chip.active { background: var(--ae-navy); color: #fff; border-color: var(--ae-navy); }
.pf-col-card {
  background: #fff; border: 1px solid #E2E6EF; border-radius: 7px;
  padding: 0.55rem 0.65rem; margin-bottom: 0.35rem;
}
.pf-col-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }

/* Essays panel */
.pf-essay-card {
  background: #fff; border: 1px solid #E2E6EF; border-radius: 7px;
  padding: 0.55rem 0.65rem; margin-bottom: 0.35rem;
}
.pf-essay-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.28rem; }
.pf-essay-name { font-size: 0.68rem; font-weight: 600; color: var(--ae-navy); }
.pf-essay-badge {
  font-size: 0.55rem; font-weight: 700; padding: 0.12em 0.45em; border-radius: 999px;
}
.pf-essay-badge.draft    { background: rgba(245,158,11,0.12); color: #d97706; }
.pf-essay-badge.review   { background: rgba(37,99,235,0.1);   color: #2563eb; }
.pf-essay-badge.complete { background: rgba(22,163,74,0.1);   color: #16a34a; }
.pf-essay-bar  { height: 3px; background: #E2E6EF; border-radius: 999px; overflow: hidden; margin-bottom: 0.22rem; }
.pf-essay-fill { height: 100%; border-radius: 999px; background: var(--ae-amber); }
.pf-essay-meta { font-size: 0.56rem; color: #8E95A3; display: flex; justify-content: space-between; }

.pf-haech-note {
  background: var(--ae-amber-light); border: 1px solid rgba(224,122,60,0.22);
  border-radius: 7px; padding: 0.45rem 0.6rem; margin-bottom: 0.35rem;
  display: flex; gap: 0.35rem; align-items: flex-start;
}
.pf-haech-note i { color: var(--ae-amber); font-size: 0.72rem; margin-top: 0.08rem; flex-shrink: 0; }
.pf-haech-note p { font-size: 0.6rem; color: var(--ae-amber-dark); line-height: 1.5; margin: 0; }

/* Messages panel */
.pf-messages-panel { display: none; flex-direction: column !important; height: 100%; padding: 0.65rem; }
.pf-messages-panel.active { display: flex !important; }
.pf-msg-thread { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; overflow: hidden; }
.pf-msg-block { display: flex; flex-direction: column; }
.pf-msg-block.haech   { align-items: flex-start; }
.pf-msg-block.student { align-items: flex-end; }
.pf-msg-label  { font-size: 0.54rem; color: #8E95A3; margin-bottom: 0.12rem; padding: 0 0.08rem; }
.pf-msg-bubble {
  max-width: 88%; padding: 0.45rem 0.65rem;
  border-radius: 9px; font-size: 0.65rem; line-height: 1.5;
}
.pf-msg-bubble.haech   { background: #fff; border: 1px solid #E2E6EF; color: #1A1612; border-bottom-left-radius: 3px; }
.pf-msg-bubble.student { background: var(--ae-navy); color: rgba(255,255,255,0.9); border-bottom-right-radius: 3px; }
.pf-msg-input-row {
  display: flex; gap: 0.35rem; align-items: center;
  padding: 0.45rem 0 0; border-top: 1px solid #E2E6EF; flex-shrink: 0;
  margin-top: 0.5rem;
}
.pf-msg-input {
  flex: 1; background: #F0F2F7; border: 1px solid #E2E6EF;
  border-radius: 5px; padding: 0.3rem 0.55rem;
  font-size: 0.62rem; color: #8E95A3; font-family: inherit; outline: none;
}
.pf-msg-send {
  width: 26px; height: 26px; background: var(--ae-amber); border: none;
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 0.7rem; flex-shrink: 0;
}
.pf-msg-send:hover { background: var(--ae-amber-dark); }

/* Sidebar active state synced with tabs */
.pf-sidebar .pf-btn { cursor: pointer; }

/* ── Section backgrounds: cream-consistent for all public pages ── */
body.ae-public section[style*="background:#fff"],
body.ae-public section[style*="background: #fff"],
body.ae-public section[style*="background:var(--ae-bg-light)"] {
  background: rgba(255,255,255,0.65) !important;
}

/* Specifically warm up story and service sections */
body.ae-public .ae-stories-page-section { background: rgba(255,255,255,0.6); }
body.ae-public .ae-value-section,
body.ae-public .ae-services-section { background: #EAE3D9; }
body.ae-public .ae-stories-section   { background: #F2EDE4; }

/* Inner section separators match cream */
body.ae-public .ae-divider { background: var(--ae-amber); }

/* ── Language switcher ──────────────────────────────────────────── */
.ae-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.ae-lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.ae-lang-btn:hover { color: rgba(255,255,255,0.9); }
.ae-lang-btn.active { color: #fff; }
.ae-lang-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  user-select: none;
}

/* Public page variant */
body.ae-public .ae-lang-btn { color: rgba(27,51,88,0.45); }
body.ae-public .ae-lang-btn:hover { color: var(--ae-navy); }
body.ae-public .ae-lang-btn.active { color: var(--ae-navy); font-weight: 700; }
body.ae-public .ae-lang-sep { color: rgba(27,51,88,0.2); }

/* ── Invite link banner (consultant student detail) ─────────────── */
.ae-invite-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fffbea;
  border: 1.5px solid #f5d563;
  border-radius: var(--ae-radius);
  padding: 1rem 1.25rem;
}
.ae-invite-banner-icon {
  font-size: 1.5rem;
  color: #b45309;
  flex-shrink: 0;
}
.ae-invite-banner-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #92400e;
}
.ae-invite-banner-sub {
  font-size: 0.78rem;
  color: #a16207;
  margin-top: 0.1rem;
}
.ae-invite-url {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #1e40af;
  background: #eff6ff;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin-top: 0.4rem;
  word-break: break-all;
}
.ae-invite-copy-btn {
  flex-shrink: 0;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: var(--ae-radius-sm);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.ae-invite-copy-btn:hover { background: #d97706; }

/* ── Avatar (small, used in message threads) ─────────────────────────────── */
.ae-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1B2A4A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Essay status pills ───────────────────────────────────────────────────── */
.ae-pill-essay-not_started { background: #F3F4F6; color: #6B7280; }
.ae-pill-essay-drafting    { background: rgba(37,99,235,0.12); color: #2563eb; }
.ae-pill-essay-reviewing   { background: rgba(234,88,12,0.12); color: #ea580c; }
.ae-pill-essay-finalized   { background: rgba(22,163,74,0.12); color: #16a34a; }

/* ── Portal sub-nav strip (student quick nav) ────────────────────────────── */
.ae-portal-subnav {
  background: #fff;
  border-bottom: 1px solid #E2E6EF;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ae-portal-subnav::-webkit-scrollbar { display: none; }

.ae-portal-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
  white-space: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

.ae-pnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.ae-pnav-link i { font-size: 0.88rem; }
.ae-pnav-link:hover { color: #1B2A4A; border-bottom-color: #E2E6EF; }
.ae-pnav-link.active {
  color: #E07A3C;
  border-bottom-color: #E07A3C;
}

@media (max-width: 576px) {
  .ae-pnav-link span { display: none; }
  .ae-pnav-link { padding: 0.6rem 0.6rem; gap: 0; }
  .ae-pnav-link i { font-size: 1rem; }
}
