/* Extracted from theme templates — keep selector names stable */
.slide-content {
        width: 100%;
    }

    .slide-content .container {
        position: relative;
        width: 800px;
        /* Page 4.1 is 1810x2560 => aspect ratio ~ 0.707 */
        aspect-ratio: 1810 / 2560;
        overflow: hidden;
        margin: auto;
    }

    /* Header */
    .header-content {
        position: absolute;
        top: 62px;
        left: 70px;
        right: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        pointer-events: none;
    }

    .title-section {
        pointer-events: auto;
    }

    .title-section .main-title {
        margin: 0;
        font-size: 36px;
        line-height: 1.05;
        font-weight: 900;
        text-transform: uppercase;
        color: #0a69e6;
        letter-spacing: 0.3px;
    }

    .title-section p {
        display: none;
        /* The placeholder <p>&nbsp;</p> in markup */
    }

    .logo-section {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 6px;
        pointer-events: auto;
    }

    .logo-text .brand {
        font-weight: 900;
    }

    .logo-text img {
        width: 120px;
    }

    .qr-code img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

    /* Table */
    .table-wrapper {
        position: absolute;
        left: 30px;
        right: 78px;
        top: 176px;
    }

    .table-wrapper table {
        width: 725px;
        border-collapse: separate;
        border-spacing: 0 14px;
        /* creates the row gaps like the background design */
        table-layout: fixed;
    }

    .table-wrapper thead th {
        font-size: 20px;
        font-weight: 800;
        color: #0a69e6;
        text-align: center;
        padding: 0 6px 0;
    }

    .table-wrapper thead th.col-stt {
        width: 6%;
    }

    .table-wrapper thead th.col-name {
        width: 52%;
    }

    .table-wrapper thead th.col-time {
        width: 20%;
    }

    .table-wrapper thead th.col-price {
        width: 22%;
    }

    .table-wrapper tbody td {
        font-size: 18px;
        color: #0a69e6;
        vertical-align: middle;
        padding: 8px 6px;

    }

    table tbody tr {
        margin-bottom: 30px;
    }

    .table-wrapper tbody td:nth-child(2) {
        text-align: left;
        padding-left: 12px;
        font-weight: 700;
        color: #0a69e6;
    }

    .table-wrapper tbody td:nth-child(1) {
        text-align: center;
        font-weight: 800;
        color: #0a69e6;
    }

    /* Time pill (cột THỜI GIAN) */
    .table-wrapper tbody td:nth-child(3) {
        text-align: center;
        font-weight: 900;
        color: #fff;
        /* background: #006ef4; */
        border-radius: 14px;
        padding: 10px 0;
        font-size: 24px;
    }

    .table-wrapper tbody td:nth-child(3) .time-value {
        font-size: 16px;
        font-weight: 900;
        color: #fff;
        background: #006ef4;
        border-radius: 8px;
        padding: 10px 20px;
    }

    /* Price pill (cột GIÁ TOUR) */
    .table-wrapper tbody td:nth-child(4) {
        text-align: center;
        font-weight: 900;
        color: #fff;
        border-radius: 14px;
        padding: 10px 0;
        margin-left: 30px;
        font-size: 14px;
        display: block;
    }

    .table-wrapper tbody td:nth-child(4)::before {
        content: "Trọn gói từ";
        display: block;
        font-size: 14px;
        font-weight: 800;
        color: #006ef4;
        margin-bottom: 0px;
    }

    .price .price-value {
        font-size: 16px;
        font-weight: 900;
        color: #fff;
        background: #006ef4;
        border-radius: 8px;
        display: block;
    }

    /* Smaller sub-label in the header */
    .table-wrapper .unit {
        font-size: 16px;
        font-weight: 700;
        color: #0a69e6;
    }

    /* Footer contact block */
    .footer-info {
        position: absolute;
        left: 52px;
        right: 52px;
        bottom: 25px;
        /* background: rgba(255, 255, 255, 0.55); */
        border-radius: 70px;
        padding: 18px;

    }

    .footer-info .contact-info p {
        color: #0a69e6;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .contact-info h2 {
        margin: 0;
        font-size: 24px;
        line-height: 1.1;
        font-weight: 900;
        color: #0a69e6;
        text-align: center;
    }

    .contact-info .hotline-numbers {
        margin: 0;
        font-size: 24px;
        font-weight: 900;
        color: #0a69e6;
        text-align: center;
        letter-spacing: 0.2px;
    }

    .contact-info p {
        margin: 0;
        font-size: 14px;
        color: #2b2b2b;
        text-align: center;
        line-height: 1.35;
    }


    #slide-0 {
        background-image: url('https://cdn.hoabinhevents.com/hbt/chum-tour/03.jpg');
    }

    #slide-0.slide-image-content {
        width: 800px;
        background-size: 100% 100%;
        aspect-ratio: unset;
    }

    #slide-0 .table-wrapper {
        bottom: auto;
        right: 30px;
        width: 750px;
    }

    #slide-0 .table-section-title {
        margin: 0 0 8px;
        font-size: 18px;
        font-weight: 900;
        color: #0a69e6;
        text-transform: uppercase;
    }

    #slide-0 .table-wrapper table+.table-section-title {
        margin-top: 18px;
    }

    #slide-0 .table-wrapper tbody td:nth-child(4)::before {
        content: "CHỈ TỪ";
        color: #5a6b7a;
    }

    #slide-0 .slide-1-bottom {
        position: relative;
        left: 30px;
        right: 30px;
        top: 170px;
        width: 720px;
        padding: 20px;
    }

    #slide-0 .slide1-info-grid {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    #slide-0 .slide1-info-grid .col {
        flex: 1;
        font-size: 11px;
        line-height: 1.45;
        color: #2b2b2b;
    }

    #slide-0 .slide1-info-grid .col h3 {
        margin: 0 0 6px;
        font-size: 12px;
        font-weight: 900;
        color: #0a69e6;
    }

    #slide-0 .slide1-info-grid .col ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #slide-0 .slide1-info-grid .col li {
        margin-bottom: 4px;
        padding-left: 0;
        font-size: 12px;
    }

    .slide1-luu-y p {
        font-size: 12px;
    }

    #slide-0 .slide1-luu-y {
        font-size: 11px;
        line-height: 1.45;
        color: #2b2b2b;
        margin-bottom: 14px;
    }

    #slide-0 .slide1-luu-y strong {
        color: #0a69e6;
    }

    #slide-0 .footer-info {
        position: static;
        left: auto;
        right: auto;
        padding: 0;
    }

    #slide-0 .footer-info .contact-info p {
        color: #2b2b2b;
    }

    #slide-0 .time-value.long-time {
        font-size: 11px;
        padding: 8px 10px;
        line-height: 1.25;
        display: inline-block;
        max-width: 100%;
    }

    #slide-0 .time-value.time-schedule {
        font-size: 10px;
        padding: 8px 6px;
        line-height: 1.2;
    }

    #slide-1 {
        background-image: url('https://cdn.hoabinhevents.com/hbt/chum-tour/03.jpg');
    }

    #slide-2 {
        background-image: url('https://cdn.hoabinhevents.com/hbt/chum-tour/02.jpg');
    }

    #slide-3 {
        background-image: url('https://cdn.hoabinhevents.com/hbt/chum-tour/04.jpg');
    }

    #slide-4 {
        background-image: url('https://cdn.hoabinhevents.com/hbt/chum-tour/03.jpg');
    }

    #slide-2 .footer-info {
        bottom: 35px;
    }

    #slide-3 .footer-info {
        bottom: 65px;
    }

   #slide-4.slide-image-content {
        background-size: 100% 1800px;
        height: 1700px;
        width: 800px;
    }

    .slide-image-content {
        background-size: 100%;
        width: 800px;
        background-repeat: no-repeat;
        background-position: top top;

    }

     /* Slideshow Wrapper */
    .slideshow-wrapper {
        position: relative;
        width: 800px;
        height: 100vh;
        overflow: hidden;
        margin: 10px auto;
        padding-top: 40px;
    }

    .slide-content {
        display: none;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .slide-content.active {
        display: block;
    }

    /* Cover Slide */
    .cover-slide.active {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .cover-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Tour Slides Container */
    .slide-content .container {
        min-height: 100vh;
        margin: 0;
        max-width: 100%;
    }

    /* Navigation Buttons */
    .nav-btn {
        position: absolute;
        top: 0px;
        background: rgba(0, 51, 153, 0.8);
        color: white;
        border: none;
        padding: 5px 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 2000;
        transition: background 0.3s;
        border-radius: 4px;
    }

    .nav-btn span {
        height: 22px;
        display: inline-block;
        position: relative;
        top: -2px;

    }

    .nav-btn:hover {
        background: rgba(0, 51, 153, 1);
    }

    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }

    /* Slide Indicators */
    .slide-indicators {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        z-index: 2000;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        border-radius: 25px;
    }

    .indicator {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s;
        border: 2px solid rgba(0, 51, 153, 0.6);
    }

    .indicator.active {
        background: #003399;
        transform: scale(1.2);
        border-color: #fff;
    }

    .indicator:hover {
        background: rgba(0, 51, 153, 0.8);
    }

    /* Control Panel */
    .control-panel {
        position: absolute;
        top: 0px;
        right: 100px;
        display: flex;
        gap: 10px;
        z-index: 2000;
    }

    .control-btn {
        background: rgba(0, 51, 153, 0.9);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-family: 'Montserrat', sans-serif;
        transition: background 0.3s;
    }

    .control-btn:hover {
        background: rgba(0, 51, 153, 1);
    }

    /* Fullscreen Button */
    .fullscreen-btn {
        position: absolute;
        top: 0px;
        left: 100px;
        background: rgba(0, 51, 153, 0.9);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-family: 'Montserrat', sans-serif;
        z-index: 2000;
        transition: background 0.3s;
    }

    .fullscreen-btn:hover {
        background: rgba(0, 51, 153, 1);
    }

    /* Slide Counter */
    .slide-counter {
        position: absolute;
        top: 0px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        z-index: 2000;
        font-family: 'Montserrat', sans-serif;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .slideshow-wrapper {
            width: 100% !important;
        }

        .title-section .main-title{
            font-size: 23px !important;
        }

        .contact-info h2{
            font-size: 18px  !important;
        }

        .header-content {
            position: relative;
            left: 15px;
            top: 15px;
        }

        .slide-content .container{
            overflow-y: scroll;
        }

        .table-wrapper {
            position: relative;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding: 0 8px;
            box-sizing: border-box;
        }

        .table-wrapper table {
            width: 100% !important;
            min-width: 0 !important;
            border-spacing: 0 8px;
        }

        .table-wrapper thead th {
            font-size: 11px;
            padding: 0 3px;
        }

        .table-wrapper tbody td {
            display: table-cell;
            font-size: 11px;
            padding: 5px 3px;
            vertical-align: middle;
        }

        .table-wrapper tbody td:nth-child(2) {
            width: auto;
            font-size: 11px;
            padding-left: 6px;
        }

        .table-wrapper thead th.col-stt  { width: 8%; }
        .table-wrapper thead th.col-name { width: 45%; }
        .table-wrapper thead th.col-time { width: 22%; }
        .table-wrapper thead th.col-price{ width: 25%; }

        .table-wrapper tbody td:nth-child(3) {
            font-size: 10px;
            padding: 4px 0;
            border-radius: 6px;
        }

        .table-wrapper tbody td:nth-child(3) .time-value {
            font-size: 10px;
            padding: 5px 4px;
            border-radius: 5px;
        }

        .table-wrapper tbody td:nth-child(4) {
            font-size: 10px;
            padding: 4px 0;
            border-radius: 6px;
        }

        .table-wrapper tbody td:nth-child(4)::before {
            font-size: 9px;
        }

        .price .price-value {
            font-size: 10px;
            border-radius: 5px;
        }

        #slide-0 .table-wrapper table {
            min-width: 0 !important;
        }

        .footer-info{
            position: relative;
            left: 0px;
            right: 0px;
            bottom: 0px !important;
        }


        .slide-image-content {
            height: auto !important;
            background-attachment: fixed;
            background-size: 100% 100% !important;
        }

        #slide-1, #slide-2, #slide-3{
            height: auto !important;
        }

        
        #slide-0 .slide-1-bottom{
            left: 0px;
            right: 0px;
            top: 0;
            width: 100%;
        }

        #slide-0 .slide1-info-grid{
            display: flex;
            flex-direction: column;

        }


        .logo-section {
            margin-top: 15px;
            flex-direction: column;
            display: none;
        }

        .logo-text {
            align-items: center;
        }

        .info-cols {
            flex-direction: column;
            gap: 20px;
        }

        .main-title {
            font-size: 30px;
        }

        .nav-btn {
            padding: 15px 10px;
            font-size: 18px;
        }

        .prev-btn {
            left: 10px;
        }

        .next-btn {
            right: 10px;
        }

        .control-panel {
            display: none;
            top: 0px;
            right: 100px;
        }

        .fullscreen-btn {
            display: none;
            ;
            top: 0px;
            left: 10px;
            padding: 8px 12px;
            font-size: 12px;
        }

        .slide-counter {
            top: 10px;
            font-size: 12px;
            padding: 6px 12px;
        }
    }

    /* Make sure links (if any) keep the intended look */
    a {
        color: inherit;
        text-decoration: none;
    }
