body {
    display: flex;
    max-width: 1920px;
    margin: 0px;
    font-family: "Noto Sans Thai", serif;
    background-color: rgb(255 255 255);
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    align-items: center;
}

#banner {
    position: relative;
    width: var(--full-size);
    height: 400px;
    overflow: hidden;
}

.banner-background img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
}


.context_banner {
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

#banner h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
}

#banner p {
    font-size: 22px;
    margin-top: 10px;
}

/*--sec1--*/

#section1 {
    width: 100%;
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.con_link {
    display: flex;
    justify-content: flex-start;
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
}

.text_con_link {
    color: #BABABA;
    font-weight: 600;
    text-decoration: none;
}

.text_con_link:hover {
    text-decoration: underline;
}

.text_con_link_active {
    color: var(--bg_santa_main);
    font-weight: 600;
}

.header_sec1 {
    color: #000;
    font-weight: bold;
    font-size: 38px;
}

.header_sec1 span {
    color: var(--bg_santa_main);
    font-weight: bold;
}

.route-details {
    width: var(--full-minisize);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    height: 720px;
}

.col1_all {
    height: 720px;
    width: 60%;
    display: flex;
}

.col2_all {
    height: 720px;
    width: 40%;
    display: flex;
}

.image-and-info {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
    flex-direction: column;

}

.img_main {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.main-image {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.info-box h3 {
    font-size: 32px;
    margin: 0;
}

/* .btn-download {
    background-color: #00b894;
    color: white;
    padding: 10px 15px;
    display: inline-block;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
} */

.contact-box {
    margin-top: 20px;
}

.contact-box h4 {
    font-size: 28px;
}


.itinerary h4 {
    font-size: 28px;
    margin: 0;
}

.highlights h4 {
    font-size: 28px;
    text-align: start;
    margin: 0;
}

.highlights {
    max-height: 150px; /* คุมความสูงไม่ให้เกิน */
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    overflow-y: auto; /* เปิดสกอร์บาร์แนวตั้ง */
}

.itinerary {
    width: var(--full-minisize);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 0px;
}

.accordion-container {
    width: 100%;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-item {
    width: 95%;
    border-radius: 16px;
    background: #f9f9f9;
    padding: 5px 25px;
}

.program-details {
    display: none;
}

.program-details.show {
    display: block;
}

.info-box {
    flex: 1;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    background-color: #FAFAFA;
    text-align: left;
}

.btn-download {
    background-color: #00b894;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 16px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.contact-box {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.contact_line_face {
    display: flex;
}

.contact-number {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.contact-number_1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-number p {
    color: var(--bg_santa_main);
    font-weight: 600;
    margin: 5px 0;
    font-size: 16px;
}

.highlight-span {
    color: var(--bg_santa_main);
}

.highlight-content {
    margin-top: 10px;
    text-align: start;
}

.highlight-content_all {
    display: flex;
    align-items: center;
    gap: 5px;
}

.highlight-content_all p {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin: 0;
}


.accordion {
    margin-top: 10px;
}

.gallery-section {
    margin-top: 50px;
    text-align: left;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}


.row_contant {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.row_1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.icon_small {
    width: 20px;
    height: 20px;
}

.package-info .icon_small {
    width: 20px;
    height: 20px;
}

.row_1 p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 18px;
    font-weight: 600;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

}

.head_toggle {
    font-size: 18px;
    text-align: start;
}

.program-details p {
    font-size: 16px;
    text-align: start;
}

.program-details {
    display: none;
    padding: 10px;
    background-color: #2c827713;
    border-radius: 16px;
}

.program-item.active .program-details {
    display: block;
}

.toggle-icon {
    float: right;
}

.program-item.active .toggle-icon {
    transform: rotate(45deg);
}

.detailedinfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detailedinfo ul {
    text-align: start;
}

.detailedinfo ul,
.detailedinfo ol {
    list-style: none;
    list-style-type: none;
    padding-left: 0;
    /* optional: removes indentation */
}

.headsec4 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}


.container_sec5 {
    width: var(--full-minisize);
    margin: 20px 0px;
}

.headsec4 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.card_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.card_item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card_item h2 {
    font-size: 20px;
    padding: 15px;
    background: #f5f5f5;
    color: #333;
    margin: 0;
}

.all_photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo_credit {
    padding: 10px 15px;
    font-size: 14px;
    color: #777;
    background: #fafafa;
    text-align: right;
    font-style: italic;
}


.photo_card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.photo_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.photo_wrapper img {
    width: 100%;
    height: 300px;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
    cursor: pointer;
    object-fit: cover;
}

.photo_wrapper:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 60%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
}

.photo_wrapper:hover .overlay {
    opacity: 1;
}

.overlay h2 {
    font-size: 22px;
    margin: 0;
    text-align: start;
}

.overlay .credit {
    font-size: 12px;
    text-align: start;
    margin-top: 5px;
    color: #ccc;
    width: 90%
}

/*--------------*/

#sec2 {
    width: var(--full-minisize);
    height: auto;
    padding: 20px;
    background-color: #fff;
}

.container_sec3,
.container_sec2 {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

th {
    background-color: var(--bg_santa_main);
    color: white;
    padding: 12px;
    font-size: 16px;
    border: 1px solid;
}

.th1 {
    border-radius: 16px 0px 0px 0px;
}

.th3 {
    border-radius: 0px 16px 0px 0px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

/* กำหนดความกว้างให้แต่ละคอลัมน์ */
.th1,
.td1_sec3 {
    width: 7%;
}

.td2_sec3,
th:nth-child(2) {
    width: 45%;
}

.td3_sec3,
th:nth-child(3) {
    width: 8%;
}

.td4_sec3,
th:nth-child(4) {
    width: 8%;
}

.td5_sec3,
th:nth-child(5) {
    width: 8%;
}

.td6_sec3,
.th3 {
    width: 24%;
}


.button_line {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--bg_santa_main);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.button_line:hover {
    background-color: var(--santa_2main);
}

#sec2_1 {
    width: var(--full-minisize);
    height: auto;
    margin-bottom: 20px;
}

.td2_sec3 p {
    text-align: start;
}

/*----------*/
#sec3 {
    width: var(--full-minisize);
    height: auto;
    display: flex;
    margin: 20px 0px;
    justify-content: center;
}

.con_sec3 {
    width: var(--full-minisize);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-container {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #ddd;
    width: 100%;
    background-color: transparent;
}

.tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    background-color: var(--bg_santa_main);
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: var(--bg_santa_main);
    background-color: #fff;
    border-bottom: 3px solid #d32f2f;
}

.content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.content-container {
    position: relative;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.linone {
    list-style: none;
    padding-left: 0;
}

.linone li {
    margin-bottom: 10px;
}

.linone ::marker {
    display: none;
}

.licheck {
    list-style: none;
    padding-left: 0;
}

.licheck li {
    position: relative;
    padding-left: 25px;
}

.licheck li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('/static/img/icon/check-solid.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.liuncheck {
    list-style: none;
    padding-left: 0;
}

.liuncheck li {
    position: relative;
    padding-left: 25px;
}

.liuncheck li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('/static/img/icon/x-solid.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.toggle-button {
    display: none;
    /* ซ่อนไว้ก่อน ถ้ายังไม่เกิน 8 บรรทัด */
    text-align: center;
    color: #d32f2f;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}

.content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.info-box {
    padding: 10px;
}

#package_banner {
    width: var(--full-size);
    height: 600px;
    position: relative;
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(/static/img/japntour/back001.svg);
    z-index: 0;
    gap: 1rem;
    justify-content: center;
}

.head_sec4 {
    font-size: 30px;
}

.head_sec4 span {
    color: #a00000;
}

.con_routes {
    width: var(--full-minisize);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.con_routes a {
    text-decoration: none;
}


/*----table----*/

#package_card_grid {
    width: var(--full-minisize);
    height: auto;
    position: relative;
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(/static/img/japntour/back001.svg);
    z-index: 0;
    gap: 1rem;
    padding-bottom: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.package-info {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.package-info img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-radius: 20px 20px 0px 0px;
}

.con_row1_chinaroutes {
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.row1_chinaroutes {
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
    margin: 0px 10px;
    align-items: flex-start;
}

.row1_chinaroutes div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.icon_chinaroutes img {
    width: 20px;
    height: 20px;
}

.row1_chinaroutes p {
    font-size: 14px;
    margin: 2px;
    color: #A6A6A6;
}

.row1_chinaroutes_highlight {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.row1_chinaroutes_highlight_1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.con_row2_chinaroutes {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.row1_chinaroutes_1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.row1_chinaroutes_1 div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.row1_chinaroutes_1 img {
    width: 20px;
    height: 20px;
}

.row1_chinaroutes_1 p {
    font-size: 14px;
    color: #A6A6A6;
}


.con_button {
    display: flex;
    justify-content: flex-end;
    margin: 10px 10px 10px 0px;
}

.price,
.name {
    color: #474747;
    font-size: 16px;
    font-weight: 300;
}

.price strong {
    color: var(--bg_santa_main);
    font-size: 18px;
    font-weight: 800;
}

hr {
    margin: 0;
    height: 1px;
    background-color: #C00000;
    border: none;
}

.con_price {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 4rem;
    justify-content: center;
}

.con_row1_chinaroutes_1 {
    padding: 10px;
}

.desktop-view {
    display: block;
}

.mobile-view {
    display: none;
}

#sec2_1_mobile {
    display: none;
}

.mobile_text {
    display: none;
}

@media (min-width:1101px) and (max-width: 1919px) {

    #banner,
    #section1,
    #section2,
    #section3,
    #section4 {
        width: 100%;
    }



    .row_sec3 {
        width: 90%;
    }

    #package_card_grid {
        width: 90%;
    }

    .route-details {
        width: 90%;
    }

    #sec2,
    #sec2_1,
    .itinerary {
        width: 90%;
    }

    .container_sec5 {
        width: 90%;
    }
}

@media (max-width:1100px) {

    #banner,
    #section1 {
        width: 100%;
    }

    #section1 {
        height: auto;
    }

    #banner h1 {
        font-size: 20px;
    }

    #banner p {
        font-size: 15px;
    }

    .context_banner {
        top: 65%;
    }

    .highlights {
        height: auto;
    }

    #banner {
        height: auto;
    }

    .banner-background img {
        height: 220px;
        object-fit: cover;
    }

    .con_link {
        width: 95%;
    }

    .con_link p {
        font-size: 14px;
        text-align: start;
    }

    .row_contant {
        gap: 5px;
    }

    .route-details {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .col1_all,
    .col2_all {
        width: 100%;
        height: auto;
    }

    .main-image {
        width: 100%;
        object-fit: contain;
        height: auto;
    }

    .info-box h3,
    .highlights h4,
    .contact-box h4,
    .itinerary h4 {
        font-size: 20px;
        margin: 0;
        text-align: start;
    }

    .headsec4 {
        font-size: 20px;
    }

    .row_1 p {
        font-size: 14px;
        margin: 0;
        text-align: start;
        gap: 5px;
    }

    .contact-number p,
    .highlight-content p {
        font-size: 14px;
        margin: 0;
        text-align: start;
    }

    .row_1 {
        gap: 10px;
    }

    .btn-download {
        font-size: 14px;
        margin: 10px 0px;
    }

    .contact-box {
        margin: 0;
    }

    .itinerary {
        width: 90%;
    }

    .program-item {
        width: 95%;
        padding: 5px 10px;
        background-color: var(--santa_2main);
        color: #fff;
    }

    .head_toggle {
        font-size: 14px;
        text-align: start;
    }

    .detailedinfo {
        font-size: 14px;
        color: #000;
    }

    .container_sec5 {
        width: 90%;
    }

    .card_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .photo_wrapper img {
        width: 100%;
        height: 200px;
    }

    .overlay h2 {
        font-size: 16px;
    }

    .overlay .credit {
        font-size: 10px;
    }

    .mobile_text {
        display: block;
        color: var(--bg_santa_main);
    }

    #sec2_1 {
        display: none;
    }

    #sec2_1_mobile {
        display: block;
    }

    #sec3 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .container_sec3 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .head_info h2 {
        font-size: 16px;

    }

    th {
        font-size: 14px;
    }

    .tab {
        font-size: 12px;
        padding: 6px;
    }

    .content h2 {
        font-size: 18px;
    }

    .content h4 {
        font-size: 16px;
    }

    .content ul {
        font-size: 14px;
    }

    #package_banner {
        width: 100%;
        height: auto;
        padding-bottom: 20px;
    }

    .con_routes {
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .package-info {
        height: auto;
    }

    .package-info img {
        width: 100%;
        height: auto;
        object-fit: fill;
    }

    .con_row1_chinaroutes {
        height: 40%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-evenly;
        padding: 10px 0px;
    }

    .row1_chinaroutes img {
        width: 15px;
        height: 15px;
    }

    .head_sec4 {
        font-size: 18px;
    }

    .program-details p {
        font-size: 12px;
    }

    .program-details {
        background-color: #fff;
        color: #fff;
    }

    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
        width: 90%;
    }

    .accordion-item {
        width: 100%;
        border: 1px solid #ddd;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    .con_accordion_body {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    .con_accordion_body_2_1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .meals-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

    .meals-table th,
    .meals-table td {
        border: 1px solid #ccc;
        text-align: center;
        padding: 8px;
    }

    .meals-table th:nth-child(1),
    .meals-table td:nth-child(1),
    .meals-table th:nth-child(2),
    .meals-table td:nth-child(2),
    .meals-table th:nth-child(3),
    .meals-table td:nth-child(3) {
        width: 15%;
    }

    .meals-table th:nth-child(4),
    .meals-table td:nth-child(4) {
        width: 55%;
    }

    .meals-table th {
        background-color: var(--santa_2main);
        font-size: 12px;
        color: white;
    }

    .meals-table td {
        font-size: 12px;
        background-color: #fff;
    }


    .accordion-header {
        background: var(--bg_santa_main);
        color: #fff;
        padding: 10px;
        cursor: pointer;
        font-weight: bold;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .accordion-body {
        display: none;
        padding: 15px;
        background: #fff;
    }

    .accordion-body.show {
        display: block;
    }

    .button_line {
        font-size: 12px;
    }

    .price del {
        color: var(--bg_santa_main);
        margin-right: 5px;
    }

    #package_card_grid {
        width: 90%;
    }

    .card-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .package-info img {
        width: 100%;
        height: auto;
        object-fit: fill;
    }

    .row1_chinaroutes_1 img {
        width: 20px;
        height: 20px;
    }

    .con_row1_chinaroutes_1 {
        padding: 10px;
    }

    .price {
        font-size: 14px;
        margin: 5px 0px;
        color: var(--bg_santa_main);
        font-weight: 600;
    }

    .name {
        font-size: 14px;
        font-weight: 600;
        margin: 5px 0px;
        text-align: start;
    }

    .row1_chinaroutes_1 p {
        font-size: 14px;
        margin: 5px 0px;
    }

    .row1_chinaroutes_1 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0px;
    }

    .con_price {
        margin: 10px 0px;
    }

    .con_row2_chinaroutes {
        width: 90%;
    }
}