/* ============================================================
   PFK ACADEMY — MASTER STYLESHEET
   Brand: Navy #23306E + Teal #2DB9C3
   Font: Inter (Google Fonts)
   ============================================================ */

/* ============================================================
   CSS VARIABLES — MASTER TOKENS
   Change these to retheme the entire site instantly
   ============================================================ */
:root {
    /* Primary Brand Colors */
    --navy: #23306E;
    --teal: #2DB9C3;
    --aqua: #54D4D6;
    --dark-blue: #16235C;

    /* Background & Surface */
    --bg-light: #F8FBFC;
    --surface-white: #FFFFFF;
    --border-soft: #DDE8EE;

    /* Text Colors */
    --text-primary: #2F3447;
    --text-secondary: #667085;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(35, 48, 110, 0.08);
    --shadow-md: 0 8px 30px rgba(35, 48, 110, 0.12);
    --shadow-lg: 0 20px 60px rgba(35, 48, 110, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================================
   PAGE LOADER
   Full-screen overlay that fades out after 900ms.
   Injected and removed by JavaScript.
   Customize: change background to any dark brand color.
   ============================================================ */
#pageLoader {
    position: fixed;
    inset: 0;
    background-color: var(--dark-blue);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.5s ease;
}

#pageLoader .loader-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#pageLoader .loader-logo-img {
    height: 60px;
    width: auto;
}

#pageLoader .loader-logo .loader-accent {
    color: var(--teal);
}

#pageLoader .loader-slogan {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 2px;
    margin-top: -4px;
}

#pageLoader .loader-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
    margin-top: 8px;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

#pageLoader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   SCROLL REVEAL — BASE STATES
   JS adds .reveal-ready to elements, then .revealed on scroll.
   Customize: change translateY(30px) for more/less travel distance.
   Customize: change 0.7s for faster/slower reveal.
   ============================================================ */
.reveal-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready.reveal-from-left {
    transform: translateX(-36px);
}

.reveal-ready.reveal-from-right {
    transform: translateX(36px);
}

.revealed {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Reduced motion — respect user's OS accessibility preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-image img {
        animation: none !important;
    }
}


/* ============================================================
   BUTTONS
   overflow: hidden required for shimmer sweep ::before effect
   ============================================================ */
.btn-primary {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(45, 185, 195, 0.35);
    text-align: center;
}

/* [ENHANCEMENT] Button shimmer sweep on hover
   A white diagonal highlight slides left→right.
   Customize: change 20% opacity for stronger/subtler shine */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.22) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 140%;
}

.btn-primary:hover {
    background-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(35, 48, 110, 0.25);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}


/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}


/* ============================================================
   NAVIGATION
   .scrolled class toggled by JS on scroll > 50px
   Customize: change 70px / 60px for taller/shorter navbar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 14px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

/* [ENHANCEMENT] Navbar shrinks and gains teal bottom border on scroll
   JS adds .scrolled class. Customize: change 10px padding for tighter look */
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(45, 185, 195, 0.3);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 38px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
}

.logo-accent {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--teal);
}

/* Underline indicator — animates width on hover and .nav-active state */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
    width: 100%;
}

/* [ENHANCEMENT] Active nav link color set by JS IntersectionObserver */
.nav-links a.nav-active {
    color: var(--teal);
    font-weight: 600;
}

.nav-cta {
    background-color: var(--teal);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background-color: var(--navy) !important;
    color: white !important;
}

.nav-cta::after {
    display: none !important;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}


/* ============================================================
   HERO SECTION
   Min-height: 100vh ensures full-screen on landing.
   Two radial glows: top-right (existing) + bottom-left (new).
   ============================================================ */
.hero {
    background-color: var(--dark-blue);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Original top-right glow */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 185, 195, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* [ENHANCEMENT] Second ambient glow — bottom-left mirror of the first
   Customize: change 0.05 opacity for stronger/subtler atmosphere */
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(45, 185, 195, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(45, 185, 195, 0.15);
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(45, 185, 195, 0.25);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    color: var(--teal);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* [ENHANCEMENT] Hero image: subtle floating animation + teal glow ring
   Float: 12px vertical travel, 6s loop. Customize: change 12px for bigger float.
   Glow: two-layer box-shadow. Customize: opacity values for intensity. */
.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow:
        0 0 0 6px rgba(45, 185, 195, 0.12),
        0 0 40px rgba(45, 185, 195, 0.18),
        0 30px 80px rgba(0, 0, 0, 0.3);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* Stats bar under hero content */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.hero-stats .stat-number .accent {
    color: var(--aqua);
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    font-size: 2.8rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 16px;
}

.stem-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-white);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-soft);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.stem-logo {
    height: 40px;
    width: auto;
}

.stem-badge span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.mv-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.mv-item:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.mv-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(45, 185, 195, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 1.3rem;
    transition: var(--transition);
}

.mv-item:hover .mv-icon {
    background: rgba(45, 185, 195, 0.22);
}

.mv-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.mv-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-white);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.about-feature-item:hover {
    border-color: var(--teal);
    transform: translateX(4px);
}

.about-feature-item i {
    color: var(--teal);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(35, 48, 110, 0.2);
}


/* ============================================================
   PROGRAMS SECTION — REDESIGNED
   ============================================================ */

/* Pathway Tabs — Age Filters */
.pathway-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.pathway-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--border-soft);
    background: var(--surface-white);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.pathway-tab:hover {
    border-color: var(--teal);
    color: var(--navy);
}

.pathway-tab.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* Program Categories */
.program-category {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease forwards;
}

.program-category:last-of-type {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-soft);
    flex-wrap: wrap;
}

.category-icon {
    font-size: 1.4rem;
    color: var(--teal);
    background: rgba(45, 185, 195, 0.12);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.category-label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
}

.category-levels {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 4px 14px;
    border-radius: 50px;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: var(--teal);
    padding: 3px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Course Cards Row */
.program-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Large Course Card */
.program-card-large {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface-white);
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--teal);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.program-card-large:hover::before {
    opacity: 1;
}

.program-card-large.future-card {
    opacity: 0.6 !important;
}

.program-card-large.future-card:hover {
    opacity: 0.8 !important;
}

/* Icon */
.program-icon-large {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.program-card-large:hover .program-icon-large {
    transform: scale(1.08);
}

/* Info */
.program-info {
    flex: 1;
}

.program-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.program-tech {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 8px;
}

.program-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 50px;
}

.age-badge {
    background: rgba(52, 152, 219, 0.12);
    color: #3498DB;
}

.level-badge {
    background: rgba(46, 204, 113, 0.12);
    color: #27AE60;
}

.badge-advanced {
    background: rgba(155, 89, 182, 0.12);
    color: #9B59B6;
}

.badge-coming {
    background: rgba(241, 196, 15, 0.15);
    color: #F39C12;
}

.program-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--teal);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.program-link:hover {
    color: var(--navy);
    gap: 10px;
}

/* Programs CTA */
.programs-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-soft);
}

.programs-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Future Courses */
.future-courses .category-header {
    opacity: 0.7;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE — Programs Section
   ============================================================ */
@media (max-width: 992px) {
    .program-card-large {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .program-meta {
        justify-content: center;
    }

    .program-icon-large {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }
}

@media (max-width: 768px) {
    .program-cards-row {
        grid-template-columns: 1fr;
    }

    .pathway-tabs {
        gap: 8px;
    }

    .pathway-tab {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .category-header {
        gap: 10px;
    }

    .category-label {
        font-size: 1.1rem;
    }
}


/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.why-us .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-content .section-title {
    font-size: 2.6rem;
}

.why-us-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 12px 0 24px;
}

.why-us-grid {
    display: grid;
    gap: 20px;
}

.why-us-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface-white);
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.why-us-item:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
    transform: translateX(6px);
}

.why-us-item .icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: rgba(45, 185, 195, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.why-us-item:hover .icon-circle {
    background-color: var(--teal);
}

.why-us-item:hover .icon-circle i {
    color: white;
}

.why-us-item .icon-circle i {
    font-size: 1.3rem;
    color: var(--teal);
    transition: color 0.3s ease;
}

.why-us-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.why-us-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.why-us-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.why-us-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(35, 48, 110, 0.2);
}


/* ============================================================
   PACKAGES SECTION
   ============================================================ */
.packages {
    padding: 100px 0;
    background-color: var(--surface-white);
}

.packages-header {
    text-align: center;
    margin-bottom: 60px;
}

.packages-header .section-subtitle {
    margin: 0 auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* [ENHANCEMENT] Savings ribbon via ::after using data-saving attribute
   Content pulled from HTML data-saving="Save 700 EGP"
   Customize: change background-color for a different ribbon color */
.package-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.package-card::after {
    content: attr(data-saving);
    position: absolute;
    top: 18px;
    right: -2px;
    background: var(--teal);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 14px 4px 10px;
    border-radius: 4px 0 0 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.1);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* [ENHANCEMENT] Featured card: slow pulsing teal glow on the border
   3s loop, very subtle so it doesn't distract.
   Customize: change 3s to 4s for slower pulse */
.package-card.featured {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, var(--surface-white) 0%, rgba(45, 185, 195, 0.03) 100%);
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(35,48,110,0.12), 0 0 0 0 rgba(45,185,195,0); }
    50%       { box-shadow: 0 8px 30px rgba(35,48,110,0.12), 0 0 0 5px rgba(45,185,195,0.12); }
}

.package-card.featured:hover {
    animation-play-state: paused;
}

.package-badge {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.package-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
    margin-top: 12px;
}

.package-duration {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}

.package-price-original {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 16px;
}

.package-features {
    list-style: none;
    text-align: left;
    margin: 20px 0 30px;
    padding: 0;
    flex-grow: 1;
}

.package-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    width: 20px;
    color: var(--teal);
    font-size: 0.85rem;
}

.package-features .fa-times {
    color: #ccc;
}

/* [ENHANCEMENT] Package button also gets the shimmer sweep on hover
   overflow: hidden is set on .package-card so ::before clips correctly */
.btn-package {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
}

.btn-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-package:hover::before {
    left: 140%;
}

.btn-package:hover {
    background-color: var(--teal);
    transform: translateY(-2px);
}

.btn-package.btn-primary {
    background-color: var(--teal);
}

.btn-package.btn-primary:hover {
    background-color: var(--navy);
}


/* ============================================================
   STUDENT WORK / VIDEOS SECTION
   ============================================================ */
.student-work {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.student-work-header {
    text-align: center;
    margin-bottom: 60px;
}

.student-work-header .section-subtitle {
    margin: 0 auto;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--surface-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* [ENHANCEMENT] Teal gradient overlay appears on video card hover
   Customize: change 0.28 opacity for stronger/subtler overlay */
.video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(45, 185, 195, 0.28), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-wrapper::after {
    opacity: 1;
}

.video-info {
    padding: 16px 20px;
}

.video-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.video-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-tag {
    display: inline-block;
    background: rgba(45, 185, 195, 0.12);
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    margin-top: 8px;
}


/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials {
    padding: 100px 0;
    background-color: var(--surface-white);
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header .section-subtitle {
    margin: 0 auto;
}

.testimonials-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.testimonials-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    user-select: none;
}

.testimonials-carousel.dragging {
    cursor: grabbing;
    transition: none;
}

/* [ENHANCEMENT] Decorative large opening quote mark via ::before
   Sits behind the blockquote text, barely visible.
   Customize: change 0.07 opacity for more/less visible watermark */
.testimonial-card {
    min-width: 320px;
    max-width: 340px;
    flex-shrink: 0;
    background: var(--bg-light);
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 14px;
    font-size: 110px;
    font-weight: 900;
    color: var(--teal);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.testimonial-card .stars {
    color: #FDBB2F;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card .author-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-card .author-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
}

.testimonial-card .author-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-soft);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--teal);
    width: 32px;
    border-radius: 6px;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 80px 0;
    background-color: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind CTA content */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(45,185,195,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    position: relative;
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.cta-section .btn-primary {
    background-color: var(--teal);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 185, 195, 0.35);
    position: relative;
}

.cta-section .btn-primary:hover {
    background-color: white;
    color: var(--navy);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}


/* ============================================================
   FOOTER
   [ENHANCEMENT] Gradient line at top via ::before
   Customize: change the teal stop color for a different accent line
   ============================================================ */
.footer {
    background-color: var(--dark-blue);
    padding: 60px 0 32px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--teal), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-wrapper {
    margin-bottom: 12px;
}

.footer-brand .logo-main {
    color: white;
}

.footer-brand .logo-accent {
    color: var(--teal);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer h4 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--teal);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    background-color: var(--teal);
    border-color: var(--teal);
    transform: translateY(-3px);
}

.follow-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--teal);
}


/* ============================================================
   WHATSAPP FLOATING BUTTON
   Entrance: fades up 1.5s after page load (CSS animation)
   Tooltip: desktop hover only, hidden on mobile
   Customize: change bottom/right values for different corner position
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    animation: whatsappFadeIn 0.5s ease-out 1.5s both;
}

@keyframes whatsappFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tooltip left of button */
.whatsapp-tooltip {
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25, 25, 25, 0.88);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

/* Arrow pointing right toward the button */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(25, 25, 25, 0.88);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    border: none;
}

.whatsapp-btn i {
    color: #ffffff;
    font-size: 32px;
}

/* Hover effects — only on devices that support hover */
@media (hover: hover) {
    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1;
    }
    .whatsapp-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    }
}


/* ============================================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 36px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image {
        display: flex;
        justify-content: center;
    }
    .about .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-features {
        justify-content: center;
    }
    .about-feature-item {
        text-align: left;
    }
    .mission-vision {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .why-us .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .why-us-item {
        text-align: left;
    }
    .packages-grid {
        grid-template-columns: 1fr 1fr;
    }
    .videos-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .testimonial-card {
        min-width: 280px;
    }
    .stem-badge {
        justify-content: center;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Mobile slide-out menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 40px 40px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .carousel-btn {
        display: none;
    }
    .testimonial-card {
        min-width: 260px;
        max-width: 290px;
    }
    .testimonials-carousel-wrapper {
        padding: 0;
    }
    .stem-badge {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    /* WhatsApp adjustments on mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn {
        width: 54px;
        height: 54px;
    }
    .whatsapp-btn i {
        font-size: 28px;
    }
    .whatsapp-tooltip {
        display: none;
    }

    
}