/* 
Tykes by Templatio
templatio.com/html
License : `https://www.templatemonster.com/licenses/website-templates/`
*/
:root {
    --primary: #03A9F4;
    --bs-primary: #03A9F4;
    --bs-primary-rgb: 3, 169, 244;
    --light: #FFF5F3;
    --dark: #103741;
}

body {
    font-family: 'Catamaran', sans-serif;
}

.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;
    border-radius: 15px;
}

.btn.btn-primary {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn.btn-primary:hover {
    background-color: #0398E0;
    border-color: #0398E0;
}

.btn.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}
.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: 15px;
}

.rounded-pill {
    border-radius: 15px !important;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Bubblegum Sans', 'Catamaran', sans-serif;
    font-weight: 400;
}

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

.font-secondary {
    font-family: 'Catamaran', sans-serif;
}


/*** 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('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602100/html/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('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602100/html/img/bg-header-bottom.png') center center repeat-x;
}

.header-carousel::before,
.page-header::before {
    content: none;
    height: 0;
}
.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 700px;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

@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('/newmoban/_external/demo.mobanwang.com/mb/lo202602/202602100/html/img/carousel-1.jpg') center center no-repeat;
    background-size: cover;
}

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

/* Navigation header (navbar) color scheme */
.navbar.bg-white { 
    background-color: var(--primary) !important; 
}
.navbar.bg-white .navbar-brand .text-primary,
.navbar.bg-white .navbar-brand i {
    color: #ffffff !important;
}
.navbar.bg-white .navbar-nav .nav-link {
    color: #ffffff;
}
.navbar.bg-white .navbar-nav .nav-link:hover,
.navbar.bg-white .navbar-nav .nav-link.active {
    color: #ffffff;
    opacity: 0.85;
}
.navbar.bg-white .btn.btn-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--primary);
}
.navbar.bg-white .btn.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
}
.navbar.bg-white .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.7);
}
.navbar.bg-white .navbar-toggler .navbar-toggler-icon {
    filter: invert(1);
}

.dropdown-menu .dropdown-item {
    color: var(--dark);
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--dark);
}
.page-header .breadcrumb .breadcrumb-item a {
    color: var(--primary) !important;
}

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 55, 65, 0.08);
    padding: 24px;
}
.soft-blue {
    background: #E6F7FE;
}
.icon-pill {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.accent-blue {
    background-color: var(--primary);
}
.mini-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(16, 55, 65, 0.06);
}
.map-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 55, 65, 0.08);
    padding: 8px;
}
.contact-card .form-control {
    border-radius: 12px;
}
.error-section .error-code {
    font-size: 120px;
    font-weight: 700;
    color: rgba(var(--bs-primary-rgb), 0.25);
    line-height: 1;
}
/*** 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 {
    background-color: #121212 !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;
}

.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;
}

.program-card {
    position: relative;
    padding: 32px;
    border-radius: 26px;
    box-shadow: 0 8px 24px rgba(16, 55, 65, 0.08);
    transition: .3s;
}
.program-card:hover {
    transform: translateY(-6px);
}
.program-card.soft-green {
    background: #EAF6EE;
}
.program-card.soft-pink {
    background: #FDE8E7;
}
.program-card.soft-purple {
    background: #EAE7FF;
}
.program-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ffffff;
}
.program-card .accent-green {
    background-color: #28a745;
}
.program-card .accent-pink {
    background-color: #ff6f61;
}
.program-card .accent-purple {
    background-color: #6f6cff;
}
.program-card .learn-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.program-card .learn-link:hover {
    opacity: .85;
}

.classes-section {
    background: #ffffff;
    border-radius: 24px;
}
.classes-section .text-white {
    color: var(--dark) !important;
}
.classes-section .text-white-50 {
    color: #6c757d !important;
}
.classes-section .underline {
    background-image: linear-gradient(transparent 65%, rgba(var(--bs-primary-rgb), 0.25) 0);
    background-size: 100% 1.25em;
    background-repeat: no-repeat;
}
.class-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 55, 65, 0.08);
    overflow: hidden;
}
.class-card.featured {
    background: #FFF9DB;
    border: 2px solid #FFE58F;
}
.class-image {
    position: relative;
}
.class-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.class-body {
    padding: 20px;
}
.class-title {
    color: var(--dark);
}
.location i {
    color: var(--primary);
}
.rating i {
    margin-right: 3px;
}
.classes-section .btn.btn-primary.btn-sm {
    font-weight: 600;
}
.class-actions {
    flex-wrap: nowrap;
    gap: 12px;
}
.class-actions .btn {
    white-space: nowrap;
}
.class-actions .reviews,
.class-actions .rating {
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 55, 65, 0.08);
    overflow: hidden;
    transition: .3s;
}
.blog-card:hover {
    transform: translateY(-6px);
}
.blog-image {
    position: relative;
}
.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-body {
    padding: 20px;
}
.blog-title {
    color: var(--dark);
}
.blog-meta {
    color: #6c757d;
    font-size: 14px;
}
.read-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.read-link:hover {
    opacity: .85;
}

.article-hero img {
    object-fit: cover;
}
.article-meta {
    color: #6c757d;
    font-size: 14px;
}
.article-content p {
    line-height: 1.8;
}
.article-nav .btn {
    white-space: nowrap;
}
.section-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.15);
    color: var(--primary);
    font-weight: 600;
}
.underline-primary {
    background-image: linear-gradient(transparent 70%, rgba(3, 169, 244, 0.25) 0);
    background-size: 100% 1.2em;
    background-repeat: no-repeat;
}
.teacher-card .name {
    font-weight: 700;
}
.teacher-card .role {
    color: #6c757d;
}
.teacher-blob {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #EAE7FF;
}
.teacher-blob.soft-purple {
    background: #EAE7FF;
}
.teacher-img {
    width: 84%;
    height: 84%;
    object-fit: cover;
    object-position: 50% 0%;
    border-radius: 50%;
}
.teacher-card .teacher-img {
    display: block;
}
@media (max-width: 576px) {
    .teacher-blob {
        width: 230px;
        height: 230px;
    }
    .teacher-img {
        width: 82%;
        height: 82%;
        object-position: 50% 0%;
    }
}
.decor-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFE58F;
    border-radius: 50%;
}
.decor-dot.dot-a { top: 18px; left: 18px; }
.decor-dot.dot-b { right: 24px; top: 50%; transform: translateY(-50%); }
.decor-dot.dot-c { bottom: 20px; left: 28px; }
