
/* ===========================
   Reset & Base
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans Thai", sans-serif;
  background-color: #fffaf6; /* พื้นหลังโทนอบอุ่น */
  background: linear-gradient(to bottom, #ffe4e6, #ffedd5, #fef9c3);
  color: #333;
  line-height: 1.6;
}

/* เริ่ม set ค่า */
h1, h2, h3 {
  color: #7c2d12; /* น้ำตาลอบอุ่น */
}

.intro {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  text-align: center;
}

.percent {
  font-size: 2rem;
  font-weight: bold;
  color: #7e22ce;
}

.highlight {
  color: #7e22ce;
  font-weight: bold;
}

/* ===========================
   Base Styling - Responsive Breakers
   =========================== */
.desktop-only {
    /* แสดงผลปกติ (Default: Desktop/Tablet) */
    display: block; 
}


/* ===========================
   Mobile Design (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
    /* ... (โค้ดสำหรับ Mobile เดิมของคุณ) ... */

    /* 👈 FIX: ซ่อน <br class="desktop-only"> บนมือถือ */
    .desktop-only {
        display: none; 
    }

    /* ... (โค้ดสำหรับ Mobile ส่วนอื่น ๆ) ... */
}

/* ===========================
   Navbar
   =========================== */
/* ===========================
   Navbar base
   =========================== */
.navbar {
  background: rgba(39, 58, 128, 0.95);
  border-bottom: 3px solid #fecf09;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, menu right */
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 40%;  /* จำกัดฝั่งซ้ายไม่ให้กินเกินครึ่ง */
}

.brand .club-name h1 {
  font-size: 1.1rem;  /* ลดขนาดตัวอักษร */
  white-space: nowrap; /* กันขึ้นบรรทัดใหม่ */
}

/* Desktop menu */
.nav-links ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ===========================
   Modern Hamburger Icon (FIXED STYLE)
   =========================== */
.hamburger {
  font-size: 0;
  width: 30px; 
  height: 24px; 
  display: none; /* ซ่อนบน Desktop */
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1010;
}

/* 👈 FIX หลัก: ต้องมั่นใจว่าแท่งไอคอนมีขนาดและสี */
.hamburger .bar {
  display: block !important; /* บังคับให้เป็น block เพื่อรับค่า width/height */
  width: 100% !important;
  height: 3px !important; /* 👈 (CRITICAL FIX) บังคับความสูง */
  background-color: #fecf09 !important; /* 👈 (CRITICAL FIX) บังคับสีเหลือง */
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* ===========================
   Close Menu Button (FIXED SIZE & POSITION)
   =========================== */
.close-menu {
  /* FIX: ต้องซ่อนปุ่มนี้ไว้เสมอเมื่ออยู่บน Desktop/Large screens */
  display: none !important; /* 👈 (CRITICAL FIX) บังคับให้ซ่อน */
  
  /* ... โค้ดอื่นๆ ที่คุณแก้ไขเรื่องขนาดและตำแหน่ง ... */
  width: 30px !important;
  height: 30px !important; 
  position: absolute !important; 
  top: 1.5rem !important; 
  right: 1.5rem !important; 
  z-index: 1010;
}

/* ===========================
   X Icon Bars (FIXED SIZE & ROTATION)
   =========================== */
.close-menu .bar-x {
  display: block !important;
  position: absolute !important;
  
  /* FIX: กำหนดขนาดแท่งขีดให้เล็ก */
  width: 100% !important; 
  height: 3px !important; /* ความหนา 3px */
  background-color: #fecf09 !important;
  border-radius: 5px;
  
  /* จัดให้อยู่กึ่งกลางปุ่ม */
  top: 50% !important; 
  left: 0 !important;
  
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

/* FIX: หมุนและปรับตำแหน่งให้เป็น X ที่สมมาตร */
.close-menu .bar-1 {
  /* เลื่อนขึ้นครึ่งความสูงของตัวเอง (เพื่อให้อยู่กึ่งกลาง) แล้วหมุน 45 องศา */
  transform: translateY(-50%) rotate(45deg) !important;
}

.close-menu .bar-2 {
  /* เลื่อนขึ้นครึ่งความสูงของตัวเอง (เพื่อให้อยู่กึ่งกลาง) แล้วหมุน -45 องศา */
  transform: translateY(-50%) rotate(-45deg) !important;
}


/* Media Query: ให้แสดงเฉพาะบน Mobile */
/* @media (max-width: 768px) { ... } */
@media (max-width: 768px) {
  /* ... โค้ดเดิมส่วน responsive อื่นๆ ... */

  /* FIX: Navbar BG Opaque on Mobile Always */
  .navbar {
    background: rgba(39, 58, 128, 1) !important; /* บังคับให้เป็นสีทึบ 100% */
  }

  /* FIX 1: บังคับให้ Hamburger แสดงบน Mobile (เพื่อ Override กฎ .scrolled ที่อาจซ่อนอยู่) */
  /* ใช้ !important ชั่วคราว หรือ เพิ่ม Specificity ให้ชนะกฎอื่นที่อาจซ่อนมันไว้ */
  .navbar .hamburger {
    display: flex !important; /* 👈 (FIX) ให้แสดงเสมอเมื่อเมนูยังไม่เปิด */
    position: relative; /* ให้แน่ใจว่ามันไม่อยู่ใต้ element อื่น */
    z-index: 1010; /* ให้มันอยู่เหนือทุกสิ่ง */
  }

  .close-menu {
    display: none !important;  /* ซ่อน Close Icon */
    z-index: 1010;
  }

  /* ========================================================= */
  /* 🛑 แก้ปัญหา: พื้นหลังเมนูโปร่งใสและสูงไม่เต็มจอ (NAV LINKS) */
  /* ========================================================= */
  
  .navbar .nav-links { 
    position: fixed;
    top: 0;
    right: -100%; 
    width: 70%;
    
    /* 👈 CRITICAL FIX 1: บังคับความสูงให้เต็มจอเสมอ */
    height: 100vh !important; 
    
    /* 👈 CRITICAL FIX 2: บังคับให้พื้นหลังทึบ (Alpha 1) */
    background: rgba(39, 58, 128, 1) !important; 
    
    /* ยกเลิกเอฟเฟกต์เบลอที่อาจทำให้โปร่งใส */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    
    transition: right 0.3s ease;
    padding-top: 5rem;
    z-index: 1005; 
  }

  /* 🛑 บังคับให้แถบ Header Bar (Navbar) ทึบตลอดเวลาบนมือถือ */
  .navbar, 
  .navbar.scrolled { 
    background: rgba(39, 58, 128, 1) !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important; 
  }


    /* ปุ่มปิดต้องแสดงเมื่อเมนูเปิด (nav-links.active) */
  .nav-links.active .close-menu { 
    /* 👈 CRITICAL FIX: บังคับให้พื้นหลังเป็นโปร่งใส */
    background: transparent !important; 
    
    /* ล้างขอบและเงาที่อาจมีสีขาว */
    border: none !important; 
    box-shadow: none !important;
    outline: none !important;  
  }
  
  /* ========================================================= */
  /* 🛑 CRITICAL FIX: แก้ปัญหาพื้นหลังขาวของปุ่มปิด */
  /* ========================================================= */
  
  /* ใช้ selector ที่แข็งแกร่งที่สุด (.navbar .close-menu) */
  .navbar .close-menu { 
    /* 👈 บังคับให้พื้นหลังเป็นโปร่งใส 100% */
    background: transparent !important; 
    
    /* บังคับลบขอบทั้งหมด ซึ่งมักจะเป็นสาเหตุที่ทำให้ปุ่มมีรูปทรงสีขาว */
    border: none !important; 
    
    /* บังคับลบเงาหรือขอบเวลา Focus ที่อาจมีสีขาว */
    box-shadow: none !important;
    outline: none !important;  
    
    /* หากใช้สีตัวอักษร/ไอคอน ต้องกำหนดสีที่ตัดกับพื้นหลังเมนู */
    color: #fecf09 !important; /* กำหนดสีไอคอนเป็นสีทอง */

    /* โค้ดสำหรับตำแหน่งของปุ่ม (ถ้ามี) */
    position: absolute;
    top: 1.5rem; 
    right: 1.5rem;
  }
  
  /* หากคุณใช้ span.bar-x เพื่อสร้างไอคอน X ต้องยืนยันสีอีกครั้ง */
  .navbar .close-menu .bar-x {
      background-color: #fecf09 !important; /* บังคับให้เส้นสีทอง */
  }

  
  /* FIX 3: Logic สลับ Icon (ตรวจสอบว่าโค้ดส่วนนี้ยังอยู่และถูกต้องตาม HTML ล่าสุด) */
  /* (ถ้าโครงสร้าง HTML ล่าสุดคือ Hamburger -> Close -> Nav-Links) */  
  /* เมื่อ Nav Active ให้ซ่อน Hamburger (น้องชายคนถัดไป) */
  .nav-links.active ~ .hamburger {
    display: none !important; /* 👈 (FIX) ต้องซ่อนเมื่อเมนูเปิด */
  }

  /* เมื่อ Nav Active ให้แสดง Close Icon (น้องชายคนรอง) */
  .nav-links.active ~ .close-menu {
    display: flex !important; /* 👈 (FIX) ต้องแสดงเมื่อเมนูเปิด */
  }
  
  /* FIX: เพิ่ม .navbar เข้าไปเพื่อเพิ่ม Specificity ให้ชนะกฎ Desktop */
  .navbar .nav-links ul { 
    flex-direction: column; /* 👈 FIX: ทำให้เมนูเรียงตามแนวตั้ง */
    gap: 1.5rem;
    text-align: center;
  }
  
  .hamburger {
    display: block; /* show on mobile */
  }

  .nav-links.active {
    right: 0; /* slide in */
  }
}

.navbar.scrolled {
  background: rgba(39, 58, 128, 0.5); /* โปร่งลงเมื่อเลื่อน */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ดัน brand ไปซ้าย เมนูไปขวา */  
  gap: 1rem;
  width: 100%;
  max-width: 1200px; /* ถ้าอยากล็อกความกว้างสูงสุด */
  margin: 0 auto;
}

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: #fecf09; /* hover เป็นสีทอง */
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem; /* ให้โลโก้กับชื่อห่างกันเล็กน้อย */
}

.logo {
  height: 55px;
  width: auto;
}

.club-name h1 {
  font-size: 1.25rem;
  color: #fecf09;
  font-weight: 600;
}

.club-name p {
  font-size: 0.9rem;
  color: #ffffff;
}

/* ===========================
   Hero Section
   =========================== */
/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* เต็มจอ */
  overflow: hidden;
  padding: 0;       /* ลบ padding ที่สืบทอดจาก section */
  max-width: none;  /* ยกเลิก max-width */
  margin: 0;        /* ยกเลิก margin auto */
}

/* Hero Slider (background images) */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  z-index: 10;           /* สูงกว่า overlay */
  cursor: pointer;
}
.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }

/* Overlay เพื่อให้ text อ่านชัด */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* สี overlay */
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  color: #fecf09;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #fff;
}


/* ===========================
   Section Base
   =========================== */

section {
  scroll-margin-top: 80px; /* ความสูง navbar */
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section.alt {
  background: #fffaf0;
}

/* Container สำหรับ section อื่น */
.section-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-box.alt {
  background: #fffaf0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: #273a80;
  margin-bottom: 2rem;
}

/* ===========================
   About Section
   =========================== */
.about p {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
  margin-bottom: 2rem;
}

/* ข้อความ Intro ใน About Section */
#about .intro {
  font-size: 1.125rem;       /* ~18px บน desktop */
  line-height: 1.8;          /* เพิ่มระยะห่างระหว่างบรรทัด */
  color: #333;               /* สีเทาเข้ม อ่านง่าย */
  max-width: 800px;          /* จำกัดความกว้างสุดไม่ให้บรรทัดยาวเกิน */
  margin: 0 auto 2rem auto;  /* จัดกลาง และเว้นขอบล่าง */
  padding: 0 1rem;           /* เว้นขอบด้านข้าง สำหรับมือถือ */
  text-align: left;          /* ให้อ่านง่าย ชิดซ้าย */
}

.story-img {
  border-radius: 1rem;
  margin: 1rem 0;
  max-width: 100%;
}

/* ===========================
   Story Section
   =========================== */
#story {
  display: flex;
  flex-direction: column;
  align-items: center;   /* จัดให้อยู่ตรงกลางแนวนอน */
  justify-content: center; /* ถ้าสูงพอ จะกึ่งกลางแนวตั้ง */
  text-align: center;
  padding: 4rem 2rem;
}

#story img {
  max-width: 800px;  /* จำกัดความกว้างของรูป */
  width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Story Section Paragraph */
#story p {
  font-size: 1.125rem;       /* ~18px */
  line-height: 1.8;          /* อ่านง่าย โล่ง ๆ */
  color: #444;               /* เทาเข้ม อ่านสบายกว่า #000 */
  max-width: 800px;          /* จำกัดความกว้างไม่ให้ยาวเกิน */
  margin: 1.5rem auto;       /* จัดกลางและเว้นระยะ */
  padding: 1.2rem 1.5rem;    /* เพิ่มพื้นที่รอบข้อความ */
  background: #fdf9f4;       /* สีครีมอ่อน ให้อารมณ์อบอุ่น */
  border-left: 6px solid #d4a373;  /* เส้นนำสายตา โทนอบอุ่น */
  border-radius: 8px;
  text-align: left;          /* ชิดซ้ายเพื่อให้อ่านง่าย */
}




/* ===========================
   Actions / Goals / Voices / Gallery
   =========================== */

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }


.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 2px solid #fecf09;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  justify-content: center;
}

.card img {
  max-width: 100%;
  border-radius: 8px;
}

/* Custom Bullet List */
.custom-list {
  list-style: disc;         /* bullet มาตรฐาน */
  padding-left: 1.5rem;     /* เว้นด้านซ้าย */
  margin: 1rem 0;
  color: #444;              /* สีตัวอักษร */
  font-size: 1rem;
  line-height: 1.6;
}

.custom-list li {
  margin-bottom: 0.5rem;    /* เว้นระยะห่างแต่ละบรรทัด */
}



/* ===========================
   Goals Section
   =========================== */
/* กล่องตัวเลข */
/* Reset alignment ของ Goals */
#goals {
  text-align: center;
}

/* Goals Section - Cards */
#goals .stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

#goals .stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex: 1 1 220px;     /* ขนาดเริ่มต้นเท่ากัน */
  max-width: 220px;    /* จำกัดสูงสุดให้เท่ากัน */
  text-align: center;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem auto;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-slide {
  flex: 0 0 33.333%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 992px) {
  .gallery-slide { flex: 0 0 50%; }
}
@media (max-width: 600px) {
  .gallery-slide { flex: 0 0 100%; }
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background 0.3s;
  z-index: 2;
}
.gallery-btn:hover {
  background: rgba(0,0,0,0.7);
}
.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }



/* ===========================
   Footer
   =========================== */
.footer {
  background: #7c2d12;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}


/* ===========================
   Animation Base
   =========================== */

/* --- ANIMATION (append) --- */
/* fade-in: ใช้เป็นค่าพื้นฐาน (เลื่อนขึ้นเล็กน้อย + โปร่งพอ) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* slide-in: ซ้าย / ขวา */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* เมื่อพร้อมให้แสดง (ถูกเพิ่มโดย JS) */
.fade-in.show,
.slide-in-left.show,
.slide-in-right.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* สังเกต: .show จะรีเซ็ต transform ทั้ง X/Y เพื่อความเรียบ */
.fade-in.show { transform: translateY(0); }
.slide-in-left.show,
.slide-in-right.show { transform: translateX(0); }

/* Stagger helper (ถ้าต้องการ) - apply inline style via JS หรือ class เช่น .delay-1 */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* Gallery hover effect (เล็กน้อย) */
.gallery img, .card img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery img:hover, .card img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Count-up number style (ถ้ายังไม่มี) */
[data-count] {
  will-change: contents;
  display: inline-block;
}

/* ==== Count-up Number Styling ==== */
/* Container ของการ์ด */
.stats {
  display: flex;
  flex-wrap: wrap;        /* ให้เรียงลงมาในมือถือ */
  gap: 20px;              /* ระยะห่างการ์ด */
  margin-top: 2rem;
  justify-content: center;
}

/* ตัวการ์ด */
.stat-card {
  background: #ffffff;               /* พื้นหลังขาว */
  border-radius: 12px;               /* มุมโค้ง */
  padding: 20px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* เงาอ่อน */
  text-align: center;
  flex: 1 1 200px;                    /* ยืดหยุ่น */
  max-width: 250px;
}

/* ตัวเลขใหญ่ */
.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fecf09;                     /* เหลืองทอง */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
  display: block;
  margin-bottom: 10px;
}

/* คำอธิบายใต้ตัวเลข */
.stat-card p {
  font-size: 1rem;
  color: #273a80;                     /* น้ำเงินเข้ม */
  margin: 0;
}
/* ==== Count-up Number Styling ==== */


/* ===== Schedule Section ===== */
/* schedule agenda */
/* Event Title */
.event-title {
  font-size: 1rem;
  color: #5a4633;
  margin: 0 auto 2rem;
  max-width: 900px;
  line-height: 1.6;
  text-align: left; /* ชิดซ้าย */
}

/* Agenda Layout */
.agenda {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.agenda-item {
  display: flex;
  gap: 20px;
  padding: 15px 20px;
  background: #fffdf9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left; /* ชิดซ้าย */
}

.agenda-item .time {
  min-width: 120px;
  font-weight: 700;
  color: #8b5e3c; /* น้ำตาลเข้ม */
}

.agenda-item .content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #3b2c20;
}

.agenda-item .content ul {
  margin: 0;
  padding-left: 20px;
  color: #4a3b2a;
  font-size: 0.95rem;
  line-height: 1.5;
  list-style-type: disc;
}

.dash-list {
  list-style: none;        /* เอา bullet เดิมออก */
  padding-left: 1.2rem;    /* indent */
  margin: 0.5rem 0;
}

.dash-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  position: relative;
}

.dash-list li::before {
  content: "–";            /* ใช้ขีดแทน bullet */
  position: absolute;
  left: -1.2rem;           /* ระยะห่างจากข้อความ */
  color: #333;             /* สีของขีด */
  font-weight: bold;
}

/* Schedule Section */
#schedule .agenda {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

#schedule .agenda-item {
  display: grid;
  grid-template-columns: 120px 1fr 100px; /* เวลา | เนื้อหา | รูป */
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

#schedule .agenda-time {
  font-weight: bold;
  color: #4a3b2a; /* โทนหลัก */
}

#schedule .agenda-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: #333;
}

#schedule .agenda-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

#schedule .agenda-speaker img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10%; /* วงกลม */
  border: 2px solid #fecf09; /* ขอบสีทอง */
}


/* Voices Section */
#voices {
  text-align: center;
}

#voices h2 {
  margin-bottom: 2rem;
}

#voices .card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

#voices .card:hover {
  transform: translateY(-5px);
}

#voices .quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

#voices .author {
  display: block;          /* แยกออกมาเป็นบรรทัดใหม่ */
  text-align: right;    /* จัดข้อความไปทางขวา */
  margin-top: 1rem;
  font-weight: 600;        /* ทำให้ชื่อหนาขึ้น */
  color: #555;             /* สีเทาเข้ม อ่านง่าย */
  font-size: 1rem;
}

#voices .author small {
  display: block;
  font-weight: normal;
  color: #777;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  #voices .cards {
    grid-template-columns: 1fr;
  }
}


/* 📱 Responsive */
@media (max-width: 768px) {
  #schedule .agenda-item {
    grid-template-columns: 1fr;  /* เรียงลง */
    text-align: left;            /* ชิดซ้าย */
    padding: 1rem;
  }

  #schedule .agenda-time {
    margin-bottom: 0.3rem;
  }

  #schedule .agenda-speaker {
    margin-top: 0.8rem;
  }

  #schedule .agenda-speaker img {
    width: 70px;
    height: 70px;
  }
}



/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0.5rem 1rem;
  }
  .logo { height: 40px; }
  .club-name h1 { font-size: 1rem; }
  .club-name p { font-size: 0.8rem; }

  /* Hero */
  .hero-content h1 { font-size: 2rem;}
  .hero-content p { font-size: 1.2rem;}
  .nav-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }

  #about .intro {
    font-size: 1rem;        /* ~16px */
    line-height: 1.6;       
    padding: 0 1.2rem;      /* เว้นขอบด้านข้างมากขึ้น */
    text-align: justify;    /* จัดบรรทัดเต็มพื้นที่ สวยตอนอ่านยาว */
  }  
  
  #story p {
    font-size: 1rem;         /* ~16px */
    line-height: 1.6;
    padding: 1rem;
    margin: 1rem 1.2rem;     /* เว้นขอบให้ไม่ชิดจอ */
  }

  .stat-number {
    font-size: 2.2rem; /* เล็กลงบน tablet */
  }

  .stat-card .stat-number {
    font-size: 2.2rem;
  }  

  /* Grid Sections → 1 คอลัมน์ */
  .grid-3,
  .grid-4,
  .grid-2,
  .stats {
    grid-template-columns: 1fr;
  }

  #goals .stats {
    flex-direction: column;   /* เรียงลง */
  }

  #goals .stat-card {
    flex: none;         /* ไม่ให้ยืด */
    width: 90%;         /* ให้กว้างใกล้เต็มจอ */
    max-width: 400px;   /* จำกัดสูงสุด */
    margin: 0 auto;
  }

  #schedule .agenda-item {
    display: grid;
    grid-template-areas:
      "time"
      "content"
      "speaker";
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1rem;
  }

  #schedule .agenda-time { grid-area: time; }
  #schedule .agenda-content { grid-area: content; }
  #schedule .agenda-speaker { grid-area: speaker; margin-top: 0.8rem; }
  
  /* Schedule */
  .schedule {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

/* Responsive */ /* ===== Schedule Section ===== */
@media (max-width: 600px) {
    /* Grid Sections → 1 คอลัมน์ */
  .grid-3,
  .grid-4,
  .grid-2,
  .stats {
    grid-template-columns: 1fr;
  }

  .agenda-item .time {
    font-size: 1rem;
    margin-bottom: 5px;
  }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}


/* ===========================
   Video Responsive (16:9)
   =========================== */
.video-responsive {
  max-width: 900px; /* กำหนดความกว้างสูงสุดของวิดีโอ */
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
  height: 0;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3); /* เพิ่มเงาให้ดูโดดเด่น */
  border-radius: 8px;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===========================
   Video Promo Section: Floating Effect
   =========================== */
#video-promo {
  /* ใช้พื้นหลังสีขาวหรือสีอ่อน เพื่อให้ตัดกับพื้นหลังไล่สีหลัก (linear-gradient) */
  background: #ffffff;
  color: #333;
  padding: 5rem 2rem; 

  /* 👈 เพิ่มโค้ดนี้: ระยะห่างด้านล่างเพื่อแยกจาก Section ถัดไป */
  margin-bottom: 3rem;   
  
  /* เพิ่มเงาที่ชัดเจนกว่าปกติเพื่อให้ดู "ลอย" */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
  
  /* ดึง section ขึ้นมาเหนือส่วนอื่นเล็กน้อย */
  position: relative; 
  z-index: 5;
  
  /* ปรับให้ขอบมนเล็กน้อย (Optional) */
  border-radius: 12px;
}

#video-promo h2,
#video-promo .intro {
  /* ใช้สีน้ำตาลเข้มเดิมของหัวข้อ */
  color: #7c2d12; 
}

/* วิดีโอเองก็มีเงาและขอบที่ดูสะอาดตา */
#video-promo .video-responsive {
  max-width: 850px; 
  margin: 0 auto;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1); 
  border: 1px solid #e0e0e0; /* ขอบบางๆ */
  border-radius: 6px;
  overflow: hidden;
}


/* =========================================================
   LIONS CLUB INTRO (Concept 7: Minimalist, Typing Title)
   - Typing effect on H2, small leader image, 50/50 clean layout.
   ========================================================= */

#lions {
    background-color: #273a80; /* Lions Blue */
    color: #ffffff; 
    padding: 6rem 0 8rem 0; 
}

/* --- TYPING ANIMATION HEADER --- */
.animated-header-wrapper {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

/* --- TYPING ANIMATION HEADER --- */
/* ... (โค้ด .animated-header-wrapper ใช้ของเดิม) ... */

.animated-title-text {
    /* กำหนดฟอนต์ให้เป็นตัวหนา 700 เพื่อความเข้มแข็ง */
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700; 
    font-size: 4rem; 
    color: #ffffff; 
    display: inline-block;
    white-space: nowrap; 
    overflow: hidden;
    border-right: 0.15em solid #FECF09; 

    /* ✅ FIX 1: แก้ปัญหาคำไม่ครบ (Desktop) */
    /* LIONS CLUB มี 10 ตัวอักษร เราใช้ 11ch/steps(11) เพื่อให้มี Safety Margin */
    width: 11ch; 
    animation: 
        typing 3.5s steps(11, end) forwards, 
        blink-caret .75s step-end infinite;
}


/* Keyframes for Typing Effect */
@keyframes typing {
  from { width: 0 }
  to { width: 11ch } /* ✅ FIX: ปรับ width ให้ตรงกับ max-width/steps */
}

/* Keyframes for Cursor Blink (ไม่ต้องแก้ไข) */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #fecf09; } 
}

.animated-subtitle {
    /* 👈 FIX 3: ลดช่องว่างระหว่างบรรทัดลงเหลือ 0.8rem */
    font-size: 1.5rem; 
    color: #fecf09; 
    margin-top: -2.5rem; /* ลดระยะห่างด้านบนลงอีก */
    line-height: 1; /* **นี่คือส่วนที่ทำให้บรรทัดแคบลง** */
    display: block;
}

/* (ส่วน CSS อื่น ๆ ด้านล่างนี้สามารถใช้โค้ดเดิมได้เลยครับ) */

/* --- CONTENT GRID (50/50) --- */
.intro-grid-clean {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 split */
    gap: 3rem;
    max-width: 1000px;
    margin: 3rem auto 0 auto;
    padding: 0 2rem;
    align-items: flex-start; 
}

/* --- LEFT COLUMN: LEADER INFO --- */
.intro-leader-panel {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2); 
}

.leader-intro-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fecf09; 
    margin-bottom: 2rem;
    line-height: 1.4;
}

.leader-visual-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.small-leader-img {
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
}

.leader-info-block {
    text-align: left;
}

.leader-name-clean {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.leader-role-clean {
    font-size: 0.9rem;
    font-style: italic;
    color: #fecf09;
    margin: 0;
}

.leader-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #cccccc; 
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.intro-cta {
    background-color: #fecf09; 
    color: #273a80 !important; 
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.intro-cta:hover {
    background-color: #fff;
}


/* --- RIGHT COLUMN: HISTORY TEXT --- */
.intro-history-text {
    padding: 1rem;
    text-align: justify;
}

.history-highlight {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.intro-history-text p {
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.motto-clean {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fecf09;
    text-align: right;
    margin-top: 2rem !important;
}


/* ===========================
   Mobile Design (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
    #lions {
        padding: 4rem 0;
    }
    
    .animated-title-text {
        font-size: 2.5rem;
       /*  max-width: 11ch; /* ✅ FIX: ปรับขนาดใหม่บนมือถือ */
    }
    
    .animated-title-text.show-typing {
        width: 11ch; 
        animation: 
            typing 3.5s steps(11, end) forwards, 
            blink-caret .75s step-end infinite; 
    }

    @keyframes typing-mobile {
      from { width: 0 }
      to { width: 11ch } /* ✅ FIX: ปรับ width ให้พอดีกับ max-width มือถือ */
    }


    /* 🛑 บังคับให้เรียงซ้อนกันบน Mobile */
    .intro-grid-clean {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-leader-panel {
        order: 1; 
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
        padding-bottom: 2rem;
        text-align: left; 
    }

    .intro-history-text {
        order: 2; 
        text-align: left;
    }

    .leader-visual-small {
        justify-content: flex-start; 
        gap: 1rem;
    }
    
    .intro-cta {
        width: 100%;
        margin-top: 1rem;
    }
    
    .leader-quote {
        text-align: left;
    }
}