/**
 * 朗昭易 LANG ZHAO YI — CIS 品牌樣式覆寫
 *
 * 深海藍 Deep Navy   #1E3A56  專業／穩定／智慧（主文字、深色底）
 * 霧霾藍 Mist Blue   #3A5575  可信／可靠（次要文字、圖示）
 * 晴空藍 Clear Sky   #E6F0FA  通透／明亮（淺底、區塊）
 * 晨曦金 Morning Gold #D4AF6A  指引／行動（主按鈕、強調）
 * 雪白 Snow White    #F5F7FA  純淨／平靜（全站背景）
 */

:root {
    --brand-navy: #1E3A56;
    --brand-mist: #3A5575;
    --brand-sky: #E6F0FA;
    --brand-gold: #D4AF6A;
    --brand-gold-dark: #B8944F;
    --brand-snow: #F5F7FA;
    --brand-white: #FFFFFF;

    --brand-primary: var(--brand-navy);
    --brand-primary-dark: #152A3E;
    --brand-primary-light: var(--brand-mist);
    --brand-accent: var(--brand-gold);
    --brand-accent-dark: var(--brand-gold-dark);

    --bs-primary: #1E3A56;
    --bs-primary-rgb: 30, 58, 86;
    --bs-secondary: #D4AF6A;
    --bs-secondary-rgb: 212, 175, 106;
    --bs-body-bg: #F5F7FA;
    --bs-body-color: #1E3A56;
    --bs-heading-color: #1E3A56;
    --bs-link-color: #3A5575;
    --bs-link-hover-color: #1E3A56;

    --font-serif: "Noto Serif TC", "Source Han Serif TC", "思源宋體", serif;
    --font-sans: "Noto Sans TC", "Source Han Sans TC", "思源黑體", sans-serif;
}

/* ---------- Typography ---------- */
html,
body {
    font-family: var(--font-sans) !important;
    color: var(--brand-navy);
    background-color: var(--brand-snow);
}

h1, h2, h3, h4, h5, h6,
.section-title__title,
.section-title__title-02,
.section-title__title-03,
.slider-caption__main-title,
.page-banner__main-title,
.instructor-item__name,
.course-info__title,
.edumall-box-item__title,
.footer-widget__title {
    font-family: var(--font-serif) !important;
    color: var(--brand-navy);
    letter-spacing: 0.04em;
}

.slider-caption__sub-title,
.menu-primary__container > li > a,
.btn {
    font-family: var(--font-sans) !important;
    letter-spacing: 0.06em;
}

/* ---------- Primary CTA = 晨曦金 ---------- */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-gold);
    --bs-btn-border-color: var(--brand-gold);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-gold-dark);
    --bs-btn-hover-border-color: var(--brand-gold-dark);
    --bs-btn-active-bg: var(--brand-gold-dark);
    --bs-btn-active-border-color: var(--brand-gold-dark);
    --bs-btn-disabled-bg: var(--brand-gold);
    --bs-btn-disabled-border-color: var(--brand-gold);
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-gold-dark) !important;
    border-color: var(--brand-gold-dark) !important;
    color: #fff !important;
}

.btn-secondary,
.btn-light {
    color: var(--brand-navy) !important;
    border-color: var(--brand-sky) !important;
    background-color: var(--brand-white) !important;
    border-radius: 8px;
}

.btn-secondary:hover,
.btn-light:hover,
.btn-hover-primary:hover {
    background-color: var(--brand-sky) !important;
    border-color: var(--brand-mist) !important;
    color: var(--brand-navy) !important;
}

.btn-hover-secondary:hover {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    color: #fff !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-navy);
    --bs-btn-border-color: var(--brand-navy);
    --bs-btn-hover-bg: var(--brand-navy);
    --bs-btn-hover-border-color: var(--brand-navy);
    --bs-btn-hover-color: #fff;
    color: var(--brand-navy);
    border-color: var(--brand-navy);
    border-radius: 8px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--brand-navy) !important;
    border-color: var(--brand-navy) !important;
    color: #fff !important;
}

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

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

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

.badge.bg-light {
    background-color: var(--brand-sky) !important;
    color: var(--brand-mist) !important;
}

/* ---------- Section backgrounds ---------- */
.bg-color-primary {
    background-color: var(--brand-navy) !important;
}

.bg-color-01,
.bg-color-05 {
    background-color: var(--brand-sky) !important;
}

.main-wrapper {
    background-color: var(--brand-snow);
}

/* Features bar on navy — gold icons, white text */
.features-section.bg-color-primary .features-item__title {
    color: #fff !important;
}

.features-section.bg-color-primary .features-item__caption p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.features-section .brand-icon {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* CTA banner */
.banner.bg-color-primary {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-mist) 100%) !important;
    color: #fff;
}

.banner.bg-color-primary h1,
.banner.bg-color-primary h2,
.banner.bg-color-primary h3,
.banner.bg-color-primary h4,
.banner.bg-color-primary h5,
.banner.bg-color-primary h6 {
    color: #fff !important;
}

.banner.bg-color-primary .btn-light {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    color: #fff !important;
}

.banner.bg-color-primary .btn-light:hover {
    background-color: var(--brand-gold-dark) !important;
    border-color: var(--brand-gold-dark) !important;
    color: #fff !important;
}

.home-cta {
    position: relative;
    overflow: hidden;
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(212, 175, 106, 0.18) 0%, transparent 55%),
        linear-gradient(145deg, var(--brand-navy) 0%, #243f5c 48%, var(--brand-mist) 100%);
    border-radius: 16px;
}

.home-cta__title {
    position: relative;
    display: inline-block;
    margin: 0 0 0.75rem;
    color: #fff !important;
    font-family: var(--font-serif) !important;
    font-size: clamp(1.375rem, 2.2vw, 1.625rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.35;
}

.home-cta__title::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 2px;
    margin: 0.65rem auto 0;
    background-color: var(--brand-gold);
    border-radius: 2px;
}

.home-cta__desc {
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9375rem;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.home-cta__btn {
    min-width: 10rem;
    height: 44px;
    line-height: 44px;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .home-cta {
        padding: 2.75rem 2.5rem;
    }

    .home-cta__desc {
        max-width: 42rem;
    }
}

@media (max-width: 575.98px) {
    .home-cta {
        padding: 1.75rem 1.15rem;
        border-radius: 12px;
    }

    .home-cta__btn {
        width: 100%;
        min-width: 0;
    }
}

/* ---------- Title gold underline ---------- */
.section-title__title mark::after,
.section-title__title-02 mark::after,
.section-title__title-03 mark::after,
.mark-title.section-title__title mark::after,
.mark-title.section-title__title-02 mark::after,
.mark-title.section-title__title-03 mark::after {
    background-color: var(--brand-gold) !important;
}

.slider-caption__main-title mark {
    color: inherit;
    background: transparent;
}

/* ---------- Header / Nav ---------- */
/*
 * Sticky offset is set by brand.js (--header-top-offset = .header-top height).
 * Using negative top lets the promo bar scroll away without collapsing its
 * height in document flow — collapsing caused scrollTop thrash / flicker.
 */
.header-section {
    position: sticky;
    top: calc(-1 * var(--header-top-offset, 0px));
    left: auto;
    width: 100%;
    z-index: 100;
    background-color: var(--brand-white);
}

/* Defeat Edumall bannerHeight() margin when sticky class is reintroduced */
.header-section + *,
.brand-hero,
.slider-wrapper,
.page-banner__wrapper {
    margin-top: 0 !important;
}

.header-top {
    background-color: var(--brand-sky) !important;
    padding: 0 !important;
}

.header-top .header-top-bar-wrap__text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    padding: 10px 0 !important;
}

.header-top-bar-wrap__text p {
    color: var(--brand-mist);
    margin: 0;
}

.menu-primary__container > li > a {
    color: var(--brand-navy);
}

.menu-primary__container > li > a.active,
.menu-primary__container > li > a:hover {
    color: var(--brand-gold-dark);
}

.header-serach__input {
    border-color: var(--brand-sky) !important;
    background-color: var(--brand-snow) !important;
    color: var(--brand-navy);
}

.header-serach__btn {
    background-color: var(--brand-navy) !important;
    border-color: var(--brand-navy) !important;
    color: #fff !important;
}

.header-serach__btn:hover {
    background-color: var(--brand-mist) !important;
    border-color: var(--brand-mist) !important;
}

/* ---------- Header layout ---------- */
.header-section .header-main {
    padding: 0 !important;
}

.brand-header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 12px 0;
}

.brand-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.brand-header-bar .header-logo {
    margin-right: 0 !important;
    flex-shrink: 0;
    line-height: 0;
}

.brand-header-bar .header-logo__logo {
    width: auto !important;
    display: block;
    line-height: 0;
}

.brand-header-bar .header-logo__logo .brand-logo-img {
    display: block;
    width: auto;
    height: 40px;
    max-height: 40px;
}

.brand-header-nav {
    justify-self: center;
}

.brand-header-nav .menu-primary__container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-header-nav .menu-primary__container > li > a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    padding: 10px 14px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.brand-header-nav .menu-primary__container > li > a span {
    padding: 0;
}

.brand-header-auth.header-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: 0;
    position: relative;
    justify-self: end;
    gap: 10px;
}

.brand-menu-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--brand-navy);
    font-size: 1.125rem;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.brand-menu-toggle:hover,
.brand-menu-toggle:focus {
    background: var(--brand-sky);
    color: var(--brand-navy);
    outline: none;
    box-shadow: none;
}

.brand-menu-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.35);
}

.brand-menu-toggle i {
    line-height: 1;
}

.brand-auth-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-login-btn {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    height: 36px !important;
    line-height: 1 !important;
    color: #fff !important;
    background-color: var(--brand-gold) !important;
    border: 1px solid var(--brand-gold) !important;
    border-radius: 8px !important;
    padding: 0 18px !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.brand-login-btn:hover,
.brand-login-btn:focus {
    background-color: var(--brand-gold-dark) !important;
    border-color: var(--brand-gold-dark) !important;
    color: #fff !important;
}

/* Auth modals */
.brand-auth-modal .modal-title {
    font-family: var(--font-serif);
    color: var(--brand-navy);
}

.brand-auth-modal .modal-description {
    color: var(--brand-mist);
}

.brand-auth-modal .modal-description button {
    color: var(--brand-gold-dark);
    background: none;
    border: 0;
    padding: 0;
    font-weight: 500;
    height: auto !important;
    line-height: inherit !important;
}

.brand-auth-modal .modal-close {
    color: #fff;
}

.brand-auth-modal .modal-form .btn,
.brand-auth-modal .btn-primary {
    height: 44px !important;
    line-height: 1 !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.brand-auth-footer {
    margin-top: 24px;
}

.brand-auth-divider-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: #8a9bb0;
    font-size: 13px;
}

.brand-auth-divider-label::before,
.brand-auth-divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(30, 58, 86, 0.12);
}

.brand-auth-divider-label span {
    flex-shrink: 0;
}

.brand-auth-register-btn {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    height: 44px !important;
    line-height: 1 !important;
    min-height: 0 !important;
    color: var(--brand-mist) !important;
    background: #fff !important;
    border: 1px solid rgba(58, 85, 117, 0.4) !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.brand-auth-register-btn:hover,
.brand-auth-register-btn:focus {
    color: var(--brand-navy) !important;
    border-color: var(--brand-navy) !important;
    background: var(--brand-sky) !important;
}

@media only screen and (max-width: 1199px) {
    .brand-header-bar {
        grid-template-columns: 1fr auto;
    }

    .brand-header-auth {
        gap: 10px;
    }
}

@media only screen and (max-width: 575.98px) {
    .brand-header-bar {
        min-height: 56px;
        padding: 8px 0;
        gap: 10px;
    }

    .brand-header-bar .header-logo__logo .brand-logo-img {
        height: 34px;
        max-height: 34px;
    }
}

.slider-search__field {
    border-color: var(--brand-sky) !important;
}

.slider-search__submit {
    color: var(--brand-navy) !important;
}

/* ---------- Cards / Teachers ---------- */
.instructor-item,
.course-item,
.card {
    background-color: var(--brand-white);
    border-color: var(--brand-sky) !important;
}

.instructor-item__name,
.course-info__title a {
    color: var(--brand-navy);
}

.instructor-item__name:hover,
.course-info__title a:hover,
.course-info__instructor:hover {
    color: var(--brand-mist);
}

.course-info__price .sale-price {
    color: var(--brand-gold-dark);
}

.instructor-item__designation,
.course-info__badge-text,
.text-muted {
    color: var(--brand-mist) !important;
}

.rating-label {
    background-color: var(--brand-gold) !important;
}

.brand-avatar-fallback {
    color: var(--brand-navy);
    background-color: var(--brand-sky) !important;
}

/* Teacher portrait cards */
.brand-teller-card {
    height: 100%;
}

.brand-teller-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--brand-white);
    border: 1px solid rgba(30, 58, 86, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(30, 58, 86, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-teller-card__link:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 106, 0.45);
    box-shadow: 0 14px 32px rgba(30, 58, 86, 0.12);
    color: inherit;
}

.brand-teller-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--brand-sky);
    overflow: hidden;
}

.brand-teller-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.brand-teller-card__photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--brand-sky) 0%, #d5e4f4 100%);
    color: var(--brand-navy);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .brand-teller-card__media {
        aspect-ratio: 4 / 3;
    }

    .brand-teller-card__body {
        padding: 12px 12px 10px;
        gap: 6px;
    }

    .brand-teller-card__name {
        font-size: 1rem;
    }

    .brand-teller-card__desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .brand-teller-card__footer {
        padding: 10px 12px 12px;
        flex-wrap: wrap;
    }
}

.brand-teller-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 16px 12px;
    flex: 1 1 auto;
}

.brand-teller-card__name {
    margin: 0;
    font-family: var(--font-serif) !important;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brand-navy);
    line-height: 1.3;
}

.brand-teller-card__link:hover .brand-teller-card__name {
    color: var(--brand-gold-dark);
}

.brand-teller-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-sky);
    color: var(--brand-mist);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.brand-teller-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--brand-mist);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-teller-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(30, 58, 86, 0.08);
}

.brand-teller-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brand-mist);
    white-space: nowrap;
}

.brand-teller-card__meta i {
    font-size: 11px;
    color: var(--brand-gold-dark);
}

.brand-teller-card__meta--action {
    color: var(--brand-navy);
    font-weight: 500;
}

/* ---------- Blog cards (最新文章) ---------- */
.brand-blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(30, 58, 86, 0.08);
    background: var(--brand-white);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.brand-blog-card:hover {
    box-shadow: 0 16px 40px rgba(30, 58, 86, 0.12);
}

.brand-blog-card__image a {
    display: block;
    aspect-ratio: 770 / 417;
    overflow: hidden;
    background: var(--brand-sky);
}

.brand-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0, 0, 0.2, 1);
}

.brand-blog-card:hover .brand-blog-card__image img {
    transform: scale(1.06);
}

.brand-blog-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 24px 24px;
}

.brand-blog-card__meta {
    margin-bottom: 6px;
}

.brand-blog-card__meta .meta-action {
    color: var(--brand-mist);
    font-size: 13px;
}

.brand-blog-card__meta .meta-action i {
    color: var(--brand-gold-dark);
}

.brand-blog-card__title {
    font-family: var(--font-serif) !important;
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
    -webkit-line-clamp: 2;
}

.brand-blog-card__title a {
    color: var(--brand-navy);
    text-decoration: none;
}

.brand-blog-card__title a:hover {
    color: var(--brand-mist);
}

.brand-blog-card__excerpt {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--brand-mist);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-blog-card__actions {
    margin-top: auto;
    padding-top: 20px;
}

.brand-blog-card__more {
    align-self: flex-start;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    height: auto !important;
    min-height: 40px;
    line-height: 1.4 !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--brand-navy) !important;
    background: var(--brand-sky) !important;
    border: none !important;
    border-radius: 4px;
}

.brand-blog-card__more:hover {
    color: #fff !important;
    background: var(--brand-navy) !important;
}

.brand-blog-card__more i {
    margin-left: 0;
    line-height: 1;
}

/* Blog details body */
.blog-details-no-sidebar .blog-details__content {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

.blog-details-no-sidebar .blog-details__content p,
.blog-details-no-sidebar .blog-details__content li {
    font-size: 17px;
    line-height: 1.9;
}

.blog-details-no-sidebar .blog-details__content ul {
    list-style-type: disc;
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

.blog-details-no-sidebar .blog-details__content ol {
    list-style-type: decimal;
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

.blog-details-no-sidebar .blog-details__content li {
    display: list-item;
    margin: 0.35rem 0;
}

.blog-details-no-sidebar .blog-details__content img {
    border-radius: 0.75rem;
    display: block;
    height: auto;
    margin: 1.25rem auto;
    max-width: 100%;
}

.blog-details-no-sidebar .blog-details__content a {
    color: var(--brand-accent, #c9a227);
    text-decoration: underline;
}

.blog-details-no-sidebar .blog-details__content blockquote {
    border-left: 4px solid rgba(15, 23, 42, 0.15);
    color: #555;
    margin: 1rem 0;
    padding-left: 1rem;
}

.blog-details-no-sidebar .blog-details__content h2 {
    font-size: 26px;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.blog-details-no-sidebar .blog-details__content h3 {
    font-size: 22px;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.blog-details-no-sidebar .blog-details__content mark {
    background: #fef08a;
    padding: 0 0.15rem;
}

.blog-details-no-sidebar .blog-details__content hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 1.5rem 0;
}

@media only screen and (max-width: 575px) {
    .blog-details-no-sidebar .blog-details__content,
    .blog-details-no-sidebar .blog-details__content p,
    .blog-details-no-sidebar .blog-details__content li {
        font-size: 16px;
    }
}

/* Official brand logo */
.brand-logo-img {
    height: auto;
    max-height: 48px;
    width: auto;
    display: block;
}

.header-logo__logo .brand-logo-img {
    max-height: 52px;
}

.offcanvas-logo__logo .brand-logo-img {
    max-height: 40px;
}

/* ---------- Mobile offcanvas nav ---------- */
.brand-offcanvas {
    background-color: var(--brand-navy) !important;
    width: min(100vw, 360px);
}

.brand-offcanvas::before {
    display: none;
}

.brand-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(30, 58, 86, 0.08);
}

.brand-offcanvas__header .offcanvas-logo__logo {
    width: auto;
    line-height: 0;
}

.brand-offcanvas__header .brand-logo-img {
    height: 36px;
    max-height: 36px;
    width: auto;
}

.brand-offcanvas__close {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--brand-navy);
    font-size: 1rem;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.brand-offcanvas__close:hover,
.brand-offcanvas__close:focus {
    background: var(--brand-sky);
    color: var(--brand-navy);
    outline: none;
    box-shadow: none;
}

.brand-offcanvas__close:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.35);
}

.brand-offcanvas__close i {
    line-height: 1;
    font-size: 1rem;
}

.brand-offcanvas__body {
    padding: 8px 20px 20px;
}

.brand-offcanvas__menu li > a {
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease;
}

.brand-offcanvas__menu li > a:hover,
.brand-offcanvas__menu li > a:focus {
    color: var(--brand-gold);
}

.brand-offcanvas__user {
    margin: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-offcanvas__user > * {
    margin: 0;
    width: 100%;
}

.brand-offcanvas__actions {
    display: grid;
    gap: 10px;
    width: 100%;
}

.brand-offcanvas__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 44px;
    height: auto !important;
    margin: 0;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.brand-offcanvas__btn--primary {
    background: var(--brand-gold) !important;
    border: 1px solid var(--brand-gold) !important;
    color: #fff !important;
}

.brand-offcanvas__btn--primary:hover,
.brand-offcanvas__btn--primary:focus {
    background: var(--brand-gold-dark) !important;
    border-color: var(--brand-gold-dark) !important;
    color: #fff !important;
}

.brand-offcanvas__btn--ghost {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

.brand-offcanvas__btn--ghost:hover,
.brand-offcanvas__btn--ghost:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.brand-offcanvas__btn--light {
    background: #fff !important;
    border: 1px solid #fff !important;
    color: var(--brand-navy) !important;
}

.brand-offcanvas__btn--light:hover,
.brand-offcanvas__btn--light:focus {
    background: var(--brand-sky) !important;
    border-color: var(--brand-sky) !important;
    color: var(--brand-navy) !important;
}

.brand-logo-img--footer {
    max-height: 56px;
    margin: 0;
}

/* ---------- Icons ---------- */
.brand-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    object-fit: contain;
}

.brand-icon--lg {
    width: 72px;
    height: 72px;
}

.brand-icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-white);
    border: 1px solid var(--brand-sky);
    border-radius: 12px;
}

.features-section .brand-icon-box {
    flex-shrink: 0;
    margin: 0;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.25);
}

.features-section .features-item {
    max-width: none;
    gap: 14px;
}

.features-section .features-item__caption {
    text-align: left;
    padding-left: 0;
    min-width: 0;
}

.features-section .features-item__caption p {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .features-section {
        padding: 18px 0;
    }

    .features-section .brand-icon-box {
        width: 56px;
        height: 56px;
    }

    .features-section .brand-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575.98px) {
    .features-section .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1rem;
    }

    .features-section .features-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .features-section .features-item__title {
        font-size: 14px;
        line-height: 1.4;
    }

    .features-section .features-item__caption p {
        font-size: 12px;
    }
}

.categories-item__icon svg .primary-fill-color,
.categories-item:hover .categories-item__icon svg .primary-fill-color {
    fill: var(--brand-navy) !important;
}

/* ---------- Page banner ---------- */
.page-banner {
    background-color: var(--brand-sky) !important;
}

.page-banner__main-title {
    color: var(--brand-navy) !important;
    font-family: var(--font-serif) !important;
}

/* Slim breadcrumb-only banner (no page title) */
.page-banner:not(:has(.page-banner__caption)) .page-banner__wrapper {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--brand-mist);
}

.breadcrumb-item a:hover {
    color: var(--brand-navy);
}

.breadcrumb-item.active {
    color: var(--brand-navy);
}

/* ---------- FAQ ---------- */
.accordion-button {
    color: var(--brand-navy);
    font-family: var(--font-sans);
}

.accordion-button:not(.collapsed) {
    color: var(--brand-navy);
    background-color: var(--brand-sky);
}

.accordion-button:focus {
    border-color: var(--brand-mist);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 86, 0.12);
}

.home-faq {
    position: relative;
    background-color: var(--brand-navy);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

.home-faq__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(30, 58, 86, 0.92) 0%,
            rgba(30, 58, 86, 0.78) 45%,
            rgba(30, 58, 86, 0.55) 70%,
            rgba(30, 58, 86, 0.35) 100%
        ),
        linear-gradient(
            180deg,
            rgba(30, 58, 86, 0.2) 0%,
            transparent 40%,
            rgba(30, 58, 86, 0.3) 100%
        );
    pointer-events: none;
}

.home-faq__container {
    position: relative;
    z-index: 1;
}

.home-faq__heading {
    margin: 0;
    color: #fff !important;
    font-family: var(--font-serif) !important;
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.25;
    writing-mode: horizontal-tb;
}

.home-faq__heading::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 1.25rem;
    background-color: var(--brand-gold);
    border-radius: 2px;
}

.home-faq__accordion .accordion-item {
    border: 0;
    background: none;
}

.home-faq__accordion .accordion-item + .accordion-item {
    margin-top: 0.75rem;
}

.home-faq__accordion .accordion-button {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.875rem 3.25rem 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--brand-navy);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 4px 16px rgba(21, 42, 62, 0.08);
}

.home-faq__accordion .accordion-button::after {
    position: absolute;
    top: 50% !important;
    right: 1.15rem;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 !important;
    padding: 0;
    background: none !important;
    background-image: none !important;
    transform: translateY(-50%) !important;
    line-height: 1.25rem !important;
    text-align: center;
    font-size: 1.125rem;
    color: var(--brand-navy);
    content: "\f055";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
}

.home-faq__accordion .accordion-button:not(.collapsed) {
    border-color: transparent;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background-color: var(--brand-gold);
    color: var(--brand-navy);
    box-shadow: none;
}

.home-faq__accordion .accordion-button:not(.collapsed)::after {
    top: 50% !important;
    right: 1.15rem;
    transform: translateY(-50%) !important;
    color: var(--brand-navy);
    content: "\f056";
}

.home-faq__accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(30, 58, 86, 0.25);
}

.home-faq__accordion .accordion-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 12px 32px rgba(21, 42, 62, 0.18);
}

.home-faq__accordion .accordion-body {
    padding: 1rem 1.25rem 1.15rem;
}

.home-faq__accordion .accordion-body p {
    margin: 0;
    color: var(--brand-mist);
    font-size: 0.9375rem;
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .home-faq {
        background-position: center center;
    }

    .home-faq__overlay {
        background: rgba(30, 58, 86, 0.88);
    }

    .home-faq__heading {
        margin-bottom: 0.5rem;
        font-size: clamp(2.25rem, 8vw, 3rem);
    }
}

@media (max-width: 575.98px) {
    .home-faq__accordion .accordion-button {
        font-size: 0.9375rem;
        padding: 0.75rem 2.75rem 0.75rem 1rem;
    }

    .home-faq__accordion .accordion-button::after,
    .home-faq__accordion .accordion-button:not(.collapsed)::after {
        right: 0.9rem;
    }

    .home-faq {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ---------- Section header buttons on small screens ---------- */
@media (max-width: 575.98px) {
    .instructors-section .btn,
    .blog-section .btn {
        width: 100%;
    }

    .section-title__title {
        font-size: clamp(1.5rem, 7vw, 1.85rem) !important;
    }

    .booking-process-step .brand-icon-box {
        width: 60px;
        height: 60px;
    }

    .booking-process-step .brand-icon--lg {
        width: 40px;
        height: 40px;
    }

    .booking-process-step .edumall-box-item__content p {
        font-size: 0.8125rem;
        max-width: none;
    }

    .brand-shop-card__fallback {
        font-size: 2rem;
    }

    .brand-shop-card .product-item__thumbnail img,
    .brand-shop-list-card .product-list-item__thumbnail img {
        aspect-ratio: 4 / 3;
    }

    .brand-shop-card__fallback {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Page banner compact on mobile ---------- */
@media (max-width: 767.98px) {
    .page-banner__wrapper {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .page-banner__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        margin-bottom: 0 !important;
    }

    .page-banner:not(:has(.page-banner__caption)) .page-banner__wrapper {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

/* ---------- Pagination / Forms ---------- */
.pagination .page-link {
    color: var(--brand-navy);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
}

.pagination .page-link:hover {
    color: var(--brand-mist);
    background-color: var(--brand-sky);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-mist);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 86, 0.12);
}

/* ---------- Footer ---------- */
.footer-section.footer-bg-1 {
    background-color: var(--brand-navy) !important;
}

.footer-widget__title,
.footer-widget__link a,
.footer-widget__copyright,
.footer-widget p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-widget__link a:hover {
    color: var(--brand-gold) !important;
}

.footer-widget__copyright span {
    color: var(--brand-gold) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 28px;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 20px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.footer-legal-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--brand-gold);
}

.footer-copyright {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-copyright__divider {
    margin: 0 6px;
    opacity: 0.6;
}

.footer-made-by {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-made-by a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-made-by a:hover {
    color: var(--brand-gold);
}

/* ---------- Back to top ---------- */
.back-to-top {
    background-color: var(--brand-navy) !important;
}

.back-to-top:hover {
    background-color: var(--brand-gold) !important;
}

/* ---------- Widget filter ---------- */
.widget-filter__title {
    color: var(--brand-navy);
    font-family: var(--font-serif);
}

.widget-filter__list a {
    color: var(--brand-mist);
}

.widget-filter__list a.fw-bold,
.widget-filter__list a.text-primary {
    color: var(--brand-navy) !important;
}

/* ---------- Hero full-bleed ---------- */
.brand-hero {
    position: relative;
    min-height: clamp(480px, 72vh, 680px);
    display: flex;
    align-items: center;
    background-color: var(--brand-navy);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.brand-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(30, 58, 86, 0.55) 0%,
            rgba(30, 58, 86, 0.28) 42%,
            rgba(30, 58, 86, 0.45) 100%
        ),
        linear-gradient(
            180deg,
            rgba(245, 247, 250, 0.08) 0%,
            rgba(30, 58, 86, 0.22) 100%
        );
    pointer-events: none;
}

.brand-hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(36px, 5vw, 72px);
    padding-top: 56px;
    padding-bottom: 64px;
    padding-right: clamp(24px, 6vw, 80px);
}

.brand-hero__copy {
    flex: 0 1 480px;
    max-width: 480px;
    color: #fff;
}

.brand-hero__panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: clamp(0px, 2vw, 40px);
    padding: 28px 24px;
    border-radius: 16px;
    background: rgba(245, 247, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 48px rgba(30, 58, 86, 0.18);
}

.brand-hero__title {
    margin: 0 0 16px;
    font-family: var(--font-serif) !important;
    font-size: clamp(2.35rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(30, 58, 86, 0.35);
}

.brand-hero__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(30, 58, 86, 0.3);
}

.brand-hero__eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--brand-mist);
}

.brand-hero__search {
    position: relative;
    margin-bottom: 14px;
}

.brand-hero__search-input {
    width: 100%;
    height: 48px;
    padding: 0 52px 0 18px;
    border: 1px solid rgba(30, 58, 86, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(30, 58, 86, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-hero__search-input::placeholder {
    color: #8a9bb0;
}

.brand-hero__search-input:focus {
    outline: none;
    border-color: rgba(212, 175, 106, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.18);
}

.brand-hero__search-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.brand-hero__search-btn:hover {
    background: var(--brand-gold-dark);
}

.brand-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.brand-hero__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30, 58, 86, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand-mist);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.brand-hero__tag:hover {
    color: var(--brand-navy);
    border-color: var(--brand-gold);
    background: #fff;
}

.brand-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.brand-hero__actions .btn {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
    padding: 10px 18px !important;
    font-size: 13px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-hero__actions .btn-light {
    background: transparent !important;
    border-color: rgba(30, 58, 86, 0.2) !important;
    color: var(--brand-navy) !important;
}

.brand-hero__actions .btn-light:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--brand-mist) !important;
}

@media (max-width: 991px) {
    .brand-hero {
        min-height: auto;
        background-position: 35% center;
    }

    .brand-hero__container {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
        padding-top: 48px;
        padding-bottom: 36px;
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }

    .brand-hero__copy {
        flex: none;
        max-width: none;
    }

    .brand-hero__title {
        font-size: clamp(1.85rem, 5.5vw, 2.5rem);
        letter-spacing: 0.06em;
    }

    .brand-hero__desc {
        font-size: 14px;
        max-width: 36rem;
    }

    .brand-hero__panel {
        max-width: none;
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .brand-hero {
        background-position: 42% center;
    }

    .brand-hero__container {
        gap: 20px;
        padding-top: 36px;
        padding-bottom: 28px;
    }

    .brand-hero__title br {
        display: none;
    }

    .brand-hero__panel {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .brand-hero__tags {
        gap: 6px;
    }

    .brand-hero__tag {
        padding: 5px 10px;
    }

    .brand-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-hero__actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- East / West path diptych ---------- */
.path-split {
    position: relative;
    display: block;
    min-height: clamp(420px, 58vh, 560px);
    overflow: hidden;
}

/* Slash uses the same polygon math as the panels — stays aligned */
.path-split::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 106, 0),
        rgba(212, 175, 106, 0.95) 16%,
        rgba(212, 175, 106, 0.95) 84%,
        rgba(212, 175, 106, 0)
    );
    clip-path: polygon(calc(54% - 1px) 0, calc(54% + 1px) 0, calc(46% + 1px) 100%, calc(46% - 1px) 100%);
    filter: drop-shadow(0 0 10px rgba(212, 175, 106, 0.45));
    transition:
        clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
}

.path-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding: 48px 44px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    isolation: isolate;
    transition:
        clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
}

.path-panel__media {
    position: absolute;
    inset: -4%;
    z-index: 0;
    background-color: var(--brand-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.path-panel__veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 0.45s ease;
}

.path-panel__mark {
    position: absolute;
    top: 28px;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 8vw, 7rem);
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s ease;
}

.path-panel__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 360px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-panel__label {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
}

.path-panel__desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.path-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.path-panel__tag {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border: 1px solid transparent;
    transition: transform 0.35s ease;
}

.path-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: gap 0.3s ease;
}

.path-panel__cta i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

/* Eastern — ink, deep, grounded */
.path-panel--east {
    justify-content: flex-start;
    z-index: 2;
    clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%);
}

.path-panel--east .path-panel__veil {
    background:
        linear-gradient(
            115deg,
            rgba(21, 42, 62, 0.88) 0%,
            rgba(30, 58, 86, 0.72) 42%,
            rgba(30, 58, 86, 0.35) 100%
        );
}

.path-panel--east .path-panel__mark {
    left: 28px;
    color: rgba(212, 175, 106, 0.18);
}

.path-panel--east .path-panel__label,
.path-panel--east .path-panel__desc,
.path-panel--east .path-panel__cta {
    color: #fff;
}

.path-panel--east .path-panel__desc {
    color: rgba(255, 255, 255, 0.82);
}

.path-panel--east .path-panel__tag {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 106, 0.45);
    background: rgba(212, 175, 106, 0.12);
}

.path-panel--east .path-panel__cta {
    color: var(--brand-gold);
    border-bottom: 1px solid rgba(212, 175, 106, 0.55);
    padding-bottom: 4px;
}

/* Western — airy, celestial */
.path-panel--west {
    justify-content: flex-end;
    text-align: right;
    z-index: 1;
    clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%);
}

.path-panel--west .path-panel__veil {
    background:
        linear-gradient(
            245deg,
            rgba(245, 247, 250, 0.92) 0%,
            rgba(230, 240, 250, 0.78) 48%,
            rgba(230, 240, 250, 0.35) 100%
        );
}

.path-panel--west .path-panel__mark {
    right: 28px;
    color: rgba(30, 58, 86, 0.1);
}

.path-panel--west .path-panel__body {
    align-items: flex-end;
}

.path-panel--west .path-panel__label {
    color: var(--brand-navy);
    letter-spacing: 0.16em;
}

.path-panel--west .path-panel__desc {
    color: var(--brand-mist);
}

.path-panel--west .path-panel__tag {
    color: var(--brand-mist);
    border-color: rgba(58, 85, 117, 0.22);
    background: rgba(255, 255, 255, 0.55);
}

.path-panel--west .path-panel__cta {
    color: var(--brand-navy);
    border-bottom: 1px solid rgba(30, 58, 86, 0.35);
    padding-bottom: 4px;
}

/* Hover: expand hovered side, push slash, zoom, dim the other */
.path-split:has(.path-panel--east:hover)::after {
    clip-path: polygon(calc(62% - 1.5px) 0, calc(62% + 1.5px) 0, calc(54% + 1.5px) 100%, calc(54% - 1.5px) 100%);
    filter: drop-shadow(0 0 16px rgba(212, 175, 106, 0.75));
}

.path-split:has(.path-panel--east:hover) .path-panel--east {
    clip-path: polygon(0 0, 62% 0, 54% 100%, 0 100%);
}

.path-split:has(.path-panel--east:hover) .path-panel--west {
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 54% 100%);
    filter: brightness(0.78) saturate(0.8);
}

.path-split:has(.path-panel--west:hover)::after {
    clip-path: polygon(calc(46% - 1.5px) 0, calc(46% + 1.5px) 0, calc(38% + 1.5px) 100%, calc(38% - 1.5px) 100%);
    filter: drop-shadow(0 0 16px rgba(212, 175, 106, 0.75));
}

.path-split:has(.path-panel--west:hover) .path-panel--west {
    clip-path: polygon(46% 0, 100% 0, 100% 100%, 38% 100%);
}

.path-split:has(.path-panel--west:hover) .path-panel--east {
    clip-path: polygon(0 0, 46% 0, 38% 100%, 0 100%);
    filter: brightness(0.78) saturate(0.8);
}

.path-panel:hover .path-panel__media {
    transform: scale(1.08);
}

.path-panel:hover .path-panel__mark {
    transform: scale(1.06);
}

.path-panel--east:hover .path-panel__mark {
    color: rgba(212, 175, 106, 0.32);
}

.path-panel--west:hover .path-panel__mark {
    color: rgba(30, 58, 86, 0.2);
}

.path-panel:hover .path-panel__body {
    transform: translate3d(0, -8px, 0);
}

.path-panel:hover .path-panel__cta {
    gap: 12px;
}

.path-panel:hover .path-panel__cta i {
    transform: translateX(4px);
}

.path-panel:hover .path-panel__tag {
    transform: translateY(-2px);
}

.path-panel--east:hover .path-panel__veil {
    opacity: 0.9;
}

.path-panel--west:hover .path-panel__veil {
    opacity: 0.82;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .path-panel {
        padding: 36px 28px;
    }

    .path-panel__body {
        max-width: 280px;
    }

    .path-panel__mark {
        font-size: clamp(3.5rem, 6vw, 5rem);
    }

    .path-panel__tags {
        max-width: 240px;
    }

    .path-panel__desc {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .path-split {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .path-split::after {
        display: none;
    }

    .path-panel,
    .path-split:has(.path-panel--east:hover) .path-panel--east,
    .path-split:has(.path-panel--east:hover) .path-panel--west,
    .path-split:has(.path-panel--west:hover) .path-panel--east,
    .path-split:has(.path-panel--west:hover) .path-panel--west {
        position: relative;
        width: 100%;
        min-height: 300px;
        padding: 32px 24px;
        clip-path: none !important;
        filter: none !important;
    }

    .path-panel__mark {
        top: 20px;
        font-size: clamp(3.25rem, 18vw, 5rem);
        opacity: 0.9;
    }

    .path-panel__body {
        max-width: none;
    }

    .path-panel__tags {
        gap: 6px;
    }

    .path-panel__tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .path-panel__cta {
        margin-top: 20px;
    }

    .path-panel--west {
        justify-content: flex-start;
        text-align: left;
    }

    .path-panel--west .path-panel__body {
        align-items: flex-start;
    }

    .path-panel--west .path-panel__mark {
        right: auto;
        left: 20px;
    }

    .path-panel--east .path-panel__mark {
        left: 20px;
    }
}

@media (max-width: 575.98px) {
    .path-panel,
    .path-split:has(.path-panel--east:hover) .path-panel--east,
    .path-split:has(.path-panel--east:hover) .path-panel--west,
    .path-split:has(.path-panel--west:hover) .path-panel--east,
    .path-split:has(.path-panel--west:hover) .path-panel--west {
        min-height: 280px;
        padding: 28px 18px;
    }

    .path-panel__label {
        font-size: 1.5rem;
    }

    .path-panel__desc {
        font-size: 13px;
    }
}

/* ---------- Booking process ---------- */
#booking-process.section-padding-02 {
    padding-bottom: 70px;
}

@media (max-width: 767px) {
    #booking-process.section-padding-02 {
        padding-bottom: 50px;
    }
}

.booking-process-step {
    position: relative;
    padding-top: 0.5rem;
}

.booking-process-step__num {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--brand-gold);
}

.booking-process-step .edumall-box-item__content p {
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--brand-mist);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.section-title__desc {
    color: var(--brand-mist);
    font-size: 1rem;
}

@media (min-width: 992px) {
    .booking-process-steps > [class*="col-"]:not(:last-child) .booking-process-step::after {
        content: "";
        position: absolute;
        top: 5.25rem;
        right: -1.25rem;
        width: 2.5rem;
        height: 1px;
        background: linear-gradient(90deg, var(--brand-gold), transparent);
        pointer-events: none;
    }
}

/* legacy slider overrides kept for other pages if any */
.slider-section {
    background-color: var(--brand-snow);
}

.slider-caption__sub-title {
    color: var(--brand-mist) !important;
}

.slider-caption p {
    color: var(--brand-mist);
}

/* ---------- Shop / 命理師列表 ---------- */
.brand-shop .sidebar-widget-wrap {
    background-color: var(--brand-sky) !important;
}

.brand-shop .sidebar-widget-wrap__title {
    font-family: var(--font-serif) !important;
    color: var(--brand-navy);
}

.brand-shop-filter-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.brand-shop-filter-link input,
.brand-shop-filter-link label {
    pointer-events: none;
}

.brand-shop-filter-link:hover label {
    color: var(--brand-navy);
}

.brand-shop .widget-filter__item input[type=radio]:checked + label::before,
.brand-shop .widget-filter__item input[type=checkbox]:checked + label::before {
    border-color: var(--brand-gold);
    background: var(--brand-gold);
}

.brand-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    justify-content: flex-end;
}

.brand-shop-toolbar .nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: #ccc;
    background-color: transparent;
    padding: 4px;
    line-height: 1;
    width: 26px;
    height: 26px;
    text-decoration: none;
}

.brand-shop-toolbar .nav li a.active {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
}

.brand-shop-sort {
    margin: 0;
}

.brand-shop-sort__select,
.brand-shop .filter-select .form-select,
.brand-shop .brand-shop-sort__select.form-select {
    min-width: 150px;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 32px 0 12px !important;
    border-color: rgba(30, 58, 86, 0.15);
    color: var(--brand-navy);
    font-size: 13px;
    line-height: 34px !important;
    background-position: right 10px center;
}

.brand-shop-search-panel {
    margin-bottom: 20px;
}

.brand-shop-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.brand-shop-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-mist);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.brand-shop-search__input {
    width: 100%;
    height: 52px;
    padding: 0 108px 0 44px;
    border: 1px solid rgba(30, 58, 86, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(30, 58, 86, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-shop-search__input::-webkit-search-cancel-button {
    display: none;
}

.brand-shop-search__input::placeholder {
    color: #8a9bb0;
}

.brand-shop-search__input:focus {
    outline: none;
    border-color: rgba(212, 175, 106, 0.75);
    box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.18), 0 8px 24px rgba(30, 58, 86, 0.06);
}

.brand-shop-search__clear {
    position: absolute;
    right: 88px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-mist);
    background: var(--brand-sky);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.brand-shop-search__clear:hover {
    color: #fff;
    background: var(--brand-navy);
}

.brand-shop-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-gold);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: background-color 0.2s ease;
}

.brand-shop-search__btn:hover {
    background: var(--brand-gold-dark);
}

.brand-shop-search__hints {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.brand-shop-search__hints-label {
    font-size: 13px;
    color: var(--brand-mist);
}

.brand-shop-search__hint {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30, 58, 86, 0.1);
    background: #fff;
    color: var(--brand-mist);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.brand-shop-search__hint:hover {
    color: var(--brand-navy);
    border-color: rgba(212, 175, 106, 0.55);
    background: rgba(212, 175, 106, 0.08);
}

.brand-shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 22px;
}

.brand-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-sky);
    color: var(--brand-navy);
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.brand-shop-chip i {
    font-size: 11px;
    opacity: 0.7;
}

.brand-shop-chip:hover {
    background: var(--brand-navy);
    color: #fff;
}

.brand-shop-chip--reset {
    background: transparent;
    border: 1px dashed rgba(30, 58, 86, 0.25);
    color: var(--brand-mist);
}

.brand-shop-chip--reset:hover {
    background: var(--brand-sky);
    color: var(--brand-navy);
    border-style: solid;
}

.brand-shop-empty {
    text-align: center;
    padding: 56px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(30, 58, 86, 0.08);
}

.brand-shop-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-sky);
    color: var(--brand-gold-dark);
    font-size: 20px;
}

.brand-shop-empty__title {
    font-family: var(--font-serif) !important;
    font-size: 1.25rem;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.brand-shop-empty__text {
    max-width: 28rem;
    margin: 0 auto 20px;
    color: var(--brand-mist);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.brand-shop-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 575px) {
    .brand-shop-search__input {
        height: 48px;
        padding-right: 96px;
        font-size: 14px;
    }

    .brand-shop-search__btn {
        padding: 0 14px;
        font-size: 13px;
    }

    .brand-shop-search__clear {
        right: 78px;
    }

    .brand-shop-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .brand-shop-sort__select,
    .brand-shop .filter-select .form-select,
    .brand-shop .brand-shop-sort__select.form-select {
        min-width: 0;
        width: 100%;
    }

    .archive-filter-bars {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .archive-filter-bar + .archive-filter-bar {
        margin-top: 0;
    }
}

/* Shop layout: results first on small screens; filters follow in compact grid */
@media (max-width: 991.98px) {
    .brand-shop .row.flex-row-reverse {
        flex-direction: column !important;
    }

    .brand-shop .shop-main-content,
    .brand-shop .shop-main-sidebar {
        width: 100%;
    }

    .brand-shop .shop-main-sidebar {
        margin-top: 0.5rem;
    }

    .brand-shop .sidebar-widget-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-shop .sidebar-widget-wrap {
        margin-bottom: 0;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .brand-shop .sidebar-widget-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .brand-shop .sidebar-widget-wrap.mt-4 {
        margin-top: 0 !important;
    }
}

.brand-shop-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 251 / 290;
    background: linear-gradient(160deg, var(--brand-sky), #d7e4f2);
    color: var(--brand-navy);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
}

.brand-shop-card__fallback--list {
    aspect-ratio: 230 / 266;
    min-height: 200px;
}

.brand-shop-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.brand-shop-card .product-item__thumbnail a,
.brand-shop-list-card .product-list-item__thumbnail a {
    display: block;
    overflow: hidden;
    background: var(--brand-sky);
}

.brand-shop-card .product-item__thumbnail {
    overflow: hidden;
    background: var(--brand-sky);
}

.brand-shop-card .product-item__thumbnail img,
.brand-shop-list-card .product-list-item__thumbnail img {
    width: 100%;
    aspect-ratio: 251 / 290;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.brand-shop-list-card .product-list-item__thumbnail img {
    aspect-ratio: 230 / 266;
}

.brand-shop-card .product-item__actions {
    display: none !important;
}

.brand-shop .product-item:hover .product-item__thumbnail img,
.brand-shop .product-list-item:hover .product-list-item__thumbnail img {
    filter: none;
    transform: scale(1.04);
}

.brand-shop-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left !important;
    padding-top: 14px;
}

.brand-shop-card__info .product-item__title {
    text-align: left;
}

.brand-shop-card__excerpt {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--brand-mist);
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-shop-card__price {
    margin-top: auto;
    padding-top: 12px;
    text-align: left;
}

.brand-shop-list-card__info {
    display: flex;
    flex-direction: column;
}

.brand-shop-list-card__price {
    margin-top: 12px;
}

.brand-shop .product-item__price .sale-price,
.brand-shop .product-list-item__price .sale-price {
    color: var(--brand-gold-dark);
}

.brand-shop .product-item__title,
.brand-shop .product-list-item__title {
    font-family: var(--font-serif) !important;
    color: var(--brand-navy);
}

.brand-shop .product-item__badge .best-seller,
.brand-shop .product-list-item__badge .best-seller {
    background: var(--brand-navy);
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.brand-shop .product-item__action:hover,
.brand-shop .product-list-item__action:hover {
    background: var(--brand-gold);
    color: #fff;
}

/* Fortune teller detail profile */
.brand-teller-profile__tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(30, 58, 86, 0.15);
    border-radius: 999px;
    background: var(--brand-sky);
    color: var(--brand-navy);
    font-size: 0.8125rem;
    font-weight: 500;
}

.brand-teller-profile__meta dd {
    color: var(--brand-navy);
}

.brand-teller-profile__bio {
    line-height: 1.8;
}

.brand-teller-profile__bio p {
    margin-bottom: 0.75rem;
}

.brand-teller-profile__bio ul,
.brand-teller-profile__bio ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.brand-teller-profile__bio h2,
.brand-teller-profile__bio h3 {
    color: var(--brand-navy);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.brand-teller-profile__bio blockquote {
    border-left: 3px solid rgba(15, 23, 42, 0.15);
    margin: 0.75rem 0;
    padding-left: 0.75rem;
}

.brand-teller-profile__avatar {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.brand-teller-profile__avatar-fallback {
    height: 320px;
    max-height: 50vw;
    min-height: 200px;
    font-size: clamp(2.5rem, 12vw, 4rem);
    font-weight: 700;
}

.brand-teller-profile__salon {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

@media (max-width: 767.98px) {
    .brand-teller-profile__avatar,
    .brand-teller-profile__avatar-fallback {
        max-height: 240px;
        height: 240px;
    }

    .brand-teller-profile__meta > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .brand-teller-profile__meta > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .page-breadcrumb .breadcrumb {
        flex-wrap: wrap;
        row-gap: 0.25rem;
        font-size: 0.8125rem;
    }
}

.brand-service-card__includes {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.brand-service-card__includes li + li {
    margin-top: 0.35rem;
}

/* Booking calendar sidebar */
.brand-booking-calendar__weekdays,
.brand-booking-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.brand-booking-calendar__weekdays {
    margin-bottom: 0.35rem;
}

.brand-booking-calendar__weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
}

.brand-booking-calendar__cell {
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--brand-navy);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-booking-calendar__cell.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.brand-booking-calendar__cell.is-disabled {
    color: #adb5bd;
    cursor: default;
}

.brand-booking-calendar__cell:not(.is-disabled):not(.is-empty) {
    background: var(--brand-sky);
    cursor: pointer;
}

.brand-booking-calendar__cell:not(.is-disabled):not(.is-empty):hover {
    border-color: var(--brand-gold);
}

.brand-booking-calendar__cell.is-today:not(.is-selected) {
    border-color: rgba(30, 58, 86, 0.35);
}

.brand-booking-calendar__cell.is-selected:not(.is-disabled) {
    background: var(--brand-sky);
    color: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    font-weight: 700;
}

.brand-booking-slot {
    cursor: pointer;
    min-width: 4.25rem;
}

[data-slot-list] .brand-booking-slot {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
}

/* Detail page sidebar: cancel Edumall course-hero offset (-368px) */
.course-single-section .tutor-course-sidebar {
    transform: none;
    max-width: 100%;
}

/* ---------- Member center ---------- */
.brand-member-sidebar__card {
    background: var(--brand-white);
    border: 1px solid var(--brand-sky);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 1.25rem;
}

.brand-member-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--brand-sky);
}

.brand-member-sidebar__identity {
    min-width: 0;
}

.brand-member-sidebar__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--brand-navy), var(--brand-mist));
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.brand-member-sidebar__name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--brand-navy);
    line-height: 1.3;
}

.brand-member-sidebar__email {
    font-size: 0.8125rem;
    color: var(--brand-mist);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-member-nav {
    display: grid;
    gap: 0.35rem;
}

.brand-member-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: var(--brand-mist);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.brand-member-nav__link i {
    width: 1.1rem;
    text-align: center;
    color: var(--brand-gold-dark);
}

.brand-member-nav__link:hover {
    background: var(--brand-sky);
    color: var(--brand-navy);
}

.brand-member-nav__link.is-active {
    background: var(--brand-navy);
    color: #fff;
}

.brand-member-nav__link.is-active i {
    color: var(--brand-gold);
}

.brand-member-sidebar__logout {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--brand-sky);
}

.brand-member-welcome__title {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.brand-member-welcome__text {
    color: var(--brand-mist);
}

.brand-member-stat {
    background: var(--brand-white);
    border: 1px solid var(--brand-sky);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.brand-member-stat__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--brand-mist);
    margin-bottom: 0.35rem;
}

.brand-member-stat__value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--brand-navy);
    line-height: 1;
}

.brand-member-section__head {
    margin-bottom: 1rem;
}

.brand-member-section__title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.brand-member-booking-list {
    display: grid;
    gap: 0.85rem;
}

.brand-member-booking {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--brand-white);
    border: 1px solid var(--brand-sky);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-member-booking:hover {
    border-color: rgba(212, 175, 106, 0.55);
    box-shadow: 0 8px 24px rgba(30, 58, 86, 0.06);
}

.brand-member-booking__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    color: var(--brand-mist);
}

.brand-member-booking__title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.brand-member-booking__amount {
    font-size: 0.9375rem;
    color: var(--brand-navy);
    font-weight: 600;
}

.brand-member-booking__amount span {
    font-weight: 400;
    color: var(--brand-mist);
}

.brand-member-booking__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-member-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--brand-white);
    border: 1px dashed var(--brand-sky);
    border-radius: 16px;
}

.brand-member-empty__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-sky);
    color: var(--brand-gold-dark);
    font-size: 1.25rem;
}

.brand-member-empty__title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.brand-member-empty__text {
    color: var(--brand-mist);
    margin-bottom: 1.25rem;
}

.brand-member-panel {
    background: var(--brand-white);
    border: 1px solid var(--brand-sky);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.75rem;
}

.brand-member-panel--danger {
    border-color: rgba(220, 53, 69, 0.25);
}

.brand-member-panel__header {
    margin-bottom: 1.25rem;
}

.brand-member-panel__title {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.brand-member-panel__desc {
    margin-bottom: 0;
    color: var(--brand-mist);
    font-size: 0.9rem;
}

.brand-member-form .form-label {
    color: var(--brand-navy);
    font-weight: 500;
    font-size: 0.875rem;
}

.brand-member-form .form-control {
    border-color: var(--brand-sky);
    color: var(--brand-navy);
    border-radius: 10px;
    min-height: 2.75rem;
}

.brand-member-form .form-control:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 106, 0.2);
}

@media (max-width: 991.98px) {
    .brand-member-sidebar__card {
        position: static;
    }

    .brand-member-dashboard-grid__content {
        order: 1;
    }

    .brand-member-dashboard-grid__sidebar {
        order: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
