/* ==== Base & Layout ==== */

:root {
    --bg: #f7f7fb;
    --white: #ffffff;
    --text-main: #151515;
    --text-muted: #666b78;
    --primary: #00a9a5;
    --primary-soft: rgba(0, 169, 165, 0.12);
    --accent: #2f3d8f;
    --border: #dde1f0;
    --shadow-soft: 0 18px 45px rgba(15, 35, 52, 0.08);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: 0.25s ease;
    --max-width: 1120px;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
  }
  
  h1,
  h2,
  h3 {
    font-family: "DM Serif Display", "Times New Roman", serif;
  }
  
  /* Utilities */
  
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
  }
  
  .section-header p {
    margin: 0;
    color: var(--text-muted);
  }
  
  /* ==== Header ==== */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 251, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(224, 227, 239, 0.7);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
  }
  
  /* Branding */
  
  .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
  
  .brand-logo {
    /* wide logo look, no stretching */
    min-width: 200px;
    max-width: 260px;
    width: 220px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
  }
  
  /* Navigation */
  
  .main-nav {
    display: flex;
  }
  
  .main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
  }
  
  .nav-link,
  .dropdown-toggle {
    position: relative;
    background: transparent;
    border: none;
    font: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0;
    cursor: pointer;
    transition: color var(--transition);
  }
  
  .nav-link::after,
  .dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
  }
  
  .nav-link:hover,
  .dropdown-toggle:hover,
  .nav-link.active {
    color: var(--text-main);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after,
  .dropdown-toggle:hover::after {
    width: 100%;
  }
  
  .nav-link-cta {
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 169, 165, 0.35);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 35, 52, 0.08);
  }
  
  .nav-link-cta::after {
    display: none;
  }
  
  .nav-link-cta:hover {
    background: var(--primary);
    color: #ffffff;
  }
  
  /* Dropdown menu */
  
  .has-dropdown {
    position: relative;
  }
  
  .caret {
    display: inline-block;
    margin-left: 0.28rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #8891b2;
    transform-origin: center;
    transition: transform 0.23s ease;
  }
  
  /* IMPORTANT: override flex so dropdown items are vertical */
  .main-nav ul.dropdown-menu {
    display: block;              /* not flex */
    flex-direction: column;      /* in case flex ever applied */
    align-items: stretch;
    gap: 0;
  }
  
  /* actual dropdown styles */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 190px;
    padding: 0.6rem 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(226, 232, 240, 0.9);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 40;
  }
  
  .dropdown-menu li {
    display: block; /* ensure each child is its own row */
  }
  
  .dropdown-link {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #111827;
  }
  
  .dropdown-link:hover {
    background: rgba(0, 169, 165, 0.06);
    color: var(--accent);
  }
  
  /* show dropdown only when .open class is present */
  .has-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .has-dropdown.open .caret {
    transform: rotate(180deg);
  }
  
  /* Mobile nav toggle */
  
  .nav-toggle {
    display: none;
    width: 40px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    padding: 0 0.4rem;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }
  
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #252934;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }
  
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }
  
  /* ==== Hero ==== */
  
  .hero {
    position: relative;
    padding: 3.5rem 0 5rem;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, #e3fdf9 0, #f7f7fb 40%, #ffffff 100%);
  }
  
  .hero-bg-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(1px);
  }
  
  .hero-bg-shape-1 {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 61, 143, 0.14), transparent 60%);
    top: -40px;
    right: -20px;
  }
  
  .hero-bg-shape-2 {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 169, 165, 0.18), transparent 65%);
    bottom: -60px;
    left: -40px;
  }
  
  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
  }
  
  .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #04706c;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  
  .hero h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2.1rem, 2.6vw + 1.4rem, 2.9rem);
    letter-spacing: -0.02em;
    color: #101827;
  }
  
  .hero-subtitle {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.98rem;
  }
  
  .hero-bullets {
    margin: 0 0 1.5rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
  }
  
  .hero-bullets li + li {
    margin-top: 0.25rem;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
  }
  
  /* Buttons */
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition),
      transform 0.12s ease, color var(--transition), border-color var(--transition);
  }
  
  .btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 169, 165, 0.35);
  }
  
  .btn-primary:hover {
    background: #008a87;
    box-shadow: 0 18px 36px rgba(0, 169, 165, 0.4);
    transform: translateY(-1px);
  }
  
  .btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
  }
  
  .btn-ghost:hover {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(0, 169, 165, 0.55);
  }
  
  .btn-outline:hover {
    background: var(--primary-soft);
  }
  
  .btn-light {
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  }
  
  .btn-light:hover {
    background: #f1f5ff;
  }
  
  .btn-outline-light {
    background: transparent;
    color: #e5eeff;
    border: 1px solid rgba(229, 238, 255, 0.7);
  }
  
  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .btn-small {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }
  
  /* Hero meta */
  
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: #4b5563;
  }
  
  /* Hero aside */
  
  .hero-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-card {
    background: radial-gradient(circle at 0% 0%, #d3fff9 0, #f7f7fb 35%, #ffffff 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.7);
  }
  
  .stats-card h2 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
  }
  
  .stats-card ul {
    margin: 0 0 1rem;
    padding-left: 1.05rem;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  .stats-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }
  
  .stat-number {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
  }
  
  .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .mini-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
  }
  
  .mini-title {
    margin: 0 0 0.15rem;
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .mini-body {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  /* ==== About ==== */
  
  .about {
    background: #ffffff;
  }
  
  .about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
  }
  
  .about-text h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .about-text p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  .about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
  }
  
  .highlight-item {
    background: #f3f5ff;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    font-size: 0.86rem;
  }
  
  .highlight-label {
    display: inline-block;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.25rem;
  }
  
  .highlight-item p {
    margin: 0;
    color: var(--text-muted);
  }
  
  .about-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .quote-card {
    position: relative;
    background: linear-gradient(135deg, #192850, #243b73);
    color: #e5eeff;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.3rem 1.2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  }
  
  .quote-mark {
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.12);
    font-family: "DM Serif Display", serif;
  }
  
  .quote-card p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  .quote-card p + p {
    margin-top: 0.5rem;
  }
  
  .quote-author {
    font-weight: 600;
    font-size: 0.86rem;
    color: #cbd5ff;
  }
  
  .about-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .about-list li + li {
    margin-top: 0.25rem;
  }
  
  /* ==== Exam Levels ==== */
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
  
  .card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.3rem;
    border: 1px solid rgba(224, 227, 239, 0.9);
    box-shadow: 0 12px 22px rgba(15, 35, 52, 0.04);
    transition: transform var(--transition), box-shadow var(--transition),
      border-color var(--transition);
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 35, 52, 0.1);
    border-color: rgba(0, 169, 165, 0.35);
  }
  
  .exam-card .card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }
  
  .exam-card h3 {
    margin: 0 0 0.35rem;
  }
  
  .exam-card p {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.92rem;
  }
  
  .card-list {
    margin: 0 0 0.9rem;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
  }
  
  .card-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
  }
  
  .card-link:hover {
    color: var(--primary);
  }
  
  /* ==== Resources ==== */
  
  .resources {
    background: #f1f3fb;
  }
  
  .resource-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  
  .filter-btn {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition),
      border-color var(--transition), transform 0.12s ease;
  }
  
  .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
  }
  
  .filter-btn:hover:not(.active) {
    transform: translateY(-1px);
  }
  
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .resource-card h3 {
    margin: 0.3rem 0 0.3rem;
    font-size: 1rem;
  }
  
  .resource-card p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
  }
  
  .pill-bcs {
    background: rgba(0, 169, 165, 0.09);
    color: #046a67;
  }
  
  .pill-college {
    background: rgba(92, 108, 255, 0.1);
    color: #2533cc;
  }
  
  .pill-school {
    background: rgba(255, 184, 80, 0.15);
    color: #b87108;
  }
  
  /* ==== Features ==== */
  
  .features {
    background: #ffffff;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
  }
  
  .feature-item {
    background: #f5f7ff;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    border: 1px dashed rgba(148, 163, 184, 0.6);
  }
  
  .feature-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
  }
  
  .feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  /* ==== CTA ==== */
  
  .cta {
    padding-bottom: 4.2rem;
  }
  
  .cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.7rem;
    background: linear-gradient(135deg, #192850, #253b73, #00a9a5);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.9rem 2rem;
    box-shadow: var(--shadow-soft);
  }
  
  .cta-text h2 {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
  }
  
  .cta-text p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 520px;
  }
  
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  
  /* ==== Footer ==== */
  
  .site-footer {
    background: #0f172a;
    color: #c5cad8;
    padding-top: 2.5rem;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .footer-brand {
    max-width: 330px;
  }
  
  .footer-title {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #e5edff;
    margin-bottom: 0.4rem;
  }
  
  .footer-brand p {
    margin: 0;
    font-size: 0.86rem;
  }
  
  .footer-columns {
    display: flex;
    gap: 2.5rem;
  }
  
  .footer-col h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #f9fafb;
  }
  
  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
  }
  
  .footer-col li + li {
    margin-top: 0.25rem;
  }
  
  .footer-col a {
    color: inherit;
    text-decoration: none;
  }
  
  .footer-col a:hover {
    color: #ffffff;
  }
  
  .social-links {
    display: flex;
    flex-direction: column;
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 2rem;
    padding: 0.9rem 0;
    font-size: 0.8rem;
  }
  
  .footer-bottom-inner {
    text-align: center;
  }
  
  /* ==== Responsive ==== */
  
  @media (max-width: 960px) {
    .brand-logo {
      max-width: 220px;
    }
  
    .hero-inner {
      grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
      gap: 1.8rem;
    }
  
    .card-grid,
    .resource-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .features-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .about-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .about-panel {
      max-width: 450px;
    }
  
    .cta-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  @media (max-width: 768px) {
    .header-inner {
      padding-block: 0.5rem;
    }
  
    .main-nav {
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      background: rgba(247, 247, 251, 0.98);
      border-bottom: 1px solid rgba(224, 227, 239, 0.9);
      transform-origin: top;
      transform: scaleY(0.9);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.23s ease, transform 0.23s ease, visibility 0.23s ease;
    }
  
    .main-nav.open {
      opacity: 1;
      visibility: visible;
      transform: scaleY(1);
    }
  
    .main-nav > ul {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.75rem 1.25rem 1.2rem;
      gap: 0.6rem;
    }
  
    .main-nav li {
      width: 100%;
    }
  
    .nav-link,
    .dropdown-toggle,
    .nav-link-cta {
      display: inline-flex;
      width: 100%;
      justify-content: space-between;
    }
  
    .nav-link-cta {
      justify-content: center;
      margin-top: 0.25rem;
    }
  
    .main-nav ul.dropdown-menu {
      position: static;
      transform: none;
      box-shadow: none;
      border-radius: 10px;
      border: 1px solid rgba(226, 232, 240, 0.8);
      margin-top: 0.3rem;
      width: 100%;
    }
  
    .dropdown-link {
      padding-left: 0.9rem;
    }
  
    .nav-toggle {
      display: flex;
    }
  
    .hero-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-aside {
      order: -1;
    }
  
    .card-grid,
    .resource-grid,
    .features-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .cta-inner {
      padding: 1.4rem 1.3rem;
    }
  
    .footer-columns {
      flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    .hero {
      padding-top: 3rem;
    }
  
    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .cta-actions {
      width: 100%;
      flex-direction: column;
    }
  }
  