/********** 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;
}

#spinner img {
    width: 90%; /* Responsive width for smaller screens */
    max-width: 450px; /* Max width for larger screens, matching original size */
    height: auto;
}


/*** 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: 5px 0;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid #EEEEEE;
    }

    .navbar-brand img {
        max-height: 50px;
    }
}

@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;
    }

    .navbar-brand img {
        max-height: 80px;
    }
}


/*** 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: 300px;
    }
    
    .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/carousel-1.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;
}

/*** Medal Badge ***/
.medal-badge-link {
    text-decoration: none;
    position: fixed;
    top: 10px;
    right: 40px;
    z-index: 1060;
    transform: scale(1.4);
    transform-origin: top right;
    transition: all 0.3s ease;
    display: block;
}


.medal-badge {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.medal-top {
    background: linear-gradient(145deg, #ffeb3b, #f5b400);
    color: #940000;
    font-weight: bold;
    font-family: 'Lobster Two', cursive;
    padding: 4px 14px;
    border: 2px solid #e0b840;
    border-radius: 6px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    font-size: 20px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.medal-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px 4px 0 0;
}

.medal-ribbon {
    width: 5px;
    height: 38px;
    background: linear-gradient(to bottom, #e0b840, #dda520);
    margin: 0 auto;
    position: relative;
    z-index: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.medal-bottom {
    position: relative;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.medal-badge:hover .medal-bottom {
    animation-play-state: paused;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

.medal-circle {
    width: 160px;
    height: 160px;
    background-color: transparent;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.medal-circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd54f, #f5b400);
    z-index: -1;
    transform: scale(1.2);
    clip-path: polygon(50% 0%, 61% 1%, 72% 5%, 81% 12%, 89% 21%, 94% 32%, 97% 43%, 98% 55%, 97% 66%, 94% 77%, 89% 86%, 82% 93%, 73% 97%, 62% 99%, 51% 100%, 39% 99%, 28% 97%, 19% 93%, 12% 86%, 7% 77%, 4% 66%, 3% 55%, 4% 43%, 7% 32%, 11% 21%, 19% 12%, 28% 5%, 39% 1%);
}

.medal-circle::after {
    content: "";
    position: absolute;
    width: 94%;
    height: 94%;
    top: 3%;
    left: 3%;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* Shine effect */
.medal-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    z-index: 6;
    animation: shine 5s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(25deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(25deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(25deg);
    }
}

.girl-face {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    background-image: url('../img/girl.jpg');
    background-size: cover;
    background-position: center;
    z-index: 5;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.6);
}

.circle-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

.circle-text span {
    position: absolute;
    left: 50%;
    top: 0;
    transform-origin: 0 80px;
    font-size: 16px;
    font-weight: bold;
    color: #d84315;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7), -1px -1px 0 rgba(0, 0, 0, 0.1);
}

/* Position all letters in a circle */
.circle-text span:nth-child(1) { transform: rotate(0deg) translateX(-50%); }
.circle-text span:nth-child(2) { transform: rotate(12deg) translateX(-50%); }
.circle-text span:nth-child(3) { transform: rotate(24deg) translateX(-50%); }
.circle-text span:nth-child(4) { transform: rotate(36deg) translateX(-50%); }
.circle-text span:nth-child(5) { transform: rotate(48deg) translateX(-50%); }
.circle-text span:nth-child(6) { transform: rotate(60deg) translateX(-50%); }
.circle-text span:nth-child(7) { transform: rotate(72deg) translateX(-50%); }
.circle-text span:nth-child(8) { transform: rotate(84deg) translateX(-50%); }
.circle-text span:nth-child(9) { transform: rotate(96deg) translateX(-50%); }
.circle-text span:nth-child(10) { transform: rotate(108deg) translateX(-50%); }
.circle-text span:nth-child(11) { transform: rotate(120deg) translateX(-50%); }
.circle-text span:nth-child(12) { transform: rotate(132deg) translateX(-50%); }
.circle-text span:nth-child(13) { transform: rotate(144deg) translateX(-50%); }
.circle-text span:nth-child(14) { transform: rotate(156deg) translateX(-50%); }
.circle-text span:nth-child(15) { transform: rotate(168deg) translateX(-50%); }
.circle-text span:nth-child(16) { transform: rotate(180deg) translateX(-50%); }
.circle-text span:nth-child(17) { transform: rotate(192deg) translateX(-50%); }
.circle-text span:nth-child(18) { transform: rotate(204deg) translateX(-50%); }
.circle-text span:nth-child(19) { transform: rotate(216deg) translateX(-50%); }
.circle-text span:nth-child(20) { transform: rotate(228deg) translateX(-50%); }
.circle-text span:nth-child(21) { transform: rotate(240deg) translateX(-50%); }
.circle-text span:nth-child(22) { transform: rotate(252deg) translateX(-50%); }
.circle-text span:nth-child(23) { transform: rotate(264deg) translateX(-50%); }
.circle-text span:nth-child(24) { transform: rotate(276deg) translateX(-50%); }
.circle-text span:nth-child(25) { transform: rotate(288deg) translateX(-50%); }
.circle-text span:nth-child(26) { transform: rotate(300deg) translateX(-50%); }
.circle-text span:nth-child(27) { transform: rotate(312deg) translateX(-50%); }
.circle-text span:nth-child(28) { transform: rotate(324deg) translateX(-50%); }
.circle-text span:nth-child(29) { transform: rotate(336deg) translateX(-50%); }
.circle-text span:nth-child(30) { transform: rotate(348deg) translateX(-50%); }

@keyframes float {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    }
    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.25));
    }
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    }
}

@media (max-width: 991.98px) {
    .medal-badge-link {
        right: 20px;
        top: 80px;
        transform: scale(1);
        transform-origin: top right;
    }
    
    .medal-badge-link:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 575.98px) {
    .medal-badge-link {
        right: 10px;
        top: 70px;
        transform: scale(0.7);
        transform-origin: top right;
    }

    .medal-badge-link:hover {
        transform: scale(0.75);
    }

    .medal-top {
        font-size: 14px;
        padding: 3px 10px;
    }

    .medal-ribbon {
        height: 25px;
    }

    .medal-circle {
        width: 100px;
        height: 100px;
    }

    .girl-face {
        border-width: 2px;
    }

    .circle-text span {
        font-size: 9px;
        transform-origin: 0 50px;
    }

    .navbar-brand img {
        max-height: 45px;
    }
}
