/********** 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;
        max-height: 700px;
    }
    
    .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/ban5.png) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** 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;
    text-align: center;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

/* ==========================================================================
   WhatsApp Floating Widget - Stacked Right-Side Layout
   ========================================================================== */

.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Securely pinned to the bottom-right corner */
    z-index: 1000;
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* Keeps the icon on the right, tooltip pushes to the left */
}

/* The Main Green Button */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 34px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-whatsapp 2s infinite;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* Hover Effect for Button */
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

/* The Chat Bubble Tooltip */
.whatsapp-tooltip {
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.15);
    font-weight: 600;
    font-size: 14px;
    margin-right: 15px; /* Pushes the bubble neatly to the left of the icon */
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px); /* Smoothly slides outward to the left */
    transition: all 0.3s ease-in-out;
    position: relative;
    white-space: nowrap;
    font-family: 'Heebo', sans-serif;
}

/* Tooltip Arrow pointing RIGHT toward the icon */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px; /* Positions the arrow on the right side of the white bubble */
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

/* Hover Activation */
.whatsapp-container:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Moves your existing Back-to-Top arrow safely up so they don't overlap */
.back-to-top {
    right: 30px;
    bottom: 105px; /* Pushed upward by exactly 75px to sit right above WhatsApp */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Pulse Animation Keyframes */
@keyframes pulse-whatsapp {
    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); }
}


/*** Footer ***/
.footer {
    position: relative; /* CRITICAL: Serves as the anchor framework for positioning the boy */
    overflow: visible;  /* Changed from hidden to visible so the boy can pop out above the 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;
}

/* ==========================================================================
   Walking Boy Animation (Screen Bottom - Runs Once on Load & Responsive)
   ========================================================================== */

.walking-boy-container {
    position: fixed;     /* Anchors it directly to the browser window viewport */
    bottom: 10px;        /* Sits cleanly just above the absolute bottom edge of the screen */
    left: 0;
    width: 100vw;        /* Spans the full width of the viewable window screen */
    height: 120px;       /* Set a safe boundary box height */
    z-index: 99999;      /* Forces it to appear on top of all other elements / footers */
    pointer-events: none;/* Keeps elements, cards, and links behind it fully clickable */
    overflow: hidden;    /* Blocks horizontal browser scrollbars during the sequence */
}

.walking-boy {
    height: 100px;       /* Desktop sizing */
    width: auto;
    position: absolute;
    bottom: 0;
    /* 'forwards' ensures the boy stays hidden off-screen to the right after finishing */
    animation: walkOnceOnLoad 18s linear forwards; 
}

/* Keyframes to smoothly translate the element across the width of the display */
@keyframes walkOnceOnLoad {
    0% {
        transform: translateX(-150px); /* Starts completely hidden on the left */
    }
    100% {
        transform: translateX(100vw);  /* Moves entirely off-screen to the right side */
    }
}

/* Responsive Scaling Rules for Tablets and Mobile Screens */
@media (max-width: 768px) {
    .walking-boy-container {
        height: 80px;    /* Shorter container boundary for medium layouts */
        bottom: 5px;
    }
    .walking-boy {
        height: 70px;    /* Scales down the kid's image size so it matches mobile text scales */
        animation-duration: 14s; /* Decreases time slightly since the screen distance is narrower */
    }
}

@media (max-width: 480px) {
    .walking-boy-container {
        height: 60px;    /* Shorter container boundary for compact phone viewports */
        bottom: 2px;
    }
    .walking-boy {
        height: 50px;    /* Miniature scale sizing ideal for mobile devices */
        animation-duration: 10s; 
    }
}