/**
 * Fastdo Khách Hàng - CSS dùng chung cho các Elementor Widgets & Shortcodes
 * Màu sắc thương hiệu Fastdo: Vàng #FCD42C, Chữ đậm #14162C, Hổ phách #D49700
 */

:root {
  --fd-bg-page: #FFFFFF;
  --fd-bg-alt: #F8FAFC;
  --fd-bg-surface: #FFFFFF;
  --fd-border: #E2E6F3;
  --fd-text-main: #14162C;
  --fd-text-muted: #5B6172;
  --fd-brand-yellow: #FCD42C;
  --fd-brand-yellow-hover: #E5BF20;
  --fd-brand-dark: #14162C;
  --fd-accent-amber: #D49700;
  --fd-accent-soft: #FFF8D6;
  --fd-pill-bg: #F3F5FC;
  --fd-pill-text: #8991AC;
}

.fd-kh-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .fd-kh-container { padding: 0 20px; }
}

/* ================= HERO STATS WIDGET ================= */
.fd-kh-hero-stats {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  border: 1px solid var(--fd-border);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  background: var(--fd-bg-surface);
  box-shadow: 0 4px 20px rgba(20,22,44,0.03);
}
.fd-kh-hero-stat {
  flex: 1;
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid var(--fd-border);
  box-sizing: border-box;
}
.fd-kh-hero-stat:last-child {
  border-right: none;
}
.fd-kh-hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--fd-accent-amber);
  line-height: 1.2;
}
.fd-kh-hero-stat .label {
  font-size: 13px;
  color: var(--fd-text-muted);
  margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .fd-kh-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fd-kh-hero-stat {
    padding: 16px 14px;
    border-right: 1px solid var(--fd-border);
    border-bottom: 1px solid var(--fd-border);
  }
  .fd-kh-hero-stat:nth-child(2n) { border-right: none; }
  .fd-kh-hero-stat:nth-child(n+3) { border-bottom: none; }
  .fd-kh-hero-stat .num { font-size: 22px; }
}

/* ================= STICKY QUICK NAV WIDGET ================= */
.fd-kh-quicknav-outer {
  position: sticky;
  top: 72px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fd-border);
  border-top: 1px solid var(--fd-border);
  width: 100%;
}
.fd-kh-quicknav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.fd-kh-quicknav::-webkit-scrollbar { display: none; }
.fd-kh-quicknav-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fd-bg-alt);
  border: 1px solid var(--fd-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fd-text-main);
  text-decoration: none !important;
  white-space: nowrap;
  transition: all .2s;
}
.fd-kh-quicknav-item:hover {
  background: var(--fd-accent-soft);
  border-color: var(--fd-brand-yellow);
  color: var(--fd-text-main);
}
.fd-kh-quicknav-item b {
  color: var(--fd-accent-amber);
  font-weight: 800;
}
@media (max-width: 768px) {
  .fd-kh-quicknav-outer { top: 60px; }
}

/* ================= LOGO MARQUEE WIDGET ================= */
.fd-kh-marquee-wrap {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 24px 0;
}
.fd-kh-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: fd-kh-scroll 32s linear infinite;
}
.fd-kh-marquee-track:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .fd-kh-marquee-track { animation: none; }
}
@keyframes fd-kh-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.fd-kh-logo-pill {
  flex: 0 0 auto;
  width: 144px;
  height: 54px;
  border-radius: 12px;
  background: var(--fd-bg-alt);
  border: 1px solid var(--fd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fd-text-muted);
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
  padding: 6px 12px;
  text-align: center;
  box-sizing: border-box;
}
.fd-kh-logo-pill img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ================= INDUSTRY CASES SLIDER WIDGET ================= */
.fd-kh-industry-section {
  padding-top: 50px;
  padding-bottom: 46px;
  border-top: 1px solid var(--fd-border);
  scroll-margin-top: 120px;
  width: 100%;
  box-sizing: border-box;
}
.fd-kh-industry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.fd-kh-industry-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fd-kh-industry-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--fd-accent-soft);
  color: var(--fd-accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fd-kh-industry-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--fd-text-main);
  line-height: 1.2;
}
.fd-kh-industry-count {
  font-size: 14px;
  color: var(--fd-text-muted);
  margin-top: 4px;
}
.fd-kh-industry-count b {
  color: var(--fd-accent-amber);
  font-weight: 800;
}
.fd-kh-slider-controls {
  display: flex;
  gap: 8px;
}
.fd-kh-slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--fd-border);
  background: var(--fd-bg-surface);
  color: var(--fd-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: all .2s;
  user-select: none;
}
.fd-kh-slider-arrow:hover {
  background: var(--fd-brand-yellow);
  border-color: var(--fd-brand-yellow);
  color: var(--fd-brand-dark);
}

/* CARDS TRACK */
.fd-kh-slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
}
.fd-kh-slider-track::-webkit-scrollbar { display: none; }
.fd-kh-case-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border: 1px solid var(--fd-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--fd-bg-surface);
  transition: all .25s ease;
  box-sizing: border-box;
}
.fd-kh-case-card:hover {
  box-shadow: 0 10px 28px rgba(20,22,44,0.06);
  border-color: #D2D8EB;
  transform: translateY(-2px);
}
.fd-kh-case-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.fd-kh-case-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--fd-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fd-text-muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 4px 6px;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.2;
  box-sizing: border-box;
}
.fd-kh-case-logo.has-image { padding: 0; }
.fd-kh-case-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fd-kh-case-real-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0F7A4C;
  background: #E7FAF0;
  border: 1px solid #B7EED2;
  border-radius: 999px;
  padding: 4px 10px;
}
.fd-kh-case-company {
  font-size: 16px;
  font-weight: 800;
  color: var(--fd-text-main);
  line-height: 1.3;
}
.fd-kh-case-stat {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 44px;
  color: var(--fd-text-main);
}
.fd-kh-case-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fd-accent-amber);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  transition: color .2s;
}
.fd-kh-case-link:hover {
  color: var(--fd-brand-yellow-hover);
}
.fd-kh-case-card.placeholder {
  border-style: dashed;
  background: var(--fd-bg-alt);
  border-color: #D2D8EB;
}
.fd-kh-case-card.placeholder .fd-kh-case-logo {
  background: var(--fd-bg-surface);
  border: 1px dashed var(--fd-border);
}
.fd-kh-case-card.placeholder .fd-kh-case-stat {
  color: var(--fd-text-muted);
  font-weight: 500;
  font-style: italic;
}
@media (max-width: 768px) {
  .fd-kh-case-card { flex: 0 0 270px; }
}

/* ================= TESTIMONIALS WIDGET ================= */
.fd-kh-testimonials-wrap {
  width: 100%;
  box-sizing: border-box;
}
.fd-kh-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 960px) {
  .fd-kh-testimonials-grid { grid-template-columns: 1fr; }
}
.fd-kh-testimonial-card {
  background: var(--fd-bg-surface);
  border: 1px solid var(--fd-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 20px rgba(20,22,44,0.03);
  box-sizing: border-box;
}
.fd-kh-testimonial-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fd-text-main);
  margin: 0;
}
.fd-kh-testimonial-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.fd-kh-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--fd-accent-soft);
  color: var(--fd-accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fd-kh-avatar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fd-text-main);
}
.fd-kh-avatar-title {
  font-size: 12.5px;
  color: var(--fd-text-muted);
  margin-top: 2px;
}

/* ================= FINAL CTA BAND ================= */
.fd-kh-cta-band {
  background: var(--fd-brand-dark);
  border-radius: 24px;
  padding: 60px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 1160px;
  color: #FFFFFF;
  box-sizing: border-box;
}
.fd-kh-cta-h2 {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  max-width: 640px;
  line-height: 1.3;
  margin: 0;
}
.fd-kh-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.6;
}
.fd-kh-btn-cta-gold {
  background: var(--fd-brand-yellow);
  color: var(--fd-brand-dark);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(252,212,44,0.3);
  font-family: inherit;
  display: inline-block;
  text-decoration: none !important;
}
.fd-kh-btn-cta-gold:hover {
  background: var(--fd-brand-yellow-hover);
  transform: translateY(-1px);
  color: var(--fd-brand-dark);
}
@media (max-width: 768px) {
  .fd-kh-cta-band { padding: 40px 20px; }
  .fd-kh-cta-h2 { font-size: 22px; }
}
