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

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

body {
  font-family: "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%);
}

/* ===========================
   HEADER / NAVBAR
   =========================== */

.hero_area {
  background-image: url(../images/hero-bg.jpg);
  background-size: cover;
  background-position: center;
}

.sub_page .hero_area,
.hero_area.sub_pages {
  height: auto;
}

.sub_page .who_section.layout_padding {
  padding-top: 0;
}

.header_section {
  background-color: #343434;
}

.header_section .container-fluid {
  padding: 0 25px;
}

.header_section .nav_container {
  margin: 0 auto;
}

.custom_nav-container {
  z-index: 9999;
  padding: 15px 0;
}

.custom_nav-container .navbar-toggler {
  outline: none;
}

.custom_nav-container .navbar-toggler .navbar-toggler-icon {
  background-image: url(../images/menu.png);
  background-size: 55px;
}

/* Nav links */

.custom_nav-container.navbar-expand-lg .navbar-nav .nav-item .nav-link {
  margin: 10px 30px;
  padding: 0;
  color: #fff;
  text-align: center;
  position: relative;
}

.custom_nav-container.navbar-expand-lg
.navbar-nav .nav-item .nav-link::after {
  content: "";
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

.custom_nav-container.navbar-expand-lg
.navbar-nav .nav-item.active a::after,
.custom_nav-container.navbar-expand-lg
.navbar-nav .nav-item:hover a::after {
  display: block;
}

/* Brand */

.navbar-brand {
  display: flex;
  align-items: center;
  position: relative;
}

.navbar-brand span {
  font-size: 20px;
  color: #fff;
  position: relative;
  z-index: 3;
}

.navbar-brand::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 45px;
  height: 45px;
  background-color: #30ae69;
  z-index: 2;
}

/* Search / user option */

.user_option {
  display: flex;
  align-items: center;
}

.user_option a {
  color: #fff;
  margin: 10px 30px;
}

.custom_nav-container .nav_search-btn {
  background-image: url(../images/search-icon.png);
  background-size: 22px;
  background-repeat: no-repeat;
  background-position-y: 7px;
  width: 35px;
  height: 35px;
  padding: 0;
  border: none;
}

/* ===========================
   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;
}

.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 .how_container {
  display: flex;
  justify-content: center;
  padding: 45px 60px;
  flex-wrap: wrap;
}

.how_section .how_container .box {
  text-align: center;
  margin: 10px;
  min-width: 200px;
  width: 325px;
}

.how_section .how_container .box .img-box {
  display: flex;
  justify-content: center;
  height: 200px;
  background-color: #f6f5f7;
}

.how_section .how_container .box .img-box svg {
  width: 75px;
  height: auto;
}

.how_section .how_container .box .detail-box {
  margin-top: 15px;
}

.how_section .how_container .box .detail-box h5 {
  font-weight: bold;
  position: relative;
}

.how_section .how_container .box .detail-box h5::before {
  content: "";
  display: none;
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 75px;
  height: 2px;
  background-color: #30ae69;
  transform: translateX(-50%);
}

.how_section .how_container .box .detail-box p {
  color: #b8b8b8;
}

/* hover */

.how_section .how_container .box:hover .img-box {
  background-color: #30ae69;
}

.how_section .how_container .box:hover .img-box svg {
  fill: #fff;
}

.how_section .how_container .box:hover .detail-box h5::before {
  display: block;
}

.how_section .how_container .box:hover .detail-box p {
  color: #393a3c;
}

/* button */

.how_section .btn-box {
  display: flex;
  justify-content: center;
}

.how_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;
}

.how_section .btn-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================
   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: #ff8c00;
  border: 1px solid #ff8c00;
  color: #fff;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 25px;
}

.client_section .btn-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================
   LOAN SECTION (BACKGROUND IMAGE)
   =========================== */

.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;
}

.news-more-btn:hover {
  background-color: #003b8e;
  border-color: #003b8e;
}

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

.faq {
  background-image: url(../images/faq.jpg);
  background-size: cover;
}

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

.info_section {
  background-color: #111;
  color: #fff;
  padding: 45px 0 30px;
  font-size: 14px;
}

.info_section a {
  color: #fff;
}

.info_section a:hover {
  text-decoration: underline;
}

/* columns */

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

/* brand */

.footer-brand .footer-logo-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-brand .footer-company-name {
  font-weight: 600;
  font-size: 18px;
  margin-left: 10px;
}

.footer-company-text {
  margin: 0;
  color: #c7c7c7;
  line-height: 1.5;
}

/* titles */

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

/* menu */

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li a {
  display: block;
  padding: 3px 0;
}

/* contact */

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.footer-contact .icon {
  width: 22px;
  margin-right: 8px;
  display: flex;
  justify-content: center;
}

.footer-contact .icon img {
  max-width: 100%;
  height: auto;
}

/* line icon slightly bigger */
.footer-contact .line-icon {
  width: 20px;
}

.footer-contact .text {
  line-height: 1.5;
}

.footer-contact a {
  color: #fff;
}

/* license */

.footer-license-sub {
  font-size: 13px;
  margin-bottom: 4px;
  color: #d0d0d0;
}

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

.footer_section {
  background-color: #000;
  color: #777;
  padding: 10px 0;
  font-size: 13px;
}

.footer_section p {
  margin: 0;
}

.footer-copy-sub {
  font-size: 12px;
}

/* ===========================
   APP DOWNLOAD SECTION – มีตัง by PFK
   =========================== */

.app-download-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #1e60ff 0, #003b99 45%, #001b55 100%);
  color: #ffffff;
}

/* ลายพื้นหลัง */

.app-download-section::before,
.app-download-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
}

.app-download-section::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #4f8fff, transparent 60%);
  top: -120px;
  right: -80px;
}

.app-download-section::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #0f2f7a, transparent 65%);
  bottom: -120px;
  left: -60px;
}

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

.app-download-text {
  max-width: 500px;
}

.app-download-text .app-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.app-download-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.app-download-text h2 .hl {
  color: #ffd257;
}

.app-download-text .app-subtitle {
  font-size: 15px;
  color: #dfe7ff;
  margin-bottom: 22px;
}

/* จุดเด่น */

.app-feature-list {
  margin-bottom: 28px;
}

.app-feature-list .feature-item {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 7px;
}

.app-feature-list .feature-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd257;
  margin-right: 8px;
  margin-top: 7px;
}

/* ปุ่มดาวน์โหลด – ไอคอนใหญ่ชัด */

/* ปรับส่วนดาวน์โหลดให้ใช้แค่ icon/badge */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.store-badge {
  display: inline-block;
}

.store-badge img {
  height: 56px;       /* อยากให้ใหญ่/เล็กกว่านี้ปรับตัวเลขได้เลย */
  width: auto;
  display: block;
}

/* hover ให้เด้งนิดหน่อย */
.store-badge:hover img {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}


/* tagline ใต้ปุ่ม */

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #cfd8ff;
}

.app-meta span::before {
  content: "•";
  margin-right: 4px;
}

/* ฝั่งโลโก้แอป */

.app-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.app-bg-shape {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 40px;
  background: radial-gradient(circle at 20% 0, #73a3ff, transparent 55%),
              radial-gradient(circle at 80% 100%, #002668, transparent 55%);
  opacity: 0.95;
  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(0, 0, 0, 0.55);
}

.app-card-clean .app-main-img {
  display: block;
  width: 260px;
  max-width: 100%;
  border-radius: 28px;
}

/* ===========================
   RESPONSIVE
   =========================== */

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

  .app-download-section {
    text-align: center;
  }

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

  .store-buttons {
    justify-content: center;
  }

  .app-feature-list .feature-item {
    justify-content: center;
  }

  .app-meta {
    justify-content: center;
  }

  .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-brand .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;
  }
}

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

  .store-btn {
    min-width: 100%;
    justify-content: center;
  }

  .app-card-clean .app-main-img {
    width: 220px;
  }
}
