/* ==========================================================================
   AHS Education - Your Complete AHS Guide
   Pure CSS3 with custom variables, smooth transitions, and responsive layout
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-orange: #FF7A00;
  --primary-orange-dark: #E65100;
  --primary-orange-light: #FFF4EC;
  --secondary-navy: #0C2340;
  --navy-dark: #07172B;

  /* Accent Colors */
  --teal-brand: #0D9488;
  --teal-light: #ECFDF5;
  --blue-brand: #2563EB;
  --blue-light: #EFF6FF;
  --purple-brand: #9333EA;
  --purple-light: #FAF5FF;

  /* Neutrals */
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light-muted: #94A3B8;
  --border-light: #E2E8F0;
  --card-bg-white: #FFFFFF;

  /* Typography */
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 28px rgba(12, 35, 64, 0.06);
  --shadow-card-hover: 0 16px 36px rgba(12, 35, 64, 0.12);
  --shadow-modal: 0 24px 60px rgba(12, 35, 64, 0.35);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #FFFDF9;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   1. HERO SECTION: YOUR COMPLETE AHS GUIDE
   Background: hero-bg.png (Captain AHS reading guide with students on clouds)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 640px;
  background-color: #FFAE2E;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 90px 0 120px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Eyebrow Pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: #FF5A00;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
  margin-bottom: 18px;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
}

.title-navy {
  color: #0C2340;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.title-orange {
  color: #FF7A00;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(14.5px, 1.6vw, 16px);
  font-weight: 500;
  color: #173866;
  line-height: 1.55;
  margin-bottom: 26px;
  max-width: 480px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-download {
  background-color: #FF5A00;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 90, 0, 0.35);
}

.btn-download:hover {
  background-color: #E64A00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 90, 0, 0.5);
}

.btn-fullscreen {
  background-color: #FFFFFF;
  color: var(--secondary-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-fullscreen:hover {
  background-color: #FFFDF9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Highlights Row */
.hero-highlights {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.pill-grades {
  color: #1E3A8A;
}

.pill-scholarship {
  color: #B45309;
}

.pill-scholarship .star-icon {
  color: #F59E0B;
  font-size: 13px;
}

.pill-app {
  color: #0369A1;
}

/* ==========================================================================
   2. SECTION DIVIDERS (Dot - Line - Title - Line - Dot)
   ========================================================================== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.divider-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.divider-line {
  width: 44px;
  height: 2.5px;
  background-color: var(--secondary-navy);
  border-radius: 2px;
}

.divider-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--secondary-navy);
  letter-spacing: 0.3px;
  padding: 0 4px;
  white-space: nowrap;
}

.section-subtitle {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 34px;
}

/* ==========================================================================
   3. SECTION 1: EXPLORE THE AHS GUIDE (EMBEDDED VIEWER)
   ========================================================================== */
.page-content {
  position: relative;
  width: 100%;
  padding-top: 50px;
}

.section-explore-guide {
  margin-bottom: 75px;
}

.pdf-viewer-card {
  max-width: 980px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(12, 35, 64, 0.08);
  border: 1.5px solid #E2E8F0;
  transition: box-shadow var(--transition-normal);
}

.pdf-viewer-card:hover {
  box-shadow: 0 20px 48px rgba(12, 35, 64, 0.12);
}

/* Viewer Header Bar (Teal) */
.pdf-viewer-header {
  background-color: var(--teal-brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.viewer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-doc-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.2px;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewer-action-link {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--transition-fast);
}

.viewer-action-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

.action-icon {
  font-size: 13px;
}

.viewer-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.viewer-icon-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

/* Viewer Body */
.pdf-viewer-body {
  position: relative;
  width: 100%;
  height: 680px;
  background-color: #F8FAFC;
  overflow: hidden;
}

.pdf-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   4. SECTION 2: JUMP STRAIGHT TO (4 ACTION CARDS)
   ========================================================================== */
.section-jump-to {
  position: relative;
  width: 100%;
  margin-bottom: 75px;
  background-image: url('gallery-bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 40px 0 65px;
}

.jump-container {
  position: relative;
}

.jump-doodle-dots,
.jump-doodle-plane {
  display: none;
}

.jump-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 30px auto 0;
}

/* Jump Card */
.jump-card {
  position: relative;
  background-color: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid #F1F5F9;
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.jump-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(12, 35, 64, 0.12);
}

.jump-card-top {
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.jump-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}

.jump-card:hover .jump-icon-circle {
  transform: scale(1.08);
}

.bg-circle-orange { background: linear-gradient(135deg, #FF7A00, #E65100); }
.bg-circle-teal   { background: linear-gradient(135deg, #0D9488, #059669); }
.bg-circle-blue   { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.bg-circle-purple { background: linear-gradient(135deg, #9333EA, #7E22CE); }

.jump-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-navy);
  line-height: 1.25;
  letter-spacing: 0.1px;
}

/* Card Specific Border Themes */
.card-parent { border: 1.5px solid #FED7AA; }
.card-parent:hover { border-color: #FB923C; }

.card-school { border: 1.5px solid #A7F3D0; }
.card-school:hover { border-color: #34D399; }

.card-tutor { border: 1.5px solid #BFDBFE; }
.card-tutor:hover { border-color: #60A5FA; }

.card-partner { border: 1.5px solid #DDD6FE; }
.card-partner:hover { border-color: #A78BFA; }

/* Bottom Wave & Circular Arrow */
.jump-card-bottom {
  position: relative;
  width: 100%;
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 18px;
  padding-bottom: 12px;
  background-color: transparent;
  overflow: hidden;
}

.card-wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Richer, slightly darker pastel wave colors */
.wave-orange { color: #FFE2CA; }
.wave-teal   { color: #CCFBF1; }
.wave-blue   { color: #D8E7FD; }
.wave-purple { color: #EFE4FC; }

.jump-arrow-btn {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.jump-card:hover .jump-arrow-btn {
  transform: translateX(3px);
}

.arrow-orange { background: linear-gradient(135deg, #FF7A00, #EA580C); }
.arrow-teal   { background: linear-gradient(135deg, #0D9488, #059669); }
.arrow-blue   { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.arrow-purple { background: linear-gradient(135deg, #9333EA, #7E22CE); }

/* ==========================================================================
   5. SECTION 3: READY TO START LEARNING? (CTA BANNER)
   Background cta-bg.png contains Captain AHS mascot on left
   ========================================================================== */
.section-guide-cta {
  position: relative;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 70px;
}

.guide-cta-banner {
  position: relative;
  width: 100%;
  max-width: 1014px;
  height: 287px;
  min-height: 287px;
  margin: 0 auto;
  background-color: transparent;
  background-image: url('cta-bg.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(230, 81, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  gap: 16px;
  box-sizing: border-box;
}

/* Mascot Space on Left (exact width of Captain AHS in 1018x297 image) */
.cta-mascot-space {
  flex-shrink: 0;
  width: 240px;
}

/* Center Content Area */
.cta-center-content {
  flex: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  color: var(--secondary-navy);
  margin-bottom: 6px;
  line-height: 1.2;
}

.cta-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 14px;
}

.cta-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cta-create {
  background-color: #FFFFFF;
  color: var(--primary-orange-dark);
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-cta-create:hover {
  background-color: #FFFDF9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-cta-demo {
  background-color: var(--secondary-navy);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-demo:hover {
  background-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.35);
}

.demo-play-icon {
  font-size: 11px;
}

/* Right Side: Get the free app */
.cta-app-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.app-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary-navy);
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  min-width: 154px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.app-badge-btn:hover {
  background-color: #141414;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.badge-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.badge-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.badge-subtext {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #E2E8F0;
  text-transform: none;
}

.badge-maintext {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   6. VIDEO PLAYER MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.video-modal-dialog {
  background-color: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.is-active .video-modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-navy);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #E2E8F0;
  color: var(--secondary-navy);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .jump-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .guide-cta-banner {
    padding: 30px 24px;
  }
}

/* Tablets (<= 860px) */
@media (max-width: 860px) {
  .hero-section {
    min-height: 580px;
    padding: 60px 0 85px;
  }

  .hero-content {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .pdf-viewer-body {
    height: 520px;
  }

  .guide-cta-banner {
    height: auto;
    min-height: 346px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background-color: #FFAE2E;
    background-image: url('cta-bg.png');
    background-size: cover;
    background-position: left center;
    padding: 34px 28px;
  }

  .cta-mascot-space {
    display: none;
  }

  .cta-center-content {
    max-width: 100%;
  }

  .cta-app-group {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .highlight-pill {
    width: 100%;
  }

  .divider-title {
    font-size: 20px;
  }

  .pdf-viewer-body {
    height: 420px;
  }

  .jump-cards-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 24px auto 0;
  }

  .cta-actions-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions-group .btn {
    width: 100%;
  }

  .cta-app-group {
    flex-direction: column;
    width: 100%;
  }

  .app-badge-btn {
    width: 100%;
  }
}
