/* =========================================================
   AQ ESTATE — INSTITUTIONAL MEMBERSHIP SLIDER
   File: aq-membership-slider.css
========================================================= */

/* Reset */
#aq-membership-slider-section,
#aq-membership-slider-section *,
#aq-membership-slider-section *::before,
#aq-membership-slider-section *::after {
    box-sizing: border-box;
}

/* =========================================================
   SECTION
========================================================= */

#aq-membership-slider-section {
    position: relative;

    width: 100vw;
    max-width: none;

    margin-right: 0;
    margin-left: calc(50% - 50vw);

    padding: 65px 0 45px;

    overflow: hidden;

    background: #ffffff;
}

/* =========================================================
   HEADING
========================================================= */

#aq-membership-slider-section .aqm-heading {
    width: 100%;
    max-width: 950px;

    margin: 0 auto 34px;
    padding: 0 20px;

    text-align: center;
}

#aq-membership-slider-section .aqm-label {
    margin: 0 0 10px;

    color: #24675d;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

#aq-membership-slider-section .aqm-heading h2 {
    margin: 0 0 14px;
    padding: 0;

    color: #092c29;

    font-size: 46px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.5px;
    text-transform: none;
}

#aq-membership-slider-section .aqm-heading p {
    margin: 0;
    padding: 0;

    color: #626b68;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

/* =========================================================
   SLIDER WRAPPER
========================================================= */

#aq-membership-slider-section .aqm-slider-wrap {
    position: relative;

    width: 100%;
    max-width: none;

    overflow: hidden;
}

/* =========================================================
   SLIDER TRACK
========================================================= */

#aq-membership-slider-section .aqm-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;

    gap: 24px;

    width: 100%;
    max-width: none;

    margin: 0;

    padding-top: 10px;
    padding-right: calc((100vw - 680px) / 2);
    padding-bottom: 14px;
    padding-left: calc((100vw - 680px) / 2);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;

    touch-action: pan-x;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;
}

#aq-membership-slider-section .aqm-track::-webkit-scrollbar {
    display: none;

    width: 0;
    height: 0;
}

/* =========================================================
   CARD
========================================================= */

#aq-membership-slider-section .aqm-card {
    position: relative;

    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: start;

    gap: 18px;

    flex: 0 0 680px;

    width: 680px;
    min-width: 680px;
    min-height: 348px;

    margin: 0;
    padding: 14px;

    overflow: hidden;

    border: 0;
    border-radius: 18px;

    background: #f8f3ec;

    box-shadow: none;

    scroll-snap-align: center;
    scroll-snap-stop: always;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#aq-membership-slider-section .aqm-card:hover {
    box-shadow: 0 12px 32px rgba(13, 48, 43, 0.08);
}

/* =========================================================
   CARD IMAGE
   Giữ đúng tỷ lệ ảnh gốc 154 × 256
========================================================= */

#aq-membership-slider-section .aqm-cover {
    position: relative;

    align-self: start;

    width: 190px;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border-radius: 13px;

    background: #092c29;
}

#aq-membership-slider-section .aqm-cover img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 13px;
}

#aq-membership-slider-section .aqm-card:hover .aqm-cover img {
    transform: scale(1.015);
}

/* =========================================================
   CARD CONTENT
========================================================= */

#aq-membership-slider-section .aqm-content {
    min-width: 0;

    padding: 16px 8px 10px 0;
}

#aq-membership-slider-section .aqm-content h3 {
    margin: 0 0 15px;
    padding: 0;

    color: #153f37;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    text-transform: none;
}

/* =========================================================
   INFORMATION GRID
========================================================= */

#aq-membership-slider-section .aqm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    width: 100%;

    margin: 0 0 19px;
}

#aq-membership-slider-section .aqm-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    min-height: 62px;

    margin: 0;
    padding: 11px 12px;

    border: 0;
    border-radius: 10px;

    background: #eee5d9;
}

#aq-membership-slider-section .aqm-info span {
    display: block;

    margin: 0 0 6px;
    padding: 0;

    color: #847b70;

    font-size: 9px;
    font-weight: 400;
    line-height: 1.3;
}

#aq-membership-slider-section .aqm-info strong {
    display: block;

    margin: 0;
    padding: 0;

    color: #243b36;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

/* =========================================================
   BENEFITS
========================================================= */

#aq-membership-slider-section .aqm-benefits-title {
    margin: 0 0 10px;
    padding: 0;

    color: #53625e;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

#aq-membership-slider-section .aqm-benefits {
    margin: 0;
    padding: 0;

    list-style: none;
}

#aq-membership-slider-section .aqm-benefits li {
    position: relative;

    margin: 0 0 8px;
    padding: 0 0 0 17px;

    color: #67716d;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;

    list-style: none;
}

#aq-membership-slider-section .aqm-benefits li:last-child {
    margin-bottom: 0;
}

#aq-membership-slider-section .aqm-benefits li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: #9b8564;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.55;
}

#aq-membership-slider-section .aqm-benefits li::marker {
    content: "";
}

/* =========================================================
   CONTROLS
========================================================= */

#aq-membership-slider-section .aqm-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    width: 100%;

    margin: 17px 0 0;
    padding: 0 20px;
}

/* Arrow buttons */

#aq-membership-slider-section .aqm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    min-width: 38px;
    max-width: 38px;

    height: 38px;
    min-height: 38px;
    max-height: 38px;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(13, 48, 43, 0.18);
    border-radius: 50%;

    background: #ffffff;
    color: #0d302b;

    font-size: 0;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    appearance: none;
    -webkit-appearance: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

#aq-membership-slider-section .aqm-arrow svg {
    display: block;

    width: 17px;
    height: 17px;

    pointer-events: none;
}

#aq-membership-slider-section .aqm-arrow:hover {
    border-color: #0d302b;

    background: #0d302b;
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 5px 16px rgba(13, 48, 43, 0.2);
}

#aq-membership-slider-section .aqm-arrow:active {
    transform: scale(0.94);
}

#aq-membership-slider-section .aqm-arrow:focus {
    outline: none;
}

/* =========================================================
   DOTS
========================================================= */

#aq-membership-slider-section .aqm-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 22px;

    margin: 0;
    padding: 0;
}

#aq-membership-slider-section .aqm-dot {
    display: block;

    flex: 0 0 auto;

    width: 7px;
    min-width: 7px;

    height: 7px;
    min-height: 7px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #cbd1ce;

    cursor: pointer;

    box-shadow: none;

    appearance: none;
    -webkit-appearance: none;

    transition:
        width 0.25s ease,
        min-width 0.25s ease,
        background 0.25s ease,
        border-radius 0.25s ease,
        transform 0.2s ease;
}

#aq-membership-slider-section .aqm-dot:hover {
    background: #70857f;

    transform: scale(1.08);
}

#aq-membership-slider-section .aqm-dot.is-active {
    width: 22px;
    min-width: 22px;

    border-radius: 20px;

    background: #0d302b;
}

#aq-membership-slider-section .aqm-dot:focus {
    outline: none;
}

#aq-membership-slider-section .aqm-arrow:focus-visible,
#aq-membership-slider-section .aqm-dot:focus-visible {
    outline: 2px solid #c2a66b;
    outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 849px) {
    #aq-membership-slider-section {
        padding-top: 55px;
        padding-bottom: 40px;
    }

    #aq-membership-slider-section .aqm-heading h2 {
        font-size: 38px;
    }

    #aq-membership-slider-section .aqm-track {
        gap: 18px;

        padding-right: calc((100vw - 620px) / 2);
        padding-left: calc((100vw - 620px) / 2);
    }

    #aq-membership-slider-section .aqm-card {
        flex: 0 0 620px;

        width: 620px;
        min-width: 620px;

        grid-template-columns: 175px 1fr;
    }

    #aq-membership-slider-section .aqm-cover {
        width: 175px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {
    #aq-membership-slider-section {
        padding: 44px 0 32px;
    }

    #aq-membership-slider-section .aqm-heading {
        margin-bottom: 25px;
        padding: 0 16px;
    }

    #aq-membership-slider-section .aqm-label {
        margin-bottom: 8px;

        font-size: 10px;
    }

    #aq-membership-slider-section .aqm-heading h2 {
        margin-bottom: 11px;

        font-size: 29px;
        line-height: 1.2;
    }

    #aq-membership-slider-section .aqm-heading p {
        font-size: 13px;
        line-height: 1.55;
    }

    #aq-membership-slider-section .aqm-track {
        gap: 14px;

        padding-top: 8px;
        padding-right: 16px;
        padding-bottom: 12px;
        padding-left: 16px;
    }

    #aq-membership-slider-section .aqm-card {
        flex: 0 0 calc(100vw - 32px);

        width: calc(100vw - 32px);
        min-width: calc(100vw - 32px);
        min-height: auto;

        grid-template-columns: 120px 1fr;
        align-items: start;

        gap: 11px;

        padding: 10px;

        border-radius: 15px;

        scroll-snap-align: start;
    }

    /*
     * Ảnh mobile giữ đúng tỷ lệ gốc.
     * Không đặt height cố định để tránh bóp ảnh.
     */
    #aq-membership-slider-section .aqm-cover {
        align-self: start;

        width: 120px;
        height: auto;
        min-height: 0;

        border-radius: 11px;
    }

    #aq-membership-slider-section .aqm-cover img {
        display: block;

        width: 100%;
        height: auto;

        object-fit: contain;

        border-radius: 11px;
    }

    #aq-membership-slider-section .aqm-content {
        padding: 5px 0;
    }

    #aq-membership-slider-section .aqm-content h3 {
        margin-bottom: 10px;

        font-size: 16px;
        line-height: 1.3;
    }

    #aq-membership-slider-section .aqm-info-grid {
        gap: 6px;

        margin-bottom: 12px;
    }

    #aq-membership-slider-section .aqm-info {
        min-height: 54px;

        padding: 8px;

        border-radius: 8px;
    }

    #aq-membership-slider-section .aqm-info span {
        margin-bottom: 4px;

        font-size: 8px;
    }

    #aq-membership-slider-section .aqm-info strong {
        font-size: 10px;
        line-height: 1.3;
    }

    #aq-membership-slider-section .aqm-benefits-title {
        margin-bottom: 7px;

        font-size: 10px;
    }

    #aq-membership-slider-section .aqm-benefits li {
        margin-bottom: 5px;
        padding-left: 14px;

        font-size: 9px;
        line-height: 1.45;
    }

    #aq-membership-slider-section .aqm-benefits li::before {
        font-size: 8px;
    }

    #aq-membership-slider-section .aqm-controls {
        gap: 10px;

        margin-top: 14px;
    }

    #aq-membership-slider-section .aqm-arrow {
        flex: 0 0 35px;

        width: 35px;
        min-width: 35px;
        max-width: 35px;

        height: 35px;
        min-height: 35px;
        max-height: 35px;
    }

    #aq-membership-slider-section .aqm-arrow svg {
        width: 15px;
        height: 15px;
    }

    #aq-membership-slider-section .aqm-dots {
        gap: 6px;
    }

    #aq-membership-slider-section .aqm-dot {
        width: 6px;
        min-width: 6px;

        height: 6px;
        min-height: 6px;
    }

    #aq-membership-slider-section .aqm-dot.is-active {
        width: 19px;
        min-width: 19px;
    }
}

/* =========================================================
   MOBILE NHỎ
========================================================= */

@media screen and (max-width: 420px) {
    #aq-membership-slider-section .aqm-heading h2 {
        font-size: 27px;
    }

    #aq-membership-slider-section .aqm-card {
        grid-template-columns: 105px 1fr;

        gap: 9px;

        min-height: auto;
    }

    #aq-membership-slider-section .aqm-cover {
        width: 105px;
        height: auto;
        min-height: 0;
    }

    #aq-membership-slider-section .aqm-cover img {
        width: 100%;
        height: auto;
    }

    #aq-membership-slider-section .aqm-content h3 {
        font-size: 15px;
    }

    #aq-membership-slider-section .aqm-info {
        padding: 7px;
    }

    #aq-membership-slider-section .aqm-info strong {
        font-size: 9px;
    }

    #aq-membership-slider-section .aqm-benefits li {
        font-size: 8.5px;
    }
}

/* =========================================================
   MOBILE RẤT NHỎ
========================================================= */

@media screen and (max-width: 360px) {
    #aq-membership-slider-section .aqm-card {
        grid-template-columns: 94px 1fr;

        gap: 8px;

        padding: 8px;
    }

    #aq-membership-slider-section .aqm-cover {
        width: 94px;
    }

    #aq-membership-slider-section .aqm-content h3 {
        font-size: 14px;
    }

    #aq-membership-slider-section .aqm-info {
        padding: 6px;
    }

    #aq-membership-slider-section .aqm-info strong {
        font-size: 8.5px;
    }

    #aq-membership-slider-section .aqm-benefits li {
        font-size: 8px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    #aq-membership-slider-section .aqm-track {
        scroll-behavior: auto;
    }

    #aq-membership-slider-section .aqm-card,
    #aq-membership-slider-section .aqm-cover img,
    #aq-membership-slider-section .aqm-arrow,
    #aq-membership-slider-section .aqm-dot {
        transition: none;
    }
}