/********** Template CSS **********/
:root {
    --primary: #46ae5b;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/* ========================================
   ENHANCED MODERN NAVBAR STYLING
======================================== */

/* Enhanced Navbar */
.navbar {
    background: linear-gradient(135deg, #46ae5b 0%, #2d7a3e 100%) !important;
    box-shadow: 0 4px 20px rgba(70, 174, 91, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(70, 174, 91, 0.4);
    background: linear-gradient(135deg, #3a9249 0%, #2d7a3e 100%) !important;
}

/* Enhanced Navigation Links */
.navbar-light .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 20px 15px !important;
    color: #FFFFFF !important;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Awesome Hover Effect */
.navbar-light .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #c5f5d0);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after {
    left: 100%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #c5f5d0 !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-light .navbar-nav .nav-link:hover::before,
.navbar-light .navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Enhanced Logo/Badge */
.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 8px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-logo {
    height: 60px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    position: relative;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

/* Enhanced Badge Tooltip */
.badge-tooltip {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2d5a3d 0%, #46ae5b 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    min-width: 200px;
    text-align: center;
}

.badge-tooltip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #2d5a3d;
}

.badge-tooltip-wrapper:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
    transform: translateX(-50%) scale(1);
}

/* Super Enhanced Dropdown */
.dropdown-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf9 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(70, 174, 91, 0.1);
}

.dropdown-item {
    padding: 12px 25px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(70, 174, 91, 0.1), transparent);
    color: var(--primary);
    transform: translateX(8px);
    padding-left: 35px;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Amazing Admissions Button */
.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--primary) !important;
    font-weight: 700;
    padding: 12px 30px !important;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, #46ae5b 0%, #2d7a3e 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(70, 174, 91, 0.4);
}

/* Navbar Toggle Button Enhancement */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Enhancements */
@media (max-width: 991px) {
    .navbar-nav {
        background: linear-gradient(135deg, rgba(70, 174, 91, 0.95), rgba(45, 122, 62, 0.95));
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 8px;
        text-align: center;
    }
    
    .navbar-light .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .badge-tooltip {
        display: none;
    }
}

/* Scroll Effect JavaScript Enhancement */
.navbar-scroll-effect {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(70, 174, 91, 0.5);
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

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


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/

.footer {
    background-color: #e9e8e6 !important;
}

.footer h4 {
    color: #333333 !important;
}

.footer p {
    color: #555555 !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-weight: normal;
    border: 1px solid #333333;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #555555;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
    color: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.footer .copyright a {
    color: #000000 !important;
}
.footer .copyright a:hover {
    color: var(--primary);
}
.footer .copyright * {
    color: #000000 !important;
}

.footer .copyright a {
    color: #000000 !important;
}

.footer .copyright a:hover {
    color: var(--primary) !important;  /* Optional: green on hover */
}
.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 0, 0, .1);
    color: #555555;
}
.footer .footer-menu a:hover {
    color: var(--primary);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Hover effect for the navbar logo with enhanced glow */
.navbar-brand:hover .navbar-logo,
.badge-tooltip-wrapper:hover .navbar-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) 
            drop-shadow(0 0 12px rgba(70, 174, 91, 0.4));
}
/* Badge tooltip styling */
.badge-tooltip {
    position: absolute;
    bottom: -45px;
    left: 0;
    transform: translateX(0);
    background: linear-gradient(135deg, #2d5a3d 0%, #46ae5b 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 180px;
}

/* Tooltip arrow */
.badge-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 25px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #2d5a3d;
}

/* Show tooltip on hover */
.badge-tooltip-wrapper:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
    transform: translateX(0);
}

/* Enhanced certification glow effect */
.badge-tooltip-wrapper:hover .navbar-logo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) 
            drop-shadow(0 0 16px rgba(70, 174, 91, 0.6))
            drop-shadow(0 0 24px rgba(70, 174, 91, 0.3));
}

/* If you want to add the Primêre Skool badge next to your existing logo */
.navbar-badge {
    height: 45px; /* Slightly smaller than main logo */
    width: auto;
    opacity: 0.95;
    transition: all 0.3s ease;
    margin-left: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-badge:hover {
    opacity: 1;
    transform: translateY(-1px);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

/* Badge tooltip (optional) */
.navbar-badge-wrapper {
    position: relative;
    display: inline-block;
}

.navbar-badge-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-badge-wrapper:hover .navbar-badge-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* Badge separator (optional visual element) */
.badge-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

/* Enhanced navbar styling to complement the badges */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive tooltip behavior */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 45px; /* Smaller on mobile */
    }
    
    .navbar-badge {
        height: 35px; /* Even smaller secondary badge on mobile */
        margin-left: 8px;
    }
    
    .navbar-brand {
        gap: 10px; /* Less gap on mobile */
        padding: 10px 15px;
    }
    
    .badge-tooltip {
        font-size: 0.7rem;
        padding: 6px 10px;
        bottom: -40px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-badge {
        height: 30px;
        margin-left: 6px;
    }
    
    .navbar-brand {
        gap: 8px;
        padding: 8px 12px;
    }
    
    /* Hide tooltip on very small screens to avoid crowding */
    .badge-tooltip {
        display: none;
    }
    
    /* Hide secondary badge on very small screens if needed */
    .navbar-badge.hide-mobile {
        display: none;
    }
}

/* Animation for when page loads */
@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar-badge {
    animation: badgeSlideIn 0.6s ease-out 0.3s both;
}

/* Subtle glow effect for premium look */
.navbar-logo:hover,
.navbar-badge:hover {
    filter: drop-shadow(0 0 8px rgba(70, 174, 91, 0.3));
}

/* If you want to add a "Certified" or "Accredited" text label */
.badge-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-align: center;
    font-weight: 600;
}

.badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Professional certification styling */
.certification-badge {
    position: relative;
    display: inline-block;
}

.certification-badge::after {
    content: "CERTIFIED";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
}

/* Alternative: Badge with verification checkmark */
.verified-badge {
    position: relative;
}

.verified-badge::before {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}
.navbar-logo {
    height: 62px; /* Slightly smaller for better proportion */
    width: auto;
    vertical-align: middle;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative; /* For tooltip positioning */
}
/* Tooltip wrapper for the badge */
.badge-tooltip-wrapper {
    position: relative;
    display: inline-block;
}
.navbar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(70, 174, 91, 0.3));
}

/* Additional styles for other primary colored elements */
.btn-primary {
    background-color: #46ae5b !important;
    border-color: #46ae5b !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #2d7a3e;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    background-color: #2d7a3e !important;
    border-color: #2d7a3e !important;
    color: #FFFFFF !important;
}

.text-primary {
    color: #46ae5b !important;
}

.bg-primary {
    background-color: #46ae5b !important;
}
/* Light button sliding effect */
.btn-light {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #46ae5b;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-light:hover::before {
    left: 0;
}

.btn-light:hover {
    color: #FFFFFF !important;
    border-color: #46ae5b !important;
}

/* Spinner with green color */
.spinner-border.text-primary {
    color: #46ae5b !important;
}

/* Newsletter input */
.footer .form-control {
    background-color: #FFFFFF;
    border: 1px solid #cccccc;
    color: #333333;
}

.footer .form-control::placeholder {
    color: #999999;
    
}

/* Gallery Item Styles */
.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7) 50%, transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item-wrapper:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h5 {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(236, 241, 238, 0.651);
}

.gallery-caption p {
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Modern Lightbox Styles */
.modern-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modern-lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.4s;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.modern-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100000;
}

.modern-close:hover {
    color: #46ae5b;
    transform: scale(1.1);
}

.modern-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    max-width: 80%;
}

.modern-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modern-prev, .modern-next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(70, 174, 91, 0.8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    pointer-events: all;
    user-select: none;
}

.modern-prev:hover, .modern-next:hover {
    background: rgba(70, 174, 91, 1);
    transform: scale(1.1);
}

.modern-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
}

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

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-lightbox-img {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .modern-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
    
    .modern-prev, .modern-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modern-caption {
        font-size: 1rem;
        bottom: 20px;
    }
    
    .gallery-caption {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
        padding: 10px;
    }
}

.gallery-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation types */
.gallery-animate[data-animate="fade-up"] {
    transform: translateY(50px);
}

.gallery-animate[data-animate="fade-down"] {
    transform: translateY(-50px);
}

.gallery-animate[data-animate="fade-left"] {
    transform: translateX(-50px);
}

.gallery-animate[data-animate="fade-right"] {
    transform: translateX(50px);
}

.gallery-animate[data-animate="zoom-in"] {
    transform: scale(0.8);
}

.gallery-animate[data-animate="rotate-in"] {
    transform: rotate(10deg) scale(0.9);
}

/* Stagger effect for multiple items */
.gallery-animate[data-delay="100"] {
    transition-delay: 0.1s;
}

.gallery-animate[data-delay="200"] {
    transition-delay: 0.2s;
}

.gallery-animate[data-delay="300"] {
    transition-delay: 0.3s;
}

.gallery-animate[data-delay="400"] {
    transition-delay: 0.4s;
}

.gallery-animate[data-delay="500"] {
    transition-delay: 0.5s;
}

/* Gallery header animation */
.gallery-header {
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add shimmer effect while loading */
.gallery-item-wrapper {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.gallery-item-wrapper.loaded {
    background: none;
    animation: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Parallax effect on scroll */
.gallery-parallax {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gallery-animate {
        transform: translateY(20px) !important;
    }
}

/* Initial states for GSAP animations */
.gsap-gallery-item {
    opacity: 0;
}

.gsap-image-container {
    overflow: hidden;
    border-radius: 10px;
}

.gsap-image {
    transform: scale(1.2);
}

.gsap-caption {
    opacity: 0;
}

.gsap-title, .gsap-heading {
    opacity: 0;
}

/* Loading state */
.gallery-loading {
    position: relative;
}

.gallery-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #46ae5b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Fix cramped gallery layout */
.container-xxl.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Add more space between sections */
#modernGallery {
    margin-top: 3rem;
}

/* Fix section title spacing */
.section-title {
    margin-bottom: 1rem;
    padding: 0.5rem 2rem;
}

/* Ensure proper spacing for gallery header */
.gallery-header {
    margin-bottom: 3rem;
}

/* Add breathing room to gallery items */
.gallery-item-wrapper {
    margin-bottom: 1.5rem;
}

/* Fix overlapping sections */
section {
    position: relative;
    z-index: 1;
}

/* Ensure gallery section has proper spacing */
.category {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.custom-header-image {
    position: relative;
    background: url('../img/personeel.jpg') center 70% / cover no-repeat;
    height: 200px; /* Smaller, more controlled height */
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.custom-header-ourschool {
    position: relative;
    background: url('../img/personeel.jpg') center 70% / cover no-repeat;
    height: 200px; /* Smaller, more controlled height */
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}


/* Foreground content stays sharp */
.custom-header-image .container {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
/* Blurred background layer */
.custom-header-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/personeel.jpg') center 70% / cover no-repeat;
    filter: blur(2px);
    z-index: 0;
}
/* Dark overlay for contrast */
.custom-header-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Responsive height for mobile */
@media (max-width: 768px) {
    .custom-header-image {
        height: 400px;
    }

    .custom-header-image::after {
        background-position: center 70%;
    }

    .custom-header-image .container {
        font-size: 2rem;
        padding: 0.4em 0.8em;
    }
}
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  margin: 60px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #2eaf5d;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 100px;
}

.timeline-item .timeline-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2eaf5d;
  color: #fff;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.timeline-item .timeline-panel {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 45%;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-panel {
  margin-left: 55%;
}

.timeline-item:nth-child(odd) .timeline-panel {
  margin-right: 55%;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item .timeline-panel {
    width: 90%;
    margin: 40px 0 0 50px !important;
  }

  .timeline-item .timeline-badge {
    left: 20px;
    transform: translateY(-50%);
  }
}

.custom-header-image2 {
    position: relative;
    background: url('../img/schoolback.JPG') center center / cover no-repeat;
    height: 250px; /* Slightly increased height */
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Foreground content stays sharp */
.custom-header-image2 .container {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Stronger text shadow */
}

/* Blurred background layer */
.custom-header-image2::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/schoolback.JPG') center center / cover no-repeat; /* Changed to center center */
    filter: blur(1px); /* Reduced blur */
    z-index: 0;
}

/* Dark overlay for contrast */
.custom-header-image2::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Increased opacity for better text visibility */
    z-index: 1;
}

/* Responsive height for mobile */
@media (max-width: 768px) {
    .custom-header-image2 { /* Fixed typo: was "custom-header-imag2" */
        height: 200px; /* Smaller height for mobile */
    }

    .custom-header-image2::after {
        background-position: center center; /* Better mobile positioning */
    }

    .custom-header-image2 .container {
        font-size: 1.8rem; /* Slightly smaller text for mobile */
        padding: 0.4em 0.8em;
    }
}

/* Optimized Facebook Feed Styles - Compact & Clean */

/* Facebook Header - Modern & Sleek */
.facebook-header {
    background: linear-gradient(135deg, #1877f2 0%, #4267B2 50%, #365899 100%);
    border-radius: 12px;
    padding: 20px 25px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.2);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.facebook-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: facebook-shine 3s ease-in-out infinite;
}

@keyframes facebook-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.facebook-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.facebook-icon:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.facebook-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.facebook-header p {
    margin: 0 0 16px 0;
    opacity: 0.9;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
    line-height: 1.4;
}

.follow-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.follow-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255,255,255,0.1);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Compact Facebook Feed Container */
.facebook-feed-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.facebook-feed-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Refined Feed Header */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1877f2;
    font-size: 1rem;
}

.feed-title i {
    font-size: 1.1rem;
}

.view-full-btn {
    background: #46ae5b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.view-full-btn:hover {
    background: #5cbf70;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(70, 174, 91, 0.25);
}

/* Compact Facebook Timeline */
.facebook-timeline-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    min-height: 500px;
}

.facebook-timeline-wrapper iframe {
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
}

/* Simplified Loading Overlay */
.facebook-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.facebook-loading-content {
    text-align: center;
    color: #1877f2;
}

.facebook-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #1877f2;
    border-radius: 50%;
    animation: facebook-spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes facebook-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.facebook-loading-content p {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* Social Actions Bar */
.social-actions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.social-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.social-action.like {
    color: #1877f2;
}

.social-action.share {
    color: #46ae5b;
}

.social-action.follow {
    color: #ff6b35;
}

.social-action:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-2px);
    text-decoration: none;
}

.social-action i {
    font-size: 1.2rem;
}

.social-action span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design - Optimized & Modern */
@media (max-width: 768px) {
    .facebook-header {
        padding: 18px 20px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .facebook-header h3 {
        font-size: 1.3rem;
    }

    .facebook-header p {
        font-size: 0.85rem;
    }

    .facebook-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .follow-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .facebook-feed-container {
        padding: 15px;
        max-width: 100%;
    }

    .feed-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .facebook-timeline-wrapper {
        min-height: 450px;
    }

    .facebook-timeline-wrapper iframe {
        width: 100% !important;
        height: 450px !important;
    }

    .social-actions {
        gap: 8px;
    }

    .social-action {
        padding: 8px;
    }

    .social-action span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .facebook-header {
        padding: 15px;
    }

    .facebook-header h3 {
        font-size: 1.2rem;
    }

    .facebook-header p {
        font-size: 0.8rem;
    }

    .facebook-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .follow-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .facebook-feed-container {
        padding: 12px;
    }

    .facebook-timeline-wrapper {
        min-height: 400px;
    }

    .facebook-timeline-wrapper iframe {
        width: 100% !important;
        height: 400px !important;
    }

    .view-full-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
/* Modern Footer Badge Styling */

/* Footer badge container */
.footer-credentials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Modern Footer Badge Styling */

/* Footer badge container */
.footer-credentials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Main badge styling */
.footer-badge {
    width: 120px; /* Increased from 100px */
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    opacity: 0.95;
    border-radius: 0; /* Remove border radius */
    background: transparent; /* Remove white background */
    padding: 0; /* Remove padding */
}

/* Modern hover effects */
.footer-badge:hover {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 16px rgba(70, 174, 91, 0.4));
    opacity: 1;
}

/* Badge label */
.badge-label {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-badge:hover + .badge-label,
.footer-credentials:hover .badge-label {
    color: var(--primary);
    opacity: 1;
}

/* Professional credentials section */
.credentials-section {
    text-align: right;
}

.credentials-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Multiple badges layout */
.badges-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

/* Alternative: Horizontal layout for multiple badges */
.badges-horizontal {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.badges-horizontal .footer-badge {
    width: 100px; /* Bigger even when multiple badges */
}

/* Sleek glass morphism effect */
.footer-badge-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Modern floating style - removed background and styling */
.footer-badge-floating {
    position: relative;
    background: transparent; /* Remove white background */
    border-radius: 0; /* Remove border radius */
    padding: 0; /* Remove padding */
    box-shadow: none; /* Remove box shadow */
    border: none; /* Remove border */
}

.footer-badge-floating::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(70, 174, 91, 0.1), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* Remove verification indicator - not needed */
/* .verification-mark styles removed */

/* Footer integration */
.footer .col-lg-3.credentials-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .footer-credentials {
        align-items: center;
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light border for dark footer */
    }
    
    .credentials-section {
        text-align: center;
    }
    
    .footer-badge {
        width: 100px; /* Maintained larger size on tablet */
    }
    
    .badges-horizontal {
        justify-content: center;
    }
    
    .badge-label {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-badge {
        width: 90px; /* Still quite large even on mobile */
    }
    
    .credentials-title {
        font-size: 0.8rem;
    }
    
    .badge-label {
        font-size: 0.7rem;
    }
}

/* Animation on scroll into view */
@keyframes badgeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.footer-badge {
    animation: badgeSlideUp 0.6s ease-out;
}

/* Professional tooltip for footer badge */
.footer-badge-wrapper {
    position: relative;
    display: inline-block;
}

.footer-tooltip {
    position: absolute;
    bottom: 110%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.footer-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
}

.footer-badge-wrapper:hover .footer-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 115%;
}

/* Curved Card Design for Principal Image */
.principal-card {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 100%;
    border-radius: 40px;
    background: #fff;
    transition: .5s;
    overflow: hidden;
    transform-origin: bottom;
    box-shadow: 0px 20px 25px rgba(25, 25, 25, 0.15);
}

.principal-card:hover {
    min-height: 420px;
}

.principal-card .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4c4c4c;
    background-image: url('../img/hoof.jpg');
    background-repeat: no-repeat;
    background-position: center 4%;
    background-size: 100%;
    transition: .3s;
}

.principal-card:hover .card-img {
    transform: scale(1.02);
}

.principal-card .card-img::before {
    content: '';
    position: absolute;
    bottom: -40px;
    width: 100%;
    height: 80px;
    border-radius: 40px;
    background: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

.principal-card:hover .card-img::before {
    opacity: 1;
    bottom: -40px;
}

.principal-card .card-img::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 75px 70px 0 40px #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

.principal-card:hover .card-img::after {
    opacity: 1;
}

.principal-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 30px;
    background: #fff;
    border-radius: 0 0 40px 40px;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.principal-card:hover .card-content {
    transform: translateY(0);
}

.principal-card .card-content h3 {
    position: relative;
    font-size: 20px;
    color: #222;
    font-weight: 600;
}

.principal-card .card-content h3 span {
    position: absolute;
    bottom: -12px;
    font-weight: 400;
    font-size: 12px;
    opacity: .75;
}

.principal-card .card-content p {
    position: relative;
    color: #222;
    transition: .5s;
    opacity: 1;
    padding-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustments for the card */
@media (max-width: 768px) {
    .principal-card {
        height: 350px;
        border-radius: 30px;
    }
    
    .principal-card:hover {
        height: 370px;
    }
    
    .principal-card .card-content {
        padding: 15px 20px;
        border-radius: 0 0 30px 30px;
    }
    
    .principal-card .card-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .principal-card {
        height: 320px;
        border-radius: 25px;
    }
    
    .principal-card:hover {
        height: 340px;
    }
    
    .principal-card .card-content {
        padding: 12px 15px;
        border-radius: 0 0 25px 25px;
    }
    
    .principal-card .card-content h3 {
        font-size: 16px;
    }
}

  /* ===========================================
           COMPLETE FAQ INTEGRATION STYLES
           Copy this entire CSS section to your style.css
        =========================================== */
        
        :root {
            --primary: #46ae5b;
            --light: #F0FBFC;
            --dark: #181d38;
        }

        /* Global FAQ Styles */
        .text-primary { color: var(--primary) !important; }
        .bg-primary { background-color: var(--primary) !important; }
        .btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
        .btn-primary:hover { background-color: #2d7a3e !important; border-color: #2d7a3e !important; }

        /* Section Title (matching your existing style) */
        .section-title {
            position: relative;
            display: inline-block;
            text-transform: uppercase;
        }

        .section-title::before {
            position: absolute;
            content: "";
            width: calc(100% + 80px);
            height: 2px;
            top: 4px;
            left: -40px;
            background: var(--primary);
            z-index: -1;
        }

        .section-title::after {
            position: absolute;
            content: "";
            width: calc(100% + 120px);
            height: 2px;
            bottom: 5px;
            left: -60px;
            background: var(--primary);
            z-index: -1;
        }
         /* ========================================
           1. FLOATING FAQ BUTTON (GLOBAL)
        ======================================== */
        .floating-faq-widget {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 9999;
            font-family: 'Nunito', sans-serif;
        }

        .faq-floating-btn {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), #2d7a3e);
            color: white;
            border: none;
            font-size: 26px;
            box-shadow: 0 8px 25px rgba(70, 174, 91, 0.4);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            animation: faqPulse 3s infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

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

        .faq-floating-btn:hover::before {
            left: 100%;
        }

        .faq-floating-btn:hover {
            transform: scale(1.15);
            box-shadow: 0 15px 40px rgba(70, 174, 91, 0.6);
            animation: none;
        }

        @keyframes faqPulse {
            0%, 100% { 
                box-shadow: 0 8px 25px rgba(70, 174, 91, 0.4);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 8px 25px rgba(70, 174, 91, 0.4), 0 0 0 15px rgba(70, 174, 91, 0.1);
                transform: scale(1.05);
            }
        }

        .faq-notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4444;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        .faq-popup {
            position: fixed;
            bottom: 110px;
            right: 30px;
            width: 380px;
            max-width: calc(100vw - 60px);
            max-height: 600px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            transform: translateY(30px) scale(0.8);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10000;
            overflow: hidden;
        }

        .faq-popup.show {
            transform: translateY(0) scale(1);
            opacity: 1;
            visibility: visible;
        }

        .faq-popup-header {
            padding: 25px;
            background: linear-gradient(135deg, var(--primary), #2d7a3e);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .faq-popup-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            animation: float 20s infinite linear;
        }

        .faq-popup-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
        }

        .faq-popup-close:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg) scale(1.1);
        }

        .faq-popup-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin: 0 0 8px 0;
            position: relative;
            z-index: 1;
        }

        .faq-popup-subtitle {
            opacity: 0.9;
            margin: 0;
            position: relative;
            z-index: 1;
        }

        .faq-popup-body {
            max-height: 450px;
            overflow-y: auto;
            padding: 0;
        }

        .faq-popup-search {
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            position: sticky;
            top: 0;
            background: white;
            z-index: 5;
        }

        .faq-popup-search input {
            width: 100%;
            padding: 12px 40px 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .faq-popup-search input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(70, 174, 91, 0.1);
        }

        .faq-popup-search-icon {
            position: absolute;
            right: 35px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }

        .faq-popup-content {
            padding: 10px 20px 20px;
        }

        .quick-faq-item {
            padding: 15px 18px;
            border: 1px solid #f0f0f0;
            border-radius: 12px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: #fafafa;
            position: relative;
            overflow: hidden;
        }

        .quick-faq-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: var(--primary);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .quick-faq-item:hover {
            background: rgba(70, 174, 91, 0.05);
            border-color: var(--primary);
            transform: translateX(8px);
        }

        .quick-faq-item:hover::before {
            transform: scaleY(1);
        }

        .quick-faq-question {
            font-weight: 600;
            color: #333;
            margin: 0 0 5px 0;
            font-size: 0.95rem;
        }

        .quick-faq-answer {
            color: #666;
            font-size: 0.85rem;
            margin: 0;
            line-height: 1.4;
        }

        .faq-popup-footer {
            padding: 20px;
            text-align: center;
            background: #f8f9fa;
            border-top: 1px solid #e0e0e0;
        }

        .faq-popup-footer .btn {
            border-radius: 25px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .faq-popup-footer .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(70, 174, 91, 0.3);
        }
         /* ========================================
           2. HOMEPAGE FAQ CAROUSEL SECTION
        ======================================== */
        .homepage-faq-carousel {
            background: linear-gradient(135deg, var(--primary) 0%, #2d7a3e 100%);
            color: white;
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            margin: 50px 0;
        }

        .homepage-faq-carousel::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M50 50m-20 0a20,20 0 1,1 40,0a20,20 0 1,1 -40,0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            animation: float 30s infinite linear;
        }

        @keyframes float {
            0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
            100% { transform: translateX(0%) translateY(0%) rotate(360deg); }
        }

        .faq-carousel-header {
            text-align: center;
            padding: 40px 30px 20px;
            position: relative;
            z-index: 1;
        }

        .faq-carousel-counter {
            position: absolute;
            top: 30px;
            right: 30px;
            background: rgba(255,255,255,0.2);
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            backdrop-filter: blur(10px);
        }

        .faq-carousel-body {
            padding: 20px 40px;
            min-height: 220px;
            position: relative;
            z-index: 1;
        }

        .faq-carousel-item {
            opacity: 0;
            transform: translateX(50px);
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            position: absolute;
            width: calc(100% - 80px);
            top: 20px;
            left: 40px;
            right: 40px;
            text-align: center;
        }

        .faq-carousel-item.active {
            opacity: 1;
            transform: translateX(0);
            position: relative;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
        }

        .faq-carousel-question {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: white;
        }

        .faq-carousel-answer {
            font-size: 1.1rem;
            line-height: 1.6;
            color: rgba(255,255,255,0.9);
            margin: 0;
        }

        .faq-carousel-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 40px;
            position: relative;
            z-index: 1;
        }

        .faq-carousel-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            backdrop-filter: blur(10px);
        }

        .faq-carousel-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        .faq-carousel-btn:disabled {
            background: rgba(255,255,255,0.1);
            cursor: not-allowed;
            transform: none;
        }

        .faq-carousel-indicators {
            display: flex;
            gap: 12px;
        }

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

        .faq-carousel-indicator.active {
            background: white;
            transform: scale(1.3);
        }

        /* ========================================
           3. CONTACT PAGE SEARCH WIDGET
        ======================================== */
        .contact-faq-search {
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 40px;
        }

        .contact-faq-header {
            background: linear-gradient(135deg, var(--primary), #2d7a3e);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .contact-faq-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            animation: float 25s infinite linear;
        }

        .contact-faq-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0 0 10px 0;
            position: relative;
            z-index: 1;
        }

        .contact-faq-subtitle {
            opacity: 0.9;
            margin: 0 0 25px 0;
            position: relative;
            z-index: 1;
        }

        .contact-search-container {
            position: relative;
            max-width: 500px;
            margin: 0 auto;
            z-index: 1;
        }

        .contact-search-input {
            width: 100%;
            padding: 18px 60px 18px 25px;
            border: none;
            border-radius: 30px;
            font-size: 1.1rem;
            background: rgba(255,255,255,0.95);
            color: #333;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .contact-search-input::placeholder {
            color: #666;
        }

        .contact-search-input:focus {
            outline: none;
            background: white;
            box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
            transform: scale(1.02);
        }

        .contact-search-icon {
            position: absolute;
            right: 25px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
            font-size: 1.3rem;
        }

        .contact-search-results {
            padding: 30px;
            max-height: 400px;
            overflow-y: auto;
        }

        .contact-search-item {
            padding: 20px;
            border: 1px solid #e0e0e0;
            border-radius: 15px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: #fafafa;
            position: relative;
            overflow: hidden;
        }

        .contact-search-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 5px;
            height: 100%;
            background: var(--primary);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .contact-search-item:hover {
            background: rgba(70, 174, 91, 0.05);
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .contact-search-item:hover::before {
            transform: scaleY(1);
        }

        .contact-search-question {
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .contact-search-answer {
            color: #666;
            margin: 0;
            line-height: 1.6;
        }

        .contact-search-category {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 10px;
        }

        /* ========================================
           4. OUR SCHOOL PAGE SIDEBAR
        ======================================== */
        .school-sidebar-faq {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow: hidden;
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .school-sidebar-header {
            background: linear-gradient(135deg, var(--primary), #2d7a3e);
            color: white;
            padding: 25px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .school-sidebar-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            animation: float 20s infinite linear;
        }

        .school-sidebar-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin: 0 0 5px 0;
            position: relative;
            z-index: 1;
        }

        .school-sidebar-subtitle {
            opacity: 0.9;
            margin: 0;
            font-size: 0.9rem;
            position: relative;
            z-index: 1;
        }

        .school-sidebar-body {
            padding: 25px;
            max-height: 500px;
            overflow-y: auto;
        }

        .school-sidebar-item {
            padding: 15px 20px;
            border-left: 4px solid transparent;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 12px 12px 0;
            background: #f8f9fa;
            position: relative;
        }

        .school-sidebar-item:hover {
            border-left-color: var(--primary);
            background: rgba(70, 174, 91, 0.05);
            transform: translateX(8px);
        }

        .school-sidebar-question {
            font-weight: 600;
            color: #333;
            margin: 0 0 5px 0;
            font-size: 0.95rem;
        }

        .school-sidebar-answer {
            color: #666;
            font-size: 0.85rem;
            margin: 0;
            line-height: 1.4;
        }

        .school-sidebar-footer {
            padding: 20px 25px;
            text-align: center;
            background: #f8f9fa;
            border-top: 1px solid #e0e0e0;
        }

        /* ========================================
           5. NAVIGATION MENU UPDATES
        ======================================== */
        .navbar-nav .faq-nav-item {
            position: relative;
        }

        .navbar-nav .faq-nav-item::after {
            content: '';
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: #c5f5d0;
            transition: width 0.3s ease;
        }

        .navbar-nav .faq-nav-item:hover::after,
        .navbar-nav .faq-nav-item.active::after {
            width: 80%;
        }

        /* ========================================
           6. FOOTER FAQ LINKS
        ======================================== */
        .footer-faq-section {
            background: linear-gradient(135deg, rgba(70, 174, 91, 0.05), rgba(70, 174, 91, 0.1));
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
        }

        .footer-faq-title {
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .footer-faq-link {
            display: block;
            color: #555;
            text-decoration: none;
            padding: 8px 0;
            transition: all 0.3s ease;
            position: relative;
            padding-left: 20px;
        }

        .footer-faq-link::before {
            content: "\f105";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--primary);
            transition: transform 0.3s ease;
        }

        .footer-faq-link:hover {
            color: var(--primary);
            padding-left: 25px;
        }

        .footer-faq-link:hover::before {
            transform: translateX(5px);
        }

        /* ========================================
           7. RESPONSIVE DESIGN
        ======================================== */
        @media (max-width: 768px) {
            .floating-faq-widget {
                bottom: 20px;
                right: 20px;
            }

            .faq-floating-btn {
                width: 55px;
                height: 55px;
                font-size: 22px;
            }

            .faq-popup {
                right: 20px;
                left: 20px;
                width: auto;
                bottom: 85px;
            }

            .homepage-faq-carousel {
                margin: 30px 0;
                border-radius: 15px;
            }

            .faq-carousel-header {
                padding: 30px 20px 15px;
            }

            .faq-carousel-counter {
                top: 20px;
                right: 20px;
                padding: 6px 15px;
            }

            .faq-carousel-body {
                padding: 15px 25px;
                min-height: 180px;
            }

            .faq-carousel-question {
                font-size: 1.2rem;
            }

            .faq-carousel-answer {
                font-size: 1rem;
            }

            .faq-carousel-controls {
                padding: 20px 25px;
            }

            .contact-faq-header {
                padding: 25px 20px;
            }

            .contact-faq-title {
                font-size: 1.5rem;
            }

            .contact-search-input {
                padding: 15px 50px 15px 20px;
                font-size: 1rem;
            }

            .contact-search-results {
                padding: 20px;
            }

            .school-sidebar-faq {
                position: relative;
                top: 0;
                margin-bottom: 30px;
            }

            .school-sidebar-body {
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .faq-floating-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            .faq-popup-header {
                padding: 20px;
            }

            .faq-popup-title {
                font-size: 1.1rem;
            }

            .quick-faq-item {
                padding: 12px 15px;
            }

            .quick-faq-question {
                font-size: 0.9rem;
            }

            .faq-carousel-question {
                font-size: 1.1rem;
            }

            .faq-carousel-answer {
                font-size: 0.95rem;
            }

            .contact-faq-title {
                font-size: 1.3rem;
            }
        }

        /* ========================================
           8. SCROLL ANIMATIONS
        ======================================== */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

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

        /* ========================================
           9. CUSTOM SCROLLBARS
        ======================================== */
        .faq-popup-body::-webkit-scrollbar,
        .contact-search-results::-webkit-scrollbar,
        .school-sidebar-body::-webkit-scrollbar {
            width: 6px;
        }

        .faq-popup-body::-webkit-scrollbar-track,
        .contact-search-results::-webkit-scrollbar-track,
        .school-sidebar-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .faq-popup-body::-webkit-scrollbar-thumb,
        .contact-search-results::-webkit-scrollbar-thumb,
        .school-sidebar-body::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        .faq-popup-body::-webkit-scrollbar-thumb:hover,
        .contact-search-results::-webkit-scrollbar-thumb:hover,
        .school-sidebar-body::-webkit-scrollbar-thumb:hover {
            background: #2d7a3e;
        }