/* ═══════════════════════════════════════════════════════
   STC CUSTOM BRANDING — input.css
   B2B Feed Industry · Design System
   ════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ──────────────────────────────── */
:root {
  --stc-primary:    #1A3A5C;   /* Navy — ความน่าเชื่อถือ */
  --stc-accent:     #E8821A;   /* Amber — ชีวิตชีวา / CTA */
  --stc-dark:       #0D1F33;
  --stc-mid:        #2C5282;
  --stc-light:      #EBF4FF;
  --stc-text:       #1E2D3D;
  --stc-muted:      #6B7B8D;
  --stc-border:     #D5E0EC;
  --stc-white:      #FFFFFF;

  --font-en:        'Inter', sans-serif;
  --font-th:        'Sarabun', sans-serif;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --shadow-card:    0 4px 20px rgba(26,58,92,0.10);
  --shadow-hover:   0 8px 32px rgba(26,58,92,0.18);
  --transition:     all 0.28s ease;
}

/* ─── 2. BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-th);
  color: var(--stc-text);
  background: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--stc-primary);
  letter-spacing: -0.3px;
}

a { color: var(--stc-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--stc-primary); }
p { line-height: 1.75; color: var(--stc-muted); }
img { max-width: 100%; display: block; }

/* ─── 3. TOP BAR ─────────────────────────────────────── */
#stc-topbar {
  background: var(--stc-dark);
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}
#stc-topbar a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
#stc-topbar a:hover { color: var(--stc-accent); }
#stc-topbar .divider { margin: 0 14px; opacity: 0.35; }
#stc-topbar .topbar-right a {
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
#stc-topbar .topbar-right a:hover { background: var(--stc-accent); color: #fff; }

/* ─── 4. HEADER / NAVBAR ─────────────────────────────── */
#stc-header {
  background: var(--stc-white);
  box-shadow: 0 2px 16px rgba(26,58,92,0.10);
  z-index: 1030;
  top: 0;
}

#stc-header .navbar {
  padding: 12px 0;
}

#stc-header .logo-img { height: 52px; width: auto; }

/* Nav Links */
#stc-header .nav-link {
  color: var(--stc-text) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
#stc-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px;
  width: 0; height: 2px;
  background: var(--stc-accent);
  transition: width 0.25s ease;
}
#stc-header .nav-link:hover,
#stc-header .nav-link.active {
  color: var(--stc-primary) !important;
  background: var(--stc-light);
}
#stc-header .nav-link:hover::after,
#stc-header .nav-link.active::after { width: calc(100% - 28px); }

/* Dropdown */
#stc-header .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  border-top: 3px solid var(--stc-accent);
}
#stc-header .dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  padding: 8px 14px;
  color: var(--stc-text);
  transition: var(--transition);
}
#stc-header .dropdown-item:hover {
  background: var(--stc-light);
  color: var(--stc-primary);
  padding-left: 20px;
}

/* CTA Button */
.stc-btn-cta {
  background: var(--stc-accent);
  color: var(--stc-white) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  border: 2px solid var(--stc-accent);
  transition: var(--transition);
}
.stc-btn-cta:hover {
  background: var(--stc-primary);
  border-color: var(--stc-primary);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ─── 5. HERO ─────────────────────────────────────────── */
#stc-hero { position: relative; }

.hero-slide {
  height: 90vh;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,31,51,0.82) 40%, rgba(13,31,51,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-label {
  display: inline-block;
  background: var(--stc-accent);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-th);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero Buttons */
.stc-btn-primary {
  background: var(--stc-accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--stc-accent);
  transition: var(--transition);
}
.stc-btn-primary:hover {
  background: #c96d10;
  border-color: #c96d10;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,130,26,0.4);
}

.stc-btn-outline-light {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: var(--transition);
}
.stc-btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.stc-btn-outline-dark {
  background: transparent;
  color: var(--stc-primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--stc-primary);
  transition: var(--transition);
}
.stc-btn-outline-dark:hover {
  background: var(--stc-primary);
  color: #fff;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition);
}
#stc-hero:hover .carousel-control-prev,
#stc-hero:hover .carousel-control-next { opacity: 1; }
.carousel-indicators button {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.5);
  border: none;
}
.carousel-indicators button.active { background: var(--stc-accent); width: 48px; }

/* ─── 6. STATS BAR ───────────────────────────────────── */
.stc-stats-bar {
  background: var(--stc-primary);
  padding: 0;
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-number span { color: var(--stc-accent); }
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ─── 7. SECTION HEADER ──────────────────────────────── */
.stc-section-header { margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--stc-accent);
  background: rgba(232,130,26,0.1);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-tag.light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--stc-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--stc-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── 8. ABOUT CARDS ─────────────────────────────────── */
.stc-about {
  padding: 90px 0;
  background: #fff;
}

.about-card {
  background: var(--stc-white);
  border: 1px solid var(--stc-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--stc-accent);
  transition: height 0.35s ease;
}
.about-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
}
.about-card:hover::before { height: 100%; }

.about-icon {
  width: 56px; height: 56px;
  background: var(--stc-light);
  color: var(--stc-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.about-card:hover .about-icon {
  background: var(--stc-accent);
  color: #fff;
}

.about-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--stc-primary);
}

.about-card p { font-size: 0.9rem; }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--stc-accent);
  margin-top: 16px;
}
.about-link:hover { gap: 10px; }

/* ─── 9. PRODUCTS ────────────────────────────────────── */
.stc-products {
  padding: 90px 0;
  background: var(--stc-light);
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--stc-border);
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: var(--stc-accent);
}

.product-icon-wrap {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--stc-primary), var(--stc-mid));
  color: #fff;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
  transition: var(--transition);
}
.product-card:hover .product-icon-wrap {
  background: linear-gradient(135deg, var(--stc-accent), #c96d10);
  transform: rotate(-5deg) scale(1.05);
}

.product-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stc-primary);
  margin-bottom: 6px;
}
.product-card p { font-size: 0.83rem; margin-bottom: 16px; }

.product-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--stc-accent);
}

/* ─── 10. NEWS ────────────────────────────────────────── */
.stc-news {
  padding: 90px 0;
  background: #fff;
}

.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stc-border);
  transition: var(--transition);
  height: 100%;
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--stc-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.news-card-body { padding: 22px 22px 24px; }
.news-card-date { font-size: 0.78rem; color: var(--stc-muted); margin-bottom: 8px; }
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stc-primary);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--stc-accent); }
.news-card-excerpt { font-size: 0.87rem; color: var(--stc-muted); margin-bottom: 18px; }
.news-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stc-accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.news-read-more:hover { gap: 10px; }

/* ─── 11. GALLERY ────────────────────────────────────── */
.stc-gallery {
  padding: 90px 0;
  background: var(--stc-light);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,51,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ─── 12. CTA BANNER ─────────────────────────────────── */
.stc-cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.stc-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--stc-dark) 0%, var(--stc-mid) 100%);
}
.stc-cta-bg::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: var(--stc-accent);
  opacity: 0.07;
  border-radius: 50%;
}

.stc-cta > .container { position: relative; z-index: 1; }

.stc-cta-title {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 16px;
}
.stc-cta-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 36px;
}
.stc-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ─── 13. PARTNERS ───────────────────────────────────── */
.stc-partners {
  padding: 70px 0;
  background: #fff;
}

.partners-track-wrapper {
  overflow: hidden;
  position: relative;
}
.partners-track-wrapper::before,
.partners-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; width: 80px; height: 100%;
  z-index: 2;
}
.partners-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.partners-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.partners-track {
  display: flex;
  gap: 40px;
  animation: scrollPartners 20s linear infinite;
  width: max-content;
}

@keyframes scrollPartners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-item {
  min-width: 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stc-border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition);
}
.partner-logo-item:hover { filter: grayscale(0); opacity: 1; }
.partner-placeholder {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--stc-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── 14. CONTACT STRIP ──────────────────────────────── */
.stc-contact-strip {
  background: var(--stc-primary);
  padding: 50px 0;
}

.contact-strip-item { padding: 10px; }

.cs-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--stc-accent);
  margin: 0 auto 14px;
}

.contact-strip-item h6 {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-strip-item p,
.contact-strip-item a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.6;
}
.contact-strip-item a:hover { color: var(--stc-accent); }

.cs-social { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }

.cs-social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #fff;
  transition: var(--transition);
}
.cs-social-btn.line { background: #06C755; }
.cs-social-btn.fb   { background: #1877F2; }
.cs-social-btn:hover { transform: translateY(-3px); color: #fff; }

/* ─── 15. FOOTER ─────────────────────────────────────── */
#stc-footer {
  background: var(--stc-dark);
  padding: 72px 0 40px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-cert { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--stc-accent);
  background: rgba(232,130,26,0.12);
  border: 1px solid rgba(232,130,26,0.3);
  padding: 4px 10px;
  border-radius: 50px;
}

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-nav-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-nav-list a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-nav-list a::before {
  content: '›';
  color: var(--stc-accent);
  font-size: 1.1rem;
}
.footer-nav-list a:hover { color: #fff; padding-left: 6px; }

/* Footer News */
#footer-news-list .footer-news-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#footer-news-list .footer-news-item:last-child { border-bottom: none; margin-bottom: 0; }

.footer-news-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.footer-news-info .fn-date { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.footer-news-info .fn-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.footer-news-info .fn-title:hover { color: var(--stc-accent); }

.footer-divider { border-color: rgba(255,255,255,0.08); margin: 40px 0 24px; }

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}
.footer-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-link:hover { color: var(--stc-accent); }

/* ─── 16. RESPONSIVE ─────────────────────────────────── */
@media (max-width: 991px) {
  .hero-slide { height: 70vh; min-height: 420px; }
  #stc-header .dropdown-menu { position: static !important; box-shadow: none; padding-left: 16px; border-top: none; }
}

@media (max-width: 767px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .stc-about, .stc-products, .stc-news, .stc-gallery, .stc-partners { padding: 60px 0; }
  .stc-cta { padding: 70px 0; }
  .hero-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-slide { height: 85vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
