/* =====================================================
   AAT iDEAL Schools – Main Stylesheet
   Brand: AAT Green #3aaa35 / #78BE20, Dark #1e293b
   ===================================================== */

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

:root {
    --green: #3aaa35;
    --green-dark: #2d8a29;
    --green-deeper: #1a5c17;
    --green-light: #78BE20;
    --green-pale: #eef9ee;
    --green-soft: #d8f0d6;
    --ink: #1e293b;
    --gray-dark: #334155;
    --gray-mid: #64748b;
    --gray-light: #f1f5f9;
    --gray-line: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
    --shadow-green: 0 12px 32px rgba(58, 170, 53, 0.28);
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(58, 170, 53, 0.18);
    color: var(--ink);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }

p {
    color: var(--gray-mid);
    margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn:focus-visible {
    outline: 3px solid rgba(58, 170, 53, 0.45);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    color: white;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(58, 170, 53, 0.38);
    filter: brightness(1.03);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: white;
    color: var(--green-dark);
    border-color: white;
    transform: translateY(-2px);
}

.btn-green-outline {
    background: transparent;
    color: var(--green-dark);
    border: 1.5px solid var(--green);
    margin-top: 0.5rem;
}

.btn-green-outline:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-white {
    background: white;
    color: var(--green-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.02rem;
}

/* =====================================================
   TOP NAVIGATION
   ===================================================== */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.topnav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--gray-line);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.topnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-logos {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-ideal {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-mid);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-dark);
    background: var(--green-pale);
}

.nav-cta {
    background: linear-gradient(135deg, var(--green), var(--green-light)) !important;
    color: white !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    margin-left: 8px;
    box-shadow: 0 6px 18px rgba(58, 170, 53, 0.3);
}

.nav-cta:hover,
.nav-cta.active {
    filter: brightness(1.05);
    background: linear-gradient(135deg, var(--green-dark), var(--green)) !important;
    color: white !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background var(--transition);
}

.hamburger:hover { background: var(--green-pale); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-line);
    padding: 12px 20px 20px;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 998;
    box-shadow: var(--shadow-md);
    gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 14px 12px;
    font-weight: 600;
    color: var(--ink);
    border-radius: 12px;
    transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
    color: var(--green-dark);
    background: var(--green-pale);
}

.mobile-menu .mobile-cta {
    margin-top: 8px;
    text-align: center;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: white !important;
    border-radius: 999px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 48px) 0 0;
    min-height: min(100vh, 880px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(120, 190, 32, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 92, 23, 0.5) 0%, transparent 50%),
        linear-gradient(145deg, #0f3d0d 0%, #1a5c17 28%, #2d8a29 58%, #3aaa35 82%, #6bb81f 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.shape-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}

.shape-2 {
    width: 360px;
    height: 360px;
    bottom: 40px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.shape-3 {
    width: 160px;
    height: 160px;
    top: 28%;
    right: 38%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(2px);
}

.shape-4 {
    width: 90px;
    height: 90px;
    bottom: 28%;
    right: 12%;
    background: rgba(212, 247, 190, 0.12);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 48px;
}

.hero-content {
    text-align: left;
    max-width: 560px;
}

.hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-eyebrow .aat-approved-badge {
    height: 44px;
    width: auto;
    background: white;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f0fdf4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-pill i { color: #d4f7be; }

.hero-headline {
    color: white;
    font-size: clamp(2.4rem, 4.8vw, 3.85rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.hero-headline .highlight {
    color: #d4f7be;
    display: inline;
    background: linear-gradient(90deg, #d4f7be, #a7f3a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subline {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    margin: 0 0 28px;
    font-weight: 400;
    line-height: 1.75;
    max-width: 520px;
}

.hero-subline strong {
    color: #e8ffd9;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    font-weight: 600;
}

.hero-trust i {
    color: #d4f7be;
    font-size: 0.95rem;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-visual-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-xl);
    padding: 20px 16px 8px;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-illus {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.15));
}

.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 90px;
    padding: 4px 10px;
}

.stat-number {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    line-height: 1.35;
}

.stat-divider {
    width: 1px;
    align-self: stretch;
    min-height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.hero-wave {
    position: relative;
    z-index: 2;
    margin-top: auto;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(58, 170, 53, 0.05), transparent 55%),
        var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 { margin-bottom: 4px; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    border: 1px solid rgba(58, 170, 53, 0.18);
}

.section-intro {
    font-size: 1.08rem;
    max-width: 640px;
    margin: 14px auto 0;
    color: var(--gray-mid);
    line-height: 1.7;
}

/* =====================================================
   ABOUT AAT
   ===================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
}

.about-text-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-illus-wrap {
    background:
        radial-gradient(circle at 30% 30%, rgba(120, 190, 32, 0.12), transparent 55%),
        linear-gradient(160deg, #f8fdf8 0%, #eef9ee 100%);
    border: 1px solid rgba(58, 170, 53, 0.12);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    justify-content: center;
}

.about-illus {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 14px 28px rgba(58, 170, 53, 0.12));
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.15rem;
    line-height: 1.75;
}

.about-text strong {
    color: var(--ink);
    font-weight: 700;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-line);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(58, 170, 53, 0.22);
}

.about-card:hover::before { opacity: 1; }

.about-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--green-dark);
    font-size: 1.15rem;
}

.about-card h4 {
    margin-bottom: 8px;
    font-size: 0.96rem;
}

.about-card p {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

/* =====================================================
   QUALIFICATIONS / LEVELS
   ===================================================== */

.qualifications .section-header {
    margin-bottom: 48px;
}

.levels-pathway {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    margin-bottom: 32px;
    align-items: stretch;
    width: 100%;
}

.level-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 22px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-line);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.level-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.level-1 .level-accent {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.level-2 .level-accent {
    background: linear-gradient(90deg, var(--green-dark), var(--green-light));
}

.level-3 .level-accent {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(58, 170, 53, 0.2);
}

.level-card.featured {
    border-color: rgba(58, 170, 53, 0.45);
    box-shadow: 0 16px 48px rgba(58, 170, 53, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf3 100%);
    transform: scale(1.02);
    z-index: 1;
}

.level-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
}

.popular-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 6px 16px rgba(58, 170, 53, 0.3);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    border: 1px solid rgba(58, 170, 53, 0.2);
}

.level-card.featured .level-badge {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.level-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--green-dark);
    background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
    margin-bottom: 16px;
}

.level-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
    color: var(--ink);
    line-height: 1.35;
}

.level-subtitle {
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.level-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.level-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-mid);
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.level-features li:last-child { border-bottom: none; }

.level-features li i {
    color: var(--green);
    font-size: 0.72rem;
    margin-top: 6px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green-pale);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.level-ideal {
    background: var(--green-pale);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.84rem;
    color: var(--gray-mid);
    margin-bottom: 16px;
    border: 1px solid rgba(58, 170, 53, 0.12);
}

.level-ideal strong {
    color: var(--green-dark);
    font-weight: 700;
}

.level-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    background: transparent;
    color: var(--green-dark);
    border: 1.5px solid var(--green);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    text-decoration: none;
}

.level-btn:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 170, 53, 0.28);
}

.level-btn-featured {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(58, 170, 53, 0.28);
}

.level-btn-featured:hover {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    border-color: transparent;
}

.qualification-note {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid rgba(58, 170, 53, 0.16);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.qualification-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green), var(--green-light));
}

.qualification-note-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green-pale);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.qualification-note p {
    margin: 0;
    font-size: 0.95rem;
}

.qualification-note strong {
    color: var(--green-dark);
}

/* =====================================================
   WHY TRAIN
   ===================================================== */

.why-train-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.why-header {
    text-align: left;
    margin-bottom: 0;
}

.why-header .section-intro {
    margin-left: 0;
}

.why-illus-wrap {
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 60% 40%, rgba(120, 190, 32, 0.1), transparent 60%),
        linear-gradient(160deg, #f8fdf8, #eef9ee);
    border: 1px solid rgba(58, 170, 53, 0.1);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.why-illus {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 12px 28px rgba(58, 170, 53, 0.1));
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.reason-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-line);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(58, 170, 53, 0.2);
}

.reason-num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2.6rem;
    font-weight: 900;
    color: rgba(58, 170, 53, 0.08);
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
}

.reason-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.reason-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.reason-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* =====================================================
   PULL QUOTE
   ===================================================== */

.pull-quote-section {
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(120, 190, 32, 0.25), transparent 50%),
        radial-gradient(ellipse 40% 70% at 100% 30%, rgba(255, 255, 255, 0.08), transparent 45%),
        linear-gradient(135deg, #0f3d0d 0%, #1a5c17 40%, #2d8a29 100%);
    padding: 88px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pq-shapes { position: absolute; inset: 0; pointer-events: none; }

.pq-shape-1 {
    position: absolute;
    width: 420px;
    height: 420px;
    top: -160px;
    left: -120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.pq-shape-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.pull-quote {
    position: relative;
    z-index: 2;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 700;
    color: white;
    line-height: 1.55;
    max-width: 780px;
    margin: 0 auto 36px;
    font-style: italic;
    letter-spacing: -0.01em;
}

.quote-mark {
    font-size: 5.5rem;
    color: rgba(212, 247, 190, 0.25);
    line-height: 0;
    vertical-align: -1.8rem;
    margin-right: 4px;
    font-style: normal;
    font-family: Georgia, serif;
}

.pq-cta {
    position: relative;
    z-index: 2;
}

/* =====================================================
   CAREERS
   ===================================================== */

.careers-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.careers-header {
    text-align: left;
    margin-bottom: 0;
}

.careers-header .section-intro {
    margin-left: 0;
}

.careers-illus-wrap {
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 40% 40%, rgba(120, 190, 32, 0.1), transparent 60%),
        linear-gradient(160deg, #f8fdf8, #eef9ee);
    border: 1px solid rgba(58, 170, 53, 0.1);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.careers-illus {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 12px 28px rgba(58, 170, 53, 0.1));
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.career-item {
    background: white;
    border-radius: var(--radius);
    padding: 26px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-line);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.career-item:hover {
    transform: translateY(-5px);
    border-color: rgba(58, 170, 53, 0.28);
    box-shadow: var(--shadow-md);
}

.career-item i {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
    color: var(--green-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-item span {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    display: block;
}

.salary-banner {
    background:
        radial-gradient(ellipse 40% 80% at 100% 50%, rgba(120, 190, 32, 0.25), transparent 50%),
        linear-gradient(135deg, #1a5c17 0%, #2d8a29 55%, #3aaa35 100%);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    box-shadow: 0 16px 40px rgba(26, 92, 23, 0.22);
}

.salary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 28px;
    color: white;
}

.salary-item i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.salary-item strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.salary-item span {
    font-size: 0.82rem;
    opacity: 0.85;
    display: block;
    margin-top: 3px;
}

.salary-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
}

/* =====================================================
   IDEAL SCHOOLS SECTION
   ===================================================== */

.ideal-schools {
    background:
        radial-gradient(ellipse 45% 40% at 0% 20%, rgba(58, 170, 53, 0.06), transparent 55%),
        white;
}

.ideal-inner {
    display: grid;
    grid-template-columns: 0.95fr 1.35fr;
    gap: 56px;
    align-items: start;
}

.ideal-logo-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    position: sticky;
    top: 100px;
}

.ideal-brand-card {
    background: linear-gradient(160deg, #ffffff 0%, #f4fbf3 100%);
    border: 1px solid rgba(58, 170, 53, 0.14);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.ideal-logo-large {
    width: 100%;
    max-width: 320px;
}

.ideal-aat-approved {
    max-width: 200px;
}

.ideal-illus {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(58, 170, 53, 0.12));
}

.ideal-content .section-tag {
    margin-bottom: 14px;
}

.ideal-content h2 {
    margin-bottom: 14px;
}

.ideal-intro {
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.75;
}

.ideal-intro strong {
    color: var(--green-dark);
    font-weight: 700;
}

.ideal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.ideal-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--gray-line);
    border-radius: var(--radius);
    padding: 16px 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ideal-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(58, 170, 53, 0.22);
}

.ideal-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--green-pale), var(--green-soft));
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ideal-feature h4 {
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.ideal-feature p {
    font-size: 0.84rem;
    margin: 0;
    color: var(--gray-mid);
    line-height: 1.55;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green-soft), var(--green), var(--green-soft), transparent);
    z-index: 0;
    pointer-events: none;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: white;
    border: 1px solid var(--gray-line);
    border-radius: var(--radius);
    padding: 22px 14px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(58, 170, 53, 0.22);
}

.step-num {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 14px;
    box-shadow: 0 8px 22px rgba(58, 170, 53, 0.32);
    border: 3px solid white;
}

.step h3 {
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--ink);
}

.step-content p {
    font-size: 0.8rem;
    color: var(--gray-mid);
    line-height: 1.55;
}

/* =====================================================
   GET STARTED CTA
   ===================================================== */

.get-started {
    background: white;
    padding-top: 40px;
}

.cta-box {
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(120, 190, 32, 0.35), transparent 50%),
        linear-gradient(135deg, #0f3d0d 0%, #1a5c17 35%, #2d8a29 70%, #3aaa35 100%);
    border-radius: var(--radius-xl);
    padding: 56px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 24px 60px rgba(26, 92, 23, 0.28);
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    top: -180px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%);
    pointer-events: none;
}

.cta-eyebrow {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #d4f7be;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.cta-content h2 {
    color: white;
    font-size: clamp(1.6rem, 2.5vw, 2.05rem);
    margin-bottom: 14px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.75;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(6px);
}

.cta-feature i {
    width: 22px;
    height: 22px;
    background: rgba(212, 247, 190, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #d4f7be;
    flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: #0f172a;
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-logo {
    max-width: 220px;
    opacity: 0.95;
    filter: brightness(1.05);
}

.footer h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    transition: color var(--transition);
    display: inline-block;
}

.footer ul a:hover {
    color: var(--green-light);
}

.footer-aat-logo {
    width: 200px;
    height: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-bottom {
    padding: 18px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.82rem;
    text-align: center;
    margin: 0;
}

.footer-bottom a {
    color: var(--green-light);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(58, 170, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity var(--transition), transform var(--transition), filter var(--transition);
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1100px) {
    .levels-pathway {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .level-card.featured {
        transform: none;
    }

    .level-card.featured:hover {
        transform: translateY(-6px);
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .steps::before { display: none; }

    .ideal-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        padding-bottom: 36px;
    }

    .hero-content {
        max-width: 640px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-subline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-trust,
    .hero-eyebrow {
        justify-content: center;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .why-train-top,
    .careers-top,
    .about-grid,
    .ideal-inner,
    .cta-box {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-header,
    .careers-header {
        text-align: center;
    }

    .why-header .section-intro,
    .careers-header .section-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .ideal-logo-area {
        position: static;
        align-items: center;
    }

    .ideal-brand-card {
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .ideal-content {
        text-align: left;
    }

    .reasons-grid {
        grid-template-columns: 1fr 1fr;
    }

    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .nav-links { display: none; }
    .hamburger { display: flex; }

    .nav-logo-ideal { height: 36px; }

    .section { padding: 72px 0; }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-h) + 28px);
    }

    .hero-headline {
        font-size: clamp(2.1rem, 9vw, 2.8rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-stats {
        padding: 14px 8px;
    }

    .stat { padding: 6px 8px; }

    .stat-divider { display: none; }

    .about-cards,
    .reasons-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .careers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .salary-banner {
        flex-direction: column;
        padding: 28px 20px;
        gap: 16px;
        align-items: stretch;
    }

    .salary-divider {
        width: 48px;
        height: 1px;
        margin: 0 auto;
    }

    .salary-item {
        padding: 0;
        justify-content: flex-start;
    }

    .cta-box {
        padding: 32px 22px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-features {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pull-quote {
        font-size: 1.12rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .careers-grid {
        grid-template-columns: 1fr;
    }

    .section-header { margin-bottom: 36px; }

    .hero-eyebrow {
        flex-direction: column;
    }

    .level-card {
        padding: 24px 18px 20px;
    }
}

/* =====================================================
   HERO VIMEO VIDEO
   ===================================================== */

.hero-video-card {
    padding: 12px !important;
    overflow: hidden;
}

.hero-video {
    width: 100%;
}

.hero-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.hero-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .hero-video-card {
        padding: 8px !important;
    }

    .hero-video-frame {
        border-radius: 12px;
    }
}
