/* =========================================
   GLOBAL
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Kanit", "Roboto", sans-serif;
  color: #000;
  background-color: #fff;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  text-decoration: none;
  color: inherit;
}

.btn,
.btn:focus {
  outline: none !important;
  box-shadow: none;
}

/* Spacing helpers */

.layout_padding {
  padding: 90px 0;
}
.layout_padding-top {
  padding-top: 90px;
}
.layout_padding-bottom {
  padding-bottom: 90px;
}
.layout_padding2 {
  padding: 45px 0;
}
.layout_padding2-top {
  padding-top: 45px;
}
.layout_padding2-bottom {
  padding-bottom: 45px;
}

/* Heading underline */

.heading_container {
  display: flex;
  justify-content: center;
  text-align: center;
}
.heading_container h2 {
  font-weight: bold;
  position: relative;
}
.heading_container h2::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 75px;
  height: 5px;
  background-color: #30ae69;
  transform: translateX(-50%);
}

/* Theme colors */

:root {
  --mt-primary: #1554d9;
  --mt-primary-dark: #0b2f89;
  --mt-accent: #20a6ff;
}

/* =========================================
   HERO AREA
   ========================================= */

.hero_area {
  background-image: url(../images/home-1.png);
  background-size: cover;
  background-position: center;
}

/* =========================================
   NAVBAR (MeeTang style)
   ========================================= */

.header_section {
  background: linear-gradient(90deg, var(--mt-primary-dark), var(--mt-primary));
  position: sticky;
  top: 0;
  z-index: 999;
}
.header_section .container-fluid {
  padding: 0 25px;
}

.custom_nav-container {
  padding: 10px 0;
}

/* Toggler (mobile) */

.custom_nav-container .navbar-toggler {
  border: none;
  outline: none;
  padding: 0.25rem 0.6rem;
}
.custom_nav-container .navbar-toggler .navbar-toggler-icon {
  background-image: none;
  width: 22px;
  height: 2px;
  position: relative;
  background-color: transparent;
}
.custom_nav-container .navbar-toggler .navbar-toggler-icon::before,
.custom_nav-container .navbar-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
}
.custom_nav-container .navbar-toggler .navbar-toggler-icon::before {
  top: -6px;
}
.custom_nav-container .navbar-toggler .navbar-toggler-icon::after {
  top: 6px;
}

/* Brand / Logo */

.navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-brand .mt-logo-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #d8e4ff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.navbar-brand .mt-logo-img {
  width: 80%;
  height: auto;
  object-fit: contain;
}
.navbar-brand-text {
  margin-left: 12px;
  line-height: 1.2;
}
.navbar-brand-text .mt-brand-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.navbar-brand-text .mt-brand-sub {
  font-size: 0.8rem;
  color: #c8d9ff;
}

/* Main menu */

.navbar-nav.mt-navbar-menu .nav-link {
  position: relative;
  margin: 0 0.4rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  color: #e4f0ff;
  font-size: 0.96rem;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.navbar-nav.mt-navbar-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, var(--mt-accent));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.navbar-nav.mt-navbar-menu .nav-link:hover,
.navbar-nav.mt-navbar-menu .nav-link:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}
.navbar-nav.mt-navbar-menu .nav-link:hover::after,
.navbar-nav.mt-navbar-menu .nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}
.navbar-nav.mt-navbar-menu .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Navbar – mobile */

@media (max-width: 991.98px) {
  .header_section {
    position: relative;
  }

  #navbarSupportedContent {
    background: linear-gradient(180deg, var(--mt-primary), var(--mt-primary-dark));
    border-radius: 0 0 18px 18px;
    margin-top: 0.4rem;
    padding: 0.4rem 0 0.6rem;
  }

  .navbar-nav.mt-navbar-menu .nav-link {
    width: 100%;
    margin: 0.15rem 0;
    border-radius: 12px;
    text-align: left;
  }
}

/* =========================================
   SLIDER / HERO TEXT
   ========================================= */

.slider_section {
  height: 90%;
  display: flex;
  align-items: center;
  color: #fff;
}
.slider_section #carouselExampleIndicators {
  width: 100%;
}
.slider_section .row {
  align-items: center;
}
.slider_section .box {
  margin: 125px 0;
}
.slider_section .detail-box h1 {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}
.slider_section .detail-box h2 {
  font-weight: bold;
  font-size: 2.5rem;
}
.slider_section .detail-box p {
  margin-top: 25px;
}
.slider_section .detail-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #171717;
  border: 1px solid #171717;
  color: #fff;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 35px;
}
.slider_section .detail-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}
.slider_section .img-box img {
  width: 100%;
}

/* Carousel dots */

.slider_section #carouselExampleIndicators .carousel-indicators {
  bottom: 45px;
  margin: 0;
  align-items: center;
}
.slider_section #carouselExampleIndicators .carousel-indicators li {
  width: 14px;
  height: 14px;
  background-color: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 1;
}
.slider_section #carouselExampleIndicators .carousel-indicators li.active {
  border-width: 4px;
}

/* =========================================
   HOW SECTION – ขั้นตอนการสมัครสินเชื่อ
   ========================================= */

.how_section {
  padding: 70px 0 40px;
}

.how_section .heading_container {
  margin-bottom: 35px;
}

/* wrapper ของกล่องทั้งหมด */
.how_section .how_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* กล่อง step หนึ่งข้อ */
.how_section .how_container .box {
  flex: 0 0 23%;
  max-width: 23%;
  min-width: 260px;
  background: #f9fafb;
  border-radius: 20px;
  padding: 26px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* พื้นหลังรูปไอคอน */
.how_section .how_container .box .img-box {
  width: 100%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3f4f6;
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  transition: background-color .2s ease, transform .2s ease;
}

/* จำกัดขนาดรูปไอคอนไม่ให้ล้น */
.how_section .how_container .box .img-box img,
.how_section .how_container .box .img-box svg {
  max-width: 70%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* ข้อความแต่ละ step */
.how_section .how_container .box .detail-box {
  text-align: center;
}
.how_section .how_container .box .detail-box h5 {
  font-weight: 700;
  margin-bottom: 8px;
  transition: color .2s ease;
}
.how_section .how_container .box .detail-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* effect ตอน hover – ให้กล่องมีสีฟ้าอ่อน */
.how_section .how_container .box:hover {
  background-color: rgba(21, 84, 217, 0.06); /* ฟ้าอ่อนตามธีม */
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transform: translateY(-3px);
}
.how_section .how_container .box:hover .img-box {
  background-color: rgba(21, 84, 217, 0.12);
  transform: scale(1.02);
}
.how_section .how_container .box:hover .detail-box h5 {
  color: var(--mt-primary); /* น้ำเงินหลัก */
}

/* Responsive */
@media (max-width: 991.98px) {
  .how_section .how_container .box {
    flex: 0 0 45%;
    max-width: 45%;
  }
}
@media (max-width: 575.98px) {
  .how_section {
    padding: 60px 0 30px;
  }
  .how_section .how_container .box {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* =========================================
   ABOUT SECTION
   ========================================= */

.about_section {
  text-align: center;
}
.about_section .box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about_section .box .img-box {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}
.about_section .box .img-box img {
  max-width: 100%;
  filter: drop-shadow(0 36px 13px rgba(0, 0, 0, 0.3));
}
.about_section .btn-box {
  display: flex;
  justify-content: center;
}
.about_section .btn-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #171717;
  border: 1px solid #171717;
  color: #fff;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 35px;
}
.about_section .btn-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================
   OLD APP SECTION (ถ้าใช้ที่อื่น)
   ========================================= */

section.app_section {
  color: #fff;
  background: #072e85;
}
section.app_section .row {
  align-items: center;
}
section.app_section .detail-box h2 {
  font-weight: bold;
  margin-bottom: 20px;
}
section.app_section .detail-box .download_box {
  margin-top: 55px;
  display: flex;
  align-items: center;
}
section.app_section .detail-box .download_box h5 {
  margin-right: 25px;
}
section.app_section .detail-box .download_box .btn-box {
  display: flex;
}
section.app_section .detail-box .download_box .btn-box a {
  display: flex;
  margin: 0 5px;
}
section.app_section .detail-box .download_box .btn-box a img {
  max-width: 100%;
}
section.app_section .img-box {
  display: flex;
  justify-content: center;
  transform: scale(1.07) translateY(-14px);
}
section.app_section .img-box img {
  width: 85%;
}

/* =========================================
   AUTO SECTION
   ========================================= */

.auto_section {
  text-align: center;
}
.auto_section .box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auto_section .box .img-box {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}
.auto_section .box .img-box img {
  max-width: 100%;
}
.auto_section .btn-box {
  display: flex;
  justify-content: center;
}
.auto_section .btn-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #171717;
  border: 1px solid #171717;
  color: #fff;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 35px;
}
.auto_section .btn-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================
   CLIENT SECTION
   ========================================= */

.client_section .box {
  display: flex;
  align-items: center;
  width: 65%;
  margin: 45px auto;
}
.client_section .box .client_id {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 40px 5px 15px;
  text-align: center;
  position: relative;
  margin-right: 25px;
}
.client_section .box .client_id .img-box {
  width: 175px;
}
.client_section .box .client_id .img-box img {
  width: 100%;
}
.client_section .box .client_id .name {
  margin-top: 15px;
}
.client_section .box .client_id .name h5 {
  text-transform: uppercase;
  font-size: 18px;
}
.client_section .box .client_id .name h6 {
  color: #6d6c6c;
}

/* Card background shape */

.client_section .box .client_id::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  z-index: -1;
  clip-path: polygon(
    0 14%,
    89% 14%,
    89% 48%,
    100% 53%,
    89% 58%,
    89% 100%,
    0 100%
  );
}
.client_section .box .client_id::after {
  content: "";
  position: absolute;
  top: 17%;
  left: 3%;
  width: 85%;
  height: 85%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -2;
  filter: blur(25px);
}

/* Button */

.client_section .btn-box {
  display: flex;
  justify-content: center;
}
.client_section .btn-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #1554d9;
  border: 1px solid #1554d9;
  color: #fff;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.2s;
  margin-top: 25px;
}
.client_section .btn-box a:hover {
  background-color: #0b2f89;
  border-color: #0b2f89;
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================
   LOAN SECTION
   ========================================= */

.loan-section {
  position: relative;
  padding: 60px 0;
  color: #fff;
  background: url("../images/loan-bg.jpg") no-repeat center center fixed;
  background-size: cover;
}
.loan-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 25, 80, 0.6);
  z-index: 0;
}
.loan-section > .container {
  position: relative;
  z-index: 1;
}
.loan-block {
  border-radius: 16px;
  padding: 30px 25px;
  margin-bottom: 40px;
}
.loan-conditions {
  background: rgba(255, 255, 255, 0.05);
}
.loan-table {
  background: #fff;
  color: #222;
}
.loan-title {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 10px;
}
.installment-table thead th {
  background-color: #0054b3;
  color: #fff;
}
.installment-table,
.installment-table th,
.installment-table td {
  border-color: #ccc !important;
}

/* =========================================
   NEWS SECTION
   ========================================= */

.news-section {
  background-color: #f5f8ff;
  padding: 60px 0;
}
.news-section .section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #003b8e;
  margin-bottom: 10px;
}
.news-section .section-title p {
  color: #555;
  max-width: 620px;
  margin: 0 auto 30px;
}

/* Card */

.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image */

.news-image-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  height: 260px;
}
.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-image-wrapper img {
  transform: scale(1.06);
}

/* Tag */

.news-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 84, 179, 0.92);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Body */

.news-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.news-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.news-title a {
  color: #003b8e;
}
.news-title a:hover {
  color: #0054b3;
}

/* Read more */

.news-readmore {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #0054b3;
}
.news-readmore::after {
  content: " ›";
}
.news-readmore:hover {
  text-decoration: underline;
}

/* More button */

.news-more-btn {
  margin-top: 10px;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  background-color: #0054b3;
  border-color: #0054b3;
  color: #fff;
}
.news-more-btn:hover {
  background-color: #003b8e;
  border-color: #003b8e;
}

/* =========================================
   FAQ BACKGROUND
   ========================================= */

.faq {
  padding: 80px 0;
  background: linear-gradient(120deg, #0b2f89 0%, #1554d9 45%, #1e88ff 100%);
  color: #ffffff;
}

/* =========================================
   APP DOWNLOAD SECTION – MeeTang
   ========================================= */

.app-download-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #e6f0ff 0%, #d6e2ff 45%, #eef5ff 100%);
}

/* Wave separator */

.app-download-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -60px;
  height: 60px;
  background: #e6f0ff;
  clip-path: polygon(
    0 100%,
    25% 70%,
    50% 100%,
    75% 70%,
    100% 100%,
    100% 0,
    0 0
  );
}

/* Blur circle */

.app-download-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 131, 248, 0.35) 0%, transparent 65%);
  opacity: 0.7;
  pointer-events: none;
}

.app-download-section .container {
  position: relative;
  z-index: 1;
}

/* Left card */

.app-download-text {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 28px 30px 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  color: #102347;
}
.app-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(12, 74, 181, 0.12);
  color: #0f296e;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.app-download-text h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 10px 0 4px;
  color: #12265a;
}
.app-download-text h2 .hl {
  color: #ffcf47;
}
.app-subtitle {
  font-size: 15px;
  color: #233563;
}

/* Feature bullets */

.app-feature-list {
  margin: 18px 0 22px;
}
.app-feature-list .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1b2954;
}
.app-feature-list .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcf47, #ff8b2b);
  margin-top: 6px;
}

/* Store buttons */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
.store-badge {
  flex: 0 0 190px;
  max-width: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-badge img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  display: block;
}
.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.45);
}

/* text under store buttons */

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
  font-size: 12px;
  color: #4a5c8a;
}
.app-meta span::before {
  content: "•";
  margin-right: 4px;
}

/* Right logo card */

.app-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.app-bg-shape {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 42px;
  background: radial-gradient(circle at 20% 0, #73a3ff, transparent 55%),
              radial-gradient(circle at 80% 100%, #002668, transparent 55%);
  opacity: 0.96;
  filter: blur(1px);
}
.app-card-clean {
  position: relative;
  background: linear-gradient(145deg, #064fc9, #002a77);
  border-radius: 36px;
  padding: 22px;
  box-shadow: 0 26px 40px rgba(15, 23, 42, 0.65);
  animation: mt-float 6s ease-in-out infinite;
}
.app-card-clean .app-main-img {
  display: block;
  width: 260px;
  max-width: 100%;
  border-radius: 28px;
}

/* Floating animation */

@keyframes mt-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* =========================================
   FOOTER MAIN
   ========================================= */

.info_section {
  background: radial-gradient(circle at top left, #1e293b 0%, #020617 55%, #000 100%);
  color: #f9fafb;
  padding: 48px 0 32px;
  font-size: 14px;
}
.info_section a {
  color: #e5e7eb;
}
.info_section a:hover {
  color: #38bdf8;
}

/* Columns */

.info_section .footer-col {
  margin-bottom: 20px;
}

/* Brand */

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}
.footer-company-name {
  font-weight: 700;
  font-size: 18px;
}
.footer-company-sub {
  font-size: 12px;
  color: #9ca3af;
}
.footer-company-text {
  margin: 6px 0 0;
  color: #d1d5db;
  line-height: 1.6;
}

/* Titles */

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Menu */

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li a {
  display: block;
  padding: 3px 0;
  color: #d1d5db;
}
.footer-menu li a:hover {
  padding-left: 4px;
  color: #38bdf8;
}

/* Contact */

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.footer-contact .icon {
  width: 22px;
  margin-right: 8px;
  display: flex;
  justify-content: center;
  margin-top: 3px;
}
.footer-contact .icon img {
  max-width: 100%;
  height: auto;
}
.footer-contact .line-icon {
  width: 20px;
}
.footer-contact .text {
  line-height: 1.5;
}

/* License */

.footer-license-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}
.footer-license-link {
  word-break: break-all;
  font-size: 13px;
}

/* =========================================
   FOOTER COPYRIGHT BAR
   ========================================= */

.footer_section {
  background: #020617;
  color: #9ca3af;
  padding: 10px 0;
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}
.footer_section p {
  margin: 0;
}
.footer-copy-sub {
  font-size: 12px;
}

/* =========================================
   RESPONSIVE – GLOBAL
   ========================================= */

@media (max-width: 991.98px) {
  .slider_section .box {
    margin: 60px 0;
  }

  .app-download-text {
    margin: 0 auto 24px;
  }

  .store-buttons,
  .app-feature-list .feature-item,
  .app-meta {
    justify-content: flex-start;
  }

  .app-visual-wrapper {
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .layout_padding {
    padding: 60px 0;
  }

  .slider_section .detail-box h1 {
    font-size: 2.6rem;
  }
  .slider_section .detail-box h2 {
    font-size: 1.8rem;
  }

  .news-image-wrapper {
    height: 220px;
  }
  .news-image-wrapper img {
    height: 100%;
  }

  /* Footer mobile */

  .info_section {
    text-align: center;
    padding-top: 35px;
  }
  .footer-logo-row {
    justify-content: center;
  }
  .footer-contact li {
    justify-content: center;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .footer-license {
    text-align: center;
  }
  .footer_section {
    text-align: center;
  }
  .footer_section .row > div {
    margin-bottom: 5px;
  }

  /* App-download mobile */

  .store-buttons {
    justify-content: center;
  }
  .store-badge {
    flex: 0 0 180px;
  }
  .app-download-text {
    padding: 22px 18px 20px;
  }
}

@media (max-width: 575.98px) {
  .app-download-text h2 {
    font-size: 24px;
  }
  .app-card-clean .app-main-img {
    width: 220px;
  }
}

/* ===========================
   FAQ – Card & Accordion Style
   =========================== */

/* SECTION พื้นหลัง + คลื่นบน/ล่าง */
/* พื้นหลัง FAQ แตกต่างจาก section อื่นนิดหน่อย */
.faq-section {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #e7f0ff 0%, #f7f9ff 55%, #e9f1ff 100%);
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

/* Heading */
.faq-heading {
  margin-bottom: 32px;
}

.faq-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(21, 84, 217, 0.12);
  color: #1554d9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-heading h2 {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.faq-heading p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

/* layout การ์ด FAQ */
.faq-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* desktop สองคอลัมน์ */
@media (min-width: 992px) {
  .faq-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* card */
.faq-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease;
}

.faq-card:hover {
  background-color: #edf3ff;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.15);
}

/* ปุ่มหัวข้อคำถาม */
.faq-toggle {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 14px;      /* ให้ปุ่มเป็นสี่เหลี่ยมโค้งมน */
}

/* เมื่อโฟกัสจากการคลิกหรือกด Tab ให้เป็นกรอบสวย ๆ */
.faq-toggle:focus,
.faq-toggle:focus-visible {
  outline: none;            /* ตัด outline ยึกยักของ browser ออก */
  box-shadow: 0 0 0 2px #1554d9;  /* กรอบสีน้ำเงินเรียบ ๆ */
  border-radius: 14px;
}

/* avatar ซ้าย */
.faq-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e4edff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.faq-avatar img {
  width: 30px;
  height: 30px;
}

/* ข้อความคำถาม */
.faq-question {
  text-align: left;
}

.faq-q-no {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #7c8db5;
  margin-bottom: 2px;
}

.faq-question h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

/* icon + / - */
.faq-icon {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #1554d9;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* คำตอบ */
.faq-answer {
  display: none;
  padding-left: 54px;    /* ระยะให้ชิดกับ avatar เดิม */
  padding-top: 8px;
  padding-right: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

/* state เปิด */
.faq-card.is-open .faq-answer {
  display: block;
}

.faq-card.is-open .faq-icon {
  background-color: #1554d9;
  color: #ffffff;
  transform: rotate(45deg);  /* + กลายเป็น x */
}




