

.nav-open-hidden {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.brand-yg88 {
    color: #ffd700;
    font-weight: 900;
}

.content-mb,
.content-mb p,
.content-mb .brand-yg88 {
    color: #000000;
}

.content-mb .brand-yg88 {
    font-weight: 900;
}

.w-100 {
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-md-2 {
    margin-top: 0.5rem;
}

.mb-md-5 {
    margin-bottom: 3rem;
}

/* Sidebar: nhóm đóng/mở bằng click (details) */
.sidebar-group {
    display: block;
}

.sidebar-group > summary.group-summary {
    list-style: none;
    cursor: pointer;
    position: relative;
}

.sidebar-group > summary.group-summary::-webkit-details-marker {
    display: none;
}

.sidebar-group > summary .nav-link {
    pointer-events: none;
}

.sidebar-group:not([open]) > summary .nav-link::before,
.sidebar-group:not([open]) > summary .nav-link::after {
    transform-origin: center 11px;
}

.sidebar-group[open] > summary .nav-link {
    top: 3px;
}

.sidebar-group[open] > summary .nav-link::before {
    transform: rotate(-135deg);
    top: 15px;
}

.sidebar-group[open] > summary .nav-link::after {
    transform: rotate(135deg);
    top: 15px;
}

.sidebar-group .group-children .collapse {
    display: block !important;
}

.nav-sidebar .item-link {
    display: block;
    border-radius: 25px;
    outline: none;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-menu-sub > a.item-link {
    position: relative;
    z-index: 2;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 42px 14px 45px;
    line-height: 1.35;
}

.link-menu-sub > a.item-link:hover,
.link-menu-sub > a.item-link:focus-visible {
    color: #ffea00;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 234, 0, 0.35);
}

.nav-sidebar .collapse .link-menu-sub .item-link {
    position: relative;
    z-index: 2;
    padding: 12px 14px 12px 38px;
    margin: 5px 10px 5px 14px;
    font-size: 14px;
    line-height: 1.35;
}

.nav-sidebar .collapse .link-menu-sub .item-link::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    border-radius: 4px;
    background: #ffea00;
    box-shadow: 0 0 6px rgba(255, 234, 0, 0.45);
    transition: height 0.2s ease;
}

.nav-sidebar .collapse .link-menu-sub .item-link:hover,
.nav-sidebar .collapse .link-menu-sub .item-link:focus-visible {
    color: #ffea00;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 234, 0, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.nav-sidebar .collapse .link-menu-sub .item-link:hover::before,
.nav-sidebar .collapse .link-menu-sub .item-link:focus-visible::before {
    height: 70%;
}

.item-link.active {
    display: block !important;
    color: #0c9142 !important;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.88) 100%) !important;
    border: 1px solid rgba(255, 234, 0, 0.75) !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22) !important;
}

.nav-sidebar .collapse .link-menu-sub .item-link.active::before {
    height: 70%;
    background: #0c9142;
    box-shadow: none;
}

/* Logo YG88 */
.image-logo a {
    max-width: 72%;
    display: flex;
    justify-content: center;
}

.image-logo img.site-logo,
.logo-header-top img.site-logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 46px;
    object-fit: contain;
}

.logo-header-top img.site-logo {
    max-height: 38px;
}

.menu-search .searchInput input[type="search"] {
    color: #333;
}

.menu-search .searchInput.active input[type="search"] {
    color: #333;
}

.menu-search .searchInput {
    position: relative;
}

.menu-search .searchInput .resultBox {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    margin: 0;
    width: 100%;
    z-index: 120;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.menu-search .searchInput.active .resultBox li.hidden {
    display: none !important;
}

.menu-search .searchInput.active .resultBox li:not(.hidden) {
    display: block;
}

.menu-search .resultBox li a {
    color: #fff;
}

.menu-search .searchInput .icon {
    cursor: pointer;
}

#rightSideWrapper {
    min-height: 100vh;
    height: auto !important;
    display: flex;
    flex-direction: column;
    float: right;
}

#content_category {
    flex: 1 1 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    padding: 12px 0 20px;
}

.footer-content {
    color: #000000;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.footer-content p {
    margin: 0;
    font-weight: 800;
    line-height: 1.5;
    color: #000000;
}

.footer-content .brand-yg88 {
    font-weight: 900;
    color: #000000;
}

.main-sidebar {
    display: flex;
    flex-direction: column;
}

.nav-sidebar {
    flex: 1;
    min-height: 0;
    height: auto !important;
}

/* Ảnh hướng dẫn — full width (1 ảnh / bài) */
#Category_Page .slider-anh {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.swiper-css[data-slider_pc="1"] {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 12px !important;
}

.swiper-css[data-slider_pc="1"] .swiper-wrapper {
    display: block !important;
    width: 100% !important;
}

.mySwiper.swiper-css[data-slider_pc="1"] .swiper-slide,
.swiper-css[data-slider_pc="1"] .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
}

#Category_Page .info-image-cate,
.swiper-css[data-slider_pc="1"] .info-image-cate {
    width: 100%;
    max-width: 100%;
}

#Category_Page .box-image,
.swiper-css[data-slider_pc="1"] .box-image {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
}

#Category_Page .box-image img,
.swiper-css[data-slider_pc="1"] .box-image img,
.guide-photo,
.guide-image-link img {
    width: 100% !important;
    max-width: 1280px !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain;
}

.guide-image-link {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 16px;
    max-width: 1280px;
    margin: 24px auto 0;
}

.guide-steps .frame-step {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

@media screen and (min-width: 992px) {
    body {
        background-image: url("/assets/images/bg-main.png");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    #rightSideWrapper {
        background-image: url("/assets/images/bg-main.png");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    #content_category,
    .main-content.home-page,
    #content_category > .container-fluid {
        background: transparent;
    }
}

@media screen and (min-width: 769px) {
    #Category_Page .title-page {
        max-width: 1280px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    #content_category {
        margin-top: 82px;
    }

    #Category_Page {
        max-height: none !important;
        height: auto !important;
    }

    #Category_Page .slider-anh,
    .slider-anh {
        height: auto !important;
        min-height: 0;
    }

    #Category_Page .swiper-css,
    #Category_Page .swiper-css[data-slider_pc="1"],
    .swiper-css[data-slider_pc="1"] {
        height: auto !important;
        padding-top: 8px !important;
    }

    #Category_Page .swiper-css .swiper-slide,
    .swiper-css[data-slider_pc="1"] .swiper-slide {
        height: auto !important;
    }

    #Category_Page .d-flex.mb-2.mb-md-5.mt-md-2 {
        margin-bottom: 12px;
    }

    #Category_Page .guide-steps {
        margin-top: 16px;
        padding: 0 4px 12px;
    }

    #Category_Page .box-image img,
    .swiper-css[data-slider_pc="1"] .box-image img,
    .guide-photo {
        max-width: 100% !important;
    }

    .main-content.home-page {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    #content_category:has(.home-page) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex: 1 1 auto;
        min-height: calc(100dvh - 82px - 72px);
        padding-bottom: 12px;
    }

    #content_category:has(.home-page) > .container-fluid {
        width: 100%;
    }

    .main-content.home-page .brand-ambassador {
        flex: none;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        top: auto !important;
        transform: none !important;
        position: relative;
    }

    .main-content.home-page .image-suarez {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .main-content.home-page .image-suarez img {
        width: auto !important;
        max-width: min(92vw, 440px);
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

    .main-content.home-page .content-mb,
    .main-content.home-page .footer-button {
        width: 100%;
    }

    .main-content.home-page .content-mb {
        margin-top: 12px;
        margin-bottom: 8px;
    }
}

/* Lightbox CSS */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: min(1280px, 100%);
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.btn-open-guide-wrap {
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.sidebar-overlay {
    display: none;
}

@media screen and (max-width: 1024px) {
    .header-top {
        justify-content: center;
    }

    .logo-header-top.show {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        height: auto;
        width: auto;
        max-width: calc(100% - 72px);
    }

    .logo-header-top a {
        justify-content: center;
    }

    .image-logo {
        justify-content: center;
        width: 100%;
    }

    .image-logo a {
        margin: 0 auto;
    }
}

@media screen and (max-width: 991px) {
    body {
        background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
            url("/assets/images/bg-main.png");
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    #sidebar {
        background: transparent !important;
        left: -380px;
        width: 380px;
        max-width: 380px;
        padding: 0 !important;
        opacity: 0;
    }

    #sidebar .main-sidebar {
        height: 100%;
        border-radius: 0;
        padding-top: 15px;
        background: linear-gradient(0.01deg, rgba(20, 122, 3, 0) -69.48%, #0b6f02 103.16%) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    }

    #nav-open:checked ~ #sidebar {
        left: 0 !important;
        opacity: 1 !important;
        z-index: 999 !important;
    }

    #nav-open:checked ~ .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(0, 0, 0, 0.45);
    }

    #nav-open:checked ~ #rightSideWrapper .toggle span:nth-child(1) {
        transform: translateY(0) rotate(45deg);
    }

    #nav-open:checked ~ #rightSideWrapper .toggle span:nth-child(2) {
        transform: translateY(0) rotate(315deg);
    }

    #nav-open:checked ~ #rightSideWrapper .toggle span:nth-child(3) {
        transform: translateX(-100px);
    }

    .back-mobi {
        display: block;
        position: fixed;
        right: 12px;
        bottom: 72px;
        z-index: 90;
    }

    #content_category:has(.home-page) ~ .back-mobi {
        display: none !important;
    }

    #content_category:has(.home-page) ~ footer {
        display: none;
    }

    .back-mobi img {
        width: 56px;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    }

    footer {
        padding-bottom: 88px;
    }
}
