/* ===================================
   Rainbow Innovative Academy - Main Styles
   Inspired by Modern Education Design
   =================================== */

/* ===== CSS Variables - Deep Orange Elegance Theme ===== */
:root {
    --primary-color: #b45309;
    --primary-light: #d97706;
    --primary-dark: #92400e;
    --primary-lighter: #f59e0b;
    --primary-lightest: #fbbf24;
    --secondary-color: #d97706;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --dark-color: #92400e;
    --light-color: #fef3c7;
    --text-color: #1c1917;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    --gradient-secondary: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-rainbow: linear-gradient(135deg, #b45309 0%, #d97706 25%, #f59e0b 50%, #fbbf24 75%, #fde68a 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    padding-top: 0;
    transition: padding-top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: padding-top;
    max-width: 100%;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ===== Hero Video ===== */
.hero-video {
    position: relative;
    height: 80vh;
    min-height: 700px;
    overflow: hidden;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    z-index: 1;
    width: 100% !important;
    box-sizing: border-box !important;
}

.video-container {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 0px;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    z-index: 1;
    width: 100% !important;
    box-sizing: border-box !important;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out;
    will-change: transform;
    contain: layout style paint;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-slide.active {
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    max-width: none;
    min-width: 100%;
}

/* Ensure hero carousel and its children fill full width */
.hero-carousel,
.hero-carousel *,
.carousel-container,
.carousel-slide {
    box-sizing: border-box;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(180, 83, 9, 0.4) 0%,
        rgba(180, 83, 9, 0.25) 50%,
        rgba(180, 83, 9, 0.35) 100%
    );
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Hide overlay on mobile */
@media (max-width: 768px) {
    .slide-overlay {
        display: none;
    }
}

.slide-content {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* Desktop hero content styling with individual text boxes */
@media (min-width: 769px) {
    .slide-content {
        background: transparent;
        padding: 40px 20px;
    }
    
    .hero-title {
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        font-size: 3.5rem;
        margin-bottom: 20px;
        padding: 20px 30px;
        border-radius: 12px;
        box-shadow: none;
        display: inline-block;
    }
    
    .hero-subtitle {
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
        font-size: 1.3rem;
        margin-bottom: 30px;
        padding: 15px 25px;
        border-radius: 10px;
        box-shadow: none;
        display: inline-block;
    }
    
    .hero-stats {
        background: rgba(0, 0, 0, 0.5);
        color: white;
        text-shadow: none;
        padding: 10px 20px;
        border-radius: 8px;
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        display: inline-block;
    }
}

/* Responsive overrides for slide content position */
@media (max-width: 1024px) {
    .slide-content {
        top: 70%;
    }
}

@media (max-width: 768px) {
    .slide-content {
        top: 70%;
        padding: 20px 15px;
    }
    
    .hero-video {
        min-height: 400px;
        margin-bottom: 0;
        border-radius: 0px;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .hero-video + .stats-section {
        margin-top: 0;
        padding-top: 30px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .video-container {
        top: 90px;
        border-radius: 0px;
    }
    
    .video-container iframe {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }
    
    .slide-content {
        top: 85%;
        padding: 20px 15px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 6px;
        font-weight: 800;
        color: #7c2d12;
        letter-spacing: -0.2px;
        text-shadow: none;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 16px;
        font-weight: 500;
        color: #a16207;
        text-shadow: none;
    }
    
    .hero-buttons {
        gap: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .hero-buttons .btn {
        width: 110px;
        padding: 8px 14px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 6px;
        transition: all 0.3s ease;
        box-shadow: none;
    }
    
    .hero-buttons .btn-primary {
        background: #7c2d12;
        border-color: #7c2d12;
    }
    
    .hero-buttons .btn-outline {
        background: transparent;
        color: #7c2d12;
        border-color: #7c2d12;
    }
    
    .hero-buttons .btn:hover {
        transform: translateY(-1px);
    }
    
    .hero-stats {
        font-size: 0.7rem;
        margin-top: 8px;
        font-weight: 500;
        color: #a16207;
        letter-spacing: 0.3px;
        text-shadow: none;
    }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 0;
    line-height: 1.2;
    color:white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 36px;
    margin-top: 0;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 28px;
    margin-top: 0;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 18px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
    min-width: 160px;
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.hero-buttons .btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    margin-top: 0;
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10003 !important;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    isolation: isolate;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10004;
}

.dot.active,
.dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 30px;
}

.carousel-nav.next {
    right: 30px;
}

/* Mobile Hero Overlay for Better Text Visibility */
@media (max-width: 768px) {
    .hero-carousel .slide-overlay,
    .hero-video .slide-overlay {
        background: linear-gradient(135deg, 
            rgba(180, 83, 9, 0.8) 0%, 
            rgba(180, 83, 9, 0.7) 50%, 
            rgba(0, 0, 0, 0.6) 100%) !important;
        backdrop-filter: blur(2px) !important;
    }
    
    .hero-carousel .slide-content,
    .hero-video .slide-content {
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-carousel .hero-title,
    .hero-video .hero-title {
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-carousel .hero-subtitle,
    .hero-video .hero-subtitle {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    }
    
    .hero-carousel .hero-stats,
    .hero-video .hero-stats {
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    }
    
    .hero-carousel .btn,
    .hero-video .btn {
        text-shadow: none !important;
    }
    
    /* Homepage specific - Primary color text on mobile */
    body.homepage .hero-video .slide-content {
        color: var(--primary-color) !important;
    }
    
    body.homepage .hero-video .hero-title,
    body.homepage .hero-video .hero-subtitle,
    body.homepage .hero-video .hero-stats {
        color: var(--primary-color) !important;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
        margin-top: 15px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
        margin-top: 6px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
        margin-top: 6px;
    }
    
    .hero-buttons .btn {
        width: 200px;
        padding: 16px 24px;
        min-width: 180px;
    }
    
    .hero-stats {
        margin-top: 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-nav.prev {
        left: 15px;
    }
    
    .carousel-nav.next {
        right: 15px;
    }
    
    .carousel-dots {
        bottom: 15px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 25px 15px;
        width: 95%;
        max-width: 350px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 18px;
        margin-top: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        margin-top: 4px;
    }
    
    .hero-buttons {
        margin-bottom: 26px;
        margin-top: 4px;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 14px 20px;
        min-width: 160px;
    }
    
    .hero-stats {
        margin-top: 8px;
    }
    
    .carousel-dots {
        bottom: 10px;
        padding: 5px 10px;
    }
}

/* ===== About Section Responsive ===== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .about-content {
        padding-right: 10px;
    }
    
    .about-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content {
        padding-right: 0;
        order: 2;
    }
    
    .about-image,
    .about-video {
        order: 1;
        width: 100%;
        display: block !important;
    }
    
    .about-img {
        height: 300px;
    }
    
    .about-video .video-container {
        height: 250px !important;
        padding-bottom: 0 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .about-video iframe {
        display: block !important;
        visibility: visible !important;
        height: 100% !important;
        width: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 50px 0;
    }
    
    .about-grid {
        gap: 30px;
    }
    
    .about-img {
        height: 250px;
    }
    
    .about-video .video-container {
        height: 200px !important;
        padding-bottom: 0 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .about-video iframe {
        display: block !important;
        visibility: visible !important;
        height: 100% !important;
        width: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .about-actions .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ===== Leadership Section Responsive ===== */
@media (max-width: 1024px) {
    .leadership-grid {
        gap: 30px;
    }
    
    .card-image {
        height: 250px;
    }
    
    .card-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .leadership-section {
        padding: 60px 0;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }
    
    .card-image {
        height: 280px;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .leader-name {
        font-size: 1.4rem;
    }
    
    .leader-message {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .leadership-section {
        padding: 50px 0;
    }
    
    .leadership-grid {
        gap: 25px;
        max-width: 100%;
        margin: 0 15px;
    }
    
    .card-image {
        height: 240px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .leader-name {
        font-size: 1.3rem;
    }
    
    .leader-title {
        font-size: 0.9rem;
    }
    
    .leader-message {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    
    .card-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== Academics Section Responsive ===== */
@media (max-width: 1024px) {
    .academics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .academics-section {
        padding: 60px 0;
    }
    
    .academics-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .academic-icon {
        font-size: 3.5rem;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .academic-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .academics-section {
        padding: 50px 0;
    }
    
    .academics-grid {
        gap: 20px;
        margin-top: 40px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .academic-icon {
        font-size: 3rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .academic-title {
        font-size: 1.3rem;
    }
    
    .academic-description {
        font-size: 0.95rem;
    }
}

/* ===== Activities Section Responsive ===== */
@media (max-width: 1024px) {
    .activities-carousel {
        padding: 0 50px;
    }
    
    .activity-card {
        flex: 0 0 300px;
        min-width: 300px;
    }
}

@media (max-width: 1024px) {
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tour-video {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .school-tour-section {
        padding: 60px 0;
    }
    
    .tour-grid {
        margin-top: 40px;
        gap: 30px;
    }
    
    .tour-description {
        padding: 30px;
    }
    
    .tour-heading {
        font-size: 1.4rem;
    }
    
    .tour-text {
        font-size: 0.9rem;
    }
    
    .tour-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-item {
        padding: 10px;
        gap: 8px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
        font-size: 0.95rem;
    }
    
    .feature-content h4 {
        font-size: 0.8rem;
    }
    
    .video-card {
        padding: 15px;
    }
    
    .video-caption {
        padding: 12px;
    }
    
    .video-caption p {
        font-size: 0.9rem;
    }
    
    .activities-section {
        padding: 60px 0;
    }
    
    .activities-carousel {
        margin-top: 40px;
        padding: 0 40px;
    }
    
    .carousel-container {
        padding: 15px 0;
    }
    
    .activity-card {
        flex: 0 0 calc(100% - 10px);
    }
    
    .carousel-track {
        gap: 20px;
        padding: 0 15px;
    }
    
    .activity-card .card-image {
        height: 180px;
    }
    
    .activity-title {
        font-size: 1.2rem;
    }
    
    .activity-description {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .school-tour-section {
        padding: 50px 0;
    }
    
    .tour-grid {
        margin-top: 30px;
        gap: 25px;
    }
    
    .tour-description {
        padding: 25px;
    }
    
    .tour-heading {
        font-size: 1.2rem;
    }
    
    .tour-text {
        font-size: 0.85rem;
    }
    
    .tour-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-item {
        padding: 8px;
        gap: 8px;
    }
    
    .feature-icon {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }
    
    .feature-content h4 {
        font-size: 0.7rem;
    }
    
    .video-card {
        padding: 12px;
    }
    
    .video-caption {
        padding: 10px;
        margin-top: 15px;
    }
    
    .video-caption p {
        font-size: 0.85rem;
    }
    
    .activities-section {
        padding: 50px 0;
    }
    
    .activities-carousel {
        margin-top: 30px;
        padding: 0 30px;
    }
    
    .carousel-container {
        padding: 10px 0;
    }
    
    .carousel-track {
        gap: 15px;
        padding: 0 10px;
    }
    
    .activity-card {
        margin: 0 5px;
    }
    
    .activity-card .card-image {
        height: 160px;
    }
    
    .activity-card .card-content {
        padding: 20px;
    }
    
    .activity-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .activity-description {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .carousel-dots {
        margin-top: 20px;
    }
    
    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* ===== Stats Section Responsive ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 25px 0;
        margin: 0;
        z-index: 2;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
    }
    
    .stats-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #7c2d12, #a16207);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 400px;
        padding: 0 15px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 16px 12px;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: white;
        border-radius: 8px;
        border: 1px solid rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }
    
    .stat-item:hover {
        transform: translateY(-2px);
    }
    
    .stat-number {
        font-size: 1.6rem;
        font-weight: 800;
        margin-bottom: 4px;
        color: #7c2d12;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.2;
        text-align: center;
        color: #a16207;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 40px 0;
        margin: 0;
        z-index: 2;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }
    
    .stat-item {
        padding: 18px 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* ===== Top Notification Bar (Combined) ===== */
.top-notification-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 1px 0;
    font-size: 13px;
    border-bottom: 3px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity, box-shadow;
    width: 100%;
}

.top-notification-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 0 40px;
    flex-wrap: wrap;
}

.top-notification-bar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notification-left {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.notification-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.notification-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.notification-item svg {
    flex-shrink: 0;
}

.notification-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.admission-pill {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    margin-left: 10px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.admission-pill:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

.admission-pill svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.notification-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
}

.top-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: var(--transition);
    padding: 6px;
}

/* Ensure social glyphs are visibly sized inside the circle */
.top-icon-link svg {
    width: 20px;
    height: 20px;
}

.top-icon-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}


/* ===== Header & Navigation ===== */
.header {
    background: var(--white);
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar {
    padding: 8px 0;
    background: var(--white) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    display: block !important;
    visibility: visible !important;
    width: 100%;
    overflow: visible;
    margin: 0;
    will-change: padding, box-shadow;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    visibility: visible !important;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    margin-top: -20px;
}

.logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.logo-text h1 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 2px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex !important;
    gap: 28px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 10px;
}

.nav-menu > li {
    position: relative;
    list-style: none;
    display: block;
}

.nav-menu > li > a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
    font-size: 14.5px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    margin-top: 15px;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 30px;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.9)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0 100px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    margin: 0;
    position: relative;
    z-index: 2;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

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

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    padding-right: 0px;
}

.about-content p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.about-content p:last-of-type {
    margin-bottom: 32px;
}

.about-actions {
    margin-top: 20px;
}

.about-actions .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-image,
.about-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.about-image:hover .about-img {
    transform: scale(1.05);
}

.about-video .video-card {
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.about-video .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.about-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ===== Leadership Section ===== */
.leadership-section {
    padding: 80px 0;
    background: var(--light-color);
}

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

.leadership-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.leadership-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent 40%), linear-gradient(225deg, rgba(249, 115, 22, 0.18), transparent 45%);
    opacity: 0.8;
    pointer-events: none;
}

.leadership-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 65px rgba(15, 23, 42, 0.2);
}

.card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.leadership-card .card-image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(249, 115, 22, 0.12));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.leadership-card .card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.45) 100%);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.leadership-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.35s ease;
    display: block;
    filter: saturate(1.08);
}

/* Ensure Mrs. Varalakshmi's face remains in-frame on homepage */
body.homepage .leadership-grid .leadership-card:first-child .leadership-img {
    object-position: center 25%;
}

.leadership-card:hover .leadership-img {
    transform: scale(1.07);
}

.card-content {
    position: relative;
    padding: 34px 36px 32px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.leader-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.25;
}

.leader-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.62px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.leader-title::before {
    content: "";
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), rgba(249, 115, 22, 0.6));
}

.leader-message {
    font-size: 1rem;
    line-height: 1.82;
    color: #475569;
}

.leader-message:last-of-type {
    margin-bottom: 0;
}

.leadership-card .card-actions {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.leadership-card .card-actions .btn {
    padding: 11px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 14px 24px rgba(234, 88, 12, 0.18);
}

.leadership-card .card-actions .btn-outline {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
}

.leadership-card .card-actions .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(180, 83, 9, 0.35);
}

/* ===== Academics Section ===== */
.academics-section {
    padding: 80px 0;
    background: var(--light-color);
}

.section-description {
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
}

.academic-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: block;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.academic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.academic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    transition: all 0.3s ease;
}

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

.academic-card:hover .academic-overlay {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.25) 0%, rgba(217, 119, 6, 0.25) 100%);
}

.card-content {
    padding: 30px;
    position: relative;
}

.academic-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.academic-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.academic-card:hover .card-arrow {
    transform: translateX(5px);
    opacity: 1;
    color: var(--accent-color);
}

/* ===== Extra Curricular Activities Section ===== */
.activities-section {
    padding: 80px 0;
    background: var(--white);
}

.activities-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 0 10px;
    overflow: visible;
}

.carousel-container {
    overflow: hidden;
    border-radius: 16px;
    padding: 0;
    margin: 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    animation: scroll-continuous 40s linear infinite;
    width: fit-content;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.activity-card {
    flex: 0 0 350px;
    min-width: 350px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    contain: layout style paint;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.activity-card .card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.activity-card .card-content {
    padding: 25px;
}

.activity-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.activity-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.carousel-btn {
    display: none;
}

.prev-btn {
    display: none;
}

.next-btn {
    display: none;
}

.carousel-dots {
    display: none;
}

.carousel-dots .dot {
    display: none;
}

.carousel-dots .dot.active {
    display: none;
}

.carousel-dots .dot:hover {
    display: none;
}

/* ===== Social Feed Section ===== */
.social-feed-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fffaf3 0%, #fff7ed 50%, #fffaf0 100%);
    overflow: hidden;
    position: relative;
}

.social-feed-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.15), transparent 55%);
    pointer-events: none;
}

.elfsight-social-wrapper {
    margin-top: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.elfsight-social-wrapper .elfsight-app-c18fcdc7-7069-4e48-95e0-fe62e9b3be35 {
    width: 100%;
    min-height: 400px;
}

@media (max-width: 768px) {
    .social-feed-section {
        padding: 60px 0;
    }

    .elfsight-social-wrapper {
        padding: 20px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .elfsight-social-wrapper {
        padding: 16px;
    }
}

/* ===== School Tour Video Section ===== */
.school-tour-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.school-tour-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.03) 0%, rgba(217, 119, 6, 0.03) 100%);
    pointer-events: none;
}

.school-tour-section .container {
    position: relative;
    z-index: 1;
}

.tour-grid {
    display: grid;
    grid-template-columns: 0.5fr 2fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}

.tour-description {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.tour-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 25px;
}

.tour-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 6px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.feature-content p {
    display: none;
}

.tour-description .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.tour-video {
    position: sticky;
    top: 100px;
}

.video-card {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-caption {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.video-caption p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.video-caption strong {
    color: var(--primary-color);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    margin: 0;
}

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

.section-title {
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Spacing improvements for About section */
.about-section .section-title {
    margin-bottom: 28px; /* more breathing room above paragraph */
}

.about-section .about-grid p:first-of-type {
    margin-top: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px; /* move the yellow line slightly away from text */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* ===== Quick Stats ===== */
.stats {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%),
                linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

/* ===== Features/Highlights ===== */
.features {
    background: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: left;
    padding: 26px 28px;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 20px; /* keep card heights aligned */
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Icon + title on first row */
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 12px 0 0; /* inline with title */
    background: var(--gradient-secondary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    vertical-align: middle;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    display: inline-block;
    vertical-align: middle;
    font-size: 22px;
    margin: 0; /* sits in the same row as icon */
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
}

.feature-text {
    color: #666;
    margin-top: 14px; /* second row description */
    line-height: 1.75;
    font-size: 1.05rem;
    text-align: center;
}

/* Core Values head helper (if present) */
.value-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* Responsive columns: 2 on tablet, 1 on mobile */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .feature-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* --- Strong overrides to ensure 3/2/1 column layout for Core Values & Features --- */
.section.features .feature-grid,
.section.bg-light .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .section.features .feature-grid,
    .section.bg-light .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .section.features .feature-grid,
    .section.bg-light .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: layout style paint;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.rating {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.rating span {
    color: #fbbf24;
}

.testimonial-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.author-role {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
    padding: 16px 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
    padding: 16px 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* ===== FAQ Accordion Section ===== */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.faq-item.active {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
}

.faq-question span:first-child {
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--accent-color);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Testimonials Responsive */
@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 70px 0;
        text-align: center !important;
    }
    
    .cta-title {
        font-size: 2rem;
        text-align: center !important;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
        text-align: center !important;
    }
    
    .cta-buttons {
        gap: 15px;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-container {
        margin-top: 40px;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .faq-question {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
    
    .faq-answer {
        padding: 0 25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 25px 20px 25px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .quote-icon {
        font-size: 2.5rem;
        top: 15px;
        right: 20px;
    }
    
    .rating {
        font-size: 0.85rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .author-role {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column ul {
        columns: 2 !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-top {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    
    .footer-logo {
        height: 70px;
    }
    
    .footer-tagline {
        font-size: 1rem;
        max-width: 440px;
        white-space: normal;
    }
    
    .footer-newsletter h3 {
        font-size: 1.2rem;
        text-align: center !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-top {
        gap: 30px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .footer-tagline {
        font-size: 0.95rem;
        max-width: 320px;
        white-space: normal;
    }
    
    .footer-newsletter h3 {
        font-size: 1.1rem;
    }
    
    .footer-newsletter p {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-column h3 {
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-section {
        text-align: center !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .cta-section .btn-primary,
    .cta-section .btn-outline-white {
        font-size: 1rem;
        padding: 14px 32px;
    }
    
    .cta-title,
    .cta-subtitle {
        text-align: center !important;
    }
    
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-container {
        margin-top: 30px;
        gap: 12px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    
    .faq-icon {
        width: 26px;
        height: 26px;
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 18px 20px;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
    
    .testimonials-section {
        padding: 50px 0;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .quote-icon {
        font-size: 2rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .author-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    
    .author-name {
        font-size: 0.85rem;
    }
    
    .author-role {
        font-size: 0.75rem;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-rainbow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-role {
    font-size: 14px;
    color: #666;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

/* Footer Top Row: Logo + Newsletter */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    filter: brightness(0) invert(1);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.footer-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px; /* visually aligns with logo width */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    text-align: left;
}
.newsletter-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.newsletter-header h3 {
    margin: 0;
}


.footer-newsletter p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px 24px;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    gap: 12px;
}

/* Place brand-area socials under logo/tagline on desktop */
.footer-social--brand { display: none; }
.footer-social--newsletter { display: flex; }

@media (min-width: 1025px) {
    .footer-brand { gap: 16px; }
    .footer-social--brand { display: flex; }
    .footer-social--newsletter { display: none; }
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

/* Make footer icons a touch larger for better legibility */
.footer-social a svg {
    width: 24px;
    height: 24px;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer Middle: Grid Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column ul {
    /* Make two columns for lists where space allows, except contact info */
    columns: 2;
    column-gap: 24px;
}

.footer-column ul li {
    break-inside: avoid;
}

/* Contact info should be single column */
.footer-contact {
    columns: 1 !important;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

/* Footer Bottom: Legal & Credits */
.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

.footer-bottom a[href*="globalhorizonsventures.com"] {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-bottom a[href*="globalhorizonsventures.com"]:hover {
    color: white;
    text-decoration: underline;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient-rainbow);
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.page-header .container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay-text {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

/* ===== Tabs ===== */
.tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 25px;
    background: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Table ===== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

table tr:hover {
    background: var(--light-color);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===== Story Section ===== */
.story-section {
    padding: 100px 0;
    background: var(--white);
}

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

.story-content h2 {
    font-size: 40px;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.story-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* ===== Video Section ===== */
.video-section {
    background: var(--light-color);
    padding: 80px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: var(--shadow-xl);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background: linear-gradient(135deg, #1c3533 0%, #2d5a55 100%);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

/* ===== Partners Section ===== */
.partners-section {
    padding: 80px 0;
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.partner-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--light-color);
    transition: var(--transition);
}

.partner-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.partner-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* ===== Quote Section ===== */
.quote-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 200px;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
}

/* ===== Features Showcase ===== */
.features-showcase {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-color) 100%);
}

.features-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.showcase-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.showcase-item:nth-child(1) { border-top-color: #2d5a55; }
.showcase-item:nth-child(2) { border-top-color: #10b981; }
.showcase-item:nth-child(3) { border-top-color: #f59e0b; }
.showcase-item:nth-child(4) { border-top-color: #ef4444; }
.showcase-item:nth-child(5) { border-top-color: #8b5cf6; }
.showcase-item:nth-child(6) { border-top-color: #ec4899; }

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.showcase-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.showcase-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

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

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-40 {
    padding: 40px 0;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ===== Modern Enhancements ===== */
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

.btn:hover {
    transform: translateY(-3px);
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .top-notification-bar {
        font-size: 11px;
        padding: 14px 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .top-notification-bar .container {
        padding: 0 20px;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .notification-left {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .notification-item {
        padding-right: 5px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .notification-right {
        gap: 8px;
        padding-left: 10px;
    }
    
    .top-icon-link {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .admission-pill {
        padding: 8px 16px;
        margin-left: 5px;
        font-size: 11px;
    }
    
    .notification-item span {
        font-size: 11px;
    }
    
    .admission-pill {
        font-size: 11px;
        padding: 6px 15px;
    }
    
    .admission-pill span {
        display: none;
    }
    
    .admission-pill::after {
        content: 'Admissions Open';
        margin-left: 0;
    }
    
    .notification-divider {
        display: none;
    }
    
    .notification-right {
        gap: 8px;
    }
    
    .top-icon-link span {
        display: none;
    }
    
    .social-divider {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 135px;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 135px);
        background: #ffffff !important;
        background-color: #ffffff !important;
        flex-direction: column;
        padding: 30px 25px 20px;
        box-shadow: none;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 0;
        align-items: flex-start;
        overflow-y: auto;
        z-index: 10000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0) !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: -1;
        pointer-events: none;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 0;
    }
    
    .nav-menu > li > a {
        width: 100%;
        padding: 18px 0;
        color: var(--dark-color) !important;
        font-weight: 600;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        color: var(--primary-color) !important;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa !important;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 8px;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-menu a {
        color: var(--dark-color) !important;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        display: block !important;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu a:hover {
        background: #e9ecef !important;
        border-left-color: var(--primary-color);
        padding-left: 25px !important;
    }
    
    .dropdown-menu a:hover {
        background: transparent !important;
        color: var(--primary-color) !important;
        padding-left: 25px !important;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    
    .dropdown-toggle svg {
        width: 16px;
        height: 16px;
        transition: transform 0.3s ease;
        color: var(--primary-color);
    }
    
    .dropdown.active .dropdown-toggle svg {
        transform: rotate(180deg);
    }
    
    .logo a img {
        height: 120px !important;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .top-bar .container {
        justify-content: center;
        gap: 10px;
    }
    
    .top-bar-left,
    .top-bar-right {
        font-size: 12px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .card-grid,
    .feature-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ===== Text-Only Hero Section ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 150px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Desktop alignment fix for page hero sections */
@media (min-width: 769px) {
    .page-hero {
        padding: 60px 0 50px;
        margin-top: 120px;
    }
    
    .hero-content-center {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
    }
    
    .hero-content-center .hero-title {
        text-align: center;
        width: 100%;
        font-size: 38px;
        margin-bottom: 6px;
        font-weight: 700;
    }
    
    .hero-content-center .hero-subtitle {
        text-align: center;
        width: 100%;
        font-size: 18px;
        margin-bottom: 4px;
        font-weight: 500;
    }
    
    .hero-content-center .hero-description {
        text-align: center;
        width: 100%;
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 0;
        max-width: 600px;
    }
}

.hero-content-center .hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0px;
    line-height: 1.2;
}

.hero-content-center .hero-subtitle {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-content-center .hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 auto;
    max-width: 700px;
}

@media (max-width: 992px) {
    .section .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 70px;
        margin-top: 150px;
    }
    
    .hero-content-center .hero-title {
        font-size: 32px;
    }
    
    .hero-content-center .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-content-center .hero-description {
        font-size: 16px;
    }
    
    /* Page Header Mobile Styles */
    .page-header {
        padding: 60px 0 30px;
        min-height: 150px;
    }
    
    .page-header h1 {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .breadcrumb {
        font-size: 14px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        margin-top: 55px;
        padding: 80px 0 60px;
    }
    
    /* Page Header Small Mobile Styles */
    .page-header {
        padding: 50px 0 25px;
        min-height: 120px;
    }
    
    .page-header h1 {
        font-size: 28px;
        margin-bottom: 6px;
        line-height: 1.1;
    }
    
    .breadcrumb {
        font-size: 13px;
        gap: 6px;
        margin-top: 10px;
    }
}

/* ===== Document Cards Styling ===== */
.document-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.document-card:hover::before {
    transform: scaleX(1);
}

.document-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.document-icon svg {
    color: var(--white);
    transition: var(--transition);
}

.document-card:hover .document-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.document-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-type {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Responsive Document Grid */
@media (max-width: 1200px) {
    .document-card {
        padding: 25px 15px;
    }
}

@media (max-width: 992px) {
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Documents Page Override - 3 columns */
    section.bg-light .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .document-card {
        padding: 20px 15px;
    }
    
    .document-icon {
        width: 50px;
        height: 50px;
    }
    
    .document-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .document-title {
        font-size: 14px;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Facilities Image Scroll Animation ===== */
@keyframes scroll-facilities {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.facilities-scroll-container {
    width: 100%;
    padding: 0 20px;
}

.facilities-scroll-track {
    will-change: transform;
}

.facilities-scroll-track:hover {
    animation-play-state: paused;
}

.facility-image-wrapper {
    transition: transform 0.3s ease;
}

.facility-image-wrapper:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .facilities-scroll-container {
        padding: 0 10px;
    }
    
    .facility-image-wrapper {
        flex: 0 0 300px !important;
        height: 220px !important;
    }
}

/* ===== 4-Column Grid Responsive Design ===== */
/* For Contact Page, Kindergarten, Primary, High School feature cards */
@media (max-width: 1200px) {
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"],
    section .container > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"],
    section .container > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure feature items look good in 4-column layout */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* ===== Performance Optimizations ===== */
.card, .testimonial-card, .activity-card, .feature-card {
    contain: layout style paint;
}

img {
    content-visibility: auto;
}

.section {
    contain: layout style;
}

/* Reduce repaints on scroll */
.navbar, .top-notification-bar {
    will-change: transform;
    contain: layout style;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    contain: layout style paint;
    will-change: transform;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    fill: white;
}

/* ===== ADMISSION PROCESS STEPS ===== */
/* Reduce spacing in admission process section */
.section.bg-light:has(.admission-steps-grid) .section-header {
    margin-bottom: 20px;
}

/* Reduce spacing in online application form section */
#application-form .section-header {
    margin-bottom: 25px;
}

#application-form .card {
    padding: 25px;
}

/* CTA Info Cards - Need Help with Admissions */
.cta-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.cta-info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: left;
}

.cta-info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.cta-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    justify-content: flex-start;
}

.cta-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.cta-label {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

.cta-card-content {
    color: white;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    padding-left: 44px;
}

.cta-card-content a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.cta-card-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.admission-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 0;
}

.step-item {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(180, 83, 9, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(180, 83, 9, 0.2);
    border-color: var(--primary-color);
}

.step-final.step-card:hover {
    border-color: var(--secondary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.3);
}

.step-icon span {
    color: white;
    font-size: 36px;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.step-final .step-content h3 {
    color: var(--secondary-color);
}

.step-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* ===== MOBILE VIEW OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Switch logos - hide desktop, show mobile */
    .logo-desktop {
        display: none !important;
    }
    
    .logo-mobile {
        display: block !important;
        margin-top: 12px !important;
    }
    
    /* Compact notification bar - icons only in single row */
    .top-notification-bar {
        height: 45px !important;
        min-height: 45px !important;
        padding: 8px 0 !important;
        font-size: 13px !important;
    }
    
    .top-notification-bar .container {
        flex-direction: row !important;
        gap: 12px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 20px !important;
    }
    
    .top-icon-link svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Hide phone and location on mobile - show only social icons */
    .notification-left {
        display: none !important;
    }
    
    .notification-right {
        width: 100% !important;
        display: flex !important;
        justify-content: space-evenly !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 0 20px !important;
    }
    
    /* Notification bar - icons only on mobile */
    .notification-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .notification-item a {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        position: relative !important;
        color: white !important;
    }
    
    /* Hide all text nodes */
    .notification-item a {
        font-size: 0 !important;
    }
    
    /* Show only SVG - larger size */
    .notification-item svg {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .top-icon-link {
        width: 24px !important;
        height: 24px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .top-icon-link svg {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
    }
    
    /* Optimize navbar height on mobile */
    .navbar {
        height: 55px !important;
        padding: 8px 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    .logo {
        padding: 5px 0 !important;
    }
    
    .logo img {
        height: 45px !important;
        max-height: 45px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    /* Optimize hero section for mobile */
    .hero-carousel {
        min-height: 420px !important;
        height: 52vh !important;
        max-height: 480px !important;
        position: relative !important;
        z-index: 1 !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-carousel .carousel-container {
        height: 100% !important;
    }
    
    .hero-carousel .slide-image {
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .slide-content {
        padding: 15px !important;
        top: 80% !important;
    }
    
    .hero-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-stats {
        font-size: 12px !important;
        margin-top: 10px !important;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
    
    /* Carousel controls mobile - hide arrows */
    .carousel-btn,
    .prev-btn,
    .next-btn,
    .carousel-nav,
    .carousel-nav.prev,
    .carousel-nav.next {
        display: none !important;
    }
    
    .carousel-dots {
        bottom: 15px !important;
        z-index: 10 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Ensure stats section doesn't overlap hero */
    .stats-section {
        margin: 0 !important;
        padding: 150px 0 !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        position: relative !important;
        z-index: 2 !important;
        min-height: 280px !important;
    }
    
    .stats-grid {
        position: relative !important;
        z-index: 10 !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        padding: 0 20px !important;
    }
    
    .stat-item {
        padding: 25px 15px !important;
        min-height: 100px !important;
    }
    
    /* Section padding mobile */
    .section {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    
    .section-subtitle {
        font-size: 14px !important;
    }
    
    /* Container padding mobile */
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Navbar container - tighter padding */
    .navbar .container {
        padding: 0 15px !important;
    }
    
    /* Card spacing mobile */
    .card {
        padding: 20px !important;
    }
    
    .card-title {
        font-size: 18px !important;
    }
    
    .card-text {
        font-size: 14px !important;
    }
    
    /* Kindergarten, Primary, High School Pages - 2 columns on mobile */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .feature-item {
        padding: 15px !important;
    }
    
    .feature-icon {
        font-size: 1.8rem !important;
        margin-bottom: 8px !important;
    }
    
    .feature-title {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .feature-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    /* Class Structure - single column on mobile */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Why Choose sections - 2 columns on mobile (kindergarten, primary, high school) */
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.document-grid) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Reduce padding on cards in Why Choose section */
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card {
        padding: 12px 10px !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-content {
        padding: 0 !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-title {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] div[style*="font-size: 50px"] {
        font-size: 35px !important;
        margin-bottom: 10px !important;
    }
    
    /* Admission Process - Mobile Layout */
    .admission-steps-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .step-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        background: white;
        border-radius: 12px;
        padding: 12px 15px;
        gap: 12px;
        box-shadow: 0 2px 10px rgba(180, 83, 9, 0.08);
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(180, 83, 9, 0.2);
    }
    
    .step-icon span {
        color: white;
        font-size: 24px;
        font-weight: 700;
    }
    
    .step-content {
        flex: 1;
        text-align: left;
    }
    
    .step-content h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--primary-color);
        margin: 0 0 3px 0;
    }
    
    .step-final .step-content h3 {
        color: var(--secondary-color);
    }
    
    .step-content p {
        font-size: 0.8rem;
        color: #64748b;
        margin: 0;
        line-height: 1.3;
    }
    
    /* Need Help with Admissions section - Mobile */
    .cta-info-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .cta-info-card {
        padding: 15px !important;
        text-align: left !important;
    }
    
    .cta-card-header {
        gap: 10px !important;
        margin-bottom: 10px !important;
        justify-content: flex-start !important;
    }
    
    .cta-icon {
        font-size: 28px !important;
    }
    
    .cta-label {
        font-size: 16px !important;
        text-align: left !important;
    }
    
    .cta-card-content {
        font-size: 14px !important;
        text-align: left !important;
        padding-left: 38px !important;
    }
    
    /* Documents Page - Mobile optimizations */
    .document-card {
        padding: 15px 10px !important;
    }
    
    /* Facilities Page - Mobile optimizations */
    /* Facilities grid - 3 columns on mobile */
    section .container > div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(6, 1fr)"] > div {
        padding: 15px 10px !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(6, 1fr)"] > div > div[style*="font-size: 40px"] {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(6, 1fr)"] h4 {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* Facilities image carousel - mobile */
    .facilities-scroll-container {
        margin-top: 20px !important;
    }
    
    .facility-image-wrapper {
        flex: 0 0 280px !important;
        height: 200px !important;
    }
    
    /* Gallery Page - Mobile optimizations */
    /* Tab buttons */
    .tab-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .tab-button {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
    
    /* Photo gallery grid - 2 columns on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .gallery-item {
        height: 180px !important;
    }
    
    .gallery-overlay-text {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
    
    /* Video gallery grid - 1 column on mobile */
    #videos > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    
    /* Video cards */
    #videos .video-card {
        padding: 15px !important;
    }
    
    #videos iframe {
        height: 200px !important;
    }
    
    /* Subscribe button */
    #videos a[style*="display: inline-flex"] {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Documents Page - Reduce gap between hero and next section */
    .hero-carousel + .section {
        padding-top: 20px !important;
        margin-top: -5px !important;
    }
    
    .hero-carousel + .section .section-header {
        margin-bottom: 20px !important;
    }
    
    /* Contact Page - Mobile optimizations */
    /* Contact info cards - 2 columns on mobile */
    .section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card {
        padding: 20px 15px !important;
    }
    
    .section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-content > div[style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 15px !important;
    }
    
    .section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-content > div[style*="width: 80px"] svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    .section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] .card-text {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    /* Contact form - single column on mobile */
    form.card .card-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    form.card {
        padding: 20px 15px !important;
    }
    
    form.card .form-group {
        margin-bottom: 15px !important;
    }
    
    form.card .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    
    form.card .form-control,
    form.card textarea.form-control {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }
    
    form.card button[type="submit"] {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
    }
    
    /* Hero carousel - Remove border radius and adjust for mobile */
    .hero-carousel {
        margin-bottom: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-carousel .carousel-container {
        border-radius: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .hero-carousel .carousel-slide {
        border-radius: 0 !important;
        width: 100% !important;
    }
    
    .hero-carousel .slide-image {
        border-radius: 0 !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Text-only hero sections - remove border radius */
    .page-hero {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Homepage specific - ensure full width */
    body > .hero-carousel:first-of-type {
        margin-top: 0 !important;
    }
    
    /* Remove any section spacing after hero on homepage */
    .hero-carousel + .section {
        margin-top: 0 !important;
        padding-top: 60px !important;
        position: relative !important;
        z-index: 2 !important;
        background: white !important;
    }
    
    /* About page grid - stack on mobile */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .document-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    
    .document-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .document-title {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    
    .document-type {
        font-size: 0.65rem !important;
    }
    
    /* Principal & Secretary Message Page Mobile Optimization */
    
    /* Make hero carousel sticky on mobile */
    .hero-carousel {
        position: sticky !important;
        top: 105px !important;
        z-index: 999 !important;
        height: auto !important;
    }
    
    .hero-carousel .carousel-container {
        height: 350px !important;
    }
    
    .hero-carousel .slide-image {
        height: 350px !important;
        object-fit: cover !important;
    }
    
    .hero-carousel .slide-content {
        padding: 20px !important;
    }
    
    .hero-carousel .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-carousel .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Hide the duplicate image in content section */
    section.section div[style*="grid-template-columns: 380px 1fr"] {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Hide sticky elements only on specific pages, not principal/secretary */
    .page-header + section.section div[style*="position:sticky"] {
        display: none !important;
    }
    
    /* Ensure text visibility in principal/secretary message pages */
    section.section div[style*="max-width:800px"] {
        padding: 20px !important;
    }
    
    section.section div[style*="max-width:800px"] p {
        color: #333 !important;
        line-height: 1.8 !important;
        margin-bottom: 20px !important;
    }
    
    /* Document Centre title margin on mobile */
    .section-title {
        margin-top: 30px !important;
    }
    
    section.section div[style*="padding-top:20px"] {
        padding-top: 0 !important;
    }
    
    section.section p[style*="font-size:1.05rem"],
    section.section p[style*="font-size:1.02rem"] {
        font-size: 0.95rem !important;
    }
    
    section.section h3[style*="font-size:1.3rem"] {
        font-size: 1.1rem !important;
    }
    
    section.section p[style*="font-size:1.05rem"][style*="font-weight:600"],
    section.section span[style*="font-size:1.02rem"] {
        font-size: 0.95rem !important;
    }
    
    /* About page - Core Values & Features 2 columns on mobile */
    .section.features .feature-grid,
    .section.bg-light .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .feature-item {
        padding: 15px !important;
        text-align: center !important;
    }
    
    .value-head {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .feature-icon {
        font-size: 2rem !important;
        margin-bottom: 0 !important;
    }
    
    .feature-title {
        font-size: 0.95rem !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .feature-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }
    
    /* Footer mobile */
    .footer {
        padding: 25px 0 15px !important;
    }
    
    .footer-top {
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .footer-logo {
        height: 90px !important;
        max-width: 100% !important;
        filter: brightness(0) invert(1) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 10px !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
    }
    
    .footer-grid {
        gap: 20px !important;
        grid-template-columns: 1fr !important;
        text-align: left !important;
        margin-bottom: 20px !important;
    }
    
    .footer-column {
        text-align: left !important;
        padding: 0 20px !important;
    }
    
    .footer-column ul {
        columns: 2 !important;
        column-gap: 15px !important;
        text-align: left !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .footer-column li {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-bottom: 8px !important;
        break-inside: avoid !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .footer-column a {
        font-size: 0.9rem !important;
        display: inline-block !important;
        word-wrap: break-word !important;
    }
    
    .footer-column h3 {
        text-align: left !important;
        margin-bottom: 12px !important;
        font-size: 1.1rem !important;
    }
    
    .footer-contact {
        text-align: left !important;
        columns: 1 !important;
        column-count: 1 !important;
        display: block !important;
    }
    
    .footer-contact li {
        justify-content: flex-start !important;
        text-align: left !important;
        margin-bottom: 12px !important;
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        display: flex !important;
        align-items: flex-start !important;
        width: 100% !important;
        column-span: all !important;
    }
    
    .footer-contact a {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .footer-contact svg {
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }
    
    /* Footer top - stack vertically on mobile */
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .footer-brand {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .footer-logo {
        align-self: center !important;
    }
    
    .footer-tagline {
        max-width: 100% !important;
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    
    .footer-newsletter {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .footer-newsletter h3 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
        white-space: nowrap !important;
        order: 2 !important;
    }
    
    .footer-newsletter p {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
        order: 3 !important;
        display: none !important;
    }
    
    .footer-social {
        justify-content: center !important;
        order: 1 !important;
        margin-bottom: 12px !important;
        margin-top: 0 !important;
        width: 100% !important;
    }
    
    .footer-social a {
        width: 36px !important;
        height: 36px !important;
    }
    
    .footer-social a svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
        gap: 10px !important;
        order: 4 !important;
        width: 100% !important;
        max-width: 300px !important;
    }
    
    .newsletter-form input {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }
    
    .newsletter-form button {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }
    
    .newsletter-form button {
        width: 100% !important;
    }
    
    /* Last updated pill - mobile styling */
    .footer-newsletter > div[style*="display: flex"][style*="justify-content: center"] {
        order: 5 !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .footer-newsletter > div[style*="display: flex"] > div[style*="display: inline-flex"] {
        padding: 10px 18px !important;
        font-size: 12px !important;
        width: auto !important;
        max-width: 90% !important;
        gap: 8px !important;
    }
    
    .footer-newsletter > div[style*="display: flex"] > div[style*="display: inline-flex"] svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    
    .footer-newsletter > div[style*="display: flex"] > div[style*="display: inline-flex"] span {
        white-space: nowrap !important;
        font-size: 12px !important;
    }
    
    /* Mobile menu improvements */
    .mobile-menu-toggle {
        width: 35px !important;
        height: 35px !important;
    }
    
    .nav-menu {
        top: 105px !important; /* notification bar (45px) + navbar (60px) */
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    .nav-menu li,
    .nav-menu li a {
        background: transparent !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Keep compact header on very small screens */
    .top-notification-bar {
        height: 42px !important;
        min-height: 42px !important;
        font-size: 12px !important;
        padding: 6px 0 !important;
    }
    
    .notification-left,
    .notification-right {
        gap: 10px !important;
    }
    
    .notification-item svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .top-icon-link {
        padding: 5px !important;
    }
    
    .top-icon-link svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .navbar {
        height: 58px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    .logo {
        padding: 4px 0 !important;
    }
    
    .logo img {
        height: 42px !important;
        max-height: 42px !important;
    }
    
    .nav-menu {
        top: 030px !important; /* notification bar (42px) + navbar (58px) */
        padding-top: 30px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* Hero adjustments for small screens */
    .hero-carousel {
        min-height: 350px !important;
        height: 55vh !important;
    }
    
    .hero-title {
        color: var(--primary-dark);
        font-size: 20px !important;
    
    }
    
    .hero-subtitle {
        font-size: 13px !important;
    }
    
    .hero-buttons .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    /* Smaller section titles */
    .section-title {
        font-size: 20px !important;
    }
    
    /* Tighter spacing */
    .section {
        padding: 30px 0 !important;
    }
    
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Stats counter mobile */
    .stat-number {
        font-size: 28px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
}

/* ===== ALL GRIDS - FORCE SINGLE COLUMN ON MOBILE ===== */
@media (max-width: 768px) {
    /* All grid layouts to single column */
    .leadership-grid,
    .academic-grid,
    .card-grid,
    .testimonial-grid,
    .faq-container,
    .admission-steps,
    .facilities-grid,
    .smc-grid,
    div[style*="grid-template-columns: repeat(3"]:not([style*="repeat(4"]),
    div[class*="-grid"]:not(.stats-grid):not(.document-grid):not(.feature-grid) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Stats section - 2 columns on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .stats-section .container > div:not(.stats-grid) {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Academic cards - single column */
    .academics-section .academic-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Leadership cards - single column */
    .leadership-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* About section image + content */
    .about-section .container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Tour section */
    .tour-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* FAQ 2-column to 1-column */
    .faq-container {
        grid-template-columns: 1fr !important;
    }
    
    /* Document cards */
    /* Management committee */
    .smc-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Admission steps */
    .admission-steps {
        grid-template-columns: 1fr !important;
    }
}

