body {
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+ */
    user-select: none;         /* Standard */
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.fixed-action-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.fixed-action-buttons .btn-floating {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fixed-action-buttons .whatsapp-btn img {
    width: 30px;
    height: 30px;
}

/* Category icons are square artwork, so keep them compact in the cart dropdown. */
.navbar-shopping-cart .navbar-cart-box--category .navbar-cart-img {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid #eceff2;
    border-radius: 8px;
    background: #f8f9fa;
}

.navbar-shopping-cart .navbar-cart-box--category .navbar-cart-img img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain !important;
}

.navbar-shopping-cart .navbar-cart-discount-badge {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    margin-inline-start: 7px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

/* Category routes need a compact header; shared cart/search banners stay unchanged. */
.categories-list-banner {
    padding-top: 45px;
    padding-bottom: 45px;
}

.category-page-banner {
    height: 290px;
}

.category-page-banner .top-search-categories-form .search-input {
    margin-top: 15px;
}

/* Teacher directory cards */
.teacher-directory-card {
    height: calc(100% - 25px);
    overflow: hidden;
    border: 1px solid #e9edf1;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 19, 71, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.teacher-directory-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #d3b170);
}

.teacher-directory-card:hover {
    transform: translateY(-5px);
    border-color: rgba(211, 177, 112, .55);
    box-shadow: 0 14px 32px rgba(23, 19, 71, .12);
}

.teacher-directory-card .teacher-avatar {
    width: 116px;
    min-width: 116px;
    height: 116px;
    padding: 4px;
    border: 2px solid rgba(211, 177, 112, .75);
    border-radius: 50%;
    background: #fff;
}

.teacher-directory-card .teacher-avatar > img {
    border-radius: 50%;
}

.teacher-directory-card__profile {
    min-width: 0;
}

.teacher-directory-card__name {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher-directory-card__bio {
    display: -webkit-box;
    min-height: 42px;
    max-height: 42px;
    overflow: hidden;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.teacher-directory-card__rating {
    min-height: 20px;
}

.teacher-directory-card__badges {
    min-height: 32px;
}

.teacher-directory-card__price {
    min-height: 29px;
}

.teacher-directory-card__action {
    margin-top: auto !important;
}

.teacher-directory-card__status {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-end: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.teacher-directory-card__status.is-unavailable {
    background: #818894;
}

.teacher-directory-card__status.is-discounted {
    background: #e53935;
}

.instructors-pagination:empty {
    display: none;
}

/* Public teacher directory */
.instructor-directory-page {
    min-height: 60vh;
    background: linear-gradient(180deg, #f8fafc 0, #fff 320px);
}

.instructor-directory-page__header {
    padding-bottom: 22px;
    border-bottom: 1px solid #e9edf1;
}

.instructor-directory-page__eyebrow {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(211, 177, 112, .16);
    color: #a97819;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.instructor-directory-page__count {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid #e1e7ec;
    border-radius: 999px;
    background: #fff;
    color: #65717c;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(23, 19, 71, .05);
}

.instructor-profile-card {
    position: relative;
    height: calc(100% - 20px);
    min-height: 360px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #e4e9ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(23, 19, 71, .06);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.instructor-profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #d3b170);
    opacity: 0;
    transition: opacity .25s ease;
}

.instructor-profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(211, 177, 112, .6);
    box-shadow: 0 16px 35px rgba(23, 19, 71, .11);
}

.instructor-profile-card:hover::before {
    opacity: 1;
}

.instructor-profile-card__top {
    min-width: 0;
}

.instructor-profile-card__avatar {
    position: relative;
    width: 78px;
    min-width: 78px;
    height: 78px;
    padding: 3px;
    border: 2px solid rgba(211, 177, 112, .7);
    background: #fff;
}

.instructor-profile-card__identity {
    min-width: 0;
    margin-inline-start: 15px;
}

.instructor-profile-card__name,
.instructor-profile-card__role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-profile-card__verified {
    position: absolute;
    right: -2px;
    bottom: 1px;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}

.instructor-profile-card__discount {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-end: 14px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.instructor-profile-card__specialties {
    min-height: 27px;
    gap: 6px;
}

.instructor-profile-card__specialties span {
    max-width: 100%;
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f6f8;
    color: #52606d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-profile-card__about {
    display: -webkit-box;
    min-height: 63px;
    max-height: 63px;
    overflow: hidden;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.instructor-profile-card__meta {
    min-height: 58px;
    margin-top: auto !important;
    border-top: 1px solid #eef1f4;
    gap: 12px;
}

.instructor-profile-card__meta > div {
    min-width: 0;
}

.instructor-profile-card__meta .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.instructor-directory-page__pagination:empty {
    display: none;
}

@media (max-width: 575px) {
    .instructor-profile-card {
        min-height: 340px;
        padding: 20px;
    }

    .instructor-profile-card__avatar {
        width: 68px;
        min-width: 68px;
        height: 68px;
    }

    .instructor-profile-card__meta {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .instructor-profile-card__meta .btn {
        width: 100%;
    }
}

.banner-slide {
    height: 350px;
    min-height: 350px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (min-width: 1300px) {
    .banner-slide {
        height: 500px;
        min-height: 500px;
    }
}

.banner-slide .container {
    position: relative;
    z-index: 2;
}

.banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.5);*/
    z-index: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.stats-container {
    margin-top: 40px;
}

.navbar-brand {
    width: unset;
    height: 70px;
}

.footer .footer-logo {
    background-color: white;
    width: unset;
    height: 70px;
}

.trending-card .trending-image .icon {
    width: 100px;
    height: 100px;
}

.trending-card .trending-image {
    padding: 27px 0 5px;
}

.category-price-label {
    color: #d3b170;
    font-weight: 600;
    display: flex;
    min-height: 48px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.25;
    text-align: center;
}

.category-price-values {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 7px;
}

.category-original-price {
    color: #7d8790;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
    white-space: nowrap;
}

.category-discounted-price,
.category-current-price {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.category-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 5px;
    background: #ff2b2b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.category-price-period {
    color: #65717c;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
}

.trending-card > a {
    width: 100%;
    min-width: 0;
}

.trending-card > .row {
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.trending-card > .row > [class*="col-"] {
    padding-left: 7px;
    padding-right: 7px;
    display: flex;
}

.trending-card > .row form {
    display: flex;
    width: 100%;
}

.trending-card .btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    white-space: normal;
    min-height: 36px;
    height: auto;
    line-height: 1.2;
}

/* Keep homepage class cards aligned when titles or statistics have different lengths. */
#classes-section .trend-categories-swiper .swiper-wrapper {
    align-items: stretch;
}

#classes-section .trend-categories-swiper .swiper-slide {
    height: auto;
}

.home-class-card {
    height: 100%;
}

.category-discount-card .trending-image {
    position: relative;
}

.category-card__discount-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e53935;
    box-shadow: 0 4px 10px rgba(229, 57, 53, .25);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.home-class-card__link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

.home-class-card__content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.home-class-card__title {
    display: block;
    width: 100%;
    height: 22px;
    overflow: hidden;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-class-card__stats {
    display: flex;
    min-height: 34px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    align-content: flex-start;
    line-height: 17px;
}

.home-class-card__stats small {
    white-space: nowrap;
}

.home-class-card__stats small:not(:last-child)::after {
    content: "|";
    padding: 0 4px;
    color: #adb5bd;
}

.home-class-card__actions {
    flex: 0 0 auto;
}

.btn-details {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-border-hover)
}

.btn-details:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary-border);
}

@media (max-width: 992px) {
    .category-page-banner {
        height: 310px;
    }

    .banner-slide {
        height: 150px;
        min-height: 150px !important;
    }

    .top-search-categories-form {
        padding-top: 20px;
    }

    .logo-social-section {
        flex-direction: column;
    }

    .logo-social-section .footer-social {
        margin-top: 30px;
    }

    .channel-text {
        font-size: 11px;
    }

    .category-price-label {
        min-height: 52px;
    }
}

@media (max-width: 767px) {
    .category-page-banner {
        height: 270px;
    }
}

@media (max-width: 575px) {
    .categories-list-banner {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .category-card__discount-badge {
        top: 8px;
        inset-inline-end: 8px;
        min-height: 24px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .category-price-values {
        gap: 4px 6px;
    }

    .category-original-price {
        font-size: 12px;
    }

    .category-discounted-price,
    .category-current-price {
        font-size: 15px;
    }

    .category-discount-badge {
        padding: 3px 6px;
        font-size: 10px;
    }

    .trending-card > .row {
        max-width: 210px;
    }
}

.scroll-top-btn {
    background: #003f5d !important;
}

.year {
    font-size: 0.85em;
    color: #6c757d;
}
