/********** Template CSS **********/
:root {
    --primary: #FB9A29;
    --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 {
    overflow: visible;
}

.header-carousel::before,
.page-header::before {
    position: absolute;
    content: "";
    width: 100vw;
    height: 100px;
    top: 0;
    left: calc(50% - 50vw);
    transform: rotate(180deg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='topWaveGrad1' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3C/linearGradient%3E%3ClinearGradient id='topWaveGrad2' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='20%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='20%25' style='stop-color:rgba(255,255,255,0.4);stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:rgba(255,255,255,0.4);stop-opacity:1' /%3E%3C/linearGradient%3E%3ClinearGradient id='topWaveGrad3' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='22%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='22%25' style='stop-color:rgba(255,255,255,0.38);stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:rgba(255,255,255,0.38);stop-opacity:1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,50 Q300,10 600,40 T1200,30 L1200,120 L0,120 Z' fill='url(%23topWaveGrad1)'/%3E%3Cpath d='M0,70 Q300,30 600,60 T1200,50 L1200,120 L0,120 Z' fill='url(%23topWaveGrad2)'/%3E%3Cpath d='M0,90 Q300,50 600,80 T1200,70 L1200,120 L0,120 Z' fill='url(%23topWaveGrad3)'/%3E%3Cpath d='M0,70 Q300,30 600,60 T1200,50' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0,90 Q300,50 600,80 T1200,70' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center center repeat-x;
    background-size: 100% 100%;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    position: absolute;
    content: "";
    width: 100vw;
    height: 120px;
    top: auto;
    bottom: 0;
    left: calc(50% - 50vw);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='waveGrad1' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3C/linearGradient%3E%3ClinearGradient id='waveGrad2' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='20%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='20%25' style='stop-color:rgba(255,255,255,0.4);stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:rgba(255,255,255,0.4);stop-opacity:1' /%3E%3C/linearGradient%3E%3ClinearGradient id='waveGrad3' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='22%25' style='stop-color:%23FFFFFF;stop-opacity:1' /%3E%3Cstop offset='22%25' style='stop-color:rgba(255,255,255,0.38);stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:rgba(255,255,255,0.38);stop-opacity:1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,50 Q300,10 600,40 T1200,30 L1200,120 L0,120 Z' fill='url(%23waveGrad1)'/%3E%3Cpath d='M0,70 Q300,30 600,60 T1200,50 L1200,120 L0,120 Z' fill='url(%23waveGrad2)'/%3E%3Cpath d='M0,90 Q300,50 600,80 T1200,70 L1200,120 L0,120 Z' fill='url(%23waveGrad3)'/%3E%3Cpath d='M0,70 Q300,30 600,60 T1200,50' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0,90 Q300,50 600,80 T1200,70' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center center repeat-x;
    background-size: 100% 100%;
    z-index: 1;
}

@media (max-width: 768px) {
    .header-carousel::before,
    .page-header::before {
        height: 60px;
        background-size: 100% 100%;
    }

    .header-carousel::after,
    .page-header::after {
        height: 80px;
        background-size: 100% 100%;
    }

    .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/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;
    position: relative;
}

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

/* Make circular image appear on top */
.classes-item .bg-light.rounded-circle {
    position: relative;
    z-index: 2;
}

/* Make card appear behind the circular image */
.classes-item .bg-light.rounded {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(251, 154, 41, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 184, 77, 0.08) 0%, transparent 50%);
    background-size: 100% 100%;
}

.classes-item .bg-light.rounded::before,
.classes-item .bg-light.rounded::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.classes-item .bg-light.rounded::before {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #ffb84d);
    top: -20px;
    right: 20px;
    animation: floatBubble1 5s ease-in-out infinite;
}

.classes-item .bg-light.rounded::after {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90e2, #6bb3ff);
    bottom: -15px;
    left: 30px;
    animation: floatBubble2 7s ease-in-out infinite;
}

.classes-item .bg-light.rounded a {
    position: relative;
    z-index: 1;
}

@keyframes floatBubble1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) scale(1.15) rotate(90deg);
    }
    50% {
        transform: translate(-10px, -30px) scale(1.2) rotate(180deg);
    }
    75% {
        transform: translate(-20px, -15px) scale(1.1) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

@keyframes floatBubble2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-20px, 15px) scale(1.2) rotate(-90deg);
    }
    50% {
        transform: translate(10px, 25px) scale(1.25) rotate(-180deg);
    }
    75% {
        transform: translate(25px, 10px) scale(1.15) rotate(-270deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(-360deg);
    }
}

/* Add more decorative bubbles on hover */
.classes-item:hover .bg-light.rounded::before {
    opacity: 0.25;
    animation-duration: 3s;
}

.classes-item:hover .bg-light.rounded::after {
    opacity: 0.2;
    animation-duration: 4s;
}


/*** 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;
}
