@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;
}

#sec1 {
    width: var(--full-minisize);
    height: auto;
}
.header {
    font-size: 38px;
    color: var(--santa_main);
    margin: 20px;
}
.container_all {
    display: flex
;
    flex-direction: row;
    justify-content: space-around;
    width: var(--full-minisize);
}
#sec2 {
    width: var(--full-minisize);
    height: auto;
}

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

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

.container_1 h1 {
    font-size: 38px;
    color: var(--santa_main);

    margin: 0;
}

.container_1 h4 {
    margin: 0;
}

.container_1 span {
    color: #000;
}

.head_1 {
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.container_1_2 {
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 100%;
}
.container_new
{
    display: flex;
    gap: 5px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 100%; 
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    text-decoration: none;
}

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

.card img {
    width: 45%;
    border-radius: 10px;
}

.title {
    width: 50%;
    display: flex;
    margin-top: 10px;
    justify-content: center;
}

.title p {
    font-size: 14px;
    color: var(--santa_main);
}

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


.head_1 h1 {
    color: var(--santa_main);
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}
.update{
    display: inline-block;
    font-size: 2rem;
    color: #ff0000; /* เปลี่ยนสีให้เด่น */
    font-weight: bold;
    animation: pulse 1.5s infinite alternate ease-in-out;
    margin: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2); /* ขยาย 20% */
    }
}
.article_card {
    display: inline-block;
    width: 20%;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

}

.article_card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.article_card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0px 0px;
}

.text_card {
    display: flex;
    justify-content: space-between;
}

.article_card h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.article_card p {
    color: #2184f9;
    font-size: 14px;
}

.article_card span {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.article_page {
    width: 60%;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article_page img {
    width: 100%;
    border-radius: 10px;
}

.article_page h1 {
    color: #ff4d6d;
}

.article_page p {
    color: #333;
    font-size: 12px;
}

.article_page a {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ff4d6d;
    text-decoration: none;
    font-weight: bold;
}

.con_text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
}

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

    .all {
        width: 100%;
    }

    .container_text {
        width: 100%;
    }

    #sec1 {
        width: 100%;
        height: auto;
    }


    #sec2 {
        width: 100%;
        height: auto;
    }

    .container_1_2 {
        display: flex;
        gap: 5px;
        justify-content: space-evenly;
        flex-wrap: wrap;
        width: 100%;
    }

    .article_card a {
        height: 350px;
    }
    .article_card {
        width: 20%;
        height: 350px;
    }
    .article_card img {
        height: 200px;
    }
    .con_text {
        justify-content: space-between;
        height: 150px;
    }
    .article_card h2 {
        font-size: 18px;
        margin: 0;
    }

    #sec3 {
        width: 100%;
        height: auto;
    }

}

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

    .all {
        width: 100%;
    }

    .waviy {
        position: relative;
        -webkit-box-reflect: below -10px linear-gradient(transparent, rgba(0, 0, 0, .2));
        font-size: 18px;
    }

    .container_text {
        width: 100%;
    }
    #sec1 {
        width: 100%;
    }
    .container_all {
        display: flex
;
        flex-direction: row;
        gap: 1rem;
        width: 90%;
        justify-content: center;
    }
    .title p {
        font-size: 12px;
    }
    .title span {
        font-size: 12px;
    }
    .head_1 h1 {
        font-size: 18px;
    }
    .header {
        font-size: 18px;
    }
    .update {
        font-size: 18px;
    }
    .container_1_2 {
        display: flex
    ;
        gap: 10px;
        justify-content: space-evenly;
        flex-wrap: wrap;
        width: 50%;
    }
    .container_new
    {
        gap: 5px;
        width: 100%; 
    }
    .article_card {
        width: 100%;
        padding: 5px;
        height: 260px;
    }
    .article_card img {
        width: 100%;
        height: 150px;
    }
    .con_text {
        height: 100px;
    }
    .article_card a {
        height: auto;
    }
    .article_card span {
        font-size: 10px;
    }
    #sec2 {
        width: 100%;
    }
    #sec3 {
        width: 100%;
    }
}