/* ฟอนต์หลัก LINE Seed Sans TH */
@font-face {
  font-family: "LINESeedSansTH";
  src: url("../fonts/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "LINESeedSansTH";
  src: url("../fonts/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

/* ฟอนต์หลักของโปรเจค */
body {
  font-family: "LINESeedSansTH", "LINE Seed Sans TH", sans-serif;
}
#hero {
  scroll-margin-top: 80px; 
}
.logo img {
  max-height: 70px;
  height: auto;
}
/* Navbar */
.navbar-container {
  width: 100%;
  background-color: #c5e3bf;
  overflow-x: auto;
  margin-bottom: 64px;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 1rem;
  margin: 0;
  gap: 1.5rem;
}

.navbar-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #065f54;
  text-decoration: none;
  white-space: nowrap;
}

/* styles.css */
.top-header {
  font-family: "LINESeedSansTH", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

/* Footer */
.footer-container {
  width: 100%;
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.footer-img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-image {
  margin: 0;
  padding: 0;
}

.footer {
  background-color: #005247;
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
  margin: 10px 0;
}

.notification-image {
  margin: 40px 0;
}

/* Main content spacing */
.main-content {
  margin-bottom: 64px;
  margin-top: 48px;
}

/* Search Section */
.search-section {
  position: relative;
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.search-box {
  background-color: #4d8ac6;
  color: white;
  border-radius: 40px;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.search-box h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.search-input-container {
  position: relative;
  background-color: white;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-input-container input {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 10px;
  flex: 1;
  border-radius: 10px;
  margin-left: 10px;
  color: #333;
}

.search-input-container input::placeholder {
  color: #ccc;
}

.search-input-container button {
  background-color: #4d8ac6;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-input-container button:hover {
  background-color: #3d77b0;
}

.decor-left,
.decor-right {
  position: absolute;
  top: 40%;
  right: -40%;
  /* left: -10%; */
  transform: translateY(-50%);
  width: 180px;
}

.decor-left {
  left: -5%;
  top: 70%;
}

.decor-right {
  right: 0;
}

.search-input-container button img {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-button {
  justify-content: center;
  width: 100%;
}

/* Suggestion box */
.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: none !important;
  border-radius: 0 0 8px 8px;
  width: 100%;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  margin: 0 !important;
  /* 🔥 ลบ margin ที่ทำให้เกิดช่อง */
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  /* เงานุ่มๆ แทนเส้น */
}

.suggestion-box div {
  padding: 10px;
  cursor: pointer;
}

.suggestion-box div:hover {
  background-color: #f0f0f0;
}

.suggestion-box div {
  color: #333 !important;
  /* ✅ สีข้อความมองเห็นแน่นอน */
  font-size: 1rem;
  font-family: "LINESeedSansTH", sans-serif;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.suggestion-box div:hover {
  background-color: #f0f0f0;
}

input#searchTerm {
  border: none;
  box-shadow: none;
  outline: none;
}

/* Note Section */
.note-section {
  background-color: #d9edf7;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.1rem;
  color: #003c5a;
  margin-top: 40px;
}

.note-section .highlight {
  background-color: #c9e8c8;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: bold;
  color: #1b5e20;
}

/* Table Section */
.step-header {
  background-color: #d4af37;
  color: #fff;
  padding: 12px 24px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0;
}

.step-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #f9f9f9;
}

.step-table th,
.step-table td {
  padding: 16px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.step-table th {
  background-color: #f3d250;
  color: #333;
  font-weight: bold;
}

.step-table td a {
  color: #4d8ac6;
  text-decoration: underline;
}

.step-table tr:nth-child(even) {
  background-color: #fcfcfc;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
  gap: 0.5rem;
}

.pagination li {
  display: inline-block;
}

.pagination li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: #e0f2ef;
  color: #065f54;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.pagination li a:hover {
  background-color: #c5e3bf;
  color: #043d36;
}

.pagination li.active a {
  background-color: #0c685b;
  color: white;
  pointer-events: none;
}

.back-button {
  display: inline-block;
  background-color: #0c685b;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.back-button:hover {
  background-color: #084e45;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

/* ---------------------------------------------02/04------------------- */
.halal-navbar {
  background: url("../assets/images/navbar-bg.png") no-repeat center top;
  background-size: cover;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "LINESeedSansTH", sans-serif;
  padding: 0 0px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  /* ✅ กระจายระยะ */
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  /* ✅ คุมให้กระจายเต็มในระยะเหมาะสม */
}

.nav-links li a {
  text-decoration: none;
  color: #065f54;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0px;
}

.nav-links li a:hover {
  color: #00896a;
}

@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .halal-navbar {
    height: auto;
    padding: 20px 0;
    background-size: contain;
  }
}

.highlight {
  font-weight: 600;
  color: #0c4f74;
  /* ปรับเฉดให้เข้ากับธีม Halal */
}

mark {
  background: none;
  font-weight: 900;
  color: #478bb2;
}

.search-input-wrapper {
  position: relative;
  /* ต้องมี เพื่อให้ suggestion-box อ้างอิงจากกล่อง input */
  flex-grow: 1;
}

.table {
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid #d1d1d1;
  padding: 0.75rem;
  vertical-align: top;
  text-align: left;
}

.custom-navbar {
  background-color: #005247;
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.navbar-list {
  background-color: #e6f5e5;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 16px 32px;
  border-radius: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.navbar-list li a {
  font-family: "LINESeedSansTH", sans-serif;
  font-size: 1.125rem;
  color: #065f54;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-list li a.active {
  font-weight: 700;
}

.navbar-list li a:hover {
  color: #00896a;
}

/* สีตัวอักษรต่างจากปกติเล็กน้อย + ตัวหนา */
/* .nav-links a.active {
  color: #0c685b;
  font-weight: 600;
} */

/* เวอร์ชั่น HL ข้อความเป็นรีรี */
.nav-links a.active {
  background-color: #0c685b;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.3s ease-in-out;
}

/* เวอร์ชั่นมี ลูกกลมๆ บ่งบอกว่าอยู่ตรงไหนตอนนี้ */
/* .nav-links a.active {
  position: relative;
  color: #00896a;
  font-weight: 500;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #00896a;
  border-radius: 50%;
} */

/* 
ขีดเส้นบางด้านข้าง */
/* .nav-links a.active {
  position: relative;
  color: #0c685b;
  font-weight: 600;
  padding-left: 16px;
}

.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background-color: #0c685b;
  border-radius: 2px;
} */

/* แถบสีบาง ๆ อยู่ด้านล่าง */
/* .nav-links a.active {
  position: relative;
  color: #0c685b;
  font-weight: 500;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background-color: #0c685b;
  border-radius: 1px;
} */

@media screen and (max-width: 768px) {
  .navbar-list {
    flex-direction: column;
    align-items: center;
    padding: 24px;
  }
}

/* เพิ่มส่วนใหม่สำหรับ Bootstrap Navbar */
.navbar .nav-link {
  font-family: "LINESeedSansTH", sans-serif;
  font-size: 1.1rem;
  font-weight: normal;
  color: #000;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff;
  background-color: #4d8ac6;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* ... (คงไว้ทั้งหมดเหมือนเดิม) ... */

/* เพิ่มส่วนใหม่สำหรับ Bootstrap Navbar */
.navbar .nav-link {
  font-family: "LINESeedSansTH", sans-serif;
  font-size: 1.1rem;
  font-weight: normal;
  color: #000;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff;
  background-color: #4d8ac6;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* Hamburger overlay on minitopheader.svg */
.mobile-nav-toggler {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background-color: transparent;
  border: none;
}

.mobile-nav-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Mobile nav list style */
.mobile-nav-overlay .nav-link {
  font-family: "LINESeedSansTH", sans-serif;
  font-size: 1.1rem;
  color: #065f54;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-overlay .nav-link:hover {
  color: #00896a;
}

/* Hide desktop navbar on mobile (redundant insurance) */
@media (max-width: 991.98px) {
  .halal-navbar {
    display: none !important;
  }
}

/* ============================== */
/* เพิ่มเฉพาะส่วน Responsive Navbar */
/* ============================== */

/* Hamburger overlay on minitopheader.svg */
.mobile-nav-toggler {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background-color: transparent;
  border: none;
}

.mobile-nav-toggler:focus {
  outline: none;
  box-shadow: none;
}

.mobile-nav-overlay .nav-link {
  font-family: "LINESeedSansTH", sans-serif;
  font-size: 1.1rem;
  color: #065f54;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-overlay .nav-link:hover {
  color: #00896a;
}

/* Responsive control for hiding desktop navbar on mobile */
@media (max-width: 991.98px) {
  .halal-navbar {
    display: none !important;
  }
}

.contact-box {
  background-color: #c5e3bf;
  color: #0c685b;
  font-weight: 300;
  border-radius: 40px;
  font-size: 1.2rem;
}
/* ============================== */
/* Slide Menu (Mobile Navigation) */
/* ============================== */

.hamburger-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  color: #065f54;
  z-index: 1050;
  display: none;
  /* ซ่อนเริ่มต้น */
}

@media (max-width: 991.98px) {
  .hamburger-btn {
    display: block;
    /* แสดงเฉพาะบน mobile/tablet */
  }
}

@media (max-width: 767.98px) {
  .logo img {
    height: 50px;
  }
}
.mobile-slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1040;
}

.mobile-slide-menu.open {
  display: block;
}

.slide-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background-color: #c5e3bf;
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.slide-menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-menu-content li {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.8rem;
}

.slide-menu-content a {
  text-decoration: none;
  color: #065f54;
  font-size: 1.1rem;
  font-family: "LINESeedSansTH", sans-serif;
  font-weight: 500;
}

.slide-menu-content a:hover {
  color: #00896a;
}

/* ปุ่มปิดเมนู (X) */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #065f54;
  z-index: 1060;
}

/* ซ่อน hamburger เมื่อเมนูเปิดอยู่ */
.mobile-slide-menu.open ~ .hamburger-btn {
  display: none !important;
}

@media (max-width: 991.98px) {
  .top-header {
    background-color: #0c685b;
    color: white;
    font-family: "LINESeedSansTH", sans-serif;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
  }

  .logo img {
    max-height: 60px;
    height: auto;
  }
  .logo img:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease-in-out;
}

  .main-content {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .footer-image {
    margin-top: 0;
  }

  .top-header picture,
  .main-content picture,
  .footer-image picture,
  .main-content img,
  .footer-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }
}

/* -------------------------export_steps--------------------- */
/* ซ่อนเวอร์ชั่น mobile search-section-mobile บน Desktop */
@media screen and (min-width: 992px) {
  .search-section-mobile {
    display: none !important;
  }
}

@media screen and (max-width: 991.98px) {
  .search-section {
    padding: 60px 20px;
    position: relative;
    background: url("../assets/images/bg-search.png") no-repeat center center;
    background-size: cover;
  }

  .search-heading {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .search-form {
    max-width: 90%;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 20px;
    padding: 0.5rem 1rem;
  }

  .search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    margin-right: 12px;
  }

  .search-input-wrapper input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: "LINESeedSansTH", sans-serif;
    background: transparent;
  }

  #searchButton {
    align-self: center;
    padding: 10px 24px;
    border-radius: 30px;
    background-color: #4d8ac6;
    color: white;
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "LINESeedSansTH", sans-serif;
  }

  #searchButton img {
    width: 20px;
    height: 20px;
  }
}

/* ------------ex_st2-------------- */
@media screen and (max-width: 991.98px) {
  .search-section-mobile {
    background: url("../assets/images/minibg-search.png") no-repeat center
      center;
    background-size: contain;
    background-position: center top;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-search-wrapper {
    width: 40%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(-12px);
  }

  .mini-search-header {
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-align: center;
    font-family: "LINESeedSansTH", sans-serif;
  }

  .mobile-search-form {
    display: flex;
    flex-direction: row; /* ✅ เปลี่ยนจาก column เป็น row */
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 4px;
  }

  .mobile-search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 2px 4px;
    flex-grow: 1;
  }

  .mobile-search-box img {
    width: 4px;
    height: 4px;
    opacity: 0.6;
    margin-right: 4px;
  }

  .mobile-search-box input {
    border: none;
    outline: none;
    font-size: 0.45rem;
    padding: 0;
    width: 100%;
    background: transparent;
    font-family: "LINESeedSansTH", sans-serif;
  }

  #searchButtonMobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4d8ac6;
    color: #ffffff;
    font-size: 0.35rem;
    font-weight: 500;
    padding: 1px 3px;
    border: none;
    border-radius: 24px;
    font-family: "LINESeedSansTH", sans-serif;
    gap: 0px;
    cursor: pointer;
    white-space: nowrap;
  }

  #searchButtonMobile img {
    width: 7px;
    height: 7px;
  }
}
@media screen and (max-width: 767.98px) {
  #resultsSection .card {
    border-radius: 12px;
    padding: 12px;
  }

  #resultsSection .card-title {
    font-size: 1rem;
  }

  #resultsSection .card-text {
    font-size: 0.85rem;
  }

  #resultsSection .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  #resultsSection .row {
    gap: 1rem !important; /* ปรับระยะห่างระหว่าง card */
  }
}

.custom-card {
  background-color: #ffffff;
  border: 2px solid #cfeee3;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  font-family: 'LINESeedSansTH', 'LINE Seed Sans TH', sans-serif;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0c685b;
}

.card-code {
  font-size: 0.95rem;
  color: #444;
  margin-top: 8px;
}

.card-buttons {
  display: flex;
  justify-content: center; /* ✅ จัดให้อยู่ตรงกลาง */
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.icon-button {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  filter: brightness(0.8) saturate(0.9) ; /* ✅ ลดความสด + ทำให้นุ่ม */
  background-color: #e8f5f1;
}

.icon-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  filter: brightness(1) saturate(1); /* ✅ เพิ่มนิดตอน hover */
}

