* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Prompt', sans-serif;
  background: #010101;
  color: #fff;
  line-height: 1.5;
}

a {
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: #DC0E0E;
}

img {
  max-width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

/* ===== Top Social Bar ===== */
.top-social-bar {
  background: #111;
  color: #ccc;
  font-size: 12px;
  border-bottom: 1px solid #222;
  padding: 3px 0;
}

.top-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 15px;
  max-width: 1200px;
  margin: auto;
}

.date-time { 
  font-size: 12px; 
  color: #aaa; 
}

#current-time {
  color: #E30613;   /* แดง */
  font-weight: bold;
  margin-left: 5px;
}

.top-social-icons { 
  display: flex; 
  gap: 8px; 
}

.top-social-icons a {
  display: inline-flex;       /* ทำให้เป็น flex */
  justify-content: center;    /* จัดไอคอนกลางวงกลม */
  align-items: center;
  width: 22px;                /* ขนาดวงกลมเล็ก */
  height: 22px;
  background: #222;           /* วงกลมสีเข้ม */
  border-radius: 50%;         /* ทำให้เป็นวงกลม */
  color: #fff;
  font-size: 12px;            /* ขนาดไอคอน */
  transition: 0.3s;
}

.top-social-icons a:hover {
  background: #E30613;        /* วงกลมแดงตอน hover */
  color: #fff;                /* ไอคอนขาว */
}

/* ===== Header ===== */
header {
  background: #000;
  border-bottom: 2px solid #222;
  position: sticky;
  top: 0;    
  z-index: 4000;
}

.top-bar {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: #E30613;
}

nav {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== Hero ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

.main-news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.main-article {
  position: relative;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 420px;
  border-radius: 8px;
}

.slide h1 {
  font-size: 1.4rem;
  margin-top: 10px;
  color: #fff;
  font-weight: 600;
}

.slide.active {
  display: block;
  animation: fade 0.8s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ปุ่มเลื่อน */
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.controls button {
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  padding: 8px 12px;
  font-size: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.controls button:hover {
  background: rgba(0,0,0,0.9);
}

/* ข่าวข้าง */
.side-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-article {
  display: flex;
  gap: 10px;
  align-items: center;
}

.side-article img {
  width: 125px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
}

.side-article h2 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
}

/* Section Title */
.update-section h2 {
  font-size: 30px;
  font-weight: 600;
  border-left: 4px solid #E30613;
  padding-left: 10px;
  margin: 20px auto;
}

/* Grid 4 ช่อง */
.update-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: #B0000F;
  padding: 20px;
  margin: 20px 30px;
}

.update-grid article {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.update-grid article:hover {
  transform: translateY(-10px);
}

.update-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.update-grid h3 {
  font-size: 14px;
  font-weight: 400;
  padding: 8px;
  color: #fff;
}

/* ===== Bottom Layout (ข่าว + ตารางคะแนน) ===== */
.bottom-layout {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

.bottom-layout h2{
  border-left: 4px solid #E30613;
  padding: 5px 10px;
}

/* ข่าวพรีเมียร์ลีก */
.pl-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 20px 30px;
}

.pl-articles-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  margin-top: 20px;
  line-height: 160%;
  }

.pl-articles-grid a:hover {
  text-decoration: underline;
}

.pl-articles-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.pl-articles-grid a img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.4s ease;
  display: block;
}

.pl-articles-grid img:hover{
  transform: translateY(-10px);
}

.pl-articles-grid p {
  margin-top: 5px;
  font-size: 14px;
}

.read-more-wrapper {
  text-align: center;
  margin: 30px;
}

.read-more-btn {
  display: inline-block;
  background: #c60d0d;         /* สีแดงหลักของเว็บ */
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Hover */
.read-more-btn:hover {
  background: #9a0b0b;         /* สีแดงเข้มขึ้น */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  color: #fff;
}

/* agoda */
.agoda-button {
    background: #1a73e8;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin-bottom: 30px;
}

.agoda-button:hover {
    background: #125abc;
}

/* ตารางคะแนน (div-based) */
.table-section {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}

.table-header, .table-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.table-header {
  background: #E30613;
  font-weight: bold;
}

.table-row:nth-child(even) {
  background: #1a1a1a;
}

.table-row span {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.table-row span:nth-child(2) {
  flex: 2;
  text-align: left;
}

/* โปรแกรม */
.schedule-section .match {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px dashed #333;
}

.schedule-section img {
  width: 20px;
  height: 20px;
  margin: 0 10px;
}

.schedule-section img {
  border: 1px solid #f3f3f3;
  border-radius: 2px;
  padding: 0px;
  background: #ffffff;
}

/* Video Zone */
.video-zone h2 {
  font-size: 28px;
  font-weight: 700;
  border-left: 4px solid #E30613;
  margin: 20px 30px;
  padding: 10px; ;
}

/* Layout */
.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* วิดีโอหลักใหญ่ + ด้านข้างเล็ก */
  gap: 20px;
  margin: 20px 30px;
}

/* วิดีโอหลัก */
.video-main iframe {
  width: 100%;
  height: 420px;
  border-radius: 8px;
}

.video-main h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* วิดีโอย่อย */
.video-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-item {
  display: flex;
  gap: 10px;
  background: #111;
  padding: 8px;
  border-radius: 6px;
}

.video-item img {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
}

.video-item p {
  font-size: 14px;
  line-height: 1.3;
}

/* ===== Footer ===== */
.footer {
  background: #121212;
  color: #ccc;
  margin-top: 40px;
  font-size: 14px;
  border-top: 3px solid #E30613;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-about p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #aaa;
}

.footer-links h3, .footer-contact h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: #E30613; }
.footer-contact p { margin: 5px 0; font-size: 13px; }
.footer-social-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #222;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
}

.footer-social-icons a:hover { background: #E30613; }
.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  padding: 15px 20px;
  color: #888;
  font-size: 13px;
}

/* FORCE hide mobile menu on large desktop too (put at VERY END of main.css) */
@media (min-width: 1025px) {
  /* ครอบคลุม selectors ทุกแบบที่อาจถูกใช้ */
  #mobile-menu-toggle,
  button[id*="mobile"],
  button[class*="hamburg"],
  .hamburger,
  .menu-toggle,
  .mobile-hamburger,
  .mobile-menu-button,
  [data-mobile-menu],
  [aria-controls*="mobile"],
  #mobile-dropdown,
  .mobile-dropdown,
  .mobile-dropdown-inner,
  .mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* ป้องกัน pseudo elements */
  .hamburger::before, .hamburger::after, #mobile-menu-toggle::before, #mobile-menu-toggle::after {
    display: none !important;
    content: none !important;
  }
}




/* ------------------- */
/* 📲 Tablet (<= 1024px) */
/* ------------------- */
@media (max-width: 1024px) {
  header nav a {
    font-size: 14px !important;
    line-height: 1.4;
  }

  /* Container */
  .container {
    padding: 0 15px;
    margin-top: 20px;
  }

  .slide img {
    height: 70vh;   /* ใช้ 70% ของหน้าจอสำหรับแท็บเล็ต */
  }

  /* Header Menu */
  nav {
    gap: 15px;
  }

  /* Hero Section */
  .hero {
    grid-template-columns: 2fr 1fr; /* จาก 3:1 เหลือ 2:1 */
  }

  .main-article img {
    height: 320px;
  }

  .main-article h1 {
    font-size: 16px;
    padding: 15px;
  }

  .side-news h2{
    font-size: 14px;
  }

  /* ปุ่มเลื่อน */
  .controls {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  }

  .controls button {
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

  /* Update Grid */
  .update-section {
    width: 95vw;             /* กว้างเท่าหน้าจอจริง */
    max-width: 100vw;         /* ป้องกันการถูกจำกัดจาก container */
    margin: 0 auto;           /* จัดกลางในแนวนอน */
    padding: 0;               /* เอา padding ด้านข้างออก */
  }

  .update-section .update-grid {
    width: 95vw;             /* ให้กว้างเท่าหน้าจอ */
    max-width: 100vw;         /* ป้องกันการจำกัดจาก container */
    margin-left: 50%;         /* ขยับให้อยู่กลาง */
    transform: translateX(-50%); /* ดึงกลับให้พอดีจอ */
    padding: 15px;          /* เผื่อช่องขอบซ้ายขวาเล็กน้อย */
    box-sizing: border-box;   /* ป้องกัน padding ดันออกนอกขอบ */
  }

  .update-grid article {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease;
  }

  .update-grid {
    grid-template-columns: repeat(4, 1fr); /* จาก 4 ช่อง เหลือ 3 ช่อง */
    gap: 15px;
    background: #B0000F;
  }


  .update-section h2 {
  font-size: 20px;
  font-weight: 700;
  border-left: 4px solid #E30613;
  padding-left: 10px;
  margin: auto;
  }

.update-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.pl-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin:10px  auto;
}

.bottom-layout h2{
  border-left: 4px solid #E30613;
  padding: auto;
  margin: 0px;
}

.premier-league-news img{
  width: 100%;
  height: 120px;
}

/* ตารางคะแนน (div-based) */
.table-section {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}

.table-header, .table-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.table-header {
  background: #E30613;
  font-weight: bold;
}

.table-row:nth-child(even) {
  background: #1a1a1a;
}

.table-row span {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.table-row span:nth-child(2) {
  flex: 2;
  text-align: left;
}

/* โปรแกรม */
.schedule-section .match {
  display: flex;
  align-items: center;
  padding: 5px;
  border-bottom: 1px dashed #333;
}

.schedule-section img {
  width: 20px;
  height: 20px;
  margin: auto 5px;
}

.schedule-section .match span{
  font-size: 12px;
  width: 165px;
  text-align: center;
}

/* Video Zone */
.video-zone h2 {
  font-size: 20px;
  font-weight: 700;
  border-left: 4px solid #E30613;
  padding-left: 10px;
  margin: auto;
}

  .video-grid {
    grid-template-columns: 1fr; /* เหลือคอลัมน์เดียว */
    width: 100vw;               /* เต็มความกว้างจอ */
    max-width: 100%;
    min-height: 100vh;          /* เต็มความสูงจอ */
    margin: 0 auto;             /* จัดกลาง */
    padding: 15px;
    box-sizing: border-box;
  }

  .video-main iframe {
    width: 100%;
    height: 70vh;               /* ให้สูงประมาณ 70% ของหน้าจอแท็บเล็ต */
    border-radius: 8px;
  }

  .video-main h3 {
    font-size: 16px;
    margin-top: 10px;
  }

  .video-side {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .video-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .video-item p {
    font-size: 14px;
    line-height: 1.4;
  }

/* ตารางคะแนน (div-based) */
.table-section {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}

.table-section h2{
  font-size: 15px;
}

.table-header, .table-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.table-header {
  background: #E30613;
  font-weight: bold;
  font-size: 12px;
}

.table-row:nth-child(even) {
  background: #1a1a1a;
}

.table-row span {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.table-row span:nth-child(2) {
  flex: 2;
  text-align: left;
}

/* โปรแกรม */
.schedule-section .match {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px dashed #333;
}

.schedule-section img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.schedule-section h2{
  font-size: 15px;
}




/* ------------------- */
/* 📱 Mobile (<= 768px) */
/* ------------------- */
@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 10px;
  }

  body.menu-open .top-social-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }


  .top-bar { 
    position: relative; 
    z-index: 3001;
  }

  .top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    gap: 12px;
    background: #000 !important; /* ถ้าต้องการ header ดำตลอด ให้ใช้; ถ้าไม่เอา ให้ลบไลน์นี้ */
  }

  .top-bar .logo {
    margin: 0 !important;
    text-align: left !important;
    color: #e31b23 !important; /* สีโลโก้แดง (ปรับตามของจริง) */
    font-weight: 800;
   }

   .top-bar + .mobile-dropdown { 
    position: relative; 
  }

  /* ซ่อนเมนู desktop */
  .top-bar .main-nav { display: none; }
  .hamburger { display: inline-flex !important; } /* แสดงปุ่มแฮมเบอร์เกอร์ */

  /* ปุ่ม hamburger (มองเห็นบนพื้นดำ) */
  .hamburger {
    position: relative;
    right: 6px; /* ดึงเข้าด้านซ้ายเล็กน้อย */
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;   /* เพิ่มขนาดให้แตะง่าย */
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* hamburger lines */
  .hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    margin: 3px 0;
    background-color: #fff !important;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, background-color .2s ease;
  }

  .hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* แปลงเป็น X เมื่อเปิด */
  .hamburger.open .hamburger-line:nth-child(1){ transform: translateY(5px) rotate(45deg); }
  .hamburger.open .hamburger-line:nth-child(2){ opacity: 0; }
  .hamburger.open .hamburger-line:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

  .mobile-dropdown { 
    display: block;                 /* ต้องแสดงเพื่อให้ max-height ทำงาน */
    transform-origin: top;
    transform: translateY(-8px);
    transition: max-height 320ms ease, opacity 260ms ease, transform 260ms ease;
  }

  /* dropdown (by default hidden, zero height) */
  .mobile-dropdown {
    position: absolute;                 /* 🔥 เปลี่ยนจาก absolute → fixed เพื่อให้ลอยเหนือทุก section */
    top: 100px;                       /* 🔥 ระยะจากบนสุด (เท่าความสูง header) */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75); /* ดำโปร่ง */
    color: #fff;
    overflow: hidden;
    max-height: 0;                   /* ปิดเริ่มต้น */
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.38s cubic-bezier(.2,.9,.3,1),
              opacity 0.28s ease,
              transform 0.28s ease;
    z-index: 9999;                   /* 🔥 สูงกว่า hero และ header */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    }

  .mobile-dropdown.open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 8px;
    padding-bottom: 12px;
  }

  /* inner nav styling */
  .mobile-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
   }

   /* each item */
  .mobile-dropdown-inner a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
  }

  .mobile-dropdown-inner a:last-child { border-bottom: none; }
  .mobile-dropdown-inner a:hover { background: rgba(255,255,255,0.03); }

  .mobile-dropdown-inner a:hover,
  .mobile-dropdown-inner a:focus {
    background: rgba(255,255,255,0.04);
  }

  .mobile-dropdown-inner a:hover {
  background: rgba(255,255,255,0.05);
  }

  @supports (backdrop-filter: blur(0)) {
  /* ถ้า browser รองรับ backdrop-filter จะได้ effect ที่ดี */
}

  /* Header */
  header {
  position: sticky;
  top: 0;
  z-index: 4000; /* 🔥 เพิ่มเพื่อให้ซ้อนกันถูกลำดับ */
  }

  nav {
    display: table-row; /* เมนูหลักซ่อน */
  }

  nav a {
    font-size: 14px; /* ลดลงเล็กน้อยให้พอดีจอ */
  }

  .tools {
    margin-top: 5px;
  }

  /* Hero Section */
  .main-news-grid{
    grid-template-columns: 1fr; /* เรียงลง */
  }
  .main-article img {
    max-width: 100%;
    height: 220px;
  }
  .main-article h1 {
    font-size: 18px;
  }
  .side-news {
    margin-top: 15px;
  }
  .side-article img {
    width: 80px;
    height: 60px;
  }

  /* ปุ่มเลื่อน */
  .controls {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  }

  .controls button {
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    }

  /* Update Grid */
  .update-section {
    width: 100vw;          /* ให้กว้างเท่าหน้าจอมือถือจริง */
    max-width: 100vw;      /* ป้องกัน container limit */
    padding: 0;            /* เอาระยะห่างออก */
  }

  .update-section img {
    width: 100%;
    height: auto;
    border-radius: 0;      /* ให้ภาพเต็มขอบจอพอดี */
  }
  .update-grid {
    grid-template-columns: 1fr; /* เหลือ 2 ช่อง */
    gap: 15px;
  }
  .update-grid h3 {
    font-size: 13px;
  }

  /* Latest News Grid */
  .news-grid {
    grid-template-columns: 1fr; /* เหลือ 1 ช่อง */
  }
  .news-info h2 {
    font-size: 14px;
  }

  /* Layout ข่าว + Aside */
  .pl-articles-grid {
    grid-template-columns: 1fr; /* ข่าวกับ aside เรียงลง */
  }

  .bottom-layout{
    grid-template-columns: 1fr; /* ข่าวกับ aside เรียงลง */
  }

  .bottom-layout .pl-articles-grid img {
    max-width: 100%;
    height: 220px;
  }

  .table-section h2{
    font-size: 20px;
  }

  .schedule-section h2{
    font-size: 20px;
  }


  /* Sidebar */
  .sidebar .widget {
    padding: 12px;
  }
  .sidebar h3 {
    font-size: 16px;
  }
  .sidebar li {
    font-size: 13px;
  }
  
  /* โครงสร้างหลักของวิดีโอ */
  .video-zone {
  margin-top: 2rem;
  }

  .video-zone h2 {
    margin-bottom: 1rem;
  }

  .video-grid {
    display: flex;
    gap: 1.5rem;
  }

  /* ส่วนวิดีโอหลัก */
  .video-main {
   flex: 2;
  }

  .video-main iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
  }

  /* ส่วนวิดีโอย่อย */
  .video-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .video-item {
  display: flex;
  flex-direction: column; /* ทำให้ iframe อยู่บน ตัวหนังสืออยู่ล่าง */
  gap: 0.5rem;
  }

  .video-item iframe {
    width: 100%;
    height: 400px;
   border-radius: 10px;
  }

  .video-grid {
    flex-direction: column;
  }

  .video-main iframe {
    height: 250px;
  }

  .video-side {
    flex-direction: column;
  }

  .video-item iframe {
    height: 250px;
  }


/* ให้ footer ทั้งหมดเรียงลง */
  .footer-container {
    display: flex;
    flex-direction: column;  /* เรียงแนวตั้ง */
    align-items: center;     /* จัดเนื้อหากลางแนวนอน */
    text-align: center;
    gap: 20px;
  }

  /* ให้โซเชียลอยู่กลางพอดี */
  .footer-social-icons {
    display: flex;
    justify-content: center;   /* กลางแนวนอน */
    align-items: center;       /* กลางแนวตั้ง */
    gap: 15px;
    margin-top: 10px;
  }

  .footer-social-icons a {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 50%;
    background: #222;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
  }

  .footer-social-icons a:hover {
    background: #E30613;
    transform: scale(1.1);
  }
}

/* ✅ ปิดเมนูมือถือทั้งหมดบน Tablet & Desktop */
@media (min-width: 769px) {
  /* ปุ่มแฮมเบอร์เกอร์ */
  #mobile-menu-toggle,
  .hamburger,
  .menu-toggle,
  .mobile-hamburger,
  .mobile-menu-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* เมนูดรอปดาวน์มือถือ */
  #mobile-dropdown,
  .mobile-dropdown,
  .mobile-dropdown-inner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
}















