/* ==========================================================================
   Everwin International Corporation – Style System v5.0
   Global Import-Export Service Portal
   Brand Colors: Navy #0B2A5B | Red #B71C1C | Gold #C9A24B | BG #F5F7FA
   Font: Be Vietnam Pro
   ========================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0B2A5B;
  --primary-dark: #071d40;
  --primary-light: #163a6e;
  --accent: #B71C1C;
  --accent-hover: #991414;
  --gold: #C9A24B;
  --gold-light: #e8c97a;
  --bg: #F5F7FA;
  --bg-card: #ffffff;
  --dark: #0f172a;
  --text: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.12);
  --transition: all 0.22s ease;
  --header-h: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== CONTAINER & SPACING ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 64px 0; }
.text-center { text-align: center; }

/* ===== SECTION HEADERS & BADGES ===== */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,75,0.12);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-tag.light {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.15);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header { margin-bottom: 48px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(183,28,28,0.3); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-glass {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); color: #fff; transform: translateY(-2px); }

.btn-glass-dark {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-glass-dark:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(6, 14, 30, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 900;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(5, 12, 26, 0.95);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-pill {
  background: linear-gradient(135deg, #d0a02b 0%, #e5ba5d 50%, #c19639 100%);
  color: #072237;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-header-pill:hover {
  background: linear-gradient(135deg, #e5ba5d 0%, #f4c96e 50%, #d0a02b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 162, 75, 0.55);
  color: #072237;
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 950;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0; right: -330px;
  width: 310px;
  height: 100%;
  background: #fff;
  z-index: 960;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open { right: 0; }
.mobile-nav-overlay.open { display: block; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close { font-size: 1.3rem; color: var(--text-muted); padding: 4px; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  flex: 1;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.mobile-nav-links a:hover { background: var(--bg); color: var(--primary); }
.mobile-nav-links a i { width: 20px; color: var(--primary); font-size: 0.95rem; }

.mobile-nav-cta {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #050c1a;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 48px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease, opacity 0.5s ease;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 65% 26%, rgba(255, 126, 95, 0.24) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 75%, rgba(37, 99, 235, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6, 14, 30, 0.72) 0%, rgba(6, 14, 30, 0.38) 35%, rgba(5, 12, 26, 0.86) 80%, #050c1a 100%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(255, 126, 95, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 75, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: #f4c96e;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
  max-width: 960px;
  text-align: center;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #f3ba1a 0%, #f4c96e 35%, #57caef 75%, #0a8cad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 780px;
  margin: 0 auto 34px auto;
  line-height: 1.68;
  text-align: center;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-hero-pill-primary {
  background: linear-gradient(135deg, #d0a02b 0%, #e5ba5d 50%, #c19639 100%);
  color: #072237;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 50px;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(201, 162, 75, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-pill-primary:hover {
  background: linear-gradient(135deg, #e5ba5d 0%, #f4c96e 50%, #d0a02b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 75, 0.65);
  color: #072237;
}

.btn-hero-pill-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 50px;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-pill-glass:hover {
  background: rgba(201, 162, 75, 0.15);
  border-color: rgba(201, 162, 75, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

/* 4 Floating Glass Stats Cards */
.hero-stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 34px auto;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38), 0 0 20px rgba(201, 162, 75, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.stat-card-icon {
  color: #e5ba5d;
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.stat-card-num {
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 800;
  color: #f4c96e;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-card-num span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fcd34d;
}

.stat-card-label {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  line-height: 1.4;
}

/* Trust Features Row below cards */
.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.trust-item i {
  color: #e5ba5d;
  font-size: 1rem;
}

.trust-item img {
  border-radius: 2px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  margin-top: 6px;
}

.hero-scroll-indicator:hover {
  color: #f4c96e;
}

.scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  margin-top: 8px;
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: bottom; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 580px;
  }
}

@media (max-width: 580px) {
  .hero-stats-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== ABOUT SECTION ===== */
.about-section { background: #fff; }

.about-grid {
  display: block;
  max-width: 980px;
  margin: 0 auto;
}

.about-heading-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.about-heading-row .section-title {
  margin-bottom: 0;
}

.about-heading-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(11, 42, 91, 0.12);
  background: #ffffff;
  padding: 3px;
  border: 1.5px solid rgba(11, 42, 91, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.about-heading-logo:hover {
  transform: scale(1.05);
}

.about-slogan {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-contact-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.about-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.about-contact-item:hover { background: var(--bg); }

.about-contact-item > i {
  width: 36px; height: 36px;
  background: rgba(11,42,91,0.08);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-contact-item div strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.about-contact-item div span,
.about-contact-item div a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

/* About Image Frame (Leadership factory visit) */
.about-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about-image-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 42, 91, 0.16);
  border: 1px solid rgba(11, 42, 91, 0.1);
  background: #071d40;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(11, 42, 91, 0.22);
}

.about-image-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0B2A5B;
}

.about-leadership-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.about-image-frame:hover .about-leadership-img {
  transform: scale(1.02);
}

.about-image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 34, 55, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f4c96e;
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.about-image-caption {
  position: relative;
  padding: 16px 22px 18px;
  background: #071d40;
  border-top: 1px solid rgba(201, 162, 75, 0.22);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-image-caption strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f4c96e;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.2px;
}

.about-image-caption span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

/* About Stats Grid */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-box {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-box:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-box:hover .stat-icon,
.stat-box:hover .stat-num,
.stat-box:hover .stat-label { color: #fff; }

.stat-icon { font-size: 1.6rem; color: var(--gold); }
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); line-height: 1.5; }

/* ===== SERVICES SECTION (6 CỐT LÕI) - COMPACT & NEAT ===== */
.services-section {
  background: var(--bg);
  padding: 48px 0;
}

.services-section .section-header {
  margin-bottom: 24px;
}

.services-section .section-tag {
  font-size: 0.72rem;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.services-section .section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
}

.services-section .section-subtitle {
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 620px;
}

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

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px 14px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 42, 91, 0.08);
  border-color: var(--primary);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(11,42,91,0.07);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 10px;
}

.service-footer {
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.btn-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.service-card:hover .btn-more { color: var(--accent); gap: 7px; }

/* ===== PROCESS SECTION (5 BƯỚC) ===== */
.process-section {
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 170px;
  max-width: 210px;
  padding: 24px 14px;
}

.process-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}

.process-icon {
  width: 62px; height: 62px;
  background: rgba(11,42,91,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 14px;
  border: 2px solid rgba(11,42,91,0.1);
  transition: var(--transition);
}

.process-step:hover .process-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.process-step h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.process-step p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.process-arrow {
  display: flex;
  align-items: center;
  padding-top: 52px;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== COMMODITIES SECTION (NHÓM HÀNG) ===== */
.commodities-section { 
  background: #fff; 
  border-top: 1px solid var(--border-color);
}

.commodities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.commodity-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.commodity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.commodity-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #e2e8f0;
  overflow: hidden;
}

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

.commodity-card:hover .commodity-card-img-wrap img { transform: scale(1.06); }

.commodity-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11,42,91,0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.commodity-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.commodity-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
}

.commodity-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.commodity-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.comm-market-tag {
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(201,162,75,0.12);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
}

.commodity-card-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
}

/* Open Box: Any commodity on demand */
.commodity-custom-box {
  background: linear-gradient(135deg, #071d40 0%, #0B2A5B 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-md);
}

.custom-box-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(201,162,75,0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.custom-box-content { flex: 1; }
.custom-box-content h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.custom-box-content p { font-size: 0.92rem; color: rgba(255,255,255,0.78); line-height: 1.6; }

/* ===== PROJECTS SECTION (DỰ ÁN) ===== */
.projects-section { background: #fff; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(11,42,91,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
}

.project-info-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  padding: 10px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.project-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
}

.project-info-item i { color: var(--gold); margin-top: 3px; font-size: 0.85rem; }

.project-scope, .project-result {
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-scope strong, .project-result strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 2px;
}

/* ===== NEWS SECTION ===== */
.news { background: var(--bg); }

.news-top-bar { margin-bottom: 32px; }

.posts-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pill:hover, .pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 18px;
  flex-shrink: 0;
}

.search-box i { color: var(--text-muted); }

.search-box input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  width: 180px;
  background: transparent;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.post-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.post-img { width: 100%; height: 190px; object-fit: cover; }

.post-img-placeholder {
  width: 100%; height: 190px;
  background: linear-gradient(135deg, var(--bg), #dde4ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(11,42,91,0.2);
}

.post-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(11,42,91,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-meta span { display: flex; align-items: center; gap: 5px; }

.post-card-footer {
  padding: 0 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.btn-read-more:hover { gap: 10px; color: var(--accent); }

/* ===== CONTACT SECTION ===== */
.contact { background: var(--primary); }

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

.contact-info h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.35;
}

.contact-info p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-info strong { color: rgba(255,255,255,0.95); }

.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.8);
}

.c-item > i {
  width: 40px; height: 40px;
  background: rgba(201,162,75,0.15);
  border: 1px solid rgba(201,162,75,0.25);
  color: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.c-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.c-item p, .c-item a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

.c-item a:hover { color: var(--gold-light); }

.map-embed { margin-top: 16px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }

/* Contact Form Wrap */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrap h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,42,91,0.08);
}

.form-group textarea { resize: vertical; min-height: 85px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Contact section brand unification */
.contact-info .section-tag {
  color: #f4c96e;
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.32);
}

.contact-form-wrap .required {
  color: #d0a02b;
}

.contact-form-wrap .form-group input:focus,
.contact-form-wrap .form-group select:focus,
.contact-form-wrap .form-group textarea:focus {
  border-color: #d0a02b;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.16);
}

#quoteSubmitBtn,
.contact-form-wrap .btn-accent {
  background: linear-gradient(135deg, #d0a02b 0%, #e5ba5d 50%, #c19639 100%);
  color: #072237;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  box-shadow: 0 6px 22px rgba(201, 162, 75, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#quoteSubmitBtn:hover,
.contact-form-wrap .btn-accent:hover {
  background: linear-gradient(135deg, #e5ba5d 0%, #f4c96e 50%, #d0a02b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.6);
  color: #072237;
  border-color: rgba(201, 162, 75, 0.6);
}

.contact-form-wrap .form-note i {
  color: #d0a02b;
}

/* ===== FOOTER ===== */
.footer {
  background: #071526;
  color: #94a3b8;
  padding-top: 70px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo .logo-text { color: #fff; }

.footer-desc {
  margin: 16px 0 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #64748b;
}

.footer-desc em { color: var(--gold); font-style: italic; }

.social-links { display: flex; gap: 10px; }

.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: var(--transition);
}

.social-links a:hover { background: var(--gold); color: #fff; }

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }

.footer-col ul a {
  font-size: 0.88rem;
  color: #64748b;
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }

.footer-col p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.footer-col p i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.footer-col p a { color: #64748b; }
.footer-col p a:hover { color: var(--gold); }

.footer-bottom { padding: 22px 0; }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-inner p { font-size: 0.85rem; color: #475569; }

.admin-portal-link {
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.admin-portal-link:hover { color: #94a3b8; border-color: rgba(255,255,255,0.15); }

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 800;
}

.float-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover { transform: scale(1.1); }
.float-btn--call { background: var(--accent); color: #fff; }
.float-btn--zalo { background: #0068ff; color: #fff; }
.zalo-icon { font-size: 1.15rem; font-weight: 900; letter-spacing: -1px; }

/* ===== MODAL BASE ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 21, 38, 0.72);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog-lg { max-width: 820px; }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-wrap h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover { color: var(--dark); }

.modal-body {
  padding: 26px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 26px;
  border-top: 1px solid var(--border-color);
  background-color: #f8fafc;
}

/* Service Detail Modal Content */
.svc-detail-hero {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  max-height: 280px;
}

.svc-detail-hero img { width: 100%; height: 280px; object-fit: cover; }

.svc-detail-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 18px 0 8px;
}

.svc-detail-content p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}

.svc-detail-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.svc-detail-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.svc-detail-checklist li i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 0.85rem;
}

/* Commodity Items Modal - Expanded / Near Full Screen */
#commodityItemsModal.modal {
  padding: 1.5vh 1.5vw;
}

#commodityItemsModal .modal-dialog,
.modal-dialog-commodity {
  width: 95vw !important;
  max-width: 1520px !important;
  height: 92vh !important;
  max-height: 92vh !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 70px -15px rgba(5, 15, 30, 0.45) !important;
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: modalCommodityIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalCommodityIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#commodityItemsModal .modal-header {
  padding: 20px 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

#commodityItemsModal .modal-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

#commodityItemsModal .modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

#commodityItemsModal .modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

#commodityItemsModal .modal-body {
  flex: 1 !important;
  padding: 28px 36px !important;
  overflow-y: auto !important;
  max-height: none !important;
  background: #f8fafc;
}

#commodityItemsModal .modal-footer {
  padding: 16px 36px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Commodity Items Modal Grid */
.comm-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.comm-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
}

.comm-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(184, 134, 11, 0.4);
}

.comm-item-img {
  width: 100%;
  height: 190px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  padding: 8px;
}

.comm-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.comm-item-card:hover .comm-item-img img {
  transform: scale(1.06);
}

.comm-item-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.comm-item-origin {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comm-item-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

@media (max-width: 992px) {
  #commodityItemsModal .modal-dialog,
  .modal-dialog-commodity {
    width: 96vw !important;
    height: 94vh !important;
    max-height: 94vh !important;
  }
  #commodityItemsModal .modal-header,
  #commodityItemsModal .modal-footer {
    padding: 16px 20px;
  }
  #commodityItemsModal .modal-body {
    padding: 20px !important;
  }
  .comm-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .comm-item-img {
    height: 160px;
  }
}

@media (max-width: 576px) {
  #commodityItemsModal.modal {
    padding: 1vh 1vw;
  }
  #commodityItemsModal .modal-dialog,
  .modal-dialog-commodity {
    width: 98vw !important;
    height: 96vh !important;
    max-height: 96vh !important;
    border-radius: 12px !important;
  }
  #commodityItemsModal .modal-header h3 {
    font-size: 1.15rem;
  }
  .comm-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
  }
  .comm-item-card {
    padding: 10px;
  }
  .comm-item-img {
    height: 125px;
    padding: 4px;
  }
  .comm-item-name {
    font-size: 0.85rem;
  }
}

/* ===== FULL-PAGE ARTICLE VIEW – PREMIUM CORPORATE EDITORIAL ===== */
.article-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #f8fafc;
  flex-direction: column;
  overflow: hidden;
}

.article-page.active { display: flex; }

/* Top Editorial Navigation Bar */
.article-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.article-topbar-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 18px;
}

.article-back-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.article-back-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(-2px);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
}

.article-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.bc-sep {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.bc-current {
  color: var(--primary);
  font-weight: 700;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.article-badge {
  display: inline-block;
  background: rgba(201, 162, 75, 0.12);
  color: #b88628;
  border: 1px solid rgba(201, 162, 75, 0.32);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-topbar-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.article-topbar-share-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.article-reading-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #c19639, #f4c96e 50%, #38bdf8 100%);
  width: 0%;
  z-index: 25;
  transition: width 0.05s linear;
}

/* Scroll Container */
.article-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
  scroll-behavior: smooth;
}

.article-editorial-shell {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 44px 24px 70px;
}

/* Article Header */
.editorial-header {
  margin-bottom: 34px;
}

.editorial-kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.editorial-category {
  display: inline-block;
  background: rgba(11, 42, 91, 0.08);
  color: #0B2A5B;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(11, 42, 91, 0.15);
}

.editorial-read-time {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.editorial-title {
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: #0B2A5B;
  line-height: 1.28;
  letter-spacing: -0.6px;
  margin-bottom: 24px;
  max-width: 980px;
}

.editorial-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e2e8f0;
}

.editorial-author-chip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(11, 42, 91, 0.07);
  color: #0B2A5B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(11, 42, 91, 0.12);
}

.author-info-box .author-name {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.3;
}

.author-info-box .author-title {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.editorial-date-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #64748b;
}

.editorial-date-group .meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.editorial-date-group .meta-sep {
  color: #cbd5e1;
}

.verified-badge {
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Hero Image (16:9 full article width) */
.editorial-hero-wrap {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #071d40;
  box-shadow: 0 16px 40px rgba(11, 42, 91, 0.08);
  margin-bottom: 44px;
  border: 1px solid #e2e8f0;
}

.editorial-hero-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.editorial-hero-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-hero-caption {
  padding: 12px 20px;
  font-size: 0.82rem;
  color: #64748b;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
}

/* 2-Column Editorial Grid */
.editorial-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: start;
  margin-bottom: 50px;
}

/* Main Content Column (760–820px) */
.editorial-content-column {
  max-width: 800px;
  width: 100%;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.82;
  color: #334155;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2,
.article-body h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: #0B2A5B;
  margin: 38px 0 16px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  scroll-margin-top: 80px;
}

.article-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 26px 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 18px 0 24px 24px;
  color: #334155;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Article Content Footer (Topics & Inline Share) */
.editorial-content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 0;
  margin-top: 36px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.editorial-topic-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tags-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topic-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.editorial-inline-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-inline-share .share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}

.btn-share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-share-icon:hover {
  background: #0B2A5B;
  color: #ffffff;
  border-color: #0B2A5B;
  transform: translateY(-2px);
}

/* Consultation CTA Block */
.article-cta-block {
  margin: 44px 0 0;
  background: linear-gradient(135deg, #071d40 0%, #0B2A5B 100%);
  border-radius: 18px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 12px 36px rgba(11, 42, 91, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.25);
}

.article-cta-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 260px;
}

.article-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(201, 162, 75, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid rgba(201, 162, 75, 0.35);
}

.article-cta-left h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.article-cta-left p {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.6;
}

.article-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cta-gold {
  background: linear-gradient(135deg, #d0a02b 0%, #e5ba5d 50%, #c19639 100%);
  color: #072237;
  font-weight: 700;
  border-radius: 50px;
  padding: 13px 26px;
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-gold:hover {
  background: linear-gradient(135deg, #e5ba5d 0%, #f4c96e 50%, #d0a02b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201, 162, 75, 0.55);
  color: #072237;
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50px;
  padding: 13px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  transition: all 0.25s ease;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sidebar Components */
.editorial-sidebar {
  width: 310px;
}

.sidebar-sticky-inner {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(11, 42, 91, 0.04);
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-card-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0B2A5B;
  letter-spacing: -0.2px;
}

.sidebar-card-header i {
  color: var(--gold);
  font-size: 0.95rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: #475569;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.45;
  transition: all 0.2s;
}

.toc-link i {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
}

.toc-link:hover {
  background: #f8fafc;
  color: var(--primary);
  padding-left: 14px;
}

.sidebar-share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-side-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-side-share.copy-link:hover {
  background: #0B2A5B;
  color: #ffffff;
  border-color: #0B2A5B;
}

.btn-side-share.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.btn-side-share.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.btn-side-share.twitter:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.authority-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.authority-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.authority-brand h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0B2A5B;
  margin-bottom: 2px;
}

.authority-brand span {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.authority-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 14px;
}

.authority-cta-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #b88628;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.2s;
}

.authority-cta-link:hover {
  color: #0B2A5B;
  gap: 9px;
}

/* Related Articles Section */
.editorial-related-section {
  margin-top: 50px;
  padding-top: 44px;
  border-top: 1.5px solid #e2e8f0;
}

.related-section-header {
  margin-bottom: 28px;
}

.related-section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: #0B2A5B;
  margin: 8px 0 6px;
  line-height: 1.3;
}

.related-section-subtitle {
  font-size: 0.94rem;
  color: #64748b;
}

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

.related-article-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(11, 42, 91, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 42, 91, 0.1);
  border-color: rgba(201, 162, 75, 0.4);
}

.related-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

.related-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 34, 55, 0.88);
  color: #f4c96e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.related-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 500;
}

.related-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0B2A5B;
  line-height: 1.42;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-read-more {
  color: #b88628;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}

.related-article-card:hover .related-card-read-more {
  gap: 9px;
  color: #0B2A5B;
}

/* Clear Back to All Articles Navigation */
.editorial-bottom-nav {
  text-align: center;
  margin-top: 48px;
  padding-bottom: 24px;
}

.btn-editorial-back {
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(11, 42, 91, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-editorial-back:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 42, 91, 0.2);
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideUpToast 0.3s ease;
  min-width: 260px;
  max-width: 440px;
}

.toast-success { background: #16a34a; color: #fff; }
.toast-error { background: var(--accent); color: #fff; }
.toast-info { background: var(--primary); color: #fff; }

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

/* ===== RESPONSIVE BREAKPOINTS (375px, 768px, 1280px) ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .commodity-custom-box { flex-direction: column; text-align: center; }
  .commodity-custom-box .custom-box-icon { margin: 0 auto; }

  /* Editorial Layout 1024px Adjustments */
  .editorial-main-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial-sidebar { width: 100%; }
  .sidebar-sticky-inner { position: static; }
  .related-cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .header-cta, .btn-header-pill { display: none; }
  .menu-toggle { display: flex; }

  .hero-content { padding: 60px 20px; }
  .hero-title { font-size: 2.2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-leadership-img { height: auto; }
  .about-image-frame { max-width: 100%; }

  .process-steps { flex-direction: column; align-items: center; }
  .process-arrow { transform: rotate(90deg); padding: 0 0 10px 0; }

  .commodities-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .posts-filter-bar { flex-direction: column; align-items: flex-start; }
  .search-box input { width: 160px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px 20px; }

  /* Editorial Layout 768px Adjustments */
  .article-breadcrumb { display: none; }
  .editorial-title { font-size: 1.65rem; }
  .editorial-meta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .article-editorial-shell { padding: 24px 16px 50px; }
  .article-cta-block { padding: 26px 20px; }
  .article-cta-actions { width: 100%; flex-direction: column; }
  .btn-cta-gold, .btn-cta-outline { width: 100%; justify-content: center; }
  .related-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-heading-row { gap: 12px; }
  .about-heading-logo { width: 44px; height: 44px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr; }
  .about-leadership-img { height: auto; }
  .about-image-badge { top: 12px; left: 12px; font-size: 0.78rem; padding: 5px 12px; }
  .about-image-caption { padding: 24px 16px 16px; }
  .about-image-caption strong { font-size: 0.9rem; }
  .about-image-caption span { font-size: 0.78rem; }
  .footer-content { grid-template-columns: 1fr; }

  /* Editorial Layout 480px Adjustments */
  .editorial-title { font-size: 1.45rem; line-height: 1.3; }
  .editorial-author-chip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sidebar-share-grid { grid-template-columns: 1fr; }
  .editorial-content-footer { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Article Inline Figures & Formatting (Nhiều ảnh xen kẽ trong bài viết)
   ========================================================================== */
.article-inline-figure {
  margin: 32px 0;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 42, 91, 0.08);
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.article-inline-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-inline-figure figcaption {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  line-height: 1.5;
}

.article-inline-figure figcaption i {
  color: var(--gold);
  margin-right: 6px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 14px;
  line-height: 1.4;
}

.article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 10px;
}

.article-callout {
  background: #f0f7ff;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.96rem;
  color: #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.65;
}

.article-callout i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   NEWS PAGINATION
   Client-side pagination controls for News & Insights section (#news)
   ========================================================================== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  padding: 10px 0;
}

.news-pagination .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.news-pagination .pagination-btn i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.news-pagination .pagination-prev i {
  margin-right: 4px;
}

.news-pagination .pagination-next i {
  margin-left: 4px;
}

.news-pagination .pagination-num {
  min-width: 42px;
  padding: 8px 12px;
}

/* Hover State */
.news-pagination .pagination-btn:not(:disabled):not(.disabled):not(.active):hover {
  background: #ffffff;
  border-color: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.22);
}

.news-pagination .pagination-prev:not(:disabled):not(.disabled):hover i {
  transform: translateX(-2px);
}

.news-pagination .pagination-next:not(:disabled):not(.disabled):hover i {
  transform: translateX(2px);
}

/* Active Page Pill */
.news-pagination .pagination-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(11, 42, 91, 0.28);
  cursor: default;
  pointer-events: none;
}

/* Disabled State (First/Last Page) */
.news-pagination .pagination-btn:disabled,
.news-pagination .pagination-btn.disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
  border-color: var(--border-color);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
}

/* Ellipsis */
.news-pagination .pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 42px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
  letter-spacing: 2px;
}

/* Visible Focus State (Accessibility) */
.news-pagination .pagination-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

/* Responsive Breakpoints: 1440px, 1024px, 768px, 390px */
@media (max-width: 1440px) {
  .news-pagination {
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  .news-pagination {
    margin-top: 36px;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .news-pagination {
    margin-top: 32px;
    gap: 6px;
  }
  
  .news-pagination .pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px 12px;
    font-size: 0.86rem;
  }

  .news-pagination .pagination-num {
    min-width: 40px;
    padding: 6px 10px;
  }
}

@media (max-width: 390px) {
  .news-pagination {
    margin-top: 26px;
    gap: 4px;
  }

  .news-pagination .pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .news-pagination .pagination-prev i {
    margin-right: 0;
  }

  .news-pagination .pagination-next i {
    margin-left: 0;
  }

  .news-pagination .pagination-btn-text {
    display: none; /* Hide 'Trước'/'Sau' text on tiny screens to avoid wrapping; keep 40px touch chevrons */
  }

  .news-pagination .pagination-ellipsis {
    min-width: 24px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   NEWS LIST v3
   Editorial / Corporate Magazine Redesign for #news (Presentation Only)
   Overrides legacy rules in lines 1275-1445 and 2878-2879
   ========================================================================== */

/* 1. Section Surface & Widened Container (1380px max-width on desktop) */
#news.news {
  background: linear-gradient(180deg, #f1f5f9 0%, var(--bg) 100%);
  position: relative;
}

#news > .container,
#news .news-container {
  max-width: 1380px;
  width: 100%;
  padding-left: clamp(16px, 3.5vw, 44px);
  padding-right: clamp(16px, 3.5vw, 44px);
}

/* 2. Editorial Header Area — Strict Left Alignment & Larger Clamp Title */
#news .news-top-bar {
  margin-bottom: 28px;
  text-align: left;
}

#news .news-header-content,
#news .news-top-bar > div {
  max-width: 860px;
  margin: 0;
  text-align: left;
}

#news .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem; /* 13px */
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78550a; /* WCAG AA 6.4:1 on warm gold tint */
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.22) 0%, rgba(232, 201, 122, 0.14) 100%);
  border: 1px solid rgba(201, 162, 75, 0.48);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 16px 0;
}

#news .section-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

#news .section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 14px 0;
  text-align: left;
}

#news .section-subtitle {
  margin: 0; /* Fixes legacy margin: 0 auto indentation bug */
  max-width: 780px;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.68;
  color: #475569; /* WCAG AA 7.1:1 */
  text-align: left;
}

/* 3. Filter Bar — >= 44px Touch Targets, Clear Active Pill & Search Focus */
#news .posts-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid rgba(11, 42, 91, 0.1);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(11, 42, 91, 0.04);
}

#news .category-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#news .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px; /* >= 44px touch height */
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

#news .pill:hover:not(.active) {
  background: #ffffff;
  border-color: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.18);
}

#news .pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(11, 42, 91, 0.26);
}

#news .pill.active::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

#news .pill:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

#news .search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px; /* >= 44px touch height */
  min-width: 300px;
  padding: 0 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

#news .search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.24);
}

#news .search-box i {
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

#news .search-box input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

#news .search-box input::placeholder {
  color: #64748b;
}

/* 4. Balanced 12-Column Grid — Zero Orphans for 1, 2, 3, 4, 5, 9+ Posts */
#news .posts-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Default Desktop Card: 3 columns (4 of 12 tracks) */
#news .post-card {
  grid-column: span 4;
  min-width: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11, 42, 91, 0.1);
  box-shadow: 0 4px 12px rgba(11, 42, 91, 0.04), 0 12px 28px rgba(11, 42, 91, 0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.32s ease;
  animation: newsCardFadeUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-index, 0) * 65ms);
}

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

/* Exactly 2 posts -> Balanced 2-column 50/50 row */
#news .posts-grid[data-count="2"] .post-card {
  grid-column: span 6;
}

/* Exactly 3 posts -> Balanced 3-column row */
#news .posts-grid[data-count="3"] .post-card {
  grid-column: span 4;
}

/* Featured Lead Card (1 post, or 4+ posts) -> Full-width Editorial Split */
#news .post-card.post-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  border-color: rgba(11, 42, 91, 0.14);
  box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06), 0 18px 42px rgba(11, 42, 91, 0.07);
}

/* 5 posts on single page -> Featured (12) + 2x2 grid (6+6, 6+6) */
#news .posts-grid[data-count="5"] .post-card:not(.post-card--featured) {
  grid-column: span 6;
}

/* Trailing-row balancers if POSTS_PER_PAGE is ever increased (6, 8, 9+ posts) */
#news .posts-grid:not([data-count="2"]):not([data-count="3"]) .post-card:nth-child(3n + 2):nth-last-child(2),
#news .posts-grid:not([data-count="2"]):not([data-count="3"]) .post-card:nth-child(3n + 2):nth-last-child(2) ~ .post-card {
  grid-column: span 6;
}

#news .posts-grid:not([data-count="2"]):not([data-count="3"]) .post-card:nth-child(3n + 1):nth-last-child(5) ~ .post-card {
  grid-column: span 6;
}

/* Card Hover & Keyboard Focus States */
#news .post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 75, 0.65);
  box-shadow: 0 14px 28px rgba(11, 42, 91, 0.08), 0 26px 54px rgba(11, 42, 91, 0.12);
}

#news .post-card:focus-within {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-color: var(--primary);
}

/* 5. Cover Media — 16:10 Ratio, Bottom Navy Gradient, Inner Border & Branded Fallback */
#news .post-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  border-bottom: 1px solid rgba(11, 42, 91, 0.08);
  flex-shrink: 0;
}

/* Subtle bottom navy gradient + soft inner border so white-bg photos never wash out */
#news .post-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 29, 64, 0.52) 0%,
    rgba(11, 42, 91, 0.12) 38%,
    rgba(11, 42, 91, 0.02) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(11, 42, 91, 0.12);
  pointer-events: none;
  z-index: 1;
}

#news .post-card.post-card--featured .post-card-media {
  height: 100%;
  min-height: 340px;
  border-bottom: none;
  border-right: 1px solid rgba(11, 42, 91, 0.08);
}

#news .post-img {
  width: 100%;
  height: 100%; /* Overrides legacy 190px fixed height */
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#news .post-card:hover .post-img {
  transform: scale(1.06);
}

#news .post-img-placeholder {
  width: 100%;
  height: 100%; /* Overrides legacy 190px fixed height */
  background: radial-gradient(circle at 50% 35%, #163a6e 0%, #0B2A5B 60%, #071d40 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

#news .post-fallback-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(201, 162, 75, 0.55);
}

#news .post-fallback-brand {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 201, 122, 0.92);
}

/* 6. Card Body, Distinct Category Badges (>= 13px, WCAG AA), Title & Excerpt */
#news .post-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

#news .post-card-body {
  padding: 24px 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

#news .post-card.post-card--featured .post-card-body {
  padding: 34px 36px 20px;
  gap: 14px;
}

#news .post-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#news .post-category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem; /* 13px minimum */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 5px 13px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Distinct Brand Colors per Category — All WCAG AA Verified */
#news .post-category-badge.badge--company-news {
  background: var(--primary); /* Navy #0B2A5B */
  color: #ffffff; /* Contrast 13.9:1 */
  border: 1px solid var(--primary);
}

#news .post-category-badge.badge--market-regulations {
  background: linear-gradient(135deg, #f3dc99 0%, #e6be61 100%); /* Brand Gold */
  color: #071d40; /* Navy-dark text on Gold -> Contrast 8.8:1 */
  border: 1px solid var(--gold);
}

#news .post-category-badge.badge--operations {
  background: var(--accent); /* Crimson Red #B71C1C */
  color: #ffffff; /* Contrast 6.38:1 */
  border: 1px solid var(--accent);
}

#news .post-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  color: #78550a;
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 5px 11px;
  border-radius: 999px;
}

#news .post-featured-tag i {
  color: var(--gold);
  font-size: 0.75rem;
}

/* Card Title: Reserved 3-line height, Bold Typography & Pure-CSS Sentence Case */
#news .post-title {
  flex: 0 0 auto; /* Overrides legacy flex: 1 that caused blank inner gaps */
  margin: 0;
  font-size: 1.1875rem; /* 19px */
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.36em * 3); /* Uniform reserved 3-line title area across row */
  max-height: calc(1.36em * 3);
  overflow-wrap: break-word;
  word-break: break-word;
  transition: color 0.22s ease;
}

#news .post-card:hover .post-title {
  color: var(--primary);
}

#news .post-title-text {
  display: block;
}

/* Pure CSS Sentence Case for ALL-CAPS Stored Titles (Does NOT alter stored text) */
#news .post-title.post-title--allcaps .post-title-text {
  text-transform: lowercase;
}

#news .post-title.post-title--allcaps .post-title-text::first-letter {
  text-transform: uppercase;
}

/* Featured Lead Card Title */
#news .post-card.post-card--featured .post-title {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.28;
  min-height: 0;
  max-height: calc(1.28em * 3);
}

/* Animated Gold Accent Line under Title */
#news .post-title-accent {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  flex-shrink: 0;
  transition: width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

#news .post-card:hover .post-title-accent,
#news .post-card:focus-within .post-title-accent {
  width: 92px;
}

/* Excerpt: Clamped to 3 lines with high-contrast slate body copy */
#news .post-excerpt {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.65;
  color: #475569; /* WCAG AA 7.58:1 on #fff */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Overrides legacy 2-line clamp */
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

#news .post-card.post-card--featured .post-excerpt {
  font-size: 1rem;
  line-height: 1.7;
}

/* 7. Meta Row (>= 13px, WCAG AA, 1-line Ellipsis Author) & Pinned Footer CTA */
#news .post-meta {
  margin-top: auto; /* Pins meta + footer to bottom of every card */
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84375rem; /* 13.5px >= 13px */
  font-weight: 500;
  color: #475569; /* WCAG AA 7.58:1 */
  min-width: 0;
}

#news .post-meta i {
  color: var(--primary);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

#news .post-meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

#news .post-meta .post-author-text {
  display: block; /* Overrides legacy .post-meta span { display: flex } */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#news .post-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

#news .post-card-footer {
  padding: 0 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#news .post-card.post-card--featured .post-card-footer {
  padding: 0 36px 32px;
}

#news .btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.22s ease;
}

#news .btn-read-more i {
  font-size: 0.85rem;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#news .post-card:hover .btn-read-more,
#news .btn-read-more:focus-visible {
  color: var(--accent);
}

#news .post-card:hover .btn-read-more i,
#news .btn-read-more:focus-visible i {
  transform: translateX(5px);
}

#news .btn-read-more:focus-visible {
  outline: none;
}

/* Empty Filter/Search State */
#news .posts-empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  color: #475569;
}

#news .posts-empty-state i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

#news .posts-empty-state p {
  font-size: 1rem;
  font-weight: 500;
}

/* Harmonize Pagination Touch Height with v3 Filter Bar */
#news .news-pagination .pagination-btn {
  min-width: 44px;
  height: 44px;
}

/* 8. Responsive Breakpoints: 1440px, 1024px (2-col), 768px (1-col), 390px */
@media (max-width: 1440px) {
  #news .posts-grid {
    gap: 24px;
  }

  #news .post-card.post-card--featured .post-card-body {
    padding: 28px 30px 18px;
  }

  #news .post-card.post-card--featured .post-card-footer {
    padding: 0 30px 26px;
  }
}

/* Tablet: 2-Column Balanced Grid */
@media (max-width: 1024px) {
  #news .posts-grid,
  #news .posts-grid[data-count="2"],
  #news .posts-grid[data-count="3"],
  #news .posts-grid[data-count="5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  /* Reset all cards to 1-track vertical cards on 2-col tablet */
  #news .posts-grid .post-card,
  #news .posts-grid[data-count="2"] .post-card,
  #news .posts-grid[data-count="3"] .post-card,
  #news .posts-grid[data-count="5"] .post-card:not(.post-card--featured),
  #news .posts-grid:not([data-count="2"]):not([data-count="3"]) .post-card:nth-child(3n + 2):nth-last-child(2),
  #news .posts-grid:not([data-count="2"]):not([data-count="3"]) .post-card:nth-child(3n + 2):nth-last-child(2) ~ .post-card,
  #news .posts-grid:not([data-count="2"]):not([data-count="3"]) .post-card:nth-child(3n + 1):nth-last-child(5) ~ .post-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  #news .post-card.post-card--featured .post-card-media {
    height: auto;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(11, 42, 91, 0.08);
  }

  #news .post-card.post-card--featured .post-card-body {
    padding: 24px 24px 16px;
  }

  #news .post-card.post-card--featured .post-card-footer {
    padding: 0 24px 22px;
  }

  #news .post-card.post-card--featured .post-title {
    font-size: 1.1875rem;
    line-height: 1.36;
    min-height: calc(1.36em * 3);
    max-height: calc(1.36em * 3);
  }

  /* When total card count on tablet is ODD (1, 3, 5, 7, 9), lead card spans 2 columns so all rows stay full */
  #news .posts-grid .post-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }

  #news .posts-grid .post-card:first-child:nth-last-child(odd) .post-title {
    font-size: 1.35rem;
    min-height: 0;
  }

  #news .search-box {
    min-width: 250px;
    flex: 1 1 260px;
  }
}

/* Mobile Landscape / Portrait: 1-Column Stack */
@media (max-width: 768px) {
  #news .posts-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 14px;
    margin-bottom: 28px;
  }

  #news .category-pills {
    width: 100%;
    gap: 8px;
  }

  #news .pill {
    min-height: 44px;
    padding: 9px 16px;
    font-size: 0.875rem;
  }

  #news .search-box {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 46px;
  }

  #news .search-box input {
    width: 100%; /* Overrides legacy 160px mobile rule */
    font-size: 1rem; /* 16px prevents iOS zoom on focus */
  }

  #news .posts-grid,
  #news .posts-grid[data-count="2"],
  #news .posts-grid[data-count="3"],
  #news .posts-grid[data-count="5"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #news .posts-grid .post-card {
    grid-column: 1 / -1 !important;
  }

  /* In 1-column stack, allow shorter titles to size naturally up to 3 lines */
  #news .post-title,
  #news .post-card.post-card--featured .post-title {
    font-size: 1.15rem;
    min-height: 0;
    max-height: calc(1.36em * 3);
  }

  #news .post-card-body,
  #news .post-card.post-card--featured .post-card-body {
    padding: 20px 20px 14px;
  }

  #news .post-card-footer,
  #news .post-card.post-card--featured .post-card-footer {
    padding: 0 20px 20px;
  }
}

/* Small Mobile (390px) */
@media (max-width: 390px) {
  #news > .container,
  #news .news-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #news .section-title {
    font-size: 1.65rem;
  }

  #news .posts-filter-bar {
    padding: 12px;
    border-radius: 14px;
  }

  #news .category-pills {
    gap: 6px;
  }

  #news .pill {
    flex: 1 1 calc(50% - 6px); /* Clean 2x2 touch pills at 390px with zero overflow */
    padding: 8px 12px;
    font-size: 0.84rem;
    text-align: center;
  }

  #news .post-card-body,
  #news .post-card.post-card--featured .post-card-body {
    padding: 18px 16px 14px;
  }

  #news .post-card-footer,
  #news .post-card.post-card--featured .post-card-footer {
    padding: 0 16px 18px;
  }

  #news .news-pagination .pagination-btn {
    min-width: 40px;
    height: 40px;
  }
}

/* 9. Accessibility — Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  #news .post-card {
    animation: none !important;
    transition: none !important;
  }

  #news .post-card:hover {
    transform: none !important;
  }

  #news .post-img,
  #news .post-title-accent,
  #news .btn-read-more i,
  #news .pill {
    transition: none !important;
  }

  #news .post-card:hover .post-img {
    transform: none !important;
  }
}


