/* Ensures all gallery images show faces and are centered */
.gallery-visible-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    border-radius: 10px;
    display: block;
}

@media (max-width: 768px) {
    .gallery-visible-img {
        height: 120px;
    }
}
/* Remove white background from Kindergarten text */
.kindergarten-title {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Custom background for Kindergarten cards */
.bg-class-card {
    background: linear-gradient(135deg, #fdf6e3 0%, #f8f9fa 100%) !important;
}
/* Fixed size for bottom gallery images (index.html) */
.gallery-fixed-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@media (max-width: 768px) {
    .gallery-fixed-img {
        height: 70px;
    }
}
/* Uniform circular images for Our Activities section */
.activity-img-circle {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    background: #fff;
}

@media (max-width: 768px) {
    .activity-img-circle {
        width: 120px;
        height: 120px;
    }
}
/********** Template CSS **********/
:root {
    --primary: #FE5D37;
    --light: #FFF5F3;
    --dark: #103741;
}

.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-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    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: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

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

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@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-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.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;
    border-radius: 45px;
    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(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/square.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

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

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    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 {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

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

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

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

    /* School Timings Footer Section */
    .footer-school-timings {
        font-size: 0.82rem;
        line-height: 1.15;
        color: #e0e0e0;
    }
    .footer-school-timings b {
        font-weight: 600;
    }

/* View More Photos Button Styles */
.view-more-btn {
    background: linear-gradient(135deg, #FE5D37 0%, #E54A2A 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(254, 93, 55, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
}

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

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

.view-more-btn:hover {
    background: linear-gradient(135deg, #E54A2A 0%, #CC3E20 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(254, 93, 55, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.view-more-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    transition: all 0.1s !important;
}

.view-more-btn i {
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    margin-right: 8px !important;
}

.view-more-btn:hover i {
    transform: scale(1.1) rotate(5deg) !important;
}

/* Focus state for accessibility */
.view-more-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(254, 93, 55, 0.3) !important;
}

/* Alternative button styles */
.view-more-btn-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3) !important;
    transition: all 0.4s ease !important;
    display: inline-block !important;
}

.view-more-btn-dark:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.view-more-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.4s ease !important;
    display: inline-block !important;
}

.view-more-btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .view-more-btn,
    .view-more-btn-dark,
    .view-more-btn-success {
        padding: 12px 30px !important;
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
    }
    
    .view-more-btn:hover,
    .view-more-btn-dark:hover,
    .view-more-btn-success:hover {
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    .view-more-btn i,
    .view-more-btn-dark i,
    .view-more-btn-success i {
        font-size: 16px !important;
    }
}

/* Loading animation for when clicking external link */
.view-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.view-more-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

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

/* About Us Sections Styling */
.feature-item {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #FE5D37;
}

.feature-list .fas {
    font-size: 1.2rem;
}

.feature-list h6 {
    color: #2c3e50;
    font-weight: 600;
}

/* Philosophy Section */
.bg-light {
    background-color: #f8f9fa !important;
}

/* About Images Styling */
.about-img img {
    transition: all 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-img .col-6 {
        margin-top: -100px !important;
    }
    
    .feature-item {
        margin-bottom: 30px;
    }
}

/* Enhanced Class Details Styling */
.class-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.square-card:hover .class-details {
    max-height: 200px;
}

.class-details ul li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.class-details ul li:hover {
    transform: translateX(5px);
    color: #2c3e50;
}

.class-details .fas {
    font-size: 0.8rem;
}

/* Responsive adjustments for class details */
@media (max-width: 768px) {
    .class-details {
        max-height: none !important;
    }
    
    .class-details ul li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}

/* Classes Preview Section */
.class-preview {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

.class-preview:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: #fff;
}

.class-preview i {
    transition: all 0.3s ease;
}

.class-preview:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Button enhancements */
.btn.animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 93, 55, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .class-preview {
        margin-bottom: 15px;
    }
    
    .class-preview:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Gallery Preview Section */
.gallery-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.gallery-preview-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(254, 93, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 24px;
    transform: scale(0);
    transition: all 0.3s ease;
}

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

.gallery-preview-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Enhanced Button Styles for Gallery */
.btn.animated.slideInLeft:hover {
    transform: translateY(-2px) translateX(-3px);
    box-shadow: 0 8px 25px rgba(254, 93, 55, 0.3);
}

.btn.animated.slideInRight:hover {
    transform: translateY(-2px) translateX(3px);
    box-shadow: 0 8px 25px rgba(254, 93, 55, 0.3);
}

/* Responsive adjustments for gallery preview */
@media (max-width: 768px) {
    .gallery-preview-item {
        margin-bottom: 10px;
    }
    
    .gallery-preview-item img {
        height: 120px;
    }
    
    .gallery-preview-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .gallery-overlay i {
        font-size: 20px;
    }
}

/* Gallery section background */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Prevent Kindergarten title from wrapping */
.nowrap-title {
    white-space: nowrap;
}

/* Custom colors for new class cards on home page */
.bg-pink {
    background: linear-gradient(135deg, #fd79a8 0%, #e17055 100%) !important;
}
.bg-purple {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%) !important;
}
.bg-teal {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%) !important;
}