/* โครงสร้างหลัก */
.news-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: "Prompt", sans-serif;
    color: #f0f0f0;
}

/* หัวข้อใหญ่ */
.news-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 35px;
    color: #d4af37;
    letter-spacing: 1px;
}

/* การ์ดข่าว */
.news-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.4);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212,175,55,0.15);
}

/* หัวข้อข่าว */
.news-title {
    font-size: 24px;
    color: #ffd86b;
    margin-bottom: 10px;
}

/* รายละเอียดข่าว */
.news-detail {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ข้อมูลประกาศ */
.news-info p {
    font-size: 16px;
    margin: 4px 0;
}

/* -------------------------------------------------- */
/* 📱 มือถือ (ต่ำกว่า 600px) */
/* -------------------------------------------------- */
@media (max-width: 600px) {

    .news-section {
        padding: 15px;
        margin: 20px auto;
    }

    .news-section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .news-card {
        padding: 18px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-detail {
        font-size: 16px;
        line-height: 1.8;
    }

    .news-info p {
        font-size: 15px;
    }
}

/* -------------------------------------------------- */
/* 📱💻 แท็บเล็ต (601px – 900px) */
/* -------------------------------------------------- */
@media (min-width: 601px) and (max-width: 900px) {

    .news-section {
        padding: 20px 25px;
    }

    .news-section-title {
        font-size: 30px;
    }

    .news-card {
        padding: 22px;
    }

    .news-title {
        font-size: 22px;
    }

    .news-detail {
        font-size: 17px;
    }

    .news-info p {
        font-size: 16px;
    }
}
/*--แก้จอเอียง--*/
/* ===============================
   ⭐ Mobile Landscape (เอียงจอ)
   ความสูงน้อย → ลด padding + ลด font
================================ */
@media (max-height: 500px) and (max-width: 1024px) {

    .news-section {
        padding: 15px;
        margin: 15px auto;
    }

    .news-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .news-card {
        padding: 16px;
        margin-bottom: 18px;
    }

    .news-title {
        font-size: 18px;
    }

    .news-detail {
        font-size: 15px;
        line-height: 1.6;
    }

    .news-info p {
        font-size: 14px;
    }
}


