    html { scroll-behavior: smooth; }
    body { margin:0; font-family:'Sarabun',sans-serif; line-height:1.6; color:#333; display:flex; flex-direction:column; min-height:100vh; }
    
 /* --- Header --- */
        header {
    background-color: #D4AF37;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center; /* ให้อยู่ตรงกลาง */
    align-items: center;
    position: relative;
    z-index: 1000;
}

       /* ---------------- Grid Layout ---------------- */
.container {
    display: grid;
    grid-template-rows: 80px auto 1fr auto 50px;
    grid-template-columns: 1fr 4fr 1fr;
    height: 100vh;
    grid-template-areas:
        "header header header"
        "left-aside banner right-aside"
        "left-aside main right-aside"
        "left-aside low-content right-aside"
        "footer footer footer";
    grid-gap: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 20px;
}

@media (max-width: 678px) {
    .container {
        grid-template-rows: 50px 50px 50px 1fr 50px 50px 50px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "banner"
            "left-aside"
            "main"
            "right-aside"
            "low-content"
            "footer";
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-link img {
    height: 80px;
    width: auto;
    display: flex;
}

.header-right {
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a,
nav .dropdown > a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

/* เมนูหลัก (เฉพาะแถวบน header) */
header nav > a:hover,
header nav > .dropdown > a:hover {
    color: #2e2e2e;   /* ทอง */
    background: none; /* ไม่มีพื้นหลัง */
}

/* ลิงก์ภายใน dropdown */
.dropdown-content a:hover {
    color: #D4AF37;   /* ให้เปลี่ยนแค่สี */
    background: none; /* ไม่เอาพื้นหลัง */
}
/* dropdown ปกติ (desktop) */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #ffffff;
  min-width: 180px;
  top: 100%;
  left: 0;
  z-index: 999;
  flex-direction: column;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin-top: 8px;
}

.dropdown-content a {
  padding: 0.75rem 1rem;
  display: block;
  white-space: nowrap;
  color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== Mobile View ===== */
@media (max-width: 768px) {
  .dropdown {
    position: static;   /* ไม่ให้ absolute */
  }

  .dropdown-content {
    display: block !important;  /* แสดงตลอด */
    position: static;
    background: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
  }

  .dropdown-content a {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* เอาลูกศร ▾ ออกก็ได้ */
  .dropdown > a::after {
    content: none;
  }
}

.menu-toggle {
            display: none;
            font-size: 1.8rem;
            cursor: pointer;
            background: none;
            border: none;
            color: #fff;
        }

        

/* --- Responsive Design --- */
        @media (max-width: 768px) {
            header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .header-left {
                gap: 1rem;
            }
            
            .logo-link img {
                height: 60px;
            }

            /* Responsive for mobile */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        background: #333333;
        width: 100%;
        padding-left: 10px;
        flex-direction: column;
        align-items: flex-start;
        
    }

    nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        background: #333333;
        width: 50%;
    }

    .dropdown-content a {
        padding-left: 1rem;
        color: #fff;
    }

    .dropdown-content a:hover {
        color: #f0ae2a;
    }
}

            
            .menu-toggle {
                display: block;
            }
        }



    footer {
      background:#3f3427; 
      color:#fff; 
      margin-top:auto; 
    }

    .footer-container { 
      display:flex; 
      justify-content:space-between; 
      align-items:center; 
      max-width:1200px; 
      margin:0 auto; 
      padding:1rem;
    }

    .copyright-bar { 
      background-color: #382b1c;  
      text-align:center; 
      font-size:13px; 
      padding:0.5rem 0;
      color: #ffffff;
    }

    /* --- News Section --- */
    .news-section { max-width:1100px; margin:3rem auto; padding:0 1rem; }
    .news-section h3 { text-align:center; font-size:1.9rem; color:#462d12; margin-bottom:2.5rem; position:relative; }
    .news-section h3::after { content:""; display:block; width:80px; height:4px; background:#D4AF37; margin:0.8rem auto 0; border-radius:2px; }
    
    .news-list { display:flex; flex-direction:column; gap:1.5rem; }
    .news-card { 
      display:flex; 
      flex-direction:row; 
      align-items:flex-start; 
      background:#fff; 
      border-radius:12px; 
      overflow:hidden; 
      box-shadow:0 4px 15px rgba(0,0,0,0.08); 
      transition:0.3s; 
    }
    .news-card:hover { transform:translateY(-5px); box-shadow:0 6px 20px rgba(0,0,0,0.15); }
    .news-card img { width:220px; height:180px; object-fit:cover; flex-shrink:0; }
    .news-content { padding:1rem; flex:1; }
    .news-content h4 { margin:0 0 0.5rem; font-size:1.3rem; color:#333; }
    .news-date { font-size:0.9rem; color:#888; margin-bottom:0.8rem; }

    .read-more { display:inline-block; font-size:0.9rem; color:#D4AF37; font-weight:bold; text-decoration:none; border-bottom:1px solid transparent; transition:0.3s; }
    .read-more:hover { color:#a8831f; border-color:#a8831f; }

    .logo-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem 0;
        }

        .logo-container img {
            max-width: 300px;
            height: auto;
        }

    /* --- ปุ่ม Admin Login --- */
    #adminLoginBtn {
      background:#fff; color:#462d12; border:2px solid #fff; padding:0.3rem 0.8rem; border-radius:5px;
      font-size:0.9rem; font-weight:bold; cursor:pointer; transition:0.3s;
    }
    #adminLoginBtn:hover { background:#d39e1a; color:#fff; }

    /* ===== ปุ่มเปิด/ปิดเพลง ===== */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease, background 0.3s;
}

.music-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 200, 0.95);
}

.music-toggle i {
  font-size: 26px;
  color: #444;
}
