
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }
/*** Spinner End ***/


/*** Common CSS Start ***/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
    font-weight: 200;
    font-family: 'Montserrat', sans-serif;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.display-4,
.display-5,
.display-6 {
    font-weight: 600;
}

.wow,
.animated {
    animation-duration: 2s !important;
}
/*** Common CSS End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    border: 0;
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.btn-border-radius {
    border-radius: 25% 10%;
}

.img-border-radius {
    border-radius: 50% 20% / 10% 40%;
}

.title-border-radius {
    border-radius: 10% 30%;
}

/* Bouncy animation for Get Started button */
@keyframes bouncyButton {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15) rotate(2deg);
    }
    50% {
        transform: scale(1.25) rotate(-2deg);
    }
    75% {
        transform: scale(1.15) rotate(2deg);
    }
}

.btn-bouncy {
    animation: bouncyButton 2s ease-in-out infinite;
    transform-origin: center;
}

.btn-bouncy:hover {
    animation-play-state: paused;
}
/*** Button End ***/


/*** Topbar Start ***/
.topbar .top-info {
    font-size: medium;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

.topbar .top-link a:hover {
    background: var(--bs-secondary) !important;
}

.topbar .top-link a:hover i {
    color: var(--bs-primary) !important;
}
/*** Topbar End ***/


/*** Navbar Start ***/
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        font-weight: 400;
        font-family: 'Fredoka', sans-serif;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}
/*** Navbar End ***/


/*** Hero Header ***/
.hero-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

.hero-carousel {
    margin: 0;
    padding: 0;
    display: block;
}

.hero-carousel .owl-stage-outer,
.hero-carousel .owl-stage {
    margin: 0;
    padding: 0;
}

/* Fade transition for carousel */
.owl-carousel .animated {
    animation-duration: 1s;
}

.owl-carousel .owl-animated-in {
    z-index: 0;
}

.owl-carousel .owl-animated-out {
    z-index: 1;
}

.owl-carousel .fadeOut {
    animation-name: fadeOut;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.owl-carousel .fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


.hero-carousel .owl-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.hero-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
}

.hero-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}

.hero-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.hero-carousel .owl-dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
}

.hero-carousel .owl-dot.active {
    background: rgba(255, 255, 255, 1) !important;
}

.hero-slide {
    min-height: 75vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-header {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    margin: 0;
}

.hero-animated-title {
    transition: opacity 0.5s ease-in-out;
}

/* Remove gap between hero and next section */
.about {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

/* Prevent white space issues */
.container-fluid.about {
    padding-top: 3rem !important;
}

.hero-carousel .owl-item {
    margin: 0;
    padding: 0;
}

.owl-carousel.hero-carousel {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.owl-carousel.hero-carousel .owl-stage-outer {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.owl-carousel.hero-carousel .owl-stage {
    margin: 0 !important;
    padding: 0 !important;
}

.owl-carousel.hero-carousel .owl-item .hero-slide {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure no vertical spacing in carousel */
.hero-carousel-wrapper,
.hero-carousel,
.hero-carousel .owl-stage-outer,
.hero-carousel .owl-stage,
.hero-carousel .owl-item {
    vertical-align: top;
}

.hero-carousel .owl-item img {
    display: block;
}

/* Additional fixes to remove white space after carousel */
.hero-carousel-wrapper + .about,
.hero-carousel-wrapper + div {
    margin-top: 0 !important;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)), url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-about {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)), url(../img/header_contact.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)), url(../img/header_contact.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-events {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)), url(../img/header_events.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-staff {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)), url(../img/header_stuff.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-gallery {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05)), url(../img/gallery_3.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}
/*** Hero Header ***/


/*** About Start ***/
.video {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url(../img/about.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-secondary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.video.border {
    border-radius: 50% 20% / 10% 40%;
}

.about {
    background: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
/*** About End ***/


/*** service Start ***/
.service {
    background: linear-gradient(rgba(255, 72, 128, 0.05), rgba(255, 72, 128, 0.2));
}

.service.bg-blue-light {
    background: linear-gradient(rgba(43, 76, 126, 0.05), rgba(43, 76, 126, 0.15)) !important;
}

.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    width: 100%;
    height: 100%;
    border-radius: 50% 20% / 10% 40%;
    transition: 0.5s;
    position: relative;
}

.service-content::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    right: auto;
    background: transparent;
    border-radius: 50% 20% / 10% 40%;
    transition: .5s;
}

.service-item:hover {
    border: 1px solid var(--bs-secondary) !important;
}

.service-item:hover .service-content::after {
    background: var(--bs-secondary);
    width: 100%;
    opacity: 1;
    z-index: 1;
}

.service-item .service-content .service-content-inner {
    position: relative;
    z-index: 2;
}

.service-item .service-content-inner i,
.service-item .service-content-inner p,
.service-item .service-content-inner a.h4 {
    transition: 0.5s;
}

.service-item:hover .service-content-inner i,
.service-item:hover .service-content-inner p {
    color: var(--bs-white) !important;
}
.service-item:hover .service-content-inner a.h4 {
    color: var(--bs-primary);
}

.service-item:hover .service-content-inner a.btn-primary {
    background: var(--bs-white) !important;
    color: var(--bs-primary) !important;
}

.service-item .service-content-inner a.btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}
/*** Service End ***/


/*** Programs Start ***/
.program {
    background: linear-gradient(rgba(255, 72, 128, 0.1), rgba(255, 72, 128, 0.1));
}

.program .program-item .program-img .program-rate {
    position: absolute;
    width: 100px; 
    top: -20px; 
    left: 50%; 
    margin-left: -50px; 
    border-radius: 10% / 50%;
}

.program .program-item .program-text {
    padding-top: 150px; 
    margin-top: -125px;
}

.program .program-item .program-img img,
.program .program-item .program-teacher img,
.program .program-item:hover .program-text-inner a.h4 {
    transition: 0.5s;
}

.program .program-item:hover .program-img img,
.program .program-item:hover .program-teacher img {
    transform: scale(1.2);
}

.program .program-item:hover .program-text-inner a.h4 {
    color: var(--bs-primary) !important;
}
/*** Programs End ***/


/*** Events Start ***/
.events .events-item {
    width: 100%;
    height: 100%;
    border-radius: 30%;
    position: relative;
}

.events .events-item .events-inner .events-rate {
    position: absolute;
    width: 120px; 
    top: -20px; 
    left: 50%; 
    margin-left: -60px; 
    border-radius: 10% / 50%;
}

.events .events-item .events-inner .events-img .event-overlay {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    z-index: 1;
    opacity: 0;
}

.events .events-item .events-inner .events-img:hover .event-overlay {
    opacity: 1;
}

.events .events-item .events-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: rgba(77, 101, 249, .7);
    border-radius: 10px;
    transition: 0.5s;
}

.events .events-item:hover .events-img::after {
    height: 100%;
    opacity: 1;
}

.events .events-item .events-text a.h4,
.events .events-item .events-img img {
    transition: 0.5s;
}

.events .events-item:hover .events-text a.h4 {
    color: var(--bs-primary) !important;
}

.events .events-item:hover .events-img img {
    transform: scale(1.3);
}
/*** Events End ***/


/*** Blog Start ***/
.blog .blog-item .blog-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: rgba(77, 101, 249, .7);
    border-radius: 10px 10px 0 0;
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img::after {
    height: 100%;
    opacity: 1;
}

.blog .blog-item .blog-date-comments {
    padding-top: 150px !important; 
    margin-top: -125px;
}

.blog .blog-item .blog-img img,
.blog .blog-item .blog-content img,
.blog .blog-item .blog-text-inner a.h4 {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-content img {
    transform: scale(1.3);
}

.blog .blog-item:hover .blog-text-inner a.h4 {
    color: var(--bs-primary);
}
/*** Blog End ***/


/*** Gallery Start ***/
.gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
}

.gallery .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery .gallery-img {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--bs-primary);
    border-radius: 10px;
}

.gallery .gallery-img img {
    transition: 0.5s;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: 300px;
}

.gallery .gallery-item:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 101, 249, 0.7);
    opacity: 0;
    transition: 0.5s;
    border-radius: 10px;
}

.gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery .gallery-overlay .btn {
    transition: 0.5s;
}

.gallery .gallery-overlay .btn:hover {
    transform: scale(1.2);
}
/*** Gallery End ***/


/*** Team Start ***/
.team .team-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.team .team-item .team-icon {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
}

.team .team-item .team-icon a.share-link {
    opacity: 0;
    transition: 0.5s;
}

.team .team-item:hover .team-icon a.share-link {
    opacity: 1;
}

.team .team-item .team-content,
.team .team-item .team-content h4,
.team .team-item .team-content p {
    transition: 0.5s;
}

.team .team-item:hover .team-content {
    background: var(--bs-primary) !important;
    border-radius: 0 0 10px 10px;
}

.team .team-item:hover .team-content h4 {
    color: var(--bs-white) !important;
}

.team .team-item:hover .team-content p {
    color: var(--bs-dark) !important;
}
/*** Team end ***/


/*** testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
    
}

.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-secondary);
}
/*** testimonial End ***/


/*** Footer Start ***/
.footer {
    background: #f8f9fa;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer .footer-galary-img img {
    width: 100%;
    border-style: dotted; 
    border-color: var(--bs-primary);
    transition: 0.5s;
}

.footer .footer-galary-img img:hover {
    transform: scale(1.2);
}

.footer-item a.text-body:hover {
    color: var(--bs-secondary) !important;
}
/*** Footer End ***/


/*** Custom Dark Blue Color ***/
:root {
    --bs-blue-dark: #2b4c7e;
}

.text-blue-dark {
    color: #2b4c7e !important;
}

.bg-blue-dark {
    background-color: #2b4c7e !important;
}

.border-blue-dark {
    border-color: #2b4c7e !important;
}

.btn-blue-dark {
    background-color: #2b4c7e !important;
    border-color: #2b4c7e !important;
    color: #ffffff !important;
}

.btn-blue-dark:hover {
    background-color: #1e3a5f !important;
    border-color: #1e3a5f !important;
}

.bg-blue-light {
    background-color: #e8f1f8 !important;
}
/*** Custom Dark Blue Color End ***/


/*** Floating WhatsApp Button ***/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-top: 0;
    color: #FFF;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
/*** Floating WhatsApp Button End ***/


/*** Floating Call Button ***/
.call-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background-color: #2b4c7e;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-call 2s infinite;
}

.call-float:hover {
    background-color: #1e3a5f;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.call-float i {
    margin-top: 0;
    color: #FFF;
}

@keyframes pulse-call {
    0% {
        box-shadow: 0 0 0 0 rgba(43, 76, 126, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(43, 76, 126, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(43, 76, 126, 0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .call-float {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
        font-size: 25px;
    }
}
/*** Floating Call Button End ***/


/*** Mobile Optimization Start ***/
@media (max-width: 768px) {
    /* Reduce overall padding and margins for mobile */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Reduce section padding */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Specifically target About section to remove any top spacing */
    .py-5.about {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .py-5.about .container {
        padding-top: 2rem !important;
    }

    /* Bigger logo on mobile */
    .navbar-brand img {
        height: 80px !important;
    }

    /* Compact navigation */
    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Hide "Have any questions" on mobile navbar since we have floating buttons */
    .d-lg-none.me-4 {
        display: none !important;
    }

    /* Reduce heading sizes */
    h1, .h1 {
        font-size: 1.75rem !important;
    }

    h2, .h2 {
        font-size: 1.5rem !important;
    }

    h3, .h3 {
        font-size: 1.25rem !important;
    }

    h4, .h4 {
        font-size: 1.1rem !important;
    }

    .display-1 {
        font-size: 2.5rem !important;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-3 {
        font-size: 1.75rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    /* Compact hero section */
    .hero-slide {
        min-height: 50vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-header {
        padding: 2rem 0 !important;
        min-height: 50vh !important;
        margin: 0 !important;
    }

    .hero-carousel-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    .hero-carousel,
    .hero-carousel .owl-stage-outer,
    .hero-carousel .owl-stage {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Ensure about section starts immediately */
    .about {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }

    .container-fluid.about {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }

    /* Remove any owl carousel spacing on mobile */
    .owl-carousel.hero-carousel .owl-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-carousel .owl-nav {
        padding: 0 10px;
    }

    .hero-carousel .owl-nav button {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .hero-carousel .owl-dots {
        bottom: 15px;
    }

    .hero-carousel .owl-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 3px !important;
    }

    /* Reduce margins and gaps */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .g-4, .g-5 {
        --bs-gutter-y: 1.5rem !important;
    }

    /* Compact cards */
    .service-item,
    .team-item,
    .testimonial-item {
        margin-bottom: 1rem !important;
    }

    /* Smaller icons */
    .fa-6x {
        font-size: 3rem !important;
    }

    .fa-5x {
        font-size: 2.5rem !important;
    }

    .fa-4x {
        font-size: 2rem !important;
    }

    /* Compact buttons */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Reduce image heights for page headers */
    .page-header {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        min-height: 200px !important;
    }

    /* Compact footer */
    .footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .footer .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Stack footer columns on mobile */
    .footer .row .col-md-6,
    .footer .row .col-md-12,
    .footer .row .col-lg-6,
    .footer .row .col-lg-12,
    .footer .row .col-xl-3,
    .footer .row .col-xl-4,
    .footer .row .col-xl-5 {
        margin-bottom: 1rem !important;
    }

    .footer .footer-item h2,
    .footer .footer-item h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .footer .footer-item p,
    .footer .footer-item a {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hide breadcrumb on mobile to save space */
    .breadcrumb {
        display: none !important;
    }

    /* Compact service content */
    .service-content {
        padding: 1rem !important;
    }

    .service-content-inner {
        padding: 0.5rem !important;
    }

    .service-content-inner .p-4 {
        padding: 1rem !important;
    }

    /* Make text more readable on mobile */
    p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Compact about section */
    .about-img {
        margin-bottom: 1rem !important;
    }

    /* Hide empty video div on mobile to save space */
    .about .video.border {
        display: none !important;
    }

    /* Compact extracurricular activities */
    .program-item {
        margin: 0 0.5rem !important;
    }

    .program-text {
        padding: 1rem !important;
    }

    .program-text-inner p {
        margin-top: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Reduce owl carousel margin on mobile */
    .owl-carousel .owl-item {
        margin: 0 5px !important;
    }

    .owl-carousel {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    /* Reduce carousel item padding */
    .owl-carousel .owl-item img {
        width: 100%;
        height: auto;
    }

    /* Compact testimonial items */
    .testimonial-item {
        padding: 1rem !important;
    }

    .testimonial-item p {
        margin-bottom: 0.5rem !important;
    }

    /* Hide decorative elements on mobile */
    .title-border-radius {
        display: inline-block !important;
        padding: 0.25rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Compact team section */
    .team-content {
        padding: 0.75rem !important;
    }

    /* Optimize gallery spacing */
    .gallery-item {
        margin-bottom: 1rem !important;
    }

    /* Make modal search more compact */
    .modal-body .input-group {
        width: 90% !important;
    }

    /* Reduce animation delays on mobile for faster feel */
    .wow {
        animation-duration: 0.5s !important;
    }

    [data-wow-delay] {
        animation-delay: 0.1s !important;
    }
}

/* Extra small devices optimization */
@media (max-width: 576px) {
    /* Even more compact on very small screens */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    h1, .h1 {
        font-size: 1.5rem !important;
    }

    .display-1, .display-2 {
        font-size: 1.75rem !important;
    }

    .display-3, .display-4 {
        font-size: 1.5rem !important;
    }

    /* Hero title wrapping for mobile */
    .hero-animated-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        max-width: 90% !important;
        word-wrap: break-word !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem !important;
    }

    /* Hide less critical sections to reduce scrolling */
    .page-header {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        min-height: 150px !important;
    }

    /* Very compact margins */
    .mb-4, .mb-5 {
        margin-bottom: 1rem !important;
    }

    .g-4, .g-5 {
        --bs-gutter-y: 1rem !important;
    }

    /* Push hero content down on mobile to avoid covering faces */
    .hero-header .container .row .col-lg-7 {
        padding-top: 2rem !important;
    }

    /* Programs page mobile optimization */
    .program .row img {
        margin-bottom: 1.5rem !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }

    .program .row h2 {
        font-size: 1.5rem !important;
        margin-top: 0 !important;
    }

    .program .row .col-lg-6,
    .program .row .col-12 {
        padding: 1rem !important;
    }

    /* Ensure proper stacking on mobile */
    .program .row .order-lg-2,
    .program .row .order-lg-1 {
        order: 0 !important;
    }
}
/*** Mobile Optimization End ***/


/*** Class Carousel Container Start ***/
.class-carousel-container {
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.class-carousel-container .owl-carousel .item {
    width: 100%;
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.class-carousel-container .owl-carousel .item .overflow-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.class-carousel-container .owl-carousel .item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation arrows styling */
.class-carousel-container .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.class-carousel-container .owl-nav button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.class-carousel-container .owl-nav button:hover {
    background: var(--bs-primary) !important;
    color: white !important;
    transform: scale(1.1);
}

.class-carousel-container .owl-nav button i {
    font-size: 20px;
}

.class-carousel-container .owl-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.class-carousel-container .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7) !important;
    margin: 0 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.class-carousel-container .owl-dot.active {
    background: var(--bs-primary) !important;
    width: 35px;
    border-radius: 7px;
}

/* Mobile optimizations */
@media (max-width: 991px) {
    .class-carousel-container .owl-carousel .item {
        padding-bottom: 65%; /* Slightly wider on tablets */
    }

    .class-carousel-container .owl-nav button {
        width: 42px;
        height: 42px;
    }

    .class-carousel-container .owl-nav button i {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .class-carousel-container {
        border-radius: 10px;
        margin-bottom: 30px;
    }

    .class-carousel-container .owl-carousel .item {
        padding-bottom: 75%; /* 4:3 ratio on mobile */
    }

    .class-carousel-container .owl-nav {
        padding: 0 10px;
    }

    .class-carousel-container .owl-nav button {
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .class-carousel-container .owl-nav button i {
        font-size: 16px;
    }

    .class-carousel-container .owl-dots {
        bottom: 15px;
    }

    .class-carousel-container .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .class-carousel-container .owl-dot.active {
        width: 28px;
    }
}
/*** Class Carousel Container End ***/