/* ==========================================================================
   ICBC (THAI) LEASING - GLOBAL STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --icbc-red: #AF272F;
  --icbc-red-hover: #8f1e24;
  --icbc-red-light: #fdf2f2;
  --icbc-heading: #1f2937;
  --icbc-body: #4b5563;
  --icbc-subtle: #f9fafb;
  --icbc-border: #e5e7eb;
  --charcoal: #201E1D;
  --black: #141312;
  --line: #e2e8f0;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Prompt', sans-serif;
  background-color: #ffffff;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ================= UTILITY CLASSES & THEME ================= */
.bg-icbc-red {
  background-color: #AF272F !important;
}

.hover\:bg-icbc-red-dark:hover {
  background-color: #8f1e24 !important;
}

.text-icbc-red {
  color: #AF272F !important;
}

.border-icbc-red {
  border-color: #AF272F !important;
}

.bg-icbc-subtle {
  background-color: var(--icbc-subtle);
}

.border-icbc-divider {
  border-color: var(--icbc-border);
}

.text-icbc-heading {
  color: var(--icbc-heading);
}

.shadow-ambient {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.shadow-mega {
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

/* Hero Slide Transition (index.php) */
.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 2;
}

/* Product Cards Overlay Gradient (index.php) */
.product-overlay-gradient {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 15%, rgba(143, 30, 36, 0.75) 60%, rgba(110, 20, 25, 0.95) 100%) !important;
}

input[type="range"]::-webkit-slider-thumb {
  background-color: #AF272F;
}

summary::-webkit-details-marker {
  display: none;
}

/* Floating To Top Button */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: #AF272F;
  color: #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.3s ease;
  cursor: pointer;
  border: none;
}

.to-top:hover {
  background: #8f1e24;
  transform: translateY(-3px);
}

/* ================= COMMON HERO BANNERS FOR INNER PAGES ================= */
.hist-hero-banner,
.vm-hero-banner,
.bs-hero-banner,
.loan-hero-banner,
.career-hero-banner,
.rate-hero-banner,
.news-hero-banner,
.pay-hero-banner,
.faq-hero-banner,
.reg-hero-banner {
  position: relative;
  width: 100%;
  height: 280px;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.1) 100%), 
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80') center right/cover no-repeat;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.hist-banner-content,
.vm-banner-content,
.bs-banner-content,
.loan-banner-content,
.career-banner-content,
.rate-banner-content,
.news-banner-content,
.pay-banner-content,
.faq-banner-content,
.reg-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hist-banner-title,
.vm-banner-title,
.bs-banner-title,
.loan-banner-title,
.career-banner-title,
.rate-banner-title,
.news-banner-title,
.pay-banner-title,
.faq-banner-title,
.reg-banner-title {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hist-breadcrumb,
.vm-breadcrumb,
.bs-breadcrumb,
.loan-breadcrumb,
.career-breadcrumb,
.rate-breadcrumb,
.news-breadcrumb,
.pay-breadcrumb,
.faq-breadcrumb,
.reg-breadcrumb {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hist-breadcrumb a:hover,
.vm-breadcrumb a:hover,
.bs-breadcrumb a:hover,
.loan-breadcrumb a:hover,
.career-breadcrumb a:hover,
.rate-breadcrumb a:hover,
.news-breadcrumb a:hover,
.pay-breadcrumb a:hover,
.faq-breadcrumb a:hover,
.reg-breadcrumb a:hover {
  color: #AF272F;
}

.hist-breadcrumb .sep,
.vm-breadcrumb .sep,
.bs-breadcrumb .sep,
.loan-breadcrumb .sep,
.career-breadcrumb .sep,
.rate-breadcrumb .sep,
.news-breadcrumb .sep,
.pay-breadcrumb .sep,
.faq-breadcrumb .sep,
.reg-breadcrumb .sep {
  color: #cbd5e1;
}

.hist-breadcrumb .current,
.vm-breadcrumb .current,
.bs-breadcrumb .current,
.loan-breadcrumb .current,
.career-breadcrumb .current,
.rate-breadcrumb .current,
.news-breadcrumb .current,
.pay-breadcrumb .current,
.faq-breadcrumb .current,
.reg-breadcrumb .current {
  color: #AF272F;
  font-weight: 600;
}

/* ================= 1. COMPANY HISTORY (company-history.php) ================= */
.hist-main-section {
  padding: 60px 0 90px;
  background: #ffffff;
}

.hist-content-wrapper {
  max-width: 1140px;
  margin: 0 auto;
}

.hist-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.hist-content-left {
  display: flex;
  flex-direction: column;
}

.hist-top-brand-label {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hist-top-brand-label span.highlight-red {
  color: #AF272F;
}

.hist-main-headline {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hist-red-accent-bar {
  width: 130px;
  height: 4px;
  background: #AF272F;
  border-radius: 2px;
  margin-bottom: 32px;
}

.hist-info-block {
  margin-bottom: 26px;
}

.hist-info-block:last-child {
  margin-bottom: 0;
}

.hist-block-title-red {
  font-size: 17px;
  font-weight: 700;
  color: #AF272F;
  margin-bottom: 8px;
  line-height: 1.45;
}

.hist-block-desc {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.85;
  text-align: justify;
}

.hist-media-right {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hist-photo-card-wrap {
  position: relative;
  width: 100%;
}

.hist-red-badge-card {
  position: absolute;
  top: -24px;
  left: -24px;
  background: #AF272F;
  color: #ffffff;
  padding: 26px 20px;
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(175, 39, 47, 0.28);
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-big-number {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.badge-sub-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #fecaca;
}

.badge-footer-desc {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  opacity: 0.95;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 8px;
  width: 100%;
}

.hist-image-frame {
  width: 100%;
  aspect-ratio: 1.15;
  background: #e2e8f0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.hist-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hist-photo-card-wrap:hover .hist-image-frame img {
  transform: scale(1.03);
}

.hist-photo-caption {
  font-size: 13px;
  color: #64748b;
  margin-top: 14px;
  text-align: right;
  font-weight: 500;
}

/* ================= 2. VISION, MISSION & VALUES (vision-mission-values.php) ================= */
.vision-section {
  padding: 75px 0 85px;
  background: #ffffff;
  text-align: center;
}

.vision-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

.quote-bars-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.quote-bars {
  display: inline-flex;
  gap: 8px;
}

.quote-bar {
  width: 14px;
  height: 36px;
  background: #AF272F;
  border-radius: 4px;
  transform: skewX(-18deg);
  opacity: 0.85;
}

.quote-bars.bottom {
  margin-top: 24px;
}

.vision-statement {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.45;
  letter-spacing: -0.5px;
  padding: 0 20px;
}

.mission-section {
  padding: 75px 0 70px;
  background: #f9fafb;
  text-align: center;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.mission-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
}

.mission-desc {
  max-width: 860px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  padding: 0 20px;
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 45px;
}

.mission-mini-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mission-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(175, 39, 47, 0.1);
  border-color: rgba(175, 39, 47, 0.3);
}

.mission-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fdf2f2;
  color: #AF272F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mission-card-text {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.mission-illus-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.mission-illus-wrapper svg {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}

.values-section {
  padding: 75px 0 0;
  background: #ffffff;
  text-align: center;
}

.values-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 45px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
}

.value-col {
  padding: 50px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-col:hover {
  transform: translateY(-6px);
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.val-c1 { background-color: #e2ecf4; }
.val-c2 { background-color: #edf2f7; }
.val-c3 { background-color: #fdf2f2; }
.val-c4 { background-color: #e6f4ea; }
.val-c5 { background-color: #fef7e0; }

.val-letter {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.val-title-en {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.val-title-th {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.val-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: #374151;
  max-width: 240px;
  margin: 0 auto;
}

.val-c1 .val-letter { color: #43658d; }
.val-c1 .val-title-en { color: #43658d; }
.val-c1 .val-title-th { color: #52759e; }

.val-c2 .val-letter { color: #486884; }
.val-c2 .val-title-en { color: #486884; }
.val-c2 .val-title-th { color: #5b7e9c; }

.val-c3 .val-letter { color: #AF272F; }
.val-c3 .val-title-en { color: #8f1e24; }
.val-c3 .val-title-th { color: #AF272F; }

.val-c4 .val-letter { color: #2e7d32; }
.val-c4 .val-title-en { color: #1b5e20; }
.val-c4 .val-title-th { color: #2e7d32; }

.val-c5 .val-letter { color: #b78a3c; }
.val-c5 .val-title-en { color: #9c732b; }
.val-c5 .val-title-th { color: #b78a3c; }

/* ================= 3. BUSINESS SCOPE (business-scope.php) ================= */
.scope-showcase-section {
  padding: 60px 0 90px;
  background-color: #f8fafc;
  position: relative;
}

.scope-showcase-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.scope-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.scope-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scope-acc-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.scope-acc-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 8px 24px rgba(175, 39, 47, 0.08);
}

.scope-acc-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background 0.2s ease;
}

.scope-acc-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acc-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fdf2f2;
  color: #AF272F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.scope-acc-card.active .acc-icon-badge {
  background: #AF272F;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(175, 39, 47, 0.28);
}

.acc-title-text {
  font-size: 16.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.scope-acc-card.active .acc-title-text {
  color: #AF272F;
}

.acc-arrow-icon {
  font-size: 14px;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.scope-acc-card.active .acc-arrow-icon {
  transform: rotate(180deg);
  color: #AF272F;
}

.scope-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: #ffffff;
}

.scope-acc-card.active .scope-acc-body {
  max-height: 1200px;
  transition: max-height 0.5s ease-in-out;
}

.scope-acc-inner {
  padding: 0 24px 24px 84px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.8;
  border-top: 1px solid #f8fafc;
}

.scope-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.scope-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 20px;
}

.scope-badge-pill i {
  color: #AF272F;
  font-size: 12px;
}

.scope-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

.scope-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #AF272F;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

.scope-photo-sticky {
  position: sticky;
  top: 110px;
}

.scope-image-frame {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border: 4px solid #ffffff;
  background: #e2e8f0;
  position: relative;
}

.scope-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.25s ease;
}

.scope-image-frame:hover img {
  transform: scale(1.03);
}

.scope-image-overlay-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(20, 19, 18, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 13px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scope-image-overlay-tag span {
  font-size: 13px;
  font-weight: 600;
}

.scope-image-overlay-tag i {
  color: #f87171;
  font-size: 16px;
}

.scope-bottom-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.sbc-left h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sbc-left p {
  font-size: 14px;
  color: #cbd5e1;
}

.sbc-right {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-scope-cta {
  background: #AF272F;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-scope-cta:hover {
  background: #8f1e24;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(175, 39, 47, 0.35);
}

.btn-scope-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-scope-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ================= 4. COMMON LOAN SECTIONS ================= */
.loan-content-wrapper {
  padding: 60px 0 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-headline {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-headline i {
  color: #AF272F;
}

.loan-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.loan-main-heading {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.loan-desc-paragraph {
  font-size: 15px;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 24px;
}

.market-conduct-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(175, 39, 47, 0.05);
  transition: all 0.25s ease;
  width: 100%;
}

.market-conduct-box:hover {
  border-color: #AF272F;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(175, 39, 47, 0.12);
}

.sales-sheet-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sales-sheet-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fee2e2;
  color: #AF272F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sales-sheet-info .label-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 14px;
  display: block;
}

.sales-sheet-info .label-sub {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.btn-sales-sheet-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #AF272F;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-sales-sheet-dl:hover {
  background: #8f1e24;
}

.loan-intro-image-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1.35;
  background: #e2e8f0;
}

.loan-intro-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.benefit-card {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: #AF272F;
  box-shadow: 0 10px 24px rgba(175, 39, 47, 0.12);
}

.benefit-tag-pill {
  display: inline-block;
  background: #fee2e2;
  color: #AF272F;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.benefit-info {
  flex: 1;
}

.benefit-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #AF272F;
  margin-bottom: 8px;
  line-height: 1.35;
}

.benefit-info p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.benefit-illus {
  width: 110px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-illus svg {
  width: 100%;
  height: 100%;
}

.qualifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

.qual-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px 28px;
  border: 1px solid #edf2f7;
}

.qual-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.bullet-list-custom {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list-custom li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.bullet-list-custom li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #AF272F;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

.terms-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px 30px;
  border: 1px solid #edf2f7;
  margin-bottom: 24px;
}

.terms-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.terms-subbox {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
}

.terms-subbox h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-subbox h4 i {
  color: #AF272F;
}

.apply-methods-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 50px;
}

/* สำหรับหน้าจอขนาดกลางขึ้นไป (Tablet และ Desktop) ให้แสดงผลเป็น 3 คอลัมน์ */
@media (min-width: 768px) {
  .apply-methods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 50px;
  }
}

.apply-method-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}

.apply-method-card:hover {
  transform: translateY(-4px);
  border-color: #AF272F;
  box-shadow: 0 10px 24px rgba(175, 39, 47, 0.08);
}

.method-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff1f2;
  color: #AF272F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.apply-method-card:hover .method-icon-circle {
  background: #AF272F;
  color: #ffffff;
}

.apply-method-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.apply-method-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.apply-method-link {
  color: #AF272F;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 10px;
  display: inline-block;
  font-size: 13.5px;
}

.responsible-lending-bar {
  background: #f1f5f9;
  border-left: 4px solid #AF272F;
  border-radius: 8px;
  padding: 16px 22px;
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 45px;
  line-height: 1.7;
}

.responsible-lending-bar strong {
  color: #AF272F;
}

.loan-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
}

.loan-accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.loan-accordion-header:hover {
  background: #f8fafc;
}

.btn-acc-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease, background 0.2s ease;
  flex-shrink: 0;
}

.loan-accordion-item.active .btn-acc-toggle {
  transform: rotate(180deg);
  background: #AF272F;
}

.loan-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: #fdfefe;
}

.loan-accordion-item.active .loan-accordion-body {
  max-height: 1400px;
  transition: max-height 0.5s ease-in-out;
}

.loan-accordion-content {
  padding: 16px 24px 28px;
  border-top: 1px solid #f1f5f9;
}

.doc-subbox {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
}

.doc-subbox h4 {
  font-size: 16px;
  font-weight: 700;
  color: #AF272F;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-cta-action-bar {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-cta-loan {
  background: #AF272F;
  color: #ffffff !important;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-cta-loan:hover {
  background: #8f1e24;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(175, 39, 47, 0.4);
}

/* ================= 5. CORPORATE MACHINERY & TAX BENEFIT (machinery-equipment-financing.php) ================= */
.solution-tabs-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  overflow-x: auto;
}

.solution-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.solution-tab-btn:hover {
  background: #fdf2f2;
  color: #AF272F;
  border-color: #fca5a5;
}

.solution-tab-btn.active {
  background: #AF272F;
  color: #ffffff;
  border-color: #AF272F;
  box-shadow: 0 4px 14px rgba(175, 39, 47, 0.25);
}

.solution-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.solution-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.features-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.feature-box {
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: #AF272F;
  box-shadow: 0 10px 22px rgba(175, 39, 47, 0.1);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf2f2;
  color: #AF272F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-box h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.info-card-block {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
}

.info-card-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-block h3 i {
  color: #AF272F;
}

.tax-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin: 28px 0 36px;
}

.tax-table-header-title {
  padding: 20px 24px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tax-table-header-title h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-table-header-title span {
  font-size: 12.5px;
  color: #cbd5e1;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.tax-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.tax-comparison-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.tax-comparison-table th.col-highlight {
  background: #fee2e2;
  color: #8f1e24;
}

.tax-comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.tax-comparison-table tr:hover td {
  background-color: #fff8f8;
}

.tax-comparison-table tr.total-highlight td {
  background: #fef2f2;
  font-weight: 700;
  color: #8f1e24;
  font-size: 15px;
  border-top: 2px solid #fca5a5;
  border-bottom: 2px solid #fca5a5;
}

.badge-winner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ================= 6. CAREERS PAGE (careers.php) ================= */
.join-us-section {
  padding: 70px 0 60px;
  background: #ffffff;
}

.join-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.join-us-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.join-us-left-title {
  font-size: 30px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.join-us-left-title span {
  display: block;
  color: #64748b;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 2px;
}

.arch-frame-container {
  width: 100%;
  max-width: 420px;
  background: #f8fafc;
  border-radius: 200px 200px 24px 24px;
  padding: 14px 14px 18px;
  border: 1px solid #edf2f7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.arch-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: 190px 190px 18px 18px;
  overflow: hidden;
}

.arch-photo-item {
  height: 170px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.arch-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.arch-frame-container:hover .arch-photo-item img {
  transform: scale(1.05);
}

.join-us-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.join-us-right p {
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
}

.join-us-right h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-top: 4px;
}

.join-us-right .sub-callout {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.7;
}

.welfare-section {
  padding: 50px 0 70px;
  background: #ffffff;
}

.welfare-title {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 32px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.welfare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.welfare-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.welfare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(175, 39, 47, 0.3);
}

.welfare-card-img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  display: block;
}

.welfare-card-caption {
  padding: 16px 12px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.vacancies-section {
  padding: 60px 0 85px;
  background: linear-gradient(180deg, #fff7f7 0%, #faecee 100%);
}

.vacancies-container {
  max-width: 1140px;
  margin: 0 auto;
}

.vacancies-main-title {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-accordion-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: #ffffff;
  transition: all 0.25s ease;
}

.career-accordion-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.career-accordion-header .acc-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: #64748b;
}

.career-accordion-item.active {
  box-shadow: 0 8px 24px rgba(175, 39, 47, 0.12);
}

.career-accordion-item.active .career-accordion-header {
  background: #AF272F;
  color: #ffffff;
}

.career-accordion-item.active .career-accordion-header .acc-icon {
  color: #ffffff;
  transform: rotate(180deg);
}

.career-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: #f8fafc;
}

.career-accordion-item.active .career-accordion-body {
  max-height: 1000px;
  transition: max-height 0.45s ease-in-out;
}

.career-accordion-content {
  padding: 24px 28px 30px;
  font-size: 14px;
  color: #334155;
  line-height: 1.8;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.job-section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 14px 0 6px;
}

.job-section-title:first-child {
  margin-top: 0;
}

.job-work-meta {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.job-bullet-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
}

.job-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #475569;
  font-weight: bold;
}

.btn-apply-black {
  margin-top: 22px;
  display: inline-block;
  background: #1f2937;
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-apply-black:hover {
  background: #AF272F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(175, 39, 47, 0.3);
}

.apply-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.apply-modal-overlay.show {
  display: grid;
}

.apply-modal-box {
  background: #ffffff;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.apply-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
}

.apply-modal-close:hover {
  color: #AF272F;
}

.apply-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.apply-modal-sub {
  font-size: 13.5px;
  color: #AF272F;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.modal-form-row input, .modal-form-row select, .modal-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.modal-form-row input:focus, .modal-form-row select:focus, .modal-form-row textarea:focus {
  border-color: #AF272F;
}

.btn-submit-apply {
  width: 100%;
  padding: 12px;
  background: #AF272F;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.btn-submit-apply:hover {
  background: #8f1e24;
}

/* ================= 7. CONTACT US (contact-us.php) ================= */
.contact-page-section {
  padding: 48px 0 80px;
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.sidebar-nav-item {
  border-top: 1px solid #f1f5f9;
}

.sidebar-nav-item:last-child {
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-nav-link {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: color 0.2s ease;
}

.sidebar-nav-link:hover {
  color: #AF272F;
}

.sidebar-nav-link.active {
  color: #AF272F;
  font-weight: 700;
}

.contact-content-area {
  min-width: 0;
}

.content-top-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.content-top-title {
  font-size: 30px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.5px;
}

.share-action-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
  position: relative;
}

.share-action-btn:hover {
  color: #AF272F;
}

.share-tooltip-bubble {
  position: absolute;
  top: -32px;
  right: 0;
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.share-tooltip-bubble.show {
  opacity: 1;
  visibility: visible;
}

.hq-banner-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.hq-banner-photo {
  flex: 1.1;
  position: relative;
}

.hq-banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hq-banner-graphic {
  flex: 1.3;
  background: linear-gradient(110deg, #8f1e24 0%, #AF272F 55%, #c53030 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hq-banner-graphic::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.08);
  right: -80px;
  bottom: -80px;
  pointer-events: none;
}

.hq-banner-logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hq-badge-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: #AF272F;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hq-banner-names h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.hq-banner-names p {
  font-size: 13px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.hq-banner-sub {
  font-size: 14px;
  color: #fecaca;
  margin-top: 10px;
  max-width: 380px;
  line-height: 1.5;
}

.hq-info-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.info-col-left {
  border-right: 1px solid #f1f5f9;
  padding-right: 32px;
}

.col-header-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.phone-main-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #AF272F;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.phone-main-number:hover {
  transform: translateX(4px);
  color: #8f1e24;
}

.fax-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 30px;
}

.fax-row-info i {
  color: #AF272F;
  font-size: 16px;
}

.social-title-sub {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
}

.social-icons-ci-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-round-ci {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #AF272F;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.social-round-ci:hover {
  background: #8f1e24;
  transform: translateY(-2px);
}

.info-col-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.address-desc-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

.subinfo-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.subinfo-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}

.subinfo-meta-item i {
  color: #94a3b8;
  font-size: 16px;
  margin-top: 2px;
}

.subinfo-meta-item .meta-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.subinfo-meta-item .meta-val-link {
  color: #AF272F;
  font-weight: 500;
}

.subinfo-meta-item .meta-val-link:hover {
  text-decoration: underline;
}

.subinfo-meta-item.full-width {
  grid-column: 1 / -1;
}

.map-actions-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 6px;
}

.map-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: color 0.2s ease;
}

.map-action-item i {
  color: #AF272F;
  font-size: 18px;
}

.map-action-item:hover {
  color: #AF272F;
}

.map-action-coords {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}

.map-embed-wrapper {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

.tab-section-block {
  display: none;
}

.branch-search-bar {
  margin-bottom: 24px;
  position: relative;
}

.branch-search-bar input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.branch-search-bar input:focus {
  border-color: #AF272F;
}

.branch-search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.region-chips-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.region-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.region-btn.active, .region-btn:hover {
  background: #AF272F;
  color: #ffffff;
  border-color: #AF272F;
}

.branches-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.branch-simple-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.branch-simple-card:hover {
  border-color: #AF272F;
  transform: translateY(-2px);
}

.branch-simple-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2937;
}

.branch-simple-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.branch-contact-sub {
  font-size: 13px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-inquiry-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
}

.service-inquiry-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-inquiry-box p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-item.full {
  grid-column: 1 / -1;
}

.form-item label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-item label span {
  color: #AF272F;
}

.form-item input, .form-item select, .form-item textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: #AF272F;
}

.pdpa-check-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  background: #fff8f8;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #fed7d7;
}

.pdpa-check-row input {
  margin-top: 3px;
  accent-color: #AF272F;
}

.btn-form-send {
  background: #AF272F;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-form-send:hover {
  background: #8f1e24;
}

.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-layer.show {
  display: grid;
}

.modal-window {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  padding: 28px;
  position: relative;
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
}

.modal-close-icon:hover {
  color: #AF272F;
}

/* ================= 8. RATES & FEES (interest-rates-fees.php) ================= */
.rate-main-section {
  padding: 55px 0 90px;
  background-color: #f8fafc;
}

.rate-page-container {
  max-width: 1040px;
  margin: 0 auto;
}

.rate-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.current-rates-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid #edf2f7;
  padding: 32px 36px 24px;
  margin-bottom: 50px;
}

.card-heading-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 22px;
}

.rates-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.rates-list-wrap {
  display: flex;
  flex-direction: column;
}

.rate-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.rate-doc-row:last-child {
  border-bottom: none;
}

.rate-doc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
}

.rate-doc-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
  transition: color 0.2s ease;
  cursor: pointer;
}

.rate-doc-row:hover .rate-doc-name {
  color: #AF272F;
}

.rate-doc-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #AF272F;
  font-size: 20px;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: transparent;
}

.btn-doc-download:hover {
  background: #fdf2f2;
  color: #8f1e24;
  transform: translateY(-2px);
}

.history-section-wrapper {
  margin-top: 20px;
}

.history-heading-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 22px;
}

.history-filter-box {
  position: relative;
  margin-bottom: 24px;
}

.custom-select-control {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 14.5px;
  color: #64748b;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-select-control:focus {
  border-color: #AF272F;
  box-shadow: 0 0 0 3px rgba(175, 39, 47, 0.1);
  color: #1e293b;
}

.select-arrow-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e293b;
  font-size: 14px;
  pointer-events: none;
}

.history-list-card {
  border-top: 1px solid #cbd5e1;
}

.history-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.history-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.history-doc-row:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.history-doc-row .rate-doc-name {
  font-size: 15px;
  color: #1e293b;
  font-weight: 600;
}

.history-doc-row:hover .rate-doc-name {
  color: #AF272F;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  color: #AF272F;
  background: #fdf2f2;
}

.page-btn.active {
  background: #AF272F;
  color: #ffffff;
}

.page-btn.nav-arrow {
  color: #64748b;
  font-size: 13px;
}

.page-btn.nav-arrow:hover {
  color: #AF272F;
}

.download-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.download-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.download-toast i {
  color: #10b981;
  font-size: 18px;
}

/* ================= 9. NEWS & PROMOTIONS (news-promotions.php) ================= */
.news-filter-section {
  padding: 32px 0 16px;
}

.news-filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.news-filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.news-tab-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.news-tab-btn.active, .news-tab-btn:hover {
  background: #AF272F;
  color: #ffffff;
  border-color: #AF272F;
  box-shadow: 0 4px 12px rgba(175, 39, 47, 0.2);
}

.news-search-box {
  position: relative;
  min-width: 260px;
}

.news-search-box input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.news-search-box input:focus {
  border-color: #AF272F;
}

.news-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.news-page-content {
  padding: 24px 0 80px;
}

.news-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.news-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(175, 39, 47, 0.35);
}

.news-card-img-wrap {
  width: 100%;
  aspect-ratio: 1.65;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-article-card:hover .news-card-img-wrap img {
  transform: scale(1.05);
}

.news-article-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 13px;
  font-weight: 600;
  color: #AF272F;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.news-article-card:hover .news-card-title {
  color: #AF272F;
}

.news-card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-read-more-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #AF272F;
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  transition: transform 0.2s ease;
}

.news-article-card:hover .news-read-more-row {
  transform: translateX(4px);
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.page-number-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-number-btn.active, .page-number-btn:hover {
  background: #AF272F;
  color: #ffffff;
  border-color: #AF272F;
  box-shadow: 0 4px 10px rgba(175, 39, 47, 0.2);
}

.page-number-btn.prev-next {
  width: auto;
  padding: 0 16px;
  font-weight: 500;
}

/* ================= 10. PAYMENT CHANNELS (payment-channels.php) ================= */
.mpay-intro-section {
  padding: 60px 0 45px;
  text-align: center;
  background: #ffffff;
}

.mpay-subtag {
  color: #AF272F;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.mpay-main-title {
  font-size: 30px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.35;
}

.mpay-lead-desc {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  color: #64748b;
  line-height: 1.85;
}

.mpay-why-section {
  padding: 30px 0 65px;
  background: #ffffff;
}

.mpay-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.mpay-section-header .subtag {
  color: #AF272F;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.mpay-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.mpay-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

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

.mpay-feature-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

.mpay-feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background 0.25s ease;
}

.mpay-feature-item.active, .mpay-feature-item:hover {
  background: #fff8f8;
  border-color: #fecaca;
  box-shadow: 0 6px 18px rgba(175, 39, 47, 0.05);
}

.mpay-feature-item.active::before, .mpay-feature-item:hover::before {
  background: #AF272F;
}

.mpay-feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.mpay-feature-item.active h3, .mpay-feature-item:hover h3 {
  color: #AF272F;
}

.mpay-feature-item p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.mpay-illus-card {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border: 1px solid #fee2e2;
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(175, 39, 47, 0.07);
  position: relative;
  overflow: hidden;
}

.mpay-illus-card svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

.mpay-highlights-section {
  padding: 45px 0 65px;
  background: #ffffff;
}

.mpay-highlight-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mpay-highlight-card {
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(175, 39, 47, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mpay-highlight-card:hover {
  transform: translateY(-5px);
  border-color: #AF272F;
  box-shadow: 0 14px 30px rgba(175, 39, 47, 0.12);
}

.mpay-card-art {
  width: 90px;
  height: 75px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpay-card-art svg {
  width: 100%;
  height: 100%;
}

.mpay-highlight-card p {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.7;
  font-weight: 500;
}

.mpay-gateway-section {
  padding: 50px 0 80px;
  background: #ffffff;
}

.mpay-gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.mpay-gateway-card {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.mpay-gateway-card:hover {
  border-color: #AF272F;
  box-shadow: 0 10px 24px rgba(175, 39, 47, 0.09);
  transform: translateY(-3px);
}

.gateway-card-header {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.gateway-card-header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2.5px;
  background: #AF272F;
  border-radius: 2px;
}

.gateway-img-box {
  width: 100%;
  max-width: 360px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 14px;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 10px;
}

.gateway-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pay-support-bar {
  margin-top: 48px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 18px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.pay-support-btn {
  background: #AF272F;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pay-support-btn:hover {
  background: #8f1e24;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(175, 39, 47, 0.4);
}

/* ================= 11. FAQ ACCORDION (faq.php) ================= */
.faq-main-section {
  padding: 55px 0 90px;
  background-color: #f8fafc;
}

.faq-page-container {
  max-width: 1040px;
  margin: 0 auto;
}

.faq-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.faq-search-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.faq-search-input-box {
  position: relative;
}

.faq-search-input-box input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 15px 20px 15px 48px;
  font-family: inherit;
  font-size: 14.5px;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.faq-search-input-box input:focus {
  border-color: #AF272F;
  box-shadow: 0 0 0 3px rgba(175, 39, 47, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

.faq-filter-box {
  position: relative;
}

.popular-faq-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid #edf2f7;
  padding: 32px 36px 24px;
  margin-bottom: 50px;
}

.faq-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.faq-list-wrap {
  display: flex;
  flex-direction: column;
}

.faq-item-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.faq-item-row:last-child {
  border-bottom: none;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question-btn:hover .faq-q-text {
  color: #AF272F;
}

.faq-q-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-q-text {
  font-size: 15.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.faq-q-category {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.btn-faq-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #AF272F;
  font-size: 15px;
  border-radius: 50%;
  transition: all 0.25s ease;
  flex-shrink: 0;
  background: #fdf2f2;
}

.faq-item-row.active .btn-faq-expand {
  background: #AF272F;
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-item-row:hover .btn-faq-expand {
  background: #fee2e2;
  color: #8f1e24;
}

.faq-item-row.active:hover .btn-faq-expand {
  background: #8f1e24;
  color: #ffffff;
}

.faq-answer-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fdfefe;
}

.faq-item-row.active .faq-answer-drawer {
  max-height: 800px;
}

.faq-answer-content {
  padding: 0 10px 24px 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.75;
  border-top: 1px dashed #f1f5f9;
  padding-top: 16px;
}

.faq-answer-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-answer-content li {
  position: relative;
  padding-left: 20px;
}

.faq-answer-content li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #AF272F;
  font-weight: bold;
}

.faq-support-bar {
  margin-top: 50px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 16px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-support-btn {
  background: #AF272F;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.faq-support-btn:hover {
  background: #8f1e24;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(175, 39, 47, 0.4);
}

/* ================= 12. REGISTRATION & OWNERSHIP TRANSFER (vehicle-registration-services.php) ================= */
.reg-top-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.reg-main-h1 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.reg-sub-headline {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 24px;
}

.vertical-steps-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 28px;
}

.step-timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
}

.step-timeline-item:last-child {
  padding-bottom: 0;
}

.step-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 55px;
  top: 36px;
  bottom: 0;
  width: 1.5px;
  background: #cbd5e1;
}

.step-item-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.step-illus-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #475569;
  font-size: 18px;
}

.step-number-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #334155;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-timeline-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
}

.reg-study-more-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  background: #ffffff;
  transition: all 0.2s ease;
  width: fit-content;
}

.reg-study-more-box i {
  color: #475569;
}

.reg-study-more-box .link-highlight {
  color: #AF272F;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reg-study-more-box:hover {
  border-color: #AF272F;
  box-shadow: 0 4px 12px rgba(175, 39, 47, 0.08);
}

.reg-intro-image-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1.35;
  background: #e2e8f0;
}

.reg-intro-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reg-detailed-step-block {
  margin-bottom: 48px;
}

.reg-step-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reg-callout-card {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.doc-tabs-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.doc-subcard-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
}

.doc-subcard-item.full-width {
  grid-column: 1 / -1;
}

.doc-subcard-header {
  font-size: 16px;
  font-weight: 700;
  color: #AF272F;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.doc-subcard-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff8f8;
  border-left: 3px solid #AF272F;
  border-radius: 6px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

.reg-postal-address-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  position: relative;
  margin-top: 14px;
}

.postal-box-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-copy-address {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy-address:hover {
  border-color: #AF272F;
  color: #AF272F;
  background: #fff8f8;
}

.btn-copy-address.copied {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.postal-title-red {
  color: #AF272F;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.postal-address-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.reg-centers-section {
  margin-top: 50px;
  border-top: 2px solid #f1f5f9;
  padding-top: 40px;
}

.reg-centers-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.reg-centers-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.centers-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.center-card-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
}

.center-card-box:hover {
  border-color: #AF272F;
  box-shadow: 0 8px 20px rgba(175, 39, 47, 0.08);
  transform: translateY(-2px);
}

.center-card-box.hq-highlight {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  grid-column: 1 / -1;
}

.center-card-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.center-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 6px;
}

.center-contact-row i {
  color: #AF272F;
  width: 16px;
}

.center-contact-row a {
  color: #1e293b;
  font-weight: 600;
  transition: color 0.2s ease;
}

.center-contact-row a:hover {
  color: #AF272F;
  text-decoration: underline;
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.copy-toast i {
  color: #10b981;
}

/* ================= RESPONSIVE RULES (ALL BREAKPOINTS) ================= */
@media (max-width: 1200px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .val-col:nth-child(4), .val-col:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  .hist-split-grid, 
  .scope-split-grid, 
  .loan-intro-grid, 
  .join-us-grid, 
  .contact-layout, 
  .mpay-split-grid, 
  .reg-top-intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .benefits-grid, 
  .qualifications-grid, 
  .terms-subgrid, 
  .apply-methods-grid, 
  .features-grid-3, 
  .features-grid-2, 
  .mpay-highlight-cards-grid, 
  .mpay-gateway-grid, 
  .doc-tabs-subgrid, 
  .loan-accordion-content {
    grid-template-columns: 1fr;
  }

  .centers-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid-layout { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .hq-banner-wrapper {
    flex-direction: column;
    height: auto;
  }

  .hq-banner-photo {
    height: 200px;
  }

  .hq-info-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info-col-left {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 0;
    padding-bottom: 28px;
  }

  .loan-cta-action-bar, 
  .pay-support-bar, 
  .faq-support-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px;
  }

  .hist-media-right {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .scope-photo-sticky {
    position: static;
  }

  .scope-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px;
  }

  .sbc-right {
    width: 100%;
    flex-direction: column;
  }

  .btn-scope-cta, .btn-scope-outline {
    width: 100%;
    justify-content: center;
  }

  .mission-cards-grid, .welfare-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-col:nth-child(5) { grid-column: span 2; }

  .vision-statement { font-size: 28px; }

  .vm-banner-title, 
  .bs-banner-title, 
  .loan-banner-title, 
  .career-banner-title, 
  .rate-banner-title, 
  .news-banner-title, 
  .pay-banner-title, 
  .faq-banner-title, 
  .reg-banner-title {
    font-size: 28px;
  }

  .scope-showcase-title, 
  .loan-main-heading, 
  .rate-main-title, 
  .mpay-main-title, 
  .faq-main-title, 
  .reg-main-h1 {
    font-size: 26px;
  }

  .current-rates-card, .popular-faq-card { padding: 24px; }
  .faq-search-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .topline .inner { justify-content: space-between; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .hist-hero-banner, 
  .vm-hero-banner, 
  .bs-hero-banner, 
  .loan-hero-banner, 
  .career-hero-banner, 
  .rate-hero-banner, 
  .news-hero-banner, 
  .pay-hero-banner, 
  .faq-hero-banner, 
  .reg-hero-banner {
    height: 220px;
  }

  .hist-banner-title, 
  .vm-banner-title, 
  .bs-banner-title, 
  .loan-banner-title, 
  .career-banner-title, 
  .rate-banner-title, 
  .news-banner-title, 
  .pay-banner-title, 
  .faq-banner-title, 
  .reg-banner-title {
    font-size: 22px;
  }

  .vision-title, 
  .mission-title, 
  .values-title, 
  .scope-showcase-title, 
  .section-headline, 
  .welfare-title, 
  .vacancies-main-title, 
  .rate-main-title, 
  .mpay-main-title, 
  .faq-main-title, 
  .reg-main-h1 {
    font-size: 22px;
  }

  .vision-statement { font-size: 20px; }
  .news-grid-layout { grid-template-columns: 1fr; gap: 20px; }
  .news-filter-wrapper { flex-direction: column; align-items: stretch; }
  .news-search-box { width: 100%; min-width: unset; }
  .card-heading-title, .history-heading-title { font-size: 18px; }
  .rate-doc-name, .history-doc-row .rate-doc-name { font-size: 14px; }
  .btn-doc-download { font-size: 18px; width: 36px; height: 36px; }
  .current-rates-card, .popular-faq-card { padding: 20px 16px; }
  .market-conduct-box { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-sales-sheet-dl, .btn-cta-loan, .pay-support-btn, .faq-support-btn { width: 100%; justify-content: center; }
  .benefit-card { flex-direction: column-reverse; align-items: flex-start; }
  .benefit-illus { align-self: center; margin-top: 10px; }
  .scope-acc-header { padding: 14px 16px; }
  .scope-acc-inner { padding: 0 16px 18px 16px; }
  .acc-icon-badge { width: 38px; height: 38px; font-size: 15px; }
  .acc-title-text { font-size: 15px; }
  .mission-cards-grid, .welfare-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value-col:nth-child(5) { grid-column: span 1; }
  .value-col { padding: 36px 18px 45px; }
  .solution-tabs-nav { padding-bottom: 6px; }
  .solution-tab-btn { padding: 10px 16px; font-size: 13.5px; }
  .arch-frame-container { margin: 0 auto; }
  .subinfo-meta-grid, .branches-cards-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .phone-main-number { font-size: 24px; }
  .map-actions-group { flex-direction: column; align-items: flex-start; gap: 16px; }
  .faq-q-text { font-size: 14.5px; }
  .btn-faq-expand { font-size: 14px; width: 36px; height: 36px; }
  .centers-cards-grid { grid-template-columns: 1fr; }
  .reg-callout-card, .reg-postal-address-box { padding: 18px 20px; }
}

/* สไตล์สำหรับเมนูที่กำลังแอคทีฟ */
  nav a.active-menu, 
  .navlinks a.active-menu,
  .sidebar-nav-link.active {
  color: #AF272F !important;
  font-weight: 600;
}

/* ================= FLASHING LATEST TAG ================= */
@keyframes redBlink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.latest-flash-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #AF272F; /* สีแดงสด */
  color: #ffffff;            /* ตัวหนังสือสีขาว */
  border: 1px solid #8f1e24;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
  vertical-align: middle;
  animation: redBlink 1.2s infinite ease-in-out;
}

.latest-flash-tag i {
  font-size: 8px;
  color: #ffffff;
}

/* ซ่อน Scrollbar สำหรับ Chrome, Safari และ Opera */
.region-chips-row::-webkit-scrollbar {
  display: none;
}

/* ซ่อน Scrollbar สำหรับ IE, Edge และ Firefox */
.region-chips-row {
  -ms-overflow-style: none;  /* IE และ Edge */
  scrollbar-width: none;  /* Firefox */
}