/********** Template CSS **********/
:root {
    --primary: #0196d3;
    --primary-light: #4db8ff;
    --primary-dark: #0066a3;
    --light: #FFF5F3;
    --dark: #103741;
    --yellow: #ffd700;
    --yellow-light: #fff2cc;
    --yellow-dark: #ffb300;
    --fun-blue: #87ceeb;
    --fun-pink: #ffb6c1;
    --fun-green: #98fb98;
    --fun-orange: #ffa500;
}

.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: 'Comic Neue', cursive;
    font-weight: 600;
    transition: .5s;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.btn-primary {
    color: #FFFFFF;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border: none;
}

.btn.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary)) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.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: 'Fredoka One', cursive;
    font-weight: 700;
    color: var(--primary-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h5,
h6,
.h5,
.h6 {
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    color: var(--primary);
}

.font-secondary {
    font-family: 'Fredoka One', cursive;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(1, 150, 211, 0.3);
}

.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;
        color: #0a409f !important;
    }
}

.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/building.jpg) center center no-repeat;
    background-size: cover;
}

/* Enhanced Breadcrumb Styling */
.breadcrumb {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-item a {
    color: var(--yellow) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px var(--yellow);
    transform: scale(1.05);
}

.breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--yellow) !important;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0 10px;
}


/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 248, 220, .9));
    border-radius: 50%;
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 20px;
    height: 40px;
    top: -5px;
    left: -5px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: -5px;
    background: var(--fun-pink);
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    transition: all 0.3s ease;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 30px;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Comic Neue', cursive;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 248, 220, .9));
    border-radius: 30px;
    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: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.facility-item:hover .facility-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.facility-item:hover .facility-icon i {
    transform: scale(1.2) rotate(-5deg);
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    transition: .5s;
    border: 4px solid var(--yellow-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--yellow);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Fun styling for the activity icons in about section */
.about-img .d-flex.align-items-center {
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 10px;
}

.about-img .d-flex.align-items-center:hover {
    background: linear-gradient(135deg, var(--yellow-light), #ffffff);
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-img .d-flex.align-items-center .rounded {
    transition: all 0.3s ease;
}

.about-img .d-flex.align-items-center:hover .rounded {
    transform: scale(1.1) rotate(5deg);
    background: var(--yellow) !important;
}

.about-img .d-flex.align-items-center:hover i {
    animation: bounce 0.6s ease-in-out;
}


/*** 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;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.testimonial-item {
    border-radius: 25px !important;
    border: 3px solid var(--yellow-light) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
    margin: 1rem 0;
    padding: 2rem !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--yellow) !important;
}

.testimonial-item h4 {
    color: var(--primary-dark);
    font-family: 'Fredoka One', cursive;
}

.testimonial-item p {
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.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 {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    color: #ffffff !important;
    padding-top: 2rem !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--yellow-light) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--fun-pink) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.footer .container.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 3rem !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 2px solid var(--yellow);
    border-radius: 50px;
    transition: .3s;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .btn.btn-social:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--primary-dark);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.footer .btn.btn-social:hover i {
    color: var(--primary-dark) !important;
}

.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;
    color: #ffffff !important;
}

.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: #ead14d !important;
    letter-spacing: 1px;
    box-shadow: none;
    animation: none !important;
    transform: none !important;
}

.footer a {
    color: #ffffff !important;
}

.footer a:hover {
    color: #ead14d !important;
}

.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;
}

/* Founder Section */
.founder-img {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-text {
    text-align: center;
    margin-top: 20px;
}

.founder-text h4 {
    margin-bottom: 5px;
    color: #222;
    font-family: 'Fredoka One', cursive;
    font-weight: 700;
    color: var(--primary-dark);
}

.founder-text p {
    margin-bottom: 0;
    color: #666;
}

.founder-title {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 1.2rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.founder-subtitle {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    font-size: 1.3rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.mission-heading {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    font-size: 1.3rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.mission-text {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

.founder-description {
    font-family: 'Comic Neue', cursive !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

/* Contact Section Icons */
.contact-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: var(--primary) !important;
}

.contact-icon:hover i {
    color: #ffffff !important;
}

.contact-icon:hover h6 {
    color: var(--primary);
}

/* Contact Page Phone Links */
.contact-page a[href^="tel:"] {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-page a[href^="tel:"]:hover {
    color: var(--primary) !important;
}

/* Core Values Icons */
.core-values-icon {
    transition: all 0.3s ease;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--yellow-light), #ffffff);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.core-values-icon:hover {
    transform: rotate(360deg) scale(1.05);
    transition: transform 0.6s ease-in-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
}

.core-values-icon:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
    animation: rainbow 2s infinite;
}

@media (max-width: 576px) {
    .founder-img {
        width: 80vw;
        height: 80vw;
        max-width: 300px;
        max-height: 300px;
    }
    .founder-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .display-2 {
    color: #ffffff !important;
    font-family: 'Fredoka One', cursive !important;
    text-shadow: 3px 3px 0px var(--primary-dark), 6px 6px 0px var(--yellow);
    font-size: 3.5rem;
    animation: bounce 2s infinite;
}

.header-carousel .fs-5,
.header-carousel .fw-medium {
    font-family: 'Comic Neue', cursive !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    font-size: 1.3rem;
}

.header-carousel .fs-5.slider-subtitle-bottom,
.header-carousel .fw-medium.slider-subtitle-bottom,
.header-carousel .slider-subtitle-bottom {
    font-family: 'Fredoka One', cursive !important;
    font-size: 2.5rem !important;
    color: var(--yellow) !important;
    text-shadow: 3px 3px 0px var(--primary-dark), 6px 6px 0px #000;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
    z-index: 2;
    animation: wiggle 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .header-carousel .fs-5.slider-subtitle-bottom,
    .header-carousel .fw-medium.slider-subtitle-bottom,
    .header-carousel .slider-subtitle-bottom {
        font-size: 1.2rem !important;
    }
    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
        color: #aadcfd !important;
    }
}

p {
    font-family: 'Comic Neue', cursive !important;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.container-xxl h5.text-center {
    font-family: 'Fredoka One', cursive !important;
    color: var(--primary-dark);
}

/* Fun animations for child-friendly elements */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

@keyframes rainbow {
    0% { color: var(--primary); }
    25% { color: var(--fun-pink); }
    50% { color: var(--yellow); }
    75% { color: var(--fun-green); }
    100% { color: var(--primary); }
}

/* Apply fun animations to interactive elements */
.facility-item:hover .facility-icon i {
    animation: bounce 0.6s ease-in-out;
}

.btn:hover {
    animation: wiggle 0.6s ease-in-out;
}

/* Fun background patterns */
.container-xxl {
    position: relative;
}

.container-xxl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--yellow-light) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--fun-pink) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--fun-blue) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}
