/* --- รีเซ็ตและพื้นฐาน --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Sarabun', sans-serif; }
body { background-color: #f0f4f8; color: #333; }

/* =========================================
   แถบนำทาง (Navbar)
   ========================================= */
.navbar {
    background: linear-gradient(135deg, #003399 0%, #0056b3 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 15px 5%;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar .logo { font-size: 1.6em; font-weight: bold; color: #ffffff; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.navbar ul { list-style: none; display: flex; gap: 25px; }
.navbar ul li a { color: #ffffff; text-decoration: none; font-weight: bold; transition: 0.3s; padding: 5px 0; }
.navbar ul li a:hover { color: #ffc107; border-bottom: 2px solid #ffc107; }
.admin-badge { background-color: #ffc107 !important; color: #003399 !important; padding: 5px 15px; border-radius: 20px; font-size: 0.85em; border: none !important; }
.admin-badge:hover { background-color: #e0a800 !important; }

/* =========================================
   คอนเทนเนอร์หลัก
   (รวมกฎที่เคยประกาศซ้ำ 3 รอบให้เหลือจุดเดียว)
   ========================================= */
.container,
.procurement-container,
.modern-container,
.stats-container,
.footer-container {
    max-width: 1350px;
    width: 95%;
    margin: 40px auto;
}

/* --- เลย์เอาต์ 3 คอลัมน์ (หน้าแรก) --- */
.main-layout { display: grid; grid-template-columns: 280px 1fr 300px; gap: 30px; align-items: start; }

/* --- คอลัมน์ซ้าย (ผู้อำนวยการ) --- */
/* ใส่ gap ให้ทุกกล่องในคอลัมน์ซ้ายมีระยะห่างเท่ากันอัตโนมัติ (ไม่ต้องใช้ margin แยกทีละกล่อง) */
.left-column { display: flex; flex-direction: column; gap: 20px; }

.director-box { background: #ffffff; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 8px 20px rgba(0,51,153,0.08); border-top: 5px solid #0056b3; }
.director-img { width: 100%; border-radius: 8px; margin-bottom: 15px; }

/* --- สไลด์รูป ผอ. / รอง ผอ. --- */
.director-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #e2e8f0;
}
.director-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.director-slider .slide.active { opacity: 1; }
.director-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 15px 12px 10px;
    background: linear-gradient(to top, rgba(0,34,102,0.85) 0%, transparent 100%);
    color: #fff;
    text-align: center;
}
.slide-caption strong { display: block; font-size: 1em; }
.slide-caption span { font-size: 0.85em; color: #e2e8f0; }
.slider-dots {
    position: absolute;
    bottom: 8px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.slider-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}
.slider-dots .dot.active { background: #ffc107; width: 20px; border-radius: 4px; }

.sidebar-links { display: flex; flex-direction: column; gap: 12px; }
.side-link { display: flex; align-items: center; justify-content: center; background: #ffffff; color: #0056b3; text-decoration: none; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 0.95em; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,51,153,0.05); border-left: 4px solid #0056b3; }
.side-link:hover { transform: translateY(-3px); background: #0056b3; color: #ffffff; border-left: 4px solid #ffc107; box-shadow: 0 8px 15px rgba(0,51,153,0.15); }

/* --- คอลัมน์กลาง (แบนเนอร์ & ข่าว) --- */
.center-column { background: #ffffff; padding: 35px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,51,153,0.05); }
.main-banner img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 30px; }
.divider { border: 0; height: 1px; background: #e2e8f0; margin: 30px 0; }
.news-section h2 { border-left: 6px solid #ffc107; color: #003399; padding-left: 15px; margin-bottom: 25px; font-size: 1.5em; }

/* Grid กล่องข่าว (หน้าแรก, responsive) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.news-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px; transition: all 0.3s ease; display: flex; flex-direction: column; border-top: 4px solid transparent; }
.news-card:hover { transform: translateY(-5px); background: #ffffff; box-shadow: 0 10px 20px rgba(0,51,153,0.1); border-top: 4px solid #ffc107; }
.news-card h3 { color: #0056b3; font-size: 1.15em; margin-bottom: 12px; line-height: 1.4; }
.news-card p { color: #555; font-size: 0.95em; line-height: 1.6; flex-grow: 1; margin-bottom: 20px; }
.news-meta { border-top: 1px dashed #cbd5e1; padding-top: 12px; color: #888; font-size: 0.85em; }
.no-news { grid-column: 1 / -1; text-align: center; padding: 50px; background: #f8fafc; border-radius: 8px; color: #64748b; font-size: 1.1em; border: 1px dashed #cbd5e1; }

/* --- คอลัมน์ขวา (เมนูระบบ) --- */
.system-menu-vertical { display: flex; flex-direction: column; gap: 12px; }
.sys-card { display: flex; align-items: center; padding: 15px 20px; border-radius: 8px; text-decoration: none; color: #ffffff; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,51,153,0.1); background: linear-gradient(135deg, #00449e 0%, #0056b3 100%); border-left: 5px solid #002266; }
.sys-card:hover { transform: translateX(-5px); background: #003399; border-left: 5px solid #ffc107; box-shadow: 0 8px 20px rgba(0,51,153,0.2); }
.sys-card .icon { font-size: 1.8em; margin-right: 15px; color: #ffc107; }
.sys-card .text { font-size: 0.95em; font-weight: bold; letter-spacing: 0.5px; }

/* =========================================
   Footer
   ========================================= */
.site-footer { background-color: #0a192f; color: #cbd5e1; padding: 50px 0 0 0; margin-top: 60px; font-size: 0.95em; border-top: 5px solid #ffc107; }
.footer-column { display: table-cell; width: 33.33%; padding: 0 20px; vertical-align: top; }
.footer-column h3 { color: #ffc107; margin-bottom: 20px; font-size: 1.25em; border-left: 4px solid #0056b3; padding-left: 12px; }
.footer-column p { line-height: 1.7; margin-bottom: 12px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #cbd5e1; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-column ul li a:hover { color: #ffc107; transform: translateX(5px); }
.footer-bottom { background-color: #020c1b; text-align: center; padding: 20px; margin-top: 40px; }
.footer-bottom p { color: #64748b; font-size: 0.85em; margin: 0; }
/* footer-container ใช้ display:table เพื่อจัด 3 คอลัมน์เท่ากัน */
.footer-container { display: table; padding: 0; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1200px) {
    .main-layout { grid-template-columns: 240px 1fr 240px; }
}
@media (max-width: 992px) {
    .main-layout { grid-template-columns: 1fr; }
    .system-menu-vertical { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .footer-container { display: block; }
    .footer-column { display: block; width: 100%; margin-bottom: 40px; padding: 0; }
    .procurement-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .procurement-grid { grid-template-columns: 1fr; }
}

/* =========================================
   กล่อง Facebook Fanpage (คอลัมน์ขวา)
   ========================================= */
.fb-page-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,51,153,0.05);
    border-top: 5px solid #1877F2;
}
.fb-page-box h3 { color: #1877F2; font-size: 1.1em; margin-bottom: 15px; text-align: center; }
.fb-content {
    width: 100%;
    background: transparent;
    overflow: hidden;
    border-radius: 8px;
}
/* กันไม่ให้ไอคอนรูปที่โหลดไม่ขึ้นเบ่งจนพังเลย์เอาต์ */
.fb-content img,
.fb-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   แถบสถิติโรงเรียน (School Stats)
   ========================================= */
.school-stats {
    background: linear-gradient(135deg, #003399 0%, #0056b3 100%);
    padding: 60px 0;
    margin-top: 40px;
    color: white;
    text-align: center;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 0 auto; /* ไม่ต้องมี top/bottom margin ซ้ำกับ .container */
}
.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}
.stat-item:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.2); border-color: #ffc107; }
.stat-number { font-size: 3em; font-weight: bold; color: #ffc107; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.stat-label { font-size: 1.1em; font-weight: bold; letter-spacing: 0.5px; }

/* =========================================
   ประกาศจัดซื้อจัดจ้าง (Procurement)
   ========================================= */
.procurement-section { background-color: #f4f7fb; padding: 60px 0; margin-top: 40px; }
.procurement-container { max-width: 1400px; margin: 0 auto; }
.procurement-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.procurement-title .sub-title { color: #475569; font-size: 0.95em; font-weight: bold; margin-bottom: 5px; }
.procurement-title h2 { color: #003399; font-size: 2.2em; margin-bottom: 8px; }
.procurement-title p { color: #64748b; font-size: 1em; }
.btn-view-all { background-color: #002266; color: white; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: bold; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,34,102,0.2); }
.btn-view-all:hover { background-color: #0044cc; transform: translateY(-2px); }

.procurement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.procurement-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #eab308;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.procurement-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.card-icon-pdf {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    width: 45px;
    height: 55px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.85em;
    margin-right: 20px;
    flex-shrink: 0;
}
.card-content { flex-grow: 1; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.85em; margin-bottom: 10px; }
.card-meta .category { color: #d97706; font-weight: bold; }
.card-meta .date { color: #94a3b8; }
.card-content h3 { color: #003399; font-size: 1.1em; line-height: 1.5; margin-bottom: 15px; }
.btn-open-doc { color: #0056b3; text-decoration: none; font-size: 0.9em; font-weight: bold; display: inline-flex; align-items: center; }
.btn-open-doc:hover { color: #d97706; }
.btn-open-doc .ext-icon { font-size: 1.2em; margin-left: 5px; }

/* =========================================
   เซกชันข่าวและกิจกรรม (Modern Sections)
   ========================================= */
.modern-section { padding: 60px 0; background-color: #f0f4f8; }
.modern-container { max-width: 1400px; }
.section-header { margin-bottom: 40px; text-align: left; }
.section-header .sub-title { color: #475569; font-size: 1em; font-weight: bold; margin-bottom: 5px; }
.section-header h2 { color: #003399; font-size: 2.2em; margin-bottom: 8px; }
.section-header p { color: #64748b; font-size: 1.05em; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: #f8fafc; border-radius: 12px; border: 2px dashed #cbd5e1; color: #64748b; }
.empty-state p { font-size: 1.2em; margin-bottom: 10px; color: #003399; font-weight: bold; }

/* ข่าวประชาสัมพันธ์ V2 */
.modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.news-card-v2 { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #e2e8f0; }
.news-card-v2:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,51,153,0.1); }
.news-card-img { height: 180px; overflow: hidden; background: #e2e8f0; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.news-card-v2:hover .news-card-img img { transform: scale(1.06); }
.news-img-placeholder { height: 180px; background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%); display: flex; align-items: center; justify-content: center; color: white; }
.news-img-placeholder span { font-size: 2.5em; opacity: 0.85; }
.news-content-v2 { padding: 25px; }
.news-date { color: #d97706; font-size: 0.85em; font-weight: bold; margin-bottom: 10px; display: block; }
.news-content-v2 h3 { color: #003399; font-size: 1.1em; line-height: 1.5; margin-bottom: 15px; }
.read-more { color: #0056b3; text-decoration: none; font-weight: bold; font-size: 0.9em; }
.read-more:hover { color: #ffc107; }

/* =========================================
   ผลงานและกิจกรรมเด่น
   ========================================= */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.activity-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 6px 16px rgba(0,0,0,0.08); cursor: pointer; border: 1px solid #e2e8f0; }
.activity-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.activity-card:hover .activity-img { transform: scale(1.08); }
.activity-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 34, 102, 0.92) 0%, rgba(0, 34, 102, 0.45) 65%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 14px;
    transition: 0.3s;
}
.activity-badge { background-color: #003399; color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.72em; font-weight: bold; align-self: flex-start; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.2); }
.activity-title {
    color: white;
    font-size: 0.95em;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   Sidebar (หน้าแอดมิน/แดชบอร์ด)
   ========================================= */
.sidebar {
    width: 260px;
    height: 100vh;
    background-color: #0a192f;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sidebar-header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #1a2942; }
.sidebar-header h2 { font-size: 1.3em; color: #ffc107; }
.sidebar-header p { font-size: 0.85em; color: #cbd5e1; }
.sidebar-menu ul { list-style: none; margin-top: 20px; }
.sidebar-menu ul li a {
    display: block;
    padding: 15px 25px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border-left: 4px solid transparent;
}
.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active { background-color: #172a45; color: #ffffff; border-left: 4px solid #ffc107; }
.sidebar-menu .logout { color: #fc8181; margin-top: 10px; }
.sidebar-menu .logout:hover { background-color: #742a2a; color: white; }

.main-content { margin-left: 260px; padding: 30px; }

/* --- กล่องย่อยในหน้าแดชบอร์ด --- */
.sub-section { margin-top: 40px; }
.section-title { color: #003399; font-size: 1.3em; border-bottom: 2px solid #ffc107; padding-bottom: 10px; margin-bottom: 20px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mini-card { background: #f8fafc; padding: 15px; border-radius: 8px; border-left: 4px solid #0056b3; font-size: 0.9em; }
.activity-grid-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.act-card-mini img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; }
.empty-msg { color: #94a3b8; font-style: italic; }

.content-section { margin-top: 30px; }
.section-heading { font-size: 1.5rem; color: #003399; margin-bottom: 15px; border-bottom: 2px solid #ffc107; padding-bottom: 5px; }

/* หมายเหตุ: เปลี่ยนชื่อคลาสนี้เป็น .dashboard-news-grid
   เพราะเดิมชื่อซ้ำกับ .news-grid ของหน้าแรก (คนละดีไซน์กัน)
   ถ้าใน HTML หน้าแดชบอร์ดใช้ class="news-grid" อยู่ ให้เปลี่ยนเป็น class="dashboard-news-grid" */
.dashboard-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.proc-item { background: #f1f5f9; padding: 10px; margin-bottom: 5px; display: flex; justify-content: space-between; border-radius: 5px; }
.act-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.act-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }

.banner-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.news-detail-wrap {
    max-width: 100%;
    overflow-x: hidden;
}

.news-detail-img {
    width: 100%;
    max-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;   /* พื้นหลังกันพื้นที่ว่างดูโล่ง */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.news-detail-img img {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;   /* แสดงรูปเต็มภาพ ไม่ครอปทิ้ง */
    display: block;
}
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.navbar .logo img {
    height: 45px;       /* ปรับขนาดโลโก้ตามต้องการ */
    width: auto;
}

.navbar .logo span {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
/* =========================================
   เพิ่มเติม: Responsive มือถือ/แท็บเล็ต
   ========================================= */

/* --- Navbar: hamburger menu บนมือถือ --- */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .navbar { position: relative; padding: 12px 4%; flex-wrap: nowrap; }
    .navbar .logo img { height: 36px; }
    .navbar .logo span { font-size: 15px; }

    .navbar-toggle { display: flex; }

    .navbar ul#navMenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #003399;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
        z-index: 100;
    }
    .navbar ul#navMenu.open { display: flex; }
    .navbar ul#navMenu li { width: 100%; text-align: center; }
    .navbar ul#navMenu li a { display: block; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .admin-badge { padding: 4px 12px; font-size: 0.8em; }
}
/* --- Sidebar หน้าแอดมิน: เปลี่ยนจาก fixed เป็นย้ายขึ้นบน/ยุบ --- */
@media (max-width: 992px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding-top: 10px;
    }
    .sidebar-menu ul { display: flex; flex-wrap: wrap; margin-top: 10px; }
    .sidebar-menu ul li a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .sidebar-menu ul li a:hover,
    .sidebar-menu ul li a.active {
        border-left: none;
        border-bottom: 3px solid #ffc107;
    }
    .main-content { margin-left: 0; padding: 20px; }
}

/* --- Grid ที่ล็อก 2 คอลัมน์ตายตัว: ยุบเป็น 1 คอลัมน์บนมือถือ --- */
@media (max-width: 600px) {
    .mini-grid,
    .act-grid,
    .dashboard-news-grid,
    .activity-grid-mini {
        grid-template-columns: 1fr;
    }
}

/* --- ทั่วไป: ลดขนาดตัวอักษร/ระยะห่างบนจอเล็ก --- */
@media (max-width: 768px) {
    .container,
    .procurement-container,
    .modern-container,
    .stats-container,
    .footer-container {
        margin: 25px auto;
        width: 92%;
    }
    .center-column { padding: 20px; }
    .procurement-title h2,
    .section-header h2 { font-size: 1.6em; }
    .news-section h2 { font-size: 1.25em; }
    .stat-number { font-size: 2.2em; }
    .school-stats { padding: 40px 0; }
    .procurement-grid { gap: 15px; }
    .procurement-card { padding: 18px; }
    .btn-view-all { padding: 10px 18px; font-size: 0.9em; }
}

/* --- รูปภาพ/แบนเนอร์: ลดความสูงบนมือถือ --- */
@media (max-width: 768px) {
    .banner-img { height: 220px; }
    .news-detail-img { max-height: 320px; }
    .news-detail-img img { max-height: 320px; }
    .director-img { margin-bottom: 10px; }
}

/* --- มือถือขนาดเล็กมาก --- */
@media (max-width: 420px) {
    .navbar ul { gap: 8px; font-size: 0.82em; }
    .news-grid,
    .modern-grid,
    .activity-grid { grid-template-columns: 1fr; }
    .footer-column h3 { font-size: 1.1em; }
}