/* ==========================================================================
   client - desktop (>= 900px)
   ========================================================================== */

/* dark charcoal like the reference, with a faint warm glow at the top and a vignette.
   Like the reference, the whole page is framed at 1920px and centred: on wider screens
   the banner, strips, footer and side decorations stop at the frame edge */
body.c2 {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    background:
        radial-gradient(
            ellipse 70% 40% at 50% 0%,
            rgba(212, 181, 126, 0.1) 0%,
            rgba(19, 18, 23, 0) 70%
        ),
        radial-gradient(
                ellipse 120% 80% at 50% 50%,
                rgba(19, 18, 23, 0) 55%,
                rgba(0, 0, 0, 0.55) 100%
            )
            fixed,
        var(--c2-bg);
}

/* --- header (fixed, 178px) --------------------------------------------------- */
.d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1920px; /* fixed, so framed on its own like the page */
    margin: 0 auto;
    z-index: 100;
    background:
        url("../../images/client/bg_header.jpg") 50% 0 / cover no-repeat,
        #0b0a0d;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.d-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--c2-gold-line);
}
.d-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    height: 86px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
.d-header__top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--c2-gold-line);
    opacity: 0.6;
}
.d-header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.d-login {
    display: flex;
    align-items: center;
    gap: 14px;
}
.d-input {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 170px;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    background: var(--c2-input);
    box-shadow: inset 0 0 0 1px rgba(212, 181, 126, 0.28);
}
.d-input:focus-within {
    box-shadow: inset 0 0 0 1px var(--c2-gold-1);
}
.d-input i {
    font-size: 12px;
    color: var(--c2-gold-1);
}
.d-input input {
    flex: 1;
    min-width: 0;
    height: calc(100% - 2px);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}
.d-input input::placeholder {
    color: var(--c2-dim);
}
.d-login__btn {
    height: 30px;
    padding: 0 22px;
    border-radius: 6px;
}

.d-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.d-user__name,
.d-user__balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.d-user__name i,
.d-user__balance i {
    color: var(--c2-gold-1);
    font-size: 18px;
}
.d-user__balance {
    padding: 4px 14px;
    border-radius: 16px;
    background: var(--c2-input);
    color: var(--c2-gold-text);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(212, 181, 126, 0.28);
}
.d-user .c2-btn {
    height: 30px;
    padding: 0 16px;
    font-size: 13px;
}
.d-maintain {
    color: var(--c2-gold-text);
    font-weight: 600;
}

/* language dropdown */
.d-lang {
    position: relative;
}
.d-lang__current {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 6px;
    font-size: 13px;
}
.d-lang__current img,
.d-lang__menu img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.d-lang__current i {
    color: var(--c2-dim);
    transition: transform 0.2s;
}
.d-lang.is-open .d-lang__current i {
    transform: rotate(180deg);
}
.d-lang__menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 5;
    min-width: 160px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(45, 43, 44, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.18s;
}
.d-lang.is-open .d-lang__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.d-lang__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.d-lang__menu a:hover,
.d-lang__menu a.is-active {
    background: rgba(212, 181, 126, 0.15);
    color: var(--c2-gold-text);
}

/* category nav */
.d-nav {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    height: 92px;
    margin: 0 auto;
}
.d-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* long names (Lao, Burmese) widen their item on one line instead of wrapping;
       when the row runs out of room they shrink back and end in "..." */
    flex: 0 1 auto;
    min-width: 115px;
    padding: 0 10px;
    color: var(--c2-text);
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
}
.d-nav__item i {
    width: 44px;
    height: 36px;
    background: center / contain no-repeat;
    transition: transform 0.25s;
}
.d-nav__item span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.d-nav__item::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 8px;
    height: 2px;
    background: var(--c2-gold-grad);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.d-nav__item:hover,
.d-nav__item.is-active {
    color: var(--c2-gold-text);
}
.d-nav__item:hover i {
    transform: translateY(-3px);
}
.d-nav__item:hover::after,
.d-nav__item.is-active::after {
    transform: scaleX(1);
}
.d-nav__item.is-soon {
    cursor: default;
    color: var(--c2-dim);
}
.d-nav__item.is-soon i {
    filter: grayscale(1);
    opacity: 0.6;
}
.d-nav__item.is-soon::after {
    display: none;
}

/* --- main -------------------------------------------------------------------- */
.c2-main {
    padding-top: 178px;
}

/* --- hero ------------------------------------------------------------------- */
.d-hero {
    position: relative;
}
.d-hero__swiper {
    height: 450px;
}
.d-hero__swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.d-hero__fade {
    /* edge and bottom mask over the banner */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 680px;
    z-index: 1;
    pointer-events: none;
    background: url("../../images/client/obj_mask.png") 50% 0 no-repeat;
}

/* category carousel overlapping the banner: character cut-outs, the centre one on a lit table */
.d-cats {
    position: relative;
    z-index: 2;
    width: 1180px;
    max-width: 100%;
    margin: -40px auto 0;
    padding-bottom: 50px;
    overflow: hidden;
    background: url("../../images/client/bg_banner_slide.png") 50% 0 no-repeat;
    -webkit-mask: linear-gradient(
        90deg,
        transparent 0,
        #000 10%,
        #000 90%,
        transparent
    );
    mask: linear-gradient(
        90deg,
        transparent 0,
        #000 10%,
        #000 90%,
        transparent
    );
}
.d-cats__swiper {
    overflow: visible;
    padding-top: 30px;
}
.d-cats__item {
    position: relative;
    display: block;
    width: 204px;
    height: 182px;
    margin: 0 auto;
    background: 50% 86% / 100% auto no-repeat;
    transition: transform 0.35s;
}
.d-cats__item img {
    width: 100%;
    height: auto;
    filter: brightness(0.5);
    transition: filter 0.3s;
}
.d-cats__item:hover img,
.d-cats .swiper-slide-active .d-cats__item img {
    filter: brightness(1) drop-shadow(0 0 3px rgba(255, 250, 148, 0.62));
}
.d-cats .swiper-slide-active .d-cats__item {
    transform: scale(1.25);
    background-image: url("../../images/client/bg_optionBanner.png");
}
.d-cats__label {
    position: absolute;
    bottom: 14%;
    left: calc(50% - 75px);
    width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    color: #6d5c48;
    background: linear-gradient(#483d31 0, #151412);
    box-shadow: inset 1px 1px 1px #786653;
    transform: scale(0.8);
    transition: 0.3s;
}
.d-cats__label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    padding: 3px;
    box-sizing: content-box;
    border-radius: 30px;
    border: 1px solid rgba(201, 165, 115, 0.18);
    pointer-events: none;
}
.d-cats__item:hover .d-cats__label,
.d-cats .swiper-slide-active .d-cats__label {
    color: var(--c2-gold-text);
    background: linear-gradient(#523c23 0, #161410);
    box-shadow: inset 1px 1px 1px #ffca77;
}
.d-cats .swiper-slide-active .d-cats__label {
    transform: scale(0.7);
}
/* --- side decorations (home): the reference's gold wave lines, placed from the page top
   over the content without catching clicks; hidden where the page is too narrow */
.d-deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: no-repeat;
}
.d-deco--l {
    left: 0;
    top: 520px;
    width: 287px;
    height: 879px;
    background-image: url("../../images/client/obg_homeL.png");
}
.d-deco--r {
    right: 0;
    top: 430px;
    width: 687px;
    height: 869px;
    background-image: url("../../images/client/obg_homeR.png");
}
@media (max-width: 1440px) {
    .d-deco {
        display: none;
    }
}

/* --- why choose us ------------------------------------------------------------ */
.d-why {
    /* the backdrop carries the artwork on the right; the text sits on the left */
    margin-top: 40px;
    min-height: 483px;
    display: flex;
    align-items: center;
    background: url("../../images/client/bg_homeWhy.png") 50% 0 no-repeat;
}
.d-why__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.d-why__text {
    flex: 0 1 650px;
}
.d-why__title {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 40px 8px 18px;
    font-size: 30px;
    font-weight: 600;
    color: #1a1206;
    background: var(--c2-gold-grad);
    clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
.d-why__sub {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--c2-gold-text);
}
.d-why__body {
    margin-bottom: 24px;
    color: var(--c2-muted);
    line-height: 1.8;
}
.d-why__text .c2-btn {
    float: right;
    min-width: 180px;
}

/* --- category page banner ----------------------------------------------------- */
.d-catbanner img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

/* --- footer ------------------------------------------------------------------ */
.d-footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
} /* above the member pages' backdrop, which runs past their end */
/* "Top 6 Reasons to Choose ..." heading, as the reference */
.d-adv__heading {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 20px;
}
.d-adv__heading span {
    font-size: 30px;
    font-style: italic;
    letter-spacing: 5px;
    padding-right: 5px;
    background: linear-gradient(#ffedb8 0, #fccc8c 50%, #9d7048) text;
    -webkit-background-clip: text;
    color: transparent;
}
.d-adv__six {
    width: 56px;
    height: 77px;
    margin: 0 10px;
    background: url("../../images/client/txt_six.png") no-repeat;
}
.d-adv__strip {
    position: relative;
    padding: 2px 0;
    background: var(--c2-bg);
}
.d-adv__strip::before,
.d-adv__strip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--c2-gold-line);
    z-index: 2;
}
.d-adv__strip::before {
    top: 0;
}
.d-adv__strip::after {
    bottom: 0;
}
.d-adv__swiper .swiper-slide {
    width: 350px;
}
/* mirrors the reference strip: slanted 350x200 cards overlapping by 40px, a skewed
   label box top-left (white title, gold second line with the arrow icon), and on
   hover a dark veil with the title centred and the description under it */
.d-adv__swiper {
    -webkit-mask: linear-gradient(
        90deg,
        transparent 0,
        #000 15%,
        #000 85%,
        transparent
    );
    mask: linear-gradient(
        90deg,
        transparent 0,
        #000 15%,
        #000 85%,
        transparent
    );
}
.d-adv__card {
    position: relative;
    width: 350px;
    height: 200px;
    background: center / cover no-repeat;
    clip-path: polygon(90% 100%, 100% 0, 10% 0, 0 100%);
    white-space: nowrap;
    cursor: default;
}
.d-adv__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 18, 13, 0);
    transition: background 0.3s;
}
.d-adv__card:hover::before {
    background: rgba(23, 18, 13, 0.9);
}
.d-adv__head {
    position: absolute;
    left: 30px;
    top: 25px;
    width: 230px;
    min-height: 90px;
    padding: 6px 0 10px;
    text-align: left;
    background: linear-gradient(
        90deg,
        rgba(23, 18, 13, 0.9) 50%,
        rgba(73, 46, 19, 0)
    );
    transform: skew(-10deg);
    transition:
        bottom,
        margin-top 0.3s;
}
.d-adv__title {
    display: block;
    margin-left: 15px;
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
}
.d-adv__subtitle {
    display: block;
    width: 150px;
    min-height: 25px;
    margin: 10px 0 0 15px;
    padding: 2px 0 0 30px;
    font-size: 14px;
    color: var(--c2-gold-text);
    white-space: normal;
    background: url("../../images/client/icon_arrow_hex.png") no-repeat;
}
.d-adv__card:hover .d-adv__subtitle {
    display: none;
}
.d-adv__card:hover .d-adv__head {
    position: relative;
    left: auto;
    top: 14px;
    width: 280px;
    height: auto;
    min-height: 0;
    margin-left: calc(50% - 150px);
    padding: 0;
    text-align: center;
    background: none;
}
/* one line, as the reference's own override for longer titles */
.d-adv__card:hover .d-adv__title {
    margin-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.d-adv__text {
    display: none;
    position: relative;
    width: 270px;
    margin: 22px auto 0;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    color: var(--c2-gold-text);
    transform: skew(-13deg);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}
.d-adv__card:hover .d-adv__text {
    display: -webkit-box;
}

.d-foot {
    padding: 40px 0 0;
    background:
        url("../../images/client/bg_footer.jpg") 50% 0 / cover no-repeat,
        #0d0c10;
}
.d-foot__inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}
.d-foot__about {
    flex: 0 1 420px;
}
.d-foot__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.d-foot__about p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--c2-dim);
}
.d-foot__links {
    display: flex;
    gap: 40px;
}
.d-foot__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 130px;
}
.d-foot__col h4 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--c2-gold-text);
}
.d-foot__col a {
    font-size: 13px;
    color: var(--c2-dim);
    transition: color 0.2s;
}
.d-foot__col a:hover {
    color: var(--c2-gold-text);
}

.d-marquee {
    overflow: hidden;
    padding: 22px 0;
    background: #0d0d0d;
}
.d-marquee__track {
    display: flex;
    width: max-content;
    animation: c2-marquee 40s linear infinite;
}
.d-marquee:hover .d-marquee__track {
    animation-play-state: paused;
}
.d-marquee__group {
    display: flex;
    align-items: center;
}
.d-marquee__group span {
    padding: 0 34px;
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #5d5b62;
    transition: color 0.2s;
}
.d-marquee__group span:hover {
    color: var(--c2-gold-text);
}
@keyframes c2-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* --- side service -------------------------------------------------------------- */
.d-serve {
    position: fixed;
    right: 24px;
    top: 195px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.d-serve__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 20px;
    color: var(--c2-gold-text);
    background: linear-gradient(180deg, #2a2830 0%, #16151a 100%);
    box-shadow:
        inset 0 0 0 1px rgba(212, 181, 126, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transform: skewX(-8deg);
}
.d-serve__item > i {
    transform: skewX(8deg);
}
.d-serve__tip {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%) skewX(8deg);
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    background: var(--c2-panel);
    box-shadow: 0 0 0 1px var(--c2-line);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
.d-serve__item:hover .d-serve__tip,
.d-serve__item:focus .d-serve__tip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1279.98px) {
    .d-nav__item {
        min-width: 96px;
        font-size: 14px;
    }
}

/* narrow desktop (900-1199px): the home "why us" text must stay left of the artwork */
@media (max-width: 1199.98px) {
    .d-why__text {
        flex-basis: 50%;
    }
    .d-why__sub {
        font-size: 18px;
    }
}
