/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #181b24 60%, #30cfd0 100%);
  color: #f5f6fa;
  font-family: 'Montserrat', 'Orbitron', Arial, sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul { list-style: none; }

/* NAVBAR */
.navbar {
  background: rgba(24,27,36,0.95);
  box-shadow: 0 4px 32px 0 rgba(48,207,208,0.08);
  position: sticky;
  top: 0; z-index: 10;
}
.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}
.navbar-logo {
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #30cfd0;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-menu {
  display: flex;
  gap: 32px;
  font-size: 1rem;
}
.navbar-menu li a {
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.navbar-menu li a:hover {
  background: #30cfd0;
  color: #181b24;
}
.btn {
  padding: 10px 26px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.25s, box-shadow 0.3s, background 0.3s;
  margin-left: 16px;
}
.btn-gradient {
  background: linear-gradient(90deg, #30cfd0 0%, #330867 100%);
  color: #fff;
  box-shadow: 0 0 16px #30cfd088;
}
.btn-gradient:hover {
  filter: brightness(1.15) drop-shadow(0 0 12px #30cfd0cc);
}
.btn-glass {
  background: rgba(255,255,255,0.08);
  color: #30cfd0;
  border: 1px solid #30cfd0;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 8px #30cfd033;
}
.btn-lg {
  font-size: 1.2rem;
  padding: 12px 36px;
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 80vh;
  position: relative;
  padding: 60px 0 40px 0;
  background: none;
}
.hero-content {
  flex: 1 1 500px;
  padding-left: 10vw;
  z-index: 2;
}
.hero-content h1 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.8rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 2px;
  text-shadow: 0 2px 32px #30cfd0aa;
}
.hero-content p {
  font-size: 1.35rem;
  color: #e6faff;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.5;
}
.hero-btns {
  display: flex;
  gap: 24px;
}
.hero-graphics {
  flex: 1 1 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 8vw;
}
.dashboard-img {
  width: 400px;
  max-width: 90vw;
  border-radius: 32px;
  box-shadow: 0 8px 44px 8px #30cfd066;
  background: #222428;
}
.hero-bg-glow {
  position: absolute;
  left: 40vw;
  top: 15vh;
  width: 550px;
  height: 320px;
  background: radial-gradient(circle, #30cfd055 0%, #33086711 100%);
  filter: blur(48px);
  z-index: 0;
}

/* FEATURES */
.features {
  padding: 70px 0 20px 0;
  background: none;
}
.features .container {
  max-width: 1120px;
  margin: auto;
  text-align: center;
}
.features h2 {
  font-family: 'Orbitron', Arial, sans-serif;
  color: #30cfd0;
  font-size: 2.2rem;
  margin-bottom: 48px;
  text-shadow: 0 0 20px #30cfd022;
}
.features-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.feature-card {
  background: rgba(32,34,48,0.83);
  border: 1px solid #30cfd022;
  box-shadow: 0 4px 24px 0 #30cfd022;
  border-radius: 24px;
  padding: 38px 28px;
  min-width: 270px;
  max-width: 320px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 8px 48px 4px #30cfd088;
}
.feature-card i {
  font-size: 2.5rem;
  color: #30cfd0;
  margin-bottom: 22px;
}
.feature-card h3 {
  color: #fff;
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 12px;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.feature-card p {
  color: #d2f7fa;
  font-size: 1rem;
  line-height: 1.45;
}

/* DASHBOARD PREVIEW */
.dashboard-preview {
  padding: 72px 0 40px 0;
  background: none;
}
.dashboard-preview .container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}
.dashboard-preview h2 {
  color: #30cfd0;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 44px;
}
.dashboard-cards {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.dashboard-card {
  background: rgba(38,39,54,0.8);
  border: 1px solid #30cfd022;
  border-radius: 22px;
  min-width: 200px;
  max-width: 260px;
  padding: 36px 24px;
  margin: 12px 0;
  box-shadow: 0 4px 30px #30cfd033;
  transition: box-shadow 0.22s, transform 0.18s;
}
.dashboard-card:hover {
  box-shadow: 0 8px 36px 4px #30cfd088;
  transform: scale(1.03);
}
.dashboard-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-value {
  font-size: 2.5rem;
  font-family: 'Orbitron', Arial, sans-serif;
  color: #30cfd0;
  margin-bottom: 8px;
  font-weight: bold;
}
.metric-label {
  color: #d2f7fa;
  font-size: 1.1rem;
}

/* TESTIMONIALS */
.testimonials {
  padding: 80px 0 36px 0;
  background: none;
}
.testimonials .container {
  max-width: 1040px;
  margin: auto;
  text-align: center;
}
.testimonials h2 {
  color: #30cfd0;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 50px;
}
.testimonials-grid {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}
.testimonial-card {
  background: rgba(32,34,48,0.75);
  border-radius: 22px;
  border: 1px solid #30cfd022;
  box-shadow: 0 2px 20px #30cfd033;
  min-width: 260px;
  max-width: 320px;
  padding: 38px 24px;
  margin: 10px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 8px #30cfd077;
  transform: translateY(-5px) scale(1.03);
}
.testimonial-quote {
  color: #f2f2f2;
  font-size: 1.07rem;
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #30cfd0;
  object-fit: cover;
}

/* FOOTER */
footer {
  background: rgba(24,27,36,0.98);
  color: #f5f6fa;
  padding-top: 34px;
  box-shadow: 0 -2px 26px 0 #30cfd011;
  font-size: 1rem;
  letter-spacing: 1px;
}
.footer-container {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.footer-logo {
  font-family: 'Orbitron', Arial, sans-serif;
  color: #30cfd0;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links a {
  color: #d2f7fa;
  margin: 0 14px;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #30cfd0;
}
.footer-social a {
  color: #30cfd0;
  margin: 0 8px;
  font-size: 1.35rem;
  transition: color 0.2s, filter 0.2s;
}
.footer-social a:hover {
  color: #fff;
  filter: drop-shadow(0 0 8px #30cfd0);
}
.footer-bottom {
  margin: 0 auto;
  max-width: 1120px;
  text-align: center;
  padding: 20px 0 12px 0;
  color: #7bc9d7;
  font-size: 0.93rem;
  border-top: 1px solid #30cfd022;
  opacity: 0.8;
}

/* CARD BASE */
.card {
  background: rgba(32,34,48,0.85);
  border-radius: 20px;
  box-shadow: 0 4px 32px #30cfd022;
  padding: 18px;
}

/* CONTAINER */
.container {
  width: 92vw;
  max-width: 1120px;
  margin: auto;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    padding-top: 44px;
    min-height: unset;
  }
  .hero-content {
    padding-left: 0;
    margin-bottom: 44px;
    text-align: center;
  }
  .hero-graphics {
    padding-right: 0;
    justify-content: center;
  }
  .features-grid, .dashboard-cards, .testimonials-grid {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .navbar-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px 8px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .dashboard-img {
    width: 92vw;
  }
  .feature-card, .testimonial-card, .dashboard-card {
    max-width: 92vw;
    min-width: unset;
    padding: 24px 10px;
  }
}
.info-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 16px 0 6px 0;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(100deg, #232942 75%, #30cfd0 100%);
  color: #f3f7ff;
  border: none;
  border-radius: 22px;
  font-size: 1.08rem;
  font-family: 'Prompt', 'Orbitron', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 18px 0 #30cfd033;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s, filter 0.18s;
  text-decoration: none;
  outline: none;
  margin-bottom: 2px;
}

.info-btn i {
  font-size: 1.14rem;
  margin-right: 6px;
  color: #30cfd0;
  filter: drop-shadow(0 0 2px #30cfd0);
}

.info-btn.star {
  background: linear-gradient(90deg, #30cfd0 0%, #330867 100%);
  color: #fffbea;
  box-shadow: 0 0 16px #30cfd088;
}
.info-btn.star i {
  color: #ffd700;
  filter: drop-shadow(0 0 4px #ffd70066);
}
.info-btn:hover, .info-btn:focus {
  background: linear-gradient(90deg, #30cfd0 0%, #181b24 100%);
  filter: brightness(1.13) drop-shadow(0 0 7px #30cfd0);
  color: #ffffff;
  text-decoration: none;
}
@media (max-width: 700px) {
  .info-buttons { gap: 8px 4px; }
  .info-btn { width: 100%; justify-content: flex-start; }
}
.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.04rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}
/* ปุ่ม Gradient เดิม */
.btn-gradient {
  background: linear-gradient(90deg, #30cfd0 0%, #330867 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 9px 24px;
  font-weight: bold;
  font-size: 1.07rem;
  box-shadow: 0 4px 18px #30cfd099;
  transition: all 0.19s;
}
.btn-gradient:hover {
  filter: brightness(1.2);
  box-shadow: 0 6px 30px #30cfd0cc, 0 1.5px 12px #33086777;
  transform: translateY(-2px) scale(1.05);
}

.btn-login {
  background: linear-gradient(90deg, #fd1d1d 0%, #b721ff 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 9px 28px;
  font-weight: bold;
  font-size: 1.08rem;
  box-shadow: 0 4px 18px #fd1d1d44;
  margin-left: 8px;
  transition: all 0.18s;
  cursor: pointer;
}
.btn-login:hover {
  filter: brightness(1.2);
  box-shadow: 0 7px 36px #fd1d1dcc, 0 2px 16px #b721ff55;
  transform: translateY(-2px) scale(1.07) rotate(-1.5deg);
  letter-spacing: 1.5px;
}
.custom-navbar {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 44px 0 32px 32px;
}

.brand-glow {
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 4.4rem;
  font-weight: 800;
  color: #30cfd0;
  letter-spacing: 3px;
  text-shadow:
      0 0 16px #30cfd0cc,
      0 0 32px #30cfd099,
      0 0 60px #30cfd066,
      0 2px 0 #23242f;
}

.logo-circle {
  background: radial-gradient(circle at 60% 40%, #30cfd0 85%, #0be3fa 100%);
  border-radius: 50%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
      0 0 22px #30cfd0cc,
      0 0 44px #23242f44;
  height: 120px;
  width: 120px;
}

.logo-circle img {
  height: 84px;
  width: 84px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #23242f) drop-shadow(0 0 12px #fff2);
}

@media (max-width: 700px) {
  .brand-glow {
    font-size: 2.1rem;
  }
  .logo-circle {
    height: 62px;
    width: 62px;
    padding: 6px;
  }
  .logo-circle img {
    height: 40px;
    width: 40px;
  }
  .custom-navbar {
    gap: 14px;
    margin-left: 5vw;
  }
}
.exam-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  margin: 20px auto;
  max-width: 600px;
}

.exam-section h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.exam-section p {
  color: #f0f0f0;
  font-size: 16px;
  margin-bottom: 20px;
}

.exam-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #fff;
  color: #667eea;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.exam-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background-color: #f8f9fa;
}



/* SUBPAGE HEADER (ใช้ร่วมกับทุกหน้าภายในให้โทนเดียวกับหน้าแรก) */
.subpage-header {
  padding: 40px 0 18px;
}
.subpage-header .container {
  text-align: left;
}
.subpage-title {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.1rem;
  color: #30cfd0;
  margin-bottom: 6px;
  text-shadow: 0 0 14px #30cfd033;
}
.subpage-subtitle {
  font-size: 0.98rem;
  color: #cbd5f5;
  max-width: 640px;
}

/* รองรับจอเล็ก */
@media (max-width: 600px) {
  .subpage-header {
    padding: 26px 0 10px;
  }
  .subpage-title {
    font-size: 1.6rem;
  }
  .subpage-subtitle {
    font-size: 0.9rem;
  }
}


/* =========================================================
   Festival Bright Modern Theme
   โทนสีสว่าง สดใส แบบเทศกาล แต่ยังคุมความอ่านง่าย
   (เพิ่มช่วงท้ายไฟล์เพื่อ override ค่าก่อนหน้าแบบนุ่ม ๆ)
   ========================================================= */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Thai", sans-serif;
  background-color: #fdfaf5;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #ea580c;
}

a:hover {
  color: #c2410c;
}

/* Layout หลัก */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at top left, rgba(255, 192, 203, 0.24), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 230, 217, 0.22), transparent 50%);
  background-attachment: fixed;
}

.page-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

/* Navbar สว่าง โปร่ง */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand-title {
  font-size: 18px;
  font-weight: 800;
  background-image: linear-gradient(120deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-brand-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: #374151;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-links a:hover {
  background: #fef3c7;
  border-color: #fed7aa;
  color: #b45309;
  transform: translateY(-1px);
}

.nav-toggle {
  border: none;
  background: transparent;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
}

/* Hero หน้าแรกแบบสดใส */
.hero {
  padding: 32px 0 18px;
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-image: linear-gradient(120deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: #4b5563;
  max-width: 640px;
}

/* การ์ดฟีเจอร์ - โทนขาว + แถบสีสด */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.15);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background-image: linear-gradient(120deg, #f97316, #ec4899, #22c55e, #0ea5e9);
  opacity: 0.9;
}

.feature-card-inner {
  margin-top: 6px;
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.feature-desc {
  font-size: 13px;
  color: #6b7280;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  border-color: #fed7aa;
}

/* Subpage header - ใช้ทุกหน้ารอง */
.subpage-header {
  margin-top: 18px;
  margin-bottom: 20px;
  padding: 18px 14px 16px;
  border-radius: 20px;
  background-image: linear-gradient(135deg, #ffedd5, #fef3c7);
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
}

.subpage-header-inner {
  max-width: 720px;
}

.subpage-title {
  font-size: 22px;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 4px;
}

.subpage-subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* Changelog styling */
.changelog {
  margin-top: 8px;
  margin-bottom: 24px;
}

.changelog-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1f2933;
  margin: 0 0 4px;
}

.changelog-intro {
  font-size: 13px;
  color: #6b7280;
  max-width: 640px;
  margin-bottom: 12px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.changelog-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.changelog-version {
  font-weight: 700;
  font-size: 14px;
  color: #ea580c;
}

.changelog-date {
  font-size: 12px;
  color: #6b7280;
}

.changelog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #374151;
}

.tag-ui {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.tag-feature {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0e7490;
}

.tag-theme {
  background: #fdf2f8;
  border-color: #f9a8d4;
  color: #be185d;
}

.changelog-details {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 12px 16px 18px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* Responsive ปรับการ์ดและเมนูบนมือถือ */
@media (max-width: 768px) {
  .page-container {
    padding: 16px 12px 26px;
  }

  .nav-links {
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    padding: 8px 16px 12px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .subpage-header {
    padding: 14px 12px;
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .subpage-title {
    font-size: 18px;
  }

  .subpage-subtitle {
    font-size: 13px;
  }
}


/* ================= Festival Bright Overrides v2 ================= */

/* พื้นหลังเว็บสว่าง อ่านง่าย */
html, body {
  background: #fdfaf5;
  color: #111827;
}

/* Navbar: พื้นขาวใส ตัวหนังสือเข้ม */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid #e5e7eb;
}

.navbar-menu li a {
  color: #111827;
}

.navbar-menu li a:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 999px;
}

/* Hero หน้าแรก: ไล่เฉดส้ม-ฟ้า สดใส */
.hero {
  background: radial-gradient(circle at top left, #fff7ed 0%, #e0f2fe 40%, #fdfaf5 100%);
  color: #111827;
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
  color: #111827;
  text-shadow: none;
}

.hero-content p {
  color: #4b5563;
}

/* ปุ่มหลักให้สีฉูดแต่ยังอ่านง่าย */
.btn-gradient {
  background: linear-gradient(120deg, #f97316 0%, #ec4899 50%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.7);
}

.btn-gradient:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 26px rgba(236, 72, 153, 0.9);
}

/* การ์ดพื้นขาว มีแถบสีด้านบน ใช้ได้ทั้ง news/tools/ฯลฯ */
.card,
.feature-card,
.news-fb-col,
.news-fb-inline {
  background: #ffffff !important;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.28);
  color: #111827;
}

/* แถบสีด้านบนสไตล์งานวัด */
.feature-card,
.card.tool-card,
.news-fb-inline,
.news-fb-col {
  border-top: 4px solid #fb923c;
}

/* ไอคอนและหัวข้อในการ์ดให้ใช้สีสด */
.feature-card i,
.card i {
  color: #ec4899;
}

.feature-card h3,
.card h3,
.news-fb-inline h3,
.news-fb-col h3 {
  color: #111827;
}

.feature-card p,
.card p,
.news-fb-inline p,
.news-fb-col p {
  color: #4b5563;
}

/* Subpage header ให้กลมกลืนกับธีมใหม่ */
.subpage-header {
  background-image: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.28);
}

.subpage-title {
  color: #9a3412;
}

.subpage-subtitle {
  color: #6b7280;
}

/* จูน iframe news ให้เข้ากับพื้นหลังสว่าง */
.news-fb-col iframe {
  background: #f9fafb !important;
}

/* Footer ให้สว่างและอ่านง่าย */
.footer {
  background: #ffffff;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
}

.footer-bottom {
  color: #9ca3af;
}

/* Responsive: ให้พื้นสว่างต่อเนื่องบนจอเล็ก */
@media (max-width: 960px) {
  body {
    background: #fdfaf5;
  }
}

/* ===== Mobile overflow fix for navbar & global width ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .navbar-logo {
    width: 100%;
    justify-content: space-between;
  }

  .navbar-menu {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
  }

  .navbar-menu li a {
    padding: 4px 8px;
  }

  .navbar-container > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
  }

  .navbar-container > div:last-child .btn {
    flex: 0 0 auto;
  }
}
