/* ============================================
   LIWA EDUCATION - LANDING PAGE STYLES
   Color Palette:
   - Primary Blue: #1a428a
   - Accent Green: #6cca98
   - White: #ffffff
   - Off-white: #f8f9fa
   - Dark Grey (text): #2d3748
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #1a428a;
    --accent-green: #6cca98;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --dark-grey: #2d3748;
    --light-grey: #e2e8f0;
    --medium-grey: #718096;

    --font-family: 'Gabarito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   STICKY NAVBAR
   ============================================ */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.sticky-nav.visible {
    transform: translateY(0);
}

/* Inverted navbar state (blue background for light sections) */
.sticky-nav.inverted {
    background-color: rgba(26, 66, 138, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo .logo-white {
    display: none;
}

/* Show white logo when inverted */
.sticky-nav.inverted .nav-logo .logo-colour {
    display: none;
}

.sticky-nav.inverted .nav-logo .logo-white {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 50%;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Inverted nav links */
.sticky-nav.inverted .nav-link {
    color: var(--white);
}

.sticky-nav.inverted .nav-link:hover {
    color: var(--accent-green);
}

.nav-cta {
    padding: 0 20px;
    height: 34px;
    font-size: 13px;
    transition: all var(--transition-fast);
}

/* Inverted CTA button */
.sticky-nav.inverted .nav-cta {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.sticky-nav.inverted .nav-cta:hover {
    background-color: var(--off-white);
    border-color: var(--off-white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Base */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-title span {
    color: var(--accent-green);
}

.section-body {
    font-size: 20px;
    color: var(--medium-grey);
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 32px;
    height: 52px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #153670;
    border-color: #153670;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit {
    width: 100%;
    height: 56px;
    font-size: 17px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--light-grey);
}

.hero-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero-bg {
    background-image: url('assets/images/hero_bg.webp');
    z-index: 1;
}

.hero-midground {
    background-image: url('assets/images/hero_midground.webp');
    z-index: 2;
}

.hero-shadow {
    background-image: url('assets/images/hero_shadow.webp');
    z-index: 3;
}

.hero-foreground {
    background-image: url('assets/images/hero_foreground.webp');
    z-index: 4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 66, 138, 0.85) 0%, rgba(26, 66, 138, 0.6) 50%, transparent 100%);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    text-align: left;
    padding: 0 60px;
}

.hero-title {
    font-size: 54px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero .btn-primary {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.hero .btn-primary:hover {
    background-color: #5bb885;
    border-color: #5bb885;
}

.hero .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Hero text and actions containers (for mobile layout separation) */
.hero-text,
.hero-actions {
    display: contents; /* On desktop, behave as if containers don't exist */
}

.hero-walkin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transition: all var(--transition-fast);
}

.hero-walkin-link span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-walkin-link svg {
    transition: transform var(--transition-fast);
}

.hero-walkin-link:hover {
    color: var(--accent-green);
}

.hero-walkin-link:hover svg {
    transform: translateY(3px);
}

/* ============================================
   ICON ROW (Overlapping Hero)
   ============================================ */
.icon-row-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -60px; /* Fixed 15-20px overlap on hero */
    padding: 0 24px;
}

.icon-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ============================================
   WHY LIWA SECTION
   ============================================ */
.why-liwa {
    background-color: var(--off-white);
    padding-top: 100px;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background-color: var(--white);
    border-radius: 12px;
    width: 180px;
    transition: all var(--transition-medium);
    cursor: default;
    box-shadow: var(--shadow-lg);
}

.icon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.icon-card:hover .icon-placeholder {
    background-color: var(--accent-green);
    color: var(--white);
}

.icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all var(--transition-medium);
}

.icon-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-grey);
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   WALK-IN RECRUITMENT SECTION
   ============================================ */
.walkin-section {
    background-color: var(--off-white);
}

.walkin-title {
    color: var(--primary-blue);
}

.walkin-title .mobile-break {
    color: var(--primary-blue);
}

.walkin-subtitle {
    margin-bottom: 48px;
}

.walkin-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.walkin-card {
    background-color: var(--primary-blue);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-medium);
    cursor: default;
}

.walkin-card:hover {
    border-color: var(--accent-green);
    transform: scale(1.03);
}

.walkin-city {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.walkin-venue {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    margin-bottom: 16px;
    height: 56px;
    display: flex;
    align-items: flex-start;
}

.walkin-dates {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.walkin-day {
    display: flex;
    flex-direction: column;
}

.walkin-day-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.walkin-day-time {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   BIG STATEMENT SECTION
   ============================================ */
.big-statement {
    background-color: var(--white);
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.big-statement-text {
    font-size: clamp(24px, 5vw, 100px);
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    max-width: 100%;
    letter-spacing: -0.02em;
    padding: 0 16px;
}

.statement-line {
    display: inline-block;
    white-space: nowrap;
}

.big-statement-text .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.big-statement-text .char.visible {
    opacity: 1;
}

.big-statement-text .char.space {
    width: 0.3em;
}

/* ============================================
   5 REASONS SECTION
   ============================================ */
.reasons-section {
    background-color: var(--primary-blue);
    padding: 80px 0;
}

.reasons-title {
    color: var(--white) !important;
    margin-bottom: 48px;
}

.reasons-title .mobile-break {
    color: var(--white);
}

.reasons-big {
    font-size: 64px;
    display: block;
    margin-bottom: 4px;
    line-height: 1;
}

.reasons-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.reasons-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 450px;
}

.reasons-left {
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reasons-slides {
    position: relative;
    min-height: 280px;
}

.reason-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.reason-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.reason-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 16px;
}

.reason-slide h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    line-height: 1.4;
}

.reason-slide p {
    font-size: 18px;
    color: var(--medium-grey);
    line-height: 1.7;
}

.reasons-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.reasons-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--off-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all var(--transition-fast);
}

.reasons-arrow:hover {
    background-color: var(--accent-green);
    color: var(--white);
}

/* Hide mobile arrows on desktop */
.reasons-arrow-mobile {
    display: none;
}

.reasons-dots {
    display: flex;
    gap: 8px;
}

.reasons-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-grey);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.reasons-dot:hover {
    background-color: var(--accent-green);
    opacity: 0.7;
}

.reasons-dot.active {
    background-color: var(--accent-green);
    width: 24px;
    border-radius: 5px;
}

.reasons-right {
    position: relative;
    overflow: hidden;
    background-color: var(--off-white);
}

.reasons-photos {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.reason-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
}

.reason-photo.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 5;
}

.reason-photo.exiting {
    opacity: 1;
    transform: translateY(-20%);
    z-index: 4;
}

/* Responsive */
@media (max-width: 768px) {
    .reasons-content {
        grid-template-columns: 1fr;
        position: relative;
    }

    .reasons-left {
        padding: 24px 20px;
        order: 2;
        align-items: center;
        text-align: center;
    }

    .reasons-slides {
        min-height: 180px;
    }

    .reason-number {
        font-size: 48px;
        text-align: center;
        margin-bottom: 12px;
    }

    .reason-slide {
        text-align: center;
    }

    .reason-slide h3 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 12px;
    }

    .reason-slide p {
        font-size: 15px;
        text-align: center;
    }

    .reasons-controls {
        justify-content: center;
        width: 100%;
    }

    /* Hide arrows on mobile */
    .reasons-arrow {
        display: none;
    }

    .reasons-right {
        order: 1;
    }

    .reasons-photos {
        min-height: 340px;
    }

    /* Position arrows on sides of the card, inside */
    .reasons-content .reasons-arrow-mobile {
        display: flex;
        position: absolute;
        top: 170px;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: transparent;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: var(--white);
        z-index: 20;
    }

    .reasons-content .reasons-arrow-mobile.prev {
        left: 8px;
    }

    .reasons-content .reasons-arrow-mobile.next {
        right: 8px;
    }
}

/* ============================================
   VIDEO CAROUSEL SECTION
   ============================================ */
.video-carousel-section {
    background-color: var(--off-white);
    overflow: visible;
    padding: 40px 0 60px;
}

.video-carousel-section .container {
    margin-bottom: 24px;
}

.video-carousel-section .section-title {
    margin-bottom: 0;
}

.video-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 40px 0;
    overflow: visible;
}

.video-carousel {
    display: flex;
    gap: 0;
    padding: 20px 0;
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-item {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 9 / 16;
    border-radius: 0;
    overflow: visible;
    opacity: 1;
    cursor: pointer;
    margin: 0;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.video-item.center video {
    transform: scale(1.15);
    z-index: 10;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.video-item:hover video {
    transform: scale(1.15);
    z-index: 15;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    opacity: 0;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-lg);
}

.video-item:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn svg {
    margin-left: 4px;
}

.video-item.playing .video-play-btn {
    opacity: 0;
}

/* Carousel fade edges - disabled for full visibility */
.carousel-fade {
    display: none;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background-color: #153670;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    stroke: var(--white);
}

/* ============================================
   OUR SCHOOLS SECTION
   ============================================ */
.our-schools {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.our-schools-bg {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    background-image: url('assets/images/LISM-building1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.our-schools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 66, 138, 0.8);
    z-index: 1;
}

.our-schools .container {
    position: relative;
    z-index: 2;
}

.our-schools .section-title {
    color: var(--white);
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.school-card {
    position: relative;
    padding: 0;
    border-radius: 16px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.school-card-image {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-card-image img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.school-card-content {
    flex: 1;
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.school-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--white);
    text-align: center;
}

.school-abbrev {
    font-weight: 400;
}

.school-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: center;
}

.school-card--qattara {
    background: rgba(0, 110, 67, 0.9);
}

.school-card--lisg {
    background: rgba(233, 91, 168, 0.9);
}

.school-card--mushrif {
    background: rgba(0, 178, 227, 0.9);
}

.school-card--falaj {
    background: rgba(113, 80, 145, 0.9);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--light-grey);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    padding: 0;
}

.carousel-dot:hover {
    background-color: var(--accent-green);
    opacity: 0.7;
}

.carousel-dot.active {
    background-color: var(--accent-green);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   LIFE IN UAE SECTION
   ============================================ */
.life-uae {
    background-color: var(--off-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--white);
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.benefit-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.benefit-item:hover svg {
    color: var(--accent-green);
}

.benefit-item svg {
    flex-shrink: 0;
    color: var(--primary-blue);
    transition: color var(--transition-medium);
}

.benefit-item span {
    font-size: 17px;
    font-weight: 500;
    color: var(--dark-grey);
}

/* ============================================
   CITY COMPARISON SECTION
   ============================================ */
.city-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}

.city-card {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.city-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.city-card:hover .city-card-bg {
    transform: scale(1.05);
}

.city-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(
        to top,
        rgba(26, 66, 138, 0.95) 0%,
        rgba(26, 66, 138, 0.8) 30%,
        rgba(108, 202, 152, 0.4) 60%,
        transparent 100%
    );
    z-index: 2;
}

.city-card-content {
    position: relative;
    z-index: 3;
    padding: 40px 48px;
    text-align: left;
}

.city-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.city-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 500px;
}

/* Right card alignment */
.city-card--alain .city-card-content {
    text-align: right;
    margin-left: auto;
}

.city-card--alain p {
    margin-left: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .city-comparison {
        grid-template-columns: 1fr;
    }

    .city-card {
        min-height: 400px;
    }

    .city-card-content {
        padding: 32px 24px;
    }

    .city-card h3 {
        font-size: 28px;
    }

    .city-card--alain .city-card-content {
        text-align: left;
    }

    .city-card--alain p {
        margin-left: 0;
    }
}

/* ============================================
   PHOTO GALLERY SECTION
   ============================================ */
.photo-gallery {
    background-color: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
    z-index: 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.video-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.video-modal-player {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background-color: #000;
}

/* For portrait videos, fit to height */
.video-modal-player.portrait {
    height: 100%;
    width: auto;
}

/* ============================================
   PACKAGE SECTION
   ============================================ */
.package {
    background-color: var(--white);
}

.package-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.package-list {
    list-style: none;
}

.package-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--light-grey);
    font-size: 18px;
    color: var(--dark-grey);
    transition: all var(--transition-fast);
}

.package-list li:last-child {
    border-bottom: none;
}

.package-list li:hover {
    padding-left: 8px;
}

.package-list li:hover svg {
    color: var(--accent-green);
}

.package-list svg {
    flex-shrink: 0;
    color: var(--accent-green);
    transition: color var(--transition-medium);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background-color: var(--off-white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition-medium);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-grey);
    text-align: left;
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    color: var(--primary-blue);
}

.accordion-icon {
    flex-shrink: 0;
    color: var(--accent-green);
    transition: transform var(--transition-medium);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding: 0 24px 20px;
    font-size: 17px;
    color: var(--medium-grey);
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: var(--white);
}

.logo-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.logo-placeholder {
    width: 160px;
    height: 80px;
    background-color: var(--off-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.logo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.logo-placeholder span {
    font-size: 14px;
    color: var(--medium-grey);
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.application-form {
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--dark-grey);
    background-color: var(--off-white);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-grey);
}

/* Form Row - 2 columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group-full {
    width: 100%;
}

/* Textarea styling */
.form-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--dark-grey);
    background-color: var(--off-white);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-fast);
    outline: none;
    resize: vertical;
    line-height: 1.5;
}

.form-group textarea:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 66, 138, 0.1);
}

/* Compact file upload for form rows */
.file-upload-compact .file-upload-label {
    flex-direction: row;
    padding: 12px 16px;
    gap: 10px;
    height: 48px;
}

.file-upload-compact .file-upload-label span {
    font-size: 14px;
}

.file-upload-compact .file-upload-label small {
    display: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 66, 138, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    background-color: var(--off-white);
    border: 2px dashed var(--light-grey);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.file-upload:hover .file-upload-label {
    border-color: var(--primary-blue);
    background-color: rgba(26, 66, 138, 0.02);
}

.file-upload-label svg {
    color: var(--accent-green);
}

.file-upload-label span {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-grey);
}

.file-upload-label small {
    font-size: 13px;
    color: var(--medium-grey);
}

.footer-note {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--medium-grey);
}

.footer-note a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-note a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--primary-blue);
    padding: 32px 24px;
    text-align: center;
}

.footer p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-row {
        gap: 16px;
    }

    .icon-card {
        width: 160px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-links {
        display: none;
    }

    .sticky-nav {
        padding: 10px 16px;
    }

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

    .nav-cta {
        padding: 0 16px;
        height: 32px;
        font-size: 12px;
    }

    .section {
        padding: 60px 0;
    }

    /* Hero mobile */
    .hero {
        height: 100svh;
        min-height: 100svh;
        padding: 0;
    }

    /* Mobile hero images */
    .hero-bg {
        background-image: url('assets/images/hero_mobile_bg.webp');
    }

    .hero-midground {
        background-image: url('assets/images/hero_mobile_midground.webp');
    }

    .hero-shadow {
        background-image: url('assets/images/hero_mobile_shadow.webp');
    }

    .hero-foreground {
        background-image: url('assets/images/hero_mobile_foreground.webp');
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(26, 66, 138, 0.95) 0%,
            rgba(26, 66, 138, 0.8) 25%,
            rgba(26, 66, 138, 0.4) 40%,
            rgba(26, 66, 138, 0) 50%,
            rgba(26, 66, 138, 0) 65%,
            rgba(26, 66, 138, 0.7) 80%,
            rgba(26, 66, 138, 0.95) 100%
        );
    }

    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 50px 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 36px;
        white-space: normal;
        margin-bottom: 16px;
        text-align: center;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 0;
        text-align: center;
        max-width: 340px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: row;
        width: 100%;
        gap: 12px;
        align-items: center;
    }

    /* Swap button order: WhatsApp left, Submit CV right */
    .hero-buttons .btn-primary {
        order: 2;
    }

    .hero-buttons .btn-secondary {
        order: 1;
    }

    .hero-buttons .btn {
        flex: 1;
        height: 48px;
        font-size: 14px;
        padding: 0 16px;
    }

    .hero-walkin-link {
        margin-top: 16px;
        font-size: 14px;
        justify-content: center;
    }

    /* Mobile line breaks for titles */
    .mobile-break {
        display: block;
    }

    /* Icon row - 2x2 grid, no overlap on hero */
    .icon-row-wrapper {
        margin-top: 40px;
        padding: 0 16px;
    }

    .icon-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Hide the 5th icon card on mobile */
    .icon-card:nth-child(5) {
        display: none;
    }

    .icon-card {
        width: 100%;
        padding: 16px 12px;
        gap: 8px;
    }

    .icon-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .icon-placeholder svg {
        width: 20px;
        height: 20px;
    }

    .icon-card span {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Why Liwa section */
    .why-liwa {
        padding-top: 24px;
    }

    .section-title {
        font-size: 26px;
        padding: 0 8px;
    }

    .section-body {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    /* Walk-in section */
    .walkin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .walkin-card {
        padding: 20px 16px;
    }

    .walkin-city {
        font-size: 18px;
    }

    .walkin-venue {
        font-size: 12px;
        height: 46px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .walkin-dates {
        padding-top: 10px;
        gap: 6px;
    }

    .walkin-day-date {
        font-size: 11px;
    }

    .walkin-day-time {
        font-size: 10px;
    }

    /* Big statement - allow text to wrap */
    .big-statement {
        min-height: 40vh;
        padding: 40px 16px;
    }

    .big-statement-text {
        font-size: clamp(20px, 6vw, 40px);
    }

    .statement-line {
        white-space: normal;
    }

    /* 5 Reasons section */
    .reasons-section {
        padding: 60px 0;
    }

    .reasons-title {
        margin-bottom: 32px;
    }

    .reasons-big {
        font-size: 48px;
    }

    .reasons-wrapper {
        padding: 0 16px;
    }

    /* Video carousel */
    .video-carousel-section {
        padding: 40px 0;
    }

    .video-item {
        width: 140px;
    }

    .carousel-nav {
        padding: 16px 0;
        gap: 12px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    /* Schools grid */
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .school-card {
        min-height: 240px;
    }

    .school-card-image {
        padding: 16px 20px;
    }

    .school-card-image img {
        width: 80%;
    }

    .school-card-content {
        padding: 12px 16px 20px;
    }

    .school-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .school-card p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Benefits grid - 2 columns on tablet/mobile */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .benefit-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .benefit-item svg {
        width: 20px;
        height: 20px;
    }

    .benefit-item span {
        font-size: 14px;
    }

    /* City cards */
    .city-comparison {
        grid-template-columns: 1fr;
    }

    .city-card {
        min-height: 350px;
    }

    .city-card-content {
        padding: 24px 20px;
    }

    .city-card h3 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .city-card p {
        font-size: 15px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gallery-item {
        border-radius: 8px;
    }

    /* Package section - single column with no gap between lists */
    .package-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .package-column:first-child .package-list li:last-child {
        border-bottom: 1px solid var(--light-grey);
    }

    .package-list li {
        font-size: 16px;
        padding: 12px 0;
    }

    /* FAQ */
    .accordion-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .accordion-content p {
        padding: 0 16px 16px;
        font-size: 14px;
    }

    /* Form */
    .application-form {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        height: 44px;
        font-size: 14px;
    }

    .file-upload-label {
        padding: 24px 16px;
    }

    .file-upload-label span {
        font-size: 14px;
    }

    .btn-submit {
        height: 50px;
        font-size: 16px;
    }

    .footer-note {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 24px 16px;
    }

    .footer p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    /* Icon row stays 2 columns even on small phones */
    .icon-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .icon-card {
        padding: 14px 10px;
    }

    .icon-card span {
        font-size: 12px;
    }

    /* Big statement smaller on tiny screens */
    .big-statement-text {
        font-size: clamp(18px, 5.5vw, 32px);
    }

    /* 5 Reasons */
    .reasons-big {
        font-size: 40px;
    }

    .reason-number {
        font-size: 48px;
    }

    /* Benefits - single column on very small screens */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery - 2 columns on small phones */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Schools - single column on small phones */
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .school-card {
        min-height: 200px;
    }

    .logo-row {
        gap: 16px;
    }

    .logo-placeholder {
        width: 140px;
        height: 70px;
    }

    /* Video carousel smaller */
    .video-item {
        width: 120px;
    }
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
}

.sticky-cta-buttons {
    background: rgba(30, 58, 138, 0.95);
    padding: 10px 16px 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-direction: row-reverse;
}

.sticky-cta-btn {
    flex: 1;
    max-width: 160px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sticky-cta-primary {
    background: var(--accent-green);
    color: var(--white);
}

.sticky-cta-primary:hover {
    background: #2ea33e;
}

.sticky-cta-whatsapp {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sticky-cta-whatsapp:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sticky-cta-whatsapp svg {
    flex-shrink: 0;
}

/* Only show on mobile */
@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: block;
    }
}
