:root {
  --bg0: #ffffff;
  --bg1: #f7f6ff;
  --ink: #1a183d;
  --muted: rgba(26, 24, 61, 0.72);
  --faint: rgba(26, 24, 61, 0.12);
  --line: rgba(26, 24, 61, 0.18);
  --brand: #302f7b;
  --accent: #982789;
  --gold: #bf9e4f;
  --gold-light: #f1c17c;
  --blue: #302f7b;
  --shadow: 0 1px 2px rgba(26, 24, 61, 0.1), 0 14px 34px rgba(48, 47, 123, 0.16);
  --paper-shadow: 0 1px 2px rgba(26, 24, 61, 0.1), 0 2px 8px rgba(48, 47, 123, 0.12);
}

body.agents-page {
  background: 
    radial-gradient(1100px 700px at 15% -10%, rgba(48,47,123,.14), transparent 60%),
    radial-gradient(900px 700px at 90% 5%, rgba(152,39,137,.10), transparent 58%),
    radial-gradient(1000px 800px at 35% 105%, rgba(241,193,124,.20), transparent 55%),
    linear-gradient(180deg, #ffffff, #f7f6ff);
  position: relative;
}

body.agents-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(191, 158, 79, 0.03);
  pointer-events: none;
  z-index: 0;
}

/* Agent topbar: single row layout */
body.agents-page .topbar-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

body.agents-page .topbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

body.agents-page .topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.agents-page .topbar-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

body.agents-page .topbar-nav a:hover {
  background: rgba(48, 47, 123, 0.06);
  color: var(--brand);
}

body.agents-page .topbar-row .button-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.agents-page .topbar-row .cta-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(48, 47, 123, 0.2);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

body.agents-page .topbar-row .cta-link:hover {
  background: rgba(48, 47, 123, 0.06);
  border-color: rgba(48, 47, 123, 0.4);
}

body.agent-faq .section-inner {
  grid-template-columns: unset;
}

body.agents-page .section-inner h2.title {
  margin-bottom: 0.5rem;
}

body.agents-page .hero {
 /* background: #fdfcfa; */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.agents-page .hero-video,
body.agents-page .hero-preroll,
body.agents-page .hero-sparks {
  display: none;
}

body.agents-page .hero-shade {
  display: none;
}

body.agents-page .hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem; /*60px 20px;*/
  width: 100%;
}

body.agents-page .hero-inner {
  padding: 2rem 0 0 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.agents-page .hero-title {
  color: var(--ink);
  margin: 24px 0;
  width: 100%;
  min-height: auto;
  position: static;
}

body.agents-page .hero-line {
  position: static;
  display: block;
  opacity: 1;
  transform: none;
  filter: none;
  -webkit-text-stroke: none;
  text-shadow: none;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: inherit;
}

body.agents-page .hero-content .cta-inline-row {
  margin-top: 0;
}

body.agents-page .hero-line[data-hero-active="false"] {
  display: none;
}

body.agents-page .hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 500;
}

body.agents-page .kicker {
  color: var(--brand);
}

body.agents-page .btn-primary {
  background: linear-gradient(135deg, #982789, #982789);
  color: #ffffff;
}

body.agents-page .btn-primary:hover {
  background: linear-gradient(135deg, #982789, #302f7b);
}

body.agents-page .btn-secondary {
  background: rgba(48, 47, 123, 0.08);
  border-color: rgba(48, 47, 123, 0.28);
  color: var(--ink);
}

body.agents-page .btn-secondary:hover {
  background: rgba(48, 47, 123, 0.14);
  border-color: rgba(48, 47, 123, 0.42);
}

body.agents-page .section#chapter-1 {
  z-index: 5;
}
body.agents-page .section#chapter-2 {
  z-index: 4;
}
body.agents-page .section#chapter-3 {
  z-index: 3;
}
body.agents-page .section#chapter-7 {
  z-index: 2;
}

body.agents-page .section#chapter-1, body.agents-page .section#chapter-7 {
  background: #fdfcf9;
} 

body.agents-page .section#chapter-2 {
  background: #ffffff;
}

body.agents-page .section#chapter-3 {
  background: #f9f8fd;
}

body.agents-page .title {
  color: var(--gold);
}

body.agents-page .hero .helper {
  gap: 8px;
  color: var(--muted);
}

body.agents-page .hero .helper img {
  display: none;
}

body.agents-page .section:not(.hero) {
  position: relative !important;
  top: 0 !important;
  min-height: auto !important; /* Allow sections to shrink/grow to content */
  height: auto !important;
  padding: 0 !important; /* Standard vertical padding for chapters */
  box-shadow: none !important; /* Remove the "overlay" shadow */
  border-top: none; /*1px solid var(--faint); /* Keep a subtle separator */
}

/* Ensure the hero still takes full height but doesn't overlap */
body.agents-page .section.hero {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Reset the shell stacking context */
body.agents-page .shell {
  display: block;
}

body.agents-page .section-inner .boxes {
  margin: 0.5rem 0 1rem 0;
  gap: 24px;
}

body.agents-page .concierge-panel {
  display: none;
}

body.agents-page .section-inner > .end-of-content-row {
    padding-top: 4.25em;
}
body.agents-page .section-inner > .end-of-content-row > .end-of-content {
  height:20px;
  margin-bottom: -11px;
}

.agents-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.agents-benefit-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(48, 47, 123, 0.14);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(26, 24, 61, 0.08), 0 6px 16px rgba(48, 47, 123, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agents-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(26, 24, 61, 0.1), 0 10px 24px rgba(48, 47, 123, 0.14);
}

.agents-benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(48, 47, 123, 0.08), rgba(152, 39, 137, 0.08));
  border-radius: 12px;
}

.agents-benefit-icon img {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

.agents-benefit-card h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--brand);
  font-weight: 900;
}

.agents-benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.agents-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
}

.agents-stat-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(48, 47, 123, 0.12);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(26, 24, 61, 0.06), 0 4px 12px rgba(48, 47, 123, 0.06);
}

.agents-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.agents-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.agents-page .chapter-1-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

body.agents-page .chapter-2-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.programme-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.programme-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(48, 47, 123, 0.14);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(26, 24, 61, 0.08), 0 6px 16px rgba(48, 47, 123, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.programme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(26, 24, 61, 0.1), 0 10px 24px rgba(48, 47, 123, 0.14);
}

.programme-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.programme-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(191, 158, 79, 0.12), rgba(48, 47, 123, 0.08));
  border-radius: 12px;
}

.programme-icon img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
}

.programme-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 900;
  line-height: 1.3;
}

.programme-location {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.programme-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.age-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(48, 47, 123, 0.08);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 8px;
}

.future-scholars-section {
  padding-top: 32px;
  border-top: 1px solid rgba(48, 47, 123, 0.12);
}

.future-scholars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-advantage-section {
  padding: 32px;
  background: rgba(191, 158, 79, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(191, 158, 79, 0.2);
}

.partner-advantage-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 900;
}

.partner-advantage-section p {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.6;
}

.advantage-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.advantage-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.advantage-feature::before {
  content: "✓";
  color: var(--gold);
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.advantage-feature span {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(48, 47, 123, 0.04);
  border-radius: 12px;
}

.outcome-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(191, 158, 79, 0.15), rgba(48, 47, 123, 0.1));
  border-radius: 10px;
}

.outcome-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.outcome-content h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: var(--brand);
  font-weight: 900;
}

.outcome-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.workflow-steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workflow-step-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(48, 47, 123, 0.14);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(26, 24, 61, 0.08), 0 8px 20px rgba(48, 47, 123, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26, 24, 61, 0.1), 0 12px 28px rgba(48, 47, 123, 0.14);
}

.workflow-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #302f7b, #982789);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  box-shadow: 0 4px 12px rgba(48, 47, 123, 0.24);
}

.step-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.7;
}

.workflow-step-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--brand);
  font-weight: 900;
  line-height: 1.3;
}

.workflow-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 968px) {
  .workflow-steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .workflow-step-card {
    padding: 24px 20px;
  }
  
  .agents-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body.agents-page .chapter-2-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .programme-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  
  .advantage-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.agents-page .hero-content {
    padding: 40px 20px;
  }
  
  .workflow-step-header {
    gap: 12px;
  }
  
  .step-badge {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .agents-benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .agents-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .programme-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .future-scholars-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ specific styles */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(48, 47, 123, 0.14);
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(26, 24, 61, 0.08), 0 6px 16px rgba(48, 47, 123, 0.08);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 4px rgba(26, 24, 61, 0.1), 0 10px 24px rgba(48, 47, 123, 0.14);
}

.faq-question {
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.faq-answer ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
  color: var(--muted);
}

.faq-hero {
  padding: 80px 0 60px 0;
  text-align: center;
}

.faq-hero h1 {
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.faq-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.faq-section {
  padding: 0 0 80px 0;
}

.faq-cta {
  background: rgba(191, 158, 79, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(191, 158, 79, 0.2);
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.faq-cta h3 {
  color: var(--gold);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 60px 0 40px 0;
  }
  
  .faq-hero h1 {
    font-size: 2rem;
  }
  
  .faq-question {
    padding: 20px;
    font-size: 0.95rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
  
  .faq-cta {
    padding: 30px 20px;
  }
}
