@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
    --full-size: 1920px;
    --full-minisize: 1200px;
    --fit-height: 1080px;
    --bg_santa_main: #b20000;
    --santa_main: #b20000;
    --santa_2main: #cf2e2e;
}

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 {
    width: var(--full-minisize);
    height: auto;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


.con_japanroutes {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
    gap: 1rem;
    margin-bottom: 20px;
    flex-wrap: wrap;


}


.package-card {
    flex: 1 1 calc(25% - 1rem);
    /* 25% ของพื้นที่ลบ gap */
    max-width: calc(25% - 1rem);
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.package-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.package-list {
    width: var(--full-minisize);
    height: auto;
}

.package-list h1 {
    color: var(--bg_santa_main);
}


.package-card {
    width: 250px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: left;
    margin: 20px auto;
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
}

.package-card a {
    text-decoration: none;
    /* ลบขีดเส้นใต้ */
    color: inherit;
    /* ให้ใช้สีปกติ */
    display: block;
    /* ทำให้คลิกได้ทั้ง card */
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.package-info {
    padding: 15px;
}

.package-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: black;
}

.package-info p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.package-info p strong {
    color: black;
}

.package-info p:nth-child(2),
.package-info p:nth-child(3),
.package-info p:nth-child(4),
.package-info p:nth-child(5) {
    font-weight: bold;
    color: red;

}

/*--sec3--*/
.sec3 {
    width: var(--full-minisize);
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.head_sec3 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.head_sec3 h1 {
    color: var(--santa_main);
    font-size: 40px;
    margin-left: 20px;
}

.con_row_sec3 {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 2rem;
    flex-direction: column;
}

.container_img_head3 {
    border-radius: 50%;
    padding: 10px;
    background-color: #e2eefd;
    display: inline-flex;
    margin: 0 !important;
    width: 100px;
    height: 100px;
}

.container_img_head3 img {
    width: 100%;
    object-fit: scale-down;
}

.row1_sec3,
.row2_sec3 {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.col1_sec3,
.col2_sec3,
.col3_sec3,
.col4_sec3 {
    width: 250px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.img_sec3 {
    width: 100%;
    height: 90%;
    border-radius: 20px;
}

.group_textadd {
    width: 80%;
    height: 40px;
    border-radius: 20px;
    display: flex;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateY(-15px);
    filter: drop-shadow(2px 0px 3px rgba(0, 0, 0, 0.315));
}

.group_textadd p {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

/*--sec9--*/

.sec9 {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin: 20px 0px;
}

.con_form {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.form-container {
    width: var(--full-minisize);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-top: 8px solid var(--santa_main);
}

.form-title {
    text-align: start;
    font-size: 22px;
    font-weight: bold;
    color: var(--santa_main);
    margin-bottom: 15px;
}

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

.form-grid {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.form-label {
    font-weight: bold;
    color: var(--santa_main);
    margin-bottom: 5px;
    width: 30%;
}

.form-input,
.form-textarea {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-textarea {
    resize: none;
    height: 80px;
}

.textarea-group {
    grid-column: span 2;
}

.form-button {
    width: 100%;
    background: var(--santa_main);
    color: white;
    border: none;
    padding: 12px;
    font-size: 18px;
    font-family: "Noto Sans Thai", serif;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.form-button:hover {
    background: var(--santa_2main);
}

.form-button {
    width: 100%;
    background: var(--santa_main);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.form-button:hover {
    background: var(--santa_2main);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-direction: row;
    align-items: center;
    margin: 20px;
}

.con_button {
    gap: 1rem;
}

button {
    font-family: "Noto Sans Thai", serif;
}

.filter-button {
    font-size: 18px;
    width: 150px;
    height: 50px;
    border-radius: 20px;
    padding: 10px 2px;
    background-color: var(--santa_main);
    color: #fff;
    border-color: transparent;
}

.filter-button.active {
    background-color: #fff;
    color: var(--santa_main);
    border-color: transparent;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, 0.1);

}

.filter-button:hover {
    background-color: #fff;
    color: var(--santa_main);
    border-color: transparent;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, 0.1);
}



@media (min-width:1101px) and (max-width: 1919px) {
    .banner {
        width: 100%;
    }

    .head_sec3 {
        width: 90%;
    }

    .package-list {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    .package-card img {
        width: 100%;
        height: 350px;
        object-fit: contain;
    }

    .package-card {
        width: 250px;
        margin: 0px;
    }

    .con_japanroutes {
        width: 90%;
        display: flex;
        justify-content: space-between;
    }

    .sec3 {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sec9 {
        width: 100%;
        margin: 0px
    }
}

@media (max-width:1100px) {
    .banner {
        width: 100%;
    }

    .package-list {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .con_japanroutes {
        width: 90%;
        gap: 1rem;
        margin-bottom: 20px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .package-card {
        width: 100%;
        height: auto;
        border: 1px solid #ccc;
        border-radius: 8px;
        overflow: hidden;
    }

    .package-card img {
        height: auto;
    }

    .package-info {
        padding: 10px;
    }

    .package-info h2 {
        font-size: 16px;
    }

    .package-info p {
        font-size: 12px;
    }

    /*--sec3--*/
    .sec3 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .row_sec3 {
        width: 90%;
        align-items: flex-start;
    }

    .head_sec3 {
        display: flex;
        width: 90%;
        align-items: center;
        justify-content: flex-start;
        margin: 20px;
    }

    .head_sec3 h1 {
        color: var(--santa_main);
        font-size: 24px;
        margin-left: 20px;
    }


    .con_row_sec3 {
        display: flex;
        flex-direction: row;
        width: 90%;
    }

    .container_img_head3 {
        border-radius: 50%;
        padding: 10px;
        background-color: #e2eefd;
        display: inline-flex;
        margin: 0 !important;
        width: 60px;
        height: 60px;
    }

    .container_img_head3 img {
        width: 60px;
    }

    .row1_sec3,
    .row2_sec3 {
        display: flex;
        width: 50%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    .col1_sec3,
    .col2_sec3,
    .col3_sec3,
    .col4_sec3 {
        width: 90%;
        height: 150px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;

    }


    .img_sec3 {
        width: 100%;
        height: 120px;
        border-radius: 20px;
        object-fit: cover;
    }


    .group_textadd {
        width: 80%;
        height: 40px;
        border-radius: 20px;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        position: relative;
        transform: translateY(-15px);
        filter: drop-shadow(2px 0px 3px rgba(0, 0, 0, 0.315));
    }

    .group_textadd p {
        font-size: 16px;
        font-weight: bold;
    }

    /*-sec9-*/
    .sec9 {
        width: 100%;
        height: auto;
    }

    .form-container {
        width: 90%;
        height: auto;
    }

    .form-button {
        width: 100%;
        background: var(--santa_main);
        color: white;
        border: none;
        padding: 12px;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
    }

    .form-button:hover {
        background: var(--santa_2main);
    }

    .filter-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .filter-button {
        font-size: 12px;
        width: 100px;
        height: 40px;
        padding: 10px 2px;
    }

    .filter-button.active {
        background-color: #fff;
        color: var(--santa_main);
        border-color: transparent;
        box-shadow: 0 15px 25px 0 rgba(0, 0, 0, 0.1);

    }

    .filter-button:hover {
        background-color: #fff;
        color: var(--santa_main);
        border-color: transparent;
        box-shadow: 0 15px 25px 0 rgba(0, 0, 0, 0.1);
    }

    .package-card {
        flex: 1 1 calc(25% - 1rem);
        max-width: calc(100% - 1rem);
        text-align: start;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        color: inherit;
    }
}