* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(16, 16, 16);
    color: white;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: auto;
    /* อนุญาตให้เลื่อนหน้าได้ */
    min-height: 100vh;
    /* ทำให้เนื้อหาครอบคลุมทั้งหน้าจอ */
}


#fire-background {
    position: fixed;
    /* เปลี่ยนจาก absolute เป็น fixed เพื่อให้เอฟเฟคครอบคลุมทั้งหน้า */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    /* เพิ่ม z-index ให้สูงกว่าเนื้อหา */
    pointer-events: none;
    /* ป้องกันการกดหรือคลิกที่เอฟเฟค */
    overflow: hidden;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 70px;
    padding-bottom: 100px;
    /* เพิ่มพื้นที่ด้านล่าง */
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

.particle {
    position: absolute;
    background-color: rgba(255, 69, 0, 0.8);
    /* Fire-like color */
    border-radius: 50%;
    opacity: 0;
    animation: moveParticles linear infinite;
    bottom: 0;
}

@keyframes moveParticles {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }


}

.img-fluid {
    width: 100%;
    height: auto;
}

/********************************************************/
.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.tt-new {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: auto;
}

.tt-new h1 {
    width: 1450px;
    justify-content: center;
    align-items: center;
}

.MuiCard-root {
    display: flex;
    flex-direction: column;
    width: 350px;
    background-color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #222;
}

.MuiCard-root:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.MuiCardMedia-root {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.MuiCardContent-root {
    padding: 15px;
    color: #333;
}

._limit-line-oneline {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

._limit-line-twoline {
    font-size: 16px;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
}

.MuiTypography-body2 {
    font-size: 12px;
    color: #fff;
    text-align: right;
    margin-top: 10px;
}