html {
    overflow-x: hidden;
}

.class-schedule-main-wrapper {
    display: flex;
    flex-direction: column;
}

.age-tabs {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    justify-content: space-between;
    z-index: 8;
}


.age-tabs .nav-link {
    flex: 1;
}

.schedule-details {
    min-height: 68px;
}


.modal {
    z-index: 10001;
}

.modal-backdrop {
    z-index: 10000;
}


button.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
}


.class-schedule-table p {
    margin: 0;
}

.class-schedule-table td:first-child {
    text-align: left;
}


.class-schedule-table td {
    text-align: center;
}


.team-box .team-content {
    height: auto;
}


input[type="file"] {
    height: 38px;
    padding: .375rem .75rem;
}

.event-item-wrapper {
    width: 100%;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.couple-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.home-news-blog-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-around;
}

#reservationModal #reservationModalContent .shape-mockup {
    z-index: 1 !important;
}

#reservationModal #reservationModalContent .form-check {
    z-index: 2;
    position: relative;
}

#reservationModal #reservationModalContent .reservationistItemsWrapper {
    width: 100%;
}

#reservationModal #reservationModalContent .reservationistItems {
    max-height: 450px;
    overflow: auto;
}

#reservationModal #reservationModalContent .container {
    z-index: 2;
}

#reservationModal #reservationModalContent .contact-image {
    display: flex;
    align-items: center;
    animation: none;
}

#reservationModal #reservationModalContent {
    overflow: scroll;
    width: 100%;
    height: 100%;
    padding: 30px;
    margin: 0;
}


.z-index-10 {
    z-index: 10;
    position: relative;
}

.or-separation-line-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.or-separation-line-wrapper .line {
    width: 40%;
    height: 2px;
    background-color: #ae06e652;
}

.or-separation-line-wrapper .or-separation {
    padding: 0 10px;
    font-size: 14px;
}

.instructor-item .team-img img {
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    border-radius: 15px;
}

.instructor-item .team-img img:hover {
    -webkit-transform: scale(1.08);
    -ms-transform: scale(1.08);
    transform: scale(1.08);
}

@media (max-width: 992px) {

    .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
        flex-direction: column;
        gap: 30px;
    }
}

#teacherDetailsModal #teacherDetailsModalContent .info-box_wrapper {
    display: flex;
    flex-direction: column;
}

#teacherDetailsModal #teacherDetailsModalContent {
    overflow: auto;
}


#cookies-bar {
    position: fixed;
    left: auto;
    bottom: 20px;
    right: 20px;
    max-width: 560px;
    color: black;
    z-index: 1000;
    text-align: left;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#cookies-bar .title {
    margin: 0;
}

#cookies-bar .content {
    margin-top: 15px;
}

#cookies-bar .buttons {
    margin-top: 40px;
}

#cookies-bar .buttons .btn {
    margin-right: 5px;
}


@media (max-width: 991px) {
    .logo-bg {
        display: none;
    }

    .sticky-wrapper.sticky .header-logo {
        margin-bottom: inherit
    }
}

.past-event .event-item_date,
.past-event .event-item_date {
    background-color: gray;
}

.past-event i.fa-regular,
.past-event .event-item_location,
.past-event .event-item_time,
.past-event .info-list i {
    color: gray;
}

.past-event .th-btn {
    background-color: gray;
    color: white;
}

.past-event .page-img img {
    filter: grayscale(100%);
}

@media (max-width: 1750px) {
    .header-layout1 .logo-bg {
        width: 16%;
    }
}

@media (max-width: 1585px) {
    .header-layout1 .logo-bg {
        width: 17%;
    }

    .header-layout1 .main-menu {
        margin-left: 20px;
    }
}

@media (max-width: 1538px) {
    .header-layout1 .main-menu {
        margin-left: 2px;
    }

    .main-menu>ul>li {
        margin: 0 10px;
    }

    .header-logo img {
        width: 170px;
    }
}

@media (max-width: 1400px) and (min-width: 992px) {

    .header-logo {
        width: 100%;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .header-img-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-bg {
        display: none;
    }

    .header-logo {
        margin-top: 15px;
    }

    .header-logo img {
        width: 220px;
        margin-top: 15px;
    }

    .sticky-wrapper.sticky .header-logo {
        margin-top: 3px;
        margin-bottom: 0px;
    }

    .sticky-wrapper.sticky .header-logo img {
        width: 220px;
        margin-top: 3px;
    }

    .menu-container-wrapper {
        min-width: 100% !important;
    }
}


@media (max-width: 1400px) and (min-width: 992px) {
    .main-menu>ul>li {
        margin: 0 5px;
    }
}

@media (max-width: 1067px) and (min-width: 992px) {
    .main-menu>ul>li {
        margin: 0 3px;
    }

    .header-layout1 .main-menu>ul>li>a {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .nav-tabs {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: stretch;
    }

    li.nav-item {
        width: 100%;
        padding: 5px;
    }

    .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

    .nav-tabs .nav-item.show .nav-link,
    .nav-tabs .nav-link.active {
        background-color: #ae06e652;
        color: white;
    }

    .th-mobile-menu ul li a {
        padding: 14px 0 0 18px;
    }

    .th-mobile-menu ul li a:before {
        top: 9px;
    }

    .th-mobile-menu ul .th-item-has-children>a:after {
        margin-top: -6px;
    }

}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background-color: #ae06e652;
    color: white;
}

.th-mobile-menu .login-button-wrapper {
    text-align: center;
}


.th-pagination ul {
    display: block;
}

.th-pagination li {
    margin: 5px;
}

@media (max-width: 1500px) {
    .slick-slide {
        min-height: 500px;
    }


    .number-dots .slick-dots {
        transform: translateX(-50%);
        bottom: 1%;
        top: auto;
        left: 50%;
        display: flex;
        flex-direction: row;
        padding: 0;
        margin: 0;
    }

    .number-dots .slick-dots li {
        margin: 0 10px;
    }

    .number-dots .slick-dots button {
        display: inline-block;
    }
}

.user-points-history-table-wrapper{
    overflow-x: auto;
}

.points-info-list .badge {
    position: relative;
    padding: 5px 8px;
}

.prepaid-package-offer-style{
    border: 3px solid #ae06e68a;
}

.suspended-prepaid-package-overdue-qr-code{
    filter: blur(8px);
}

.suspended-prepaid-package-overdue-qr-code-wrapper{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: #ffffff61;
    color: black;
    text-align: center;
}

.prepaid-package-card-item{
    overflow: auto;
}

/* Keep schedule reserve buttons fully visible inside the card. */
.class-schedule-wrapper {
    min-width: 0;
    width: 100%;
}

.class-schedule-wrapper > .tab-schedule-content {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0;
}

.class-schedule-main-wrapper .schedule-details {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.class-schedule-main-wrapper .schedule-content,
.class-schedule-main-wrapper .dt-container {
    max-width: 100%;
}

.class-schedule-main-wrapper .class-schedule-table {
    width: 100% !important;
}

.class-schedule-main-wrapper .class-schedule-table th,
.class-schedule-main-wrapper .class-schedule-table td {
    white-space: normal;
}

.class-schedule-main-wrapper .class-schedule-table p {
    overflow-wrap: anywhere;
}

.class-schedule-main-wrapper .class-schedule-table th:last-child,
.class-schedule-main-wrapper .class-schedule-table td:last-child {
    white-space: nowrap;
    width: 1%;
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: var(--smoke-color, #F5F5F5);
    box-shadow: -8px 0 8px -6px rgba(0, 0, 0, 0.18);
}

.class-schedule-main-wrapper .class-schedule-table thead th:last-child {
    z-index: 3;
}

.class-schedule-main-wrapper .class-schedule-table .make-reservation-btn {
    white-space: nowrap;
}

/* Schedule uses the full row. Ballerina is decorative and must not take a column. */
.class-schedule-layout {
    position: relative;
}

.class-schedule-layout > .col-12 {
    min-width: 0;
    z-index: 2;
}

.class-schedule-main-wrapper > .tab-schedule-content {
    margin-right: 0;
    min-width: 0;
    width: 100%;
}

.class-schedule-layout > .class-schedule-image {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    margin-left: 0;
    pointer-events: none;
    max-width: min(420px, 32%);
}

.class-schedule-layout > .class-schedule-image img {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: auto;
    margin-right: 0;
}

.blog-content figure:has(.blog-snippet-card),
.blog-content p:has(.blog-snippet-card),
.th-blog figure:has(.blog-snippet-card),
.th-blog p:has(.blog-snippet-card) {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0 0;
    padding: 0;
    border: 0;
    background: none;
}

.blog-content .blog-snippet-card,
.th-blog .blog-snippet-card {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0 0;
    border: 1px solid var(--theme-color);
    border-radius: 20px;
}

.blog-content .blog-snippet-card + .blog-snippet-card,
.th-blog .blog-snippet-card + .blog-snippet-card,
.blog-content figure:has(.blog-snippet-card) + figure:has(.blog-snippet-card),
.th-blog figure:has(.blog-snippet-card) + figure:has(.blog-snippet-card),
.blog-content p:has(.blog-snippet-card) + p:has(.blog-snippet-card),
.th-blog p:has(.blog-snippet-card) + p:has(.blog-snippet-card) {
    margin-top: 1.75rem;
}

.blog-content .blog-snippet-event .event-card_img,
.th-blog .blog-snippet-event .event-card_img {
    position: relative;
    aspect-ratio: 699 / 450;
    overflow: hidden;
    border-radius: 20px;
}

.blog-content .blog-snippet-class .couple-card_img,
.th-blog .blog-snippet-class .couple-card_img {
    position: relative;
    aspect-ratio: 327 / 207;
    overflow: hidden;
    border-radius: 20px;
}

.blog-content .blog-snippet-card .event-card_img img,
.th-blog .blog-snippet-card .event-card_img img,
.blog-content .blog-snippet-card .couple-card_img img,
.th-blog .blog-snippet-card .couple-card_img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-content .blog-snippet-card .event-card_list,
.th-blog .blog-snippet-card .event-card_list {
    flex-wrap: wrap;
    gap: 16px;
}

.blog-content .blog-snippet-card .event-card_copy,
.th-blog .blog-snippet-card .event-card_copy {
    flex: 1 1 180px;
    min-width: 0;
}

.blog-content .blog-snippet-card .event-card_text,
.th-blog .blog-snippet-card .event-card_text {
    margin-bottom: 4px;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
}

.blog-content .blog-snippet-card .event-card_time,
.th-blog .blog-snippet-card .event-card_time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 0;
}

.blog-content .blog-snippet-card .couple-card,
.th-blog .blog-snippet-card .couple-card {
    width: 100%;
    margin: 0;
    align-items: stretch;
}

.account-payments-table tbody tr.payment-row-overdue,
.account-payments-table tbody tr.payment-row-overdue > td {
    background-color: #f8d7da;
    color: #842029;
}
