/* ===========================
   BUSARA SCHOOLS - CUSTOM STYLES
   Built with Bootstrap 5
   Color Scheme: Maroon (#8B1538) & Green (#2D5016)
   =========================== */

:root {
    --primary-maroon: #8B1538;
    --primary-green: #2D5016;
    --light-maroon: #C41E3A;
    --dark-green: #1a3009;
    --accent-gold: #D4AF37;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ===========================
   LUXURY NAVIGATION
   =========================== */

.navbar-luxury {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar-container-luxury {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.logo-luxury {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-luxury:hover {
    transform: scale(1.05);
}

.logo-img-luxury {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text-luxury {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main-luxury {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-maroon);
    letter-spacing: 1px;
}

.logo-sub-luxury {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: 0.5px;
}

.navbar-menu-luxury {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link-luxury {
    padding: 8px 20px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-link-luxury::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-maroon);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.nav-link-luxury:hover::after,
.nav-link-luxury.active::after {
    width: 90%;
}

.btn-enquire-luxury {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-maroon), #a00a1e);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(139, 21, 56, 0.3);
    white-space: nowrap;
}

.btn-enquire-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.4);
}

.hamburger-luxury {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-luxury span {
    width: 25px;
    height: 2.5px;
    background: var(--primary-maroon);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hero-luxury {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    overflow: hidden;
    background: #000;
}

.hero-slider-luxury {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-luxury {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide-luxury.active {
    opacity: 1;
    z-index: 10;
}

.hero-content-luxury {
    position: relative;
    z-index: 2;
    padding: 80px 80px 100px 80px;
    max-width: 700px;
    animation: slideUpLuxury 0.8s ease-out;
}

@keyframes slideUpLuxury {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline-luxury {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    animation: fadeInLuxury 0.6s ease-out;
}

.hero-title-luxury {
    font-size: 5.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 3px 6px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    animation: fadeInLuxury 0.8s ease-out 0.2s both;
    letter-spacing: -1px;
}

.hero-subtitle-luxury {
    font-size: 1.8rem;
    font-weight: 500;
    color: rgba(212, 175, 55, 0.95);
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    animation: fadeInLuxury 0.8s ease-out 0.4s both;
    letter-spacing: 0.5px;
}

@keyframes fadeInLuxury {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary-luxury {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--primary-maroon) 0%, #a00a1e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.4);
    border: 2px solid transparent;
    animation: fadeInLuxury 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.btn-primary-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease-out;
    z-index: -1;
}

.btn-primary-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(139, 21, 56, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary-luxury:hover::before {
    left: 100%;
}

/* Hero Navigation */
.hero-nav-luxury {
    position: absolute;
    bottom: 60px;
    left: 80px;
    display: flex;
    gap: 20px;
    z-index: 20;
}

.nav-btn-luxury {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn-luxury:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.nav-btn-luxury:active {
    transform: scale(0.95);
}

/* Hero Indicators */
.hero-indicators-luxury {
    position: absolute;
    bottom: 60px;
    right: 80px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator-btn-luxury {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator-btn-luxury.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    width: 30px;
    border-radius: 6px;
}

.indicator-btn-luxury:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Progress Bar */
.progress-bar-luxury {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 15;
}

.progress-fill-luxury {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-maroon), var(--accent-gold));
    width: 0%;
    animation: progressLuxury 6s linear;
}

@keyframes progressLuxury {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.navbar-header {
    z-index: 1000;
}

.navbar-light {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main {
    color: var(--primary-maroon);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
}

.logo-sub {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 3px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-gray) !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-maroon);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-maroon) !important;
}

.nav-link.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
    vertical-align: 3px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotateZ(180deg);
    opacity: 1;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    border-radius: 8px;
    margin-top: 8px;
}

.dropdown-item {
    color: white !important;
    padding: 14px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    font-size: 0.98rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: var(--accent-gold);
    padding-left: 25px;
    transform: translateX(5px);
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(255, 255, 255, 0.25);
    border-left-color: var(--accent-gold);
}

.dropdown-divider {
    border-color: rgba(255,255,255,0.3);
}

.btn-custom-primary {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--light-maroon));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.btn-custom-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

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

.hero-section {
    margin-top: 70px;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/image1.webp');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    -webkit-background-size: 100% auto;
    -moz-background-size: 100% auto;
    -o-background-size: 100% auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: background-image;
    animation: backgroundSlide 25s ease-in-out infinite;
    background-color: #2D5016;
}

/* ===========================
    MODERN HERO SLIDER
    =========================== */

.hero-modern {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    margin: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-maroon) 0%, #a00a1e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(139, 10, 10, 0.3);
    border: 2px solid transparent;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease-out;
    z-index: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 10, 10, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.hero-nav-btn:active {
    transform: scale(0.95);
}

/* Slide Indicators */
.hero-indicators {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator.active {
    background: #fff;
    width: 40px;
    border-radius: 10px;
    border-color: #fff;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 15;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-maroon), #ff6b6b);
    width: 100%;
    animation: progress 5s linear;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* ===========================
   BACKGROUND ROTATION ANIMATION
   =========================== */

@keyframes backgroundSlide {
    0%, 100% {
        background-image: url('../images/image1.webp');
        background-position: center center;
    }
    20% {
        background-image: url('../images/image2.webp');
        background-position: center center;
    }
    40% {
        background-image: url('../images/image3.webp');
        background-position: center center;
    }
    60% {
        background-image: url('../images/image4.webp');
        background-position: center center;
    }
    80% {
        background-image: url('../images/image5.webp');
        background-position: center center;
    }
}

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

.btn-primary-custom {
    padding: 15px 45px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--light-maroon));
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.5);
}

.btn-secondary-custom {
    padding: 15px 45px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* ===========================
   BACKGROUND ROTATION ANIMATION
   =========================== */

@keyframes backgroundSlide {
    0%, 100% {
        background-image: url('../images/image1.webp');
        background-position: center center;
    }
    20% {
        background-image: url('../images/image2.webp');
        background-position: center center;
    }
    40% {
        background-image: url('../images/image3.webp');
        background-position: center center;
    }
    60% {
        background-image: url('../images/image4.webp');
        background-position: center center;
    }
    80% {
        background-image: url('../images/image5.webp');
        background-position: center center;
    }
}

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

.btn-primary-custom {
    padding: 15px 45px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--light-maroon));
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.5);
}

.btn-secondary-custom {
    padding: 15px 45px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: var(--white);
    color: var(--primary-maroon);
    transform: translateY(-3px);
}

/* ===========================
   SECTION STYLES
   =========================== */

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

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-maroon);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   CARD STYLES
   =========================== */

.school-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: none;
}

.card-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--light-maroon));
    position: relative;
    overflow: hidden;
}

.card-image img:only-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.school-card:hover .card-image img {
    transform: scale(1.08) rotate(1deg);
}

.school-card:hover .card-image::after {
    opacity: 1;
}

/* Green Theme for Grade 10 Card */
.school-card.grade-10-card .card-image {
    background: linear-gradient(135deg, #2d7e3a, #1b4d25) !important;
}

.school-card.grade-10-card .card-grades {
    color: #2d7e3a !important;
    font-weight: bold;
}

.school-card.grade-10-card .card-link {
    color: #2d7e3a !important;
    border-color: #2d7e3a !important;
}

.school-card.grade-10-card .card-link:hover {
    background-color: #2d7e3a !important;
    color: white !important;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-maroon);
}

.card-grades {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary-maroon);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 1rem;
}

/* ===========================
   FEATURE BOX STYLES
   =========================== */

.feature-box {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
    border-left: 5px solid var(--primary-maroon);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-maroon);
    margin-bottom: 0.8rem;
}

.feature-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===========================
   FORM STYLES
   =========================== */

.form-control:focus {
    border-color: var(--primary-maroon);
    box-shadow: 0 0 0 0.2rem rgba(139, 21, 56, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-maroon);
}

.btn-form-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--light-maroon));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    color: var(--white);
}

/* ===========================
   ADMISSIONS SECTION
   =========================== */

.admissions-section {
    background: linear-gradient(135deg, var(--primary-maroon), var(--light-maroon));
    color: var(--white);
}

.admissions-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.admissions-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
}

.admissions-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-gold {
    color: var(--accent-gold);
}

.text-maroon {
    color: var(--primary-maroon);
}

.text-green {
    color: var(--primary-green);
}

.bg-maroon {
    background-color: var(--primary-maroon);
}

.bg-green {
    background-color: var(--primary-green);
}

.hover-gold:hover {
    color: var(--accent-gold) !important;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Tablet Responsive */
@media (max-width: 1200px) {
    .navbar-container-luxury {
        padding: 12px 30px;
        gap: 30px;
    }

    .nav-link-luxury {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero-content-luxury {
        padding: 60px 60px 80px 60px;
    }

    .hero-title-luxury {
        font-size: 4.5rem;
    }

    .hero-subtitle-luxury {
        font-size: 1.5rem;
    }

    .btn-primary-luxury {
        padding: 14px 35px;
    }

    .hero-nav-luxury {
        left: 60px;
    }

    .hero-indicators-luxury {
        right: 60px;
    }
}

@media (max-width: 768px) {
    /* Header Responsive */
    .hamburger-luxury {
        display: flex;
    }

    .navbar-menu-luxury {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu-luxury.active {
        max-height: 400px;
        border-bottom: 1px solid rgba(139, 21, 56, 0.1);
    }

    .nav-link-luxury {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(139, 21, 56, 0.05);
    }

    .btn-enquire-luxury {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .navbar-container-luxury {
        padding: 12px 20px;
        gap: 20px;
    }

    /* Hero Responsive */
    .hero-luxury {
        height: 80vh;
    }

    .hero-content-luxury {
        padding: 50px 30px 70px 30px;
        max-width: 100%;
    }

    .hero-title-luxury {
        font-size: 3rem;
    }

    .hero-subtitle-luxury {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .tagline-luxury {
        font-size: 0.85rem;
    }

    .btn-primary-luxury {
        padding: 13px 30px;
        font-size: 0.9rem;
    }

    .hero-nav-luxury {
        left: 30px;
        bottom: 40px;
    }

    .hero-indicators-luxury {
        right: 30px;
        bottom: 40px;
    }

    .nav-btn-luxury {
        width: 45px;
        height: 45px;
    }

    .logo-img-luxury {
        height: 45px;
        width: 45px;
    }

    .logo-main-luxury {
        font-size: 1.1rem;
    }

    .logo-sub-luxury {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    /* Mobile Header */
    .navbar-container-luxury {
        padding: 10px 15px;
    }

    .logo-img-luxury {
        height: 40px;
        width: 40px;
    }

    .logo-main-luxury {
        font-size: 1rem;
    }

    .logo-sub-luxury {
        font-size: 0.6rem;
    }

    .btn-enquire-luxury {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Mobile Hero */
    .hero-luxury {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content-luxury {
        padding: 40px 20px 60px 20px;
    }

    .hero-title-luxury {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle-luxury {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .tagline-luxury {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .btn-primary-luxury {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .hero-nav-luxury {
        left: 15px;
        bottom: 30px;
        gap: 15px;
    }

    .hero-indicators-luxury {
        right: 15px;
        bottom: 30px;
    }

    .nav-btn-luxury {
        width: 40px;
        height: 40px;
    }

    .indicator-btn-luxury.active {
        width: 25px;
    }

    .progress-bar-luxury {
        height: 3px;
    }

    /* Responsive Carousel */
    .hero-img {
        height: 50vh;
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-caption {
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        padding: 35px 30px;
        max-width: 90%;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Mobile Carousel */
    .hero-img {
        height: 40vh;
    }

    .carousel-caption {
        display: none;
    }

    .carousel-caption.show {
        display: block;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 25px 20px;
        max-width: 95%;
        border-radius: 12px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }
}

/* Responsive Hero Modern */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .hero-indicators {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        margin-top: 70px;
        height: 70vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .hero-content-wrapper {
        padding: 0 20px;
    }

    .hero-indicators {
        display: none;
    }

    .hero-controls {
        bottom: 30px;
        gap: 15px;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .hero-controls {
        bottom: 20px;
    }

    .hero-nav-btn {
        width: 35px;
        height: 35px;
    }

    .hero-progress {
        height: 2px;
    }
}

/* ===========================
   IMAGE OPTIMIZATION
   =========================== */

/* Lazy Loading for images */
img[loading="lazy"] {
    background-color: #f0f0f0;
}

/* Responsive Images */
picture {
    display: block;
}

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

/* Logo Optimization */
.logo-img {
    max-width: 50px;
    height: auto;
    width: auto;
    display: inline-block;
    margin-right: 10px;
    will-change: transform;
}

/* School Card Images */
.school-card img {
    height: 200px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    transition: transform 0.3s ease;
}

.school-card:hover img {
    transform: scale(1.05);
}

/* Background Image Optimization */
.bg-cover {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

@supports (background-attachment: fixed) {
    .bg-cover {
        background-attachment: fixed;
    }
}

/* Mobile optimization for fixed backgrounds */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .bg-cover {
        background-attachment: scroll !important;
    }
}

/* Image Loading Animation */
@keyframes imageLoad {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

img[src]:not([src*="data"]) {
    animation: imageLoad 0.3s ease-in;
}

/* Image Gallery Display */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    height: 300px;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(139, 21, 56, 0.25);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Image Section Container */
.images-showcase {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(139, 21, 56, 0.05));
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 15px;
}

.images-showcase h2 {
    color: var(--primary-maroon);
    font-weight: 700;
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-align: center;
}

/* School Images Display */
.school-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.school-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.school-image-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-image-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 45px rgba(139, 21, 56, 0.3);
}

.school-image-card:hover img {
    transform: scale(1.1) rotate(1deg);
}

.school-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.school-image-card:hover .school-image-info {
    transform: translateY(0);
}

.school-image-info h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.school-image-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .school-images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .school-image-card img {
        height: 280px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-image img {
        object-fit: cover;
        object-position: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .admissions-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-grades {
        font-size: 0.85rem;
    }
    
    .card-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}
