        /* css index.html */
        
        html {
            scroll-behavior: smooth;
        }

        /* ---------------- 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";
    }
}

        body {
            margin: 0;
            font-family: 'Sarabun', sans-serif;
            line-height: 1.6;
            color: #333;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        main {
            flex-grow: 1;
        }

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

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

        /* --- Header --- */
        header {
    background-color: #D4AF37;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center; /* ให้อยู่ตรงกลาง */
    align-items: center;
    position: relative;
    z-index: 1000;
}

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

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

        

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

        /* --- Hero Section --- */
        .hero {
            position: relative;
            width: 100%;
            height: 65vh;
            overflow: hidden;
        }

        .hero .slides {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.8s ease;
        }

        .hero .slides img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        
        .hero-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: #fff;
            text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
            max-width: 80%;
            z-index: 2;
        }

        .hero-text h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .hero-text p {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .hero-text .btn {
            display: inline-block;
            background-color: #71bf45;
            color: #fff;
            padding: 0.75rem 1.5rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            transition: background 0.3s;
        }

        .hero-text .btn:hover {
            background-color: #5ca036;
        }

        .hero .prev,
        .hero .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0,0,0,0.5);
            color: #fff;
            border: none;
            padding: 0.75rem 1rem;
            cursor: pointer;
            font-size: 1.5rem;
            border-radius: 50%;
            z-index: 2;
        }

        .hero .prev { left: 20px; }
        .hero .next { right: 20px; }

        /* --- Sections --- */
        section {
            padding: 3rem 1rem;
            max-width: 1100px;
            margin: 0 auto;
        }

        section h3 {
            text-align: center;
            color: #462d12;
            font-size: 2rem;
            margin-bottom: 2rem;
        }

        .about-section {
            display: flex;
            gap: 2rem;
            align-items: center;
        }
        
        .about-section img {
            width: 100%;
            max-width: 420px;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
            transition: 0.35s ease;
        }

        .about-section img:hover {
            transform: scale(1.02);
        }

        .about-section p {
            text-align: justify;
            max-width: 700px;
        }

        .video-section { text-align: center; padding: 40px 20px; background: #fff; color: #333; border-radius: 16px; max-width: 1000px; margin: auto; 
          box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; } .video-section h3 { font-size: 2rem; margin-bottom: 20px; color: #2c2c2c; 
            font-weight: 600; transition: color 0.4s ease; } .video-wrapper { position: relative; width: 100%; max-width: 900px; margin: 0 auto 20px auto; 
              aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); } .video-wrapper iframe { width: 100%; 
                height: 100%; border: none; } .video-controls { display: flex; justify-content: center; gap: 20px; } .video-controls button { background: #662d91; 
                  color: #fff; border: none; padding: 10px 18px; font-size: 1rem; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; } 
                  .video-controls button:hover:not(:disabled) { background: #4b1e6b; transform: translateY(-2px); } .video-controls button:disabled { background: #ccc; cursor: not-allowed; }
        
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin: 5px;
            font-size: 14px;
            transition: 0.3s;
        }

        .btn-primary { background: #007bff; color: white; }
        .btn-success { background: #28a745; color: white; }
        .btn-danger { background: #dc3545; color: white; }
        .btn:hover { opacity: 0.85; }
        .admin-panel {
            margin-top: 20px;
        }

        .hidden { display: none; }
        
        .input-field {
            margin: 10px 0;
        }

        input[type="text"], input[type="password"], input[type="file"] {
            padding: 6px;
            border-radius: 5px;
            border: 1px solid #ccc;
            width: 70%;
        }

        /* --- Footer --- */
        /* === FOOTER ULTRA DESIGN === */
.main-footer {
  background: linear-gradient(180deg, #4b3b30 0%, #2d221a 100%);
  color: #fff;
  padding: 3rem 1rem 1.5rem;
  font-family: 'Prompt', sans-serif;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-section {
  flex: 1 1 300px;
  text-align: center;
}

.footer-section h2 {
  font-size: 1.5rem;
  color: #ffd480;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  position: relative;
}

.footer-section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #ffd480;
  margin: 0.5rem auto;
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.footer-section ul li a {
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section ul li a::after {
  content: '';
  display: block;
  height: 2px;
  background: #ffd480;
  width: 0;
  transition: width 0.3s ease;
  margin: 0 auto;
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.footer-section ul li a:hover {
  color: #ffd480;
}

/* Facebook Preview */
.fb-page-container iframe {
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Contact Info */
.contact {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

@media (max-width: 768px) {
  .footer-section h2 {
    font-size: 1.3rem;
  }
  .footer-section ul li a {
    font-size: 1rem;
  }
}


        .map-container iframe {
            width: 350px;
            height: 300px;
            border: 0;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

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

        /* --- 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;
            }

            .hero { height: 50vh; }
            .hero-text h2 { font-size: 1.5rem; }
            .hero-text p { font-size: 1rem; }
            .hero .prev, .hero .next {
                font-size: 1rem;
                padding: 0.5rem 0.75rem;
            }
            
            .about-section {
                flex-direction: column;
            }

            .footer-container {
                flex-direction: column;
                gap: 2rem;
            }
            
            .footer-section {
                width: 100%;
            }
        }

        

        /* ปุ่ม Poster */
  .poster-btn {
    font-family: 'Sarabun', sans-serif;
    padding: 12px 12px;
    background: #a67c52; /* สีทองอ่อนแบบสุภาพ */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
  }

  .poster-btn:hover {
    background: #8b5e34;
    transform: translateY(-2px);
  }


  .poster1-btn {
    font-family: 'Sarabun', sans-serif;
    padding: 12px 12px;
    background: #C88141; /* สีทองอ่อนแบบสุภาพ */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
  }

  .poster1-btn:hover {
    background: #8b5e34;
    transform: translateY(-2px);
  }

  /* พื้นหลังมืดเมื่อแสดง pop-up */
  .modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background: rgba(0,0,0,0.6);
  }

  /* กล่องแสดงภาพ */
  .modal-content {
  background: transparent;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  position: relative; /* ให้ปุ่มปิดอ้างอิงตำแหน่งจากตรงนี้ */
  display: flex;
  justify-content: center;
  align-items: center;
}

  /* ภาพโปสเตอร์ */
  .modal-content img {
    width: 100%;
  }

  /* ปุ่มปิด */
  /* ปุ่มปิด ขวาบนภาพ */
.close {
  color: white;
  position: absolute;
  top: 10px;     /* ขยับลงมาในรูป */
  right: 10px;   /* ขยับเข้ามาในรูป */
  background: #d9534f;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2; /* ให้ลอยอยู่เหนือรูป */
}

  .close:hover {
    background: #b52b27;
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
  }


  /* ===== Popup พื้นหลังมืด ===== */
.popup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ===== กล่องโปสเตอร์ ===== */
.popup-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  max-width: 600px;
  width: 90%;
  animation: popupFade 0.4s ease;
}

/* ===== รูปโปสเตอร์ ===== */
.poster-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== ปุ่มปิด (x) ===== */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  font-size: 20px;
  transition: 0.2s;
}
.close-btn:hover {
  background: #ff3333;
}

/* ===== แสดง Popup ===== */
.popup.show {
  visibility: visible;
  opacity: 1;
}

/* ===== เอฟเฟกต์เปิดโปสเตอร์ ===== */
@keyframes popupFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.video-section {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  color: #333;
  border-radius: 16px;
  max-width: 1000px;
  margin: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.video-section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c2c2c;
  font-weight: 600;
  transition: color 0.4s ease;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ปุ่มเลือกคลิป */
.video-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.video-btn {
  background: #eee;
  color: #333;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-btn:hover {
  background: #ddd;
  transform: translateY(-2px);
}

.video-btn.active {
  background: #31281d;
  color: #fff;
  font-weight: 600;
}



/* ===== ปุ่มเปิด/ปิดเพลง ===== */
.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;
}





