/*
Theme Name: SEO Center Theme
Theme URI: https://github.com/datnguyendigital/seo-center-theme
Description: An ultra-lightweight, SEO-first, headless-like custom WordPress theme. Designed for maximum speed and bot indexability.
Version: 1.0.0
Author: SEO Center Team
Author URI: https://seocenter.vn
Text Domain: seo-center-theme
*/

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: #58BA40;
  --color-primary-hover: #4aa036;
  --color-primary-light: rgba(88, 186, 64, 0.05); /* Soft pastel green background */
  --color-primary-pastel: #e2f4dd;
  
  /* Neutral Palette */
  --color-text-main: #1d2b1a;
  --color-text-muted: #52634f;
  --color-bg-main: #ffffff;
  --color-bg-light: #f9fcf8; /* Light pastel background */
  --color-border: #e6ede4;
  
  /* Theme Dark Elements */
  --color-dark-bg: #0b1108;      /* Deep black-green for Hero */
  --color-dark-card: #151e11;    /* Slate-green card for dark background */
  --color-dark-footer: #11260e;  /* Deep green for Footer */
  --color-dark-text-muted: #8ca388;

  /* Gradients */
  --gradient-dark: linear-gradient(180deg, #0b1108 0%, #121c0e 100%);
  --gradient-soft: linear-gradient(135deg, #58BA40 0%, #7bd564 100%);
  --gradient-brand: linear-gradient(135deg, #2ea121 0%, #58BA40 60%, #76d35d 100%);
  --gradient-bg: linear-gradient(180deg, #f9fcf8 0%, #ffffff 100%);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-headline-max: 750; /* Capped at 750 */

  /* Visual Constraints */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 10px; /* Maximum 10px */
  --border-radius-pill: 9999px; /* Badges & circular elements */
  
  /* Box Shadow - Maximum opacity 0.008 (Strict master guideline constraint) */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.008);
  --shadow-hover: 0 8px 30px rgba(88, 186, 64, 0.008);
  --shadow-badge: 0 4px 15px rgba(0, 0, 0, 0.008);
  --shadow-input: 0 2px 8px rgba(0, 0, 0, 0.005);

  /* Transition Settings (GPU-accelerated ONLY) */
  --transition-smooth: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Note: Resets, Grid, Header & Hero styles are inlined as critical CSS in header.php */

/* New premium responsive footer styling */
.site-footer {
  background: 
    radial-gradient(at 0% 0%, rgba(88, 186, 64, 0.07) 0px, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(253, 216, 53, 0.05) 0px, transparent 50%), 
    #fafdf9;
  color: var(--color-text-main);
  border-top: 1px solid #e2f4dd;
  padding: 5rem 0 0 0;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

/* SECTION 1: NAVIGATION MENU COLUMNS */
.footer-top-section {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(88, 186, 64, 0.1);
  position: relative;
  z-index: 2;
}

.footer-top-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}

@media (min-width: 768px) {
  .footer-top-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-nav-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.9rem;
}

.footer-nav-list a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-list a:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.footer-nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* SECTION 2: BRANDING & TRUST BADGES */
.footer-middle-section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(88, 186, 64, 0.1);
  position: relative;
  z-index: 2;
}

.footer-middle-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .footer-middle-container {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  max-height: 38px;
  width: auto;
  display: block;
}

.footer-desc-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.footer-contact-details {
  margin-bottom: 2rem;
  width: 100%;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.footer-info-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-info-item a:hover {
  color: var(--color-primary);
}

.icon-contact-info {
  width: 17px;
  height: 17px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0;
}

/* Social Buttons */
.footer-social-wrap {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(88, 186, 64, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.18) rotate(8deg);
}

/* Google News Preferred badge */
.footer-google-badge-wrap {
  margin-top: 0.5rem;
}

.google-preferred-badge {
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: block;
}

.google-preferred-badge:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.footer-bottom-right .footer-google-badge-wrap {
  margin-top: -0.5rem;
}

.footer-bottom-right .google-preferred-badge {
  max-width: 140px;
  border-radius: 4px;
}

/* Badges Grid (Right Column) */
.footer-badges-col {
  display: flex;
  flex-direction: column;
}

.footer-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(88, 186, 64, 0.08);
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(88, 186, 64, 0.02);
}

.badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(88, 186, 64, 0.12);
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  grid-column: span 1;
}

.badge-item img {
  max-width: 100%;
  max-height: 40px;
  height: auto;
  object-fit: contain;
  display: block;
}

.badge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(88, 186, 64, 0.08);
  border-color: rgba(88, 186, 64, 0.35);
}

.badge-item.no-link {
  cursor: default;
}

/* SECTION 3: BOTTOM LEGAL AREA */
.footer-bottom-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(88, 186, 64, 0.05);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-bottom-left {
  max-width: 720px;
  flex: 1;
}

.footer-corp-title {
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.footer-corp-text {
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-copyright-text {
  color: #8fa38c;
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-bottom-right {
    align-items: flex-end;
  }
}

.footer-policy-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.footer-policy-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-policy-links a:hover {
  color: var(--color-primary);
}

.footer-dmca-badge {
  display: block;
  transition: transform 0.3s ease;
}

.footer-dmca-badge:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   4. UI COMPONENTS (SaaS / TECH DESIGN)
   ========================================================================== */

.card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg); /* 10px max */
  padding: 2.25rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-radius: var(--border-radius-pill);
  margin-bottom: 1.25rem;
}


/* ==========================================================================
   5. LANDING PAGE SPECIFIC SECTIONS
   ========================================================================== */

/* Hero Section (Dark background, matching mockup) */
.hero-section {
  padding: 6.5rem 0 5rem 0;
  background: var(--gradient-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .hero-layout { grid-template-columns: 1.2fr 0.8fr; }
}

.hero-text {
  text-align: left;
}

.hero-tagline {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* Style part of title in green */
.hero-title span {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-dark-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Metrics bar at the bottom of hero */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-val {
  font-size: 2.25rem;
  font-weight: var(--font-weight-headline-max);
  color: #ffffff;
  line-height: 1;
}

.metric-lbl {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-text-muted);
  letter-spacing: 0.1em;
}

/* Hero 3D media container */
.hero-image-container {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Awards Section (Minimal horizontal bar) */
.awards-section {
  padding: 2.5rem 0;
  border: none;
  background-color: var(--color-bg-main);
}

.awards-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
}

.award-item svg,
.award-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.award-item svg {
  fill: var(--color-primary);
  opacity: 0.85;
}

.award-info span {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
}

.award-info p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* Services Section (Split grid layout matching mockup) */
.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 992px) {
  .services-layout { grid-template-columns: 0.8fr 1.2fr; }
}

.services-left {
  position: sticky;
  top: 120px;
}

.services-btn {
  margin-top: 1rem;
}

.services-grid-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .services-grid-block { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform, opacity;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.3);
}

.service-card-top h3,
.service-card-top h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card-top p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card-link {
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Why Choose Us Section (Target & floating badges) */
.why-us-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 992px) {
  .why-us-layout { grid-template-columns: 1fr 1fr; }
}

/* Relative container wrapping the target illustration to position floating badges */
.why-us-visual-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
}

.why-us-target-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Floating badge styling */
.why-us-float-badge {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-badge);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 10;
  max-width: 200px;
  transition: var(--transition-smooth);
}

.why-us-float-badge:hover {
  transform: scale(1.03);
}

.why-us-float-badge strong {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.why-us-float-badge span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Absolute positions for float badges (only on desktop resolutions) */
@media (min-width: 576px) {
  .float-badge-1 { top: 5%; left: 0%; }
  .float-badge-2 { top: 15%; right: 0%; }
  .float-badge-3 { bottom: 10%; left: 0%; }
  .float-badge-4 { bottom: 5%; right: 5%; }
}

@media (max-width: 575px) {
  /* Stack them below the image on small displays to avoid clutter */
  .why-us-visual-container {
    padding: 0;
  }
  .why-us-float-badge {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 1rem;
    max-width: 100%;
  }
}

.why-us-right {
  text-align: left;
}

/* Bullets with green checkmarks */
.why-us-bullets {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-us-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: var(--font-weight-medium);
}

.why-us-bullet-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Testimonials Section (Quotes & 3 columns) */
.testimonials-section {
  background-color: var(--color-bg-light);
}

.testimonials-header-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .testimonials-header-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.testimonials-header-left {
  max-width: 650px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.25);
}

.testimonial-quote-icon {
  color: var(--color-primary-pastel);
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
  display: block;
}

.testimonial-rating {
  color: #ffb800;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: inline-flex;
  gap: 2px;
}

.testimonial-rating .star-item {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.testimonials-section.animate-active .testimonial-rating .star-item {
  opacity: 1;
  transform: scale(1);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-user img {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-pill);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-avatar {
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 2px;
}

.testimonial-user-info h3 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
}

.testimonial-user-info span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Brands & Press Section (Logo grids) */
.brands-section {
  padding: 4.5rem 0;
  background-color: var(--color-bg-main);
}

.brands-section h2.section-title {
  color: var(--color-primary) !important;
  font-size: 0.85rem !important;
  font-weight: var(--font-weight-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 0.75rem !important;
  display: inline-block !important;
}

.brands-section .section-title-wrapper {
  margin-bottom: 2.25rem !important;
}

.brands-bar {
  text-align: center;
  margin-bottom: 3.5rem;
}

.brands-bar:last-child {
  margin-bottom: 0;
}



.brands-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 0 10px;
}

.brand-logo-item img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: var(--transition-smooth);
}

.brand-logo-item img:hover {
  transform: scale(1.05);
}

/* fallback placeholder logo if image is empty */
.brand-logo-placeholder {
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  color: var(--color-text-muted);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

/* Blog / Latest News Section */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.blog-section.animate-active .blog-card {
  opacity: 1;
  transform: perspective(1000px) rotateX(0);
}

.blog-section.animate-active .blog-card:nth-child(1) { transition-delay: 0ms; }
.blog-section.animate-active .blog-card:nth-child(2) { transition-delay: 150ms; }
.blog-section.animate-active .blog-card:nth-child(3) { transition-delay: 300ms; }
.blog-section.animate-active .blog-card:nth-child(4) { transition-delay: 450ms; }

.blog-card .badge {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
}

.blog-section {
  padding: 3.5rem 0;
}

.blog-card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.blog-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--color-text-main);
  transition: color 0.3s ease;
}

.blog-card-content h3 a:hover,
.blog-card:hover .blog-card-content h3 a {
  color: var(--color-primary);
}

/* Photo Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* FAQ Accordion Section */
.faq-section {
  background-color: var(--color-bg-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.faq-header {
  width: 100%;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  transition: background-color 0.3s, color 0.3s;
}

.faq-header:hover {
  background-color: rgba(88, 186, 64, 0.04);
  color: var(--color-primary);
}

.faq-icon-plus {
  position: relative;
  width: 14px;
  height: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-icon-plus::before,
.faq-icon-plus::after {
  content: '';
  position: absolute;
  background-color: var(--color-text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

/* Horizontal line */
.faq-icon-plus::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Vertical line */
.faq-icon-plus::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

/* Collapsible content */
.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: max-height, opacity;
}

.faq-body {
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Active class for expanding accordion */
.faq-item.active {
  border-color: rgba(88, 186, 64, 0.35);
}

.faq-item.active .faq-icon-plus {
  transform: rotate(135deg);
}

.faq-item.active .faq-icon-plus::before,
.faq-item.active .faq-icon-plus::after {
  background-color: var(--color-primary);
}

.faq-item.active .faq-content {
  opacity: 1;
  /* JS will set max-height dynamically, fallback: */
  max-height: 500px;
}

/* Floating Hotline/Phone Button (mockup bottom right) */
.floating-hotline {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(88, 186, 64, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
  will-change: transform;
}

.floating-hotline:hover {
  transform: scale(1.08);
}

.floating-hotline svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  animation: phonePulse 1.8s infinite ease-in-out;
}

/* Pulse animation for the phone icon */
@keyframes phonePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   6. HOMEPAGE REDESIGN & CAROUSEL COMPONENT ENHANCEMENTS
   ========================================================================== */

/* Note: Centered Hero styles have been moved to critical.css and are loaded inline in head */

/* Why Choose Us Section with Staff Background Image */
.values-section-bg {
  position: relative;
  color: var(--color-text-main);
  overflow: hidden;
}

.values-section-bg-image {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 120px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
}

.values-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(249, 252, 248, 0.97) 0%, rgba(249, 252, 248, 0.9) 100%);
  z-index: 2;
}

.why-us-bg-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .values-section-overlay {
    background: linear-gradient(90deg, rgba(249, 252, 248, 0.97) 0%, rgba(249, 252, 248, 0.92) 50%, rgba(249, 252, 248, 0.8) 100%);
  }
  .why-us-bg-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.why-us-bg-text {
  text-align: left;
}

.why-us-btn {
  margin-top: 1.5rem;
}

.why-us-bg-text.text-white,
.why-us-bg-text .section-title.text-white {
  color: var(--color-text-main) !important;
}

.section-subtitle-white {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.text-white-muted {
  color: var(--color-text-muted) !important;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.why-us-bullets-white {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.why-us-bullet-item-white {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
}

.why-us-bullet-item-white svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: var(--color-primary) !important;
}

.why-us-bullet-item-white span {
  color: var(--color-text-main) !important;
}

/* Glassmorphism Badge Grid layout */
.why-us-bg-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 575px) {
  .why-us-bg-badges-grid {
    grid-template-columns: 1fr;
  }
}

.why-us-glass-badge {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(88, 186, 64, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease !important;
  opacity: 0;
  transform: translateY(20px);
}

.why-us-bg-badges-grid.animate-active .why-us-glass-badge {
  opacity: 1;
  transform: translateY(0);
}

.why-us-bg-badges-grid .why-us-glass-badge:nth-child(1) { transition-delay: 100ms; }
.why-us-bg-badges-grid .why-us-glass-badge:nth-child(2) { transition-delay: 250ms; }
.why-us-bg-badges-grid .why-us-glass-badge:nth-child(3) { transition-delay: 400ms; }
.why-us-bg-badges-grid .why-us-glass-badge:nth-child(4) { transition-delay: 550ms; }

.why-us-glass-badge:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(88, 186, 64, 0.4);
  transform: translateY(-8px) !important;
}

.badge-icon-bullet {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.why-us-glass-badge strong {
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: var(--font-weight-bold);
}

.why-us-glass-badge span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Generic Carousel Wrapper Styling */
.testimonials-carousel-container,
.press-carousel-container,
.blog-carousel-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Partners Grid Slider Styles */
.partners-grid-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.partners-grid-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  width: 100%;
}

.partners-grid-page {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.partners-logos-grid-6col {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.75rem 1.25rem;
  width: 100%;
  justify-items: center;
  align-items: center;
}

@media (max-width: 991px) {
  .partners-logos-grid-6col {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .partners-logos-grid-6col {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .partners-logos-grid-6col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partners-dots-indicator {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.partners-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.partners-dot:hover {
  transform: scale(1.2);
}

.partners-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  gap: 1.5rem;
}

/* Slide item sizing */
#testimonialsCarousel .slide-item,
#pressCarousel .slide-item,
#blogCarousel .slide-item {
  width: calc((100% - 1.5rem * 2) / 3);
  flex-shrink: 0;
}

#partnersCarousel .slide-item {
  width: calc((100% - 1.5rem * 4) / 5);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  #testimonialsCarousel .slide-item {
    width: 100%;
  }
  #partnersCarousel .slide-item {
    width: calc((100% - 1.5rem * 2) / 3);
  }
  #pressCarousel .slide-item,
  #blogCarousel .slide-item {
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 767px) {
  #partnersCarousel .slide-item {
    width: calc((100% - 1.5rem) / 2);
  }
  #pressCarousel .slide-item,
  #blogCarousel .slide-item {
    width: 100%;
  }
}

/* Navigation buttons and dots indicator */
.carousel-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.carousel-control-btn {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.carousel-control-btn:hover:not(:disabled) {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.carousel-control-btn:hover:not(:disabled) svg {
  fill: #ffffff;
}

.carousel-control-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-control-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text-main);
  transition: var(--transition-smooth);
}

.carousel-dots-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-pill);
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--color-primary);
  width: 18px;
}

/* Partners Arrow controls */
.carousel-nav-arrows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: -15px;
  right: -15px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 1024px) {
  .carousel-nav-arrows {
    display: none;
  }
}

.carousel-arrow {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.carousel-arrow:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.carousel-arrow:hover svg {
  fill: #ffffff;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-main);
  transition: var(--transition-smooth);
}

/* ZoneCloud Style Press Cards */
.press-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.25);
}

.press-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.press-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Overlapping outlet logo badge styling */
.press-card-logo-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background: #ffffff;
  padding: 0.45rem 1.25rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 32px;
}

.press-card-logo-badge img {
  max-height: 24px;
  width: auto;
  object-fit: contain;
}

.press-badge-text {
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.press-card-content {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Bold blue ZoneCloud links */
.press-card-title {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
}

.press-card-title a {
  color: #0056b3; /* Clean news article blue link */
}

.press-card-title a:hover {
  text-decoration: underline;
  color: #004085;
}

.press-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.gallery-section {
  background-color: var(--color-bg-main);
}

/* Dense Asymmetrical Photo Gallery Grid */
.gallery-dense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 15px;
  margin-top: 3rem;
}

.gallery-dense-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-dense-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Row-based entrance default states */
/* Row 1 slide-left (entrance from right) */
.gallery-dense-item:nth-child(1),
.gallery-dense-item:nth-child(2),
.gallery-dense-item:nth-child(3) {
  transform: translateX(45px);
}

/* Row 2 slide-right (entrance from left) */
.gallery-dense-item:nth-child(4),
.gallery-dense-item:nth-child(5),
.gallery-dense-item:nth-child(6) {
  transform: translateX(-45px);
}

/* Row 3 fade-up */
.gallery-dense-item:nth-child(7),
.gallery-dense-item:nth-child(8),
.gallery-dense-item:nth-child(9),
.gallery-dense-item:nth-child(10) {
  transform: translateY(45px);
}

/* Active states when section triggers */
.gallery-section.animate-active .gallery-dense-item {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays for beautiful loading flow */
.gallery-section.animate-active .gallery-dense-item:nth-child(1) { transition-delay: 50ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(2) { transition-delay: 150ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(3) { transition-delay: 250ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(4) { transition-delay: 100ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(5) { transition-delay: 200ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(6) { transition-delay: 300ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(7) { transition-delay: 150ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(8) { transition-delay: 250ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(9) { transition-delay: 350ms; }
.gallery-section.animate-active .gallery-dense-item:nth-child(10) { transition-delay: 450ms; }

/* Grid dense cell span layout to create stylish asymmetry */
.gallery-dense-item:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-dense-item:nth-child(5n+3) {
  grid-row: span 2;
}

.gallery-dense-item:nth-child(5n+4) {
  grid-column: span 2;
}

.gallery-dense-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.35);
  z-index: 10;
}

.gallery-dense-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.gallery-dense-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: #ffffff;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-dense-item:hover .gallery-overlay-content {
  transform: translateY(0);
}

.gallery-overlay-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(88, 186, 64, 0.3);
}

.gallery-overlay-zoom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
}

/* Lightbox Modal Styling */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.gallery-lightbox.active .lightbox-content img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 100000;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  z-index: 100000;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.lightbox-prev {
  left: 2.5rem;
}

.lightbox-next {
  right: 2.5rem;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-close { top: 1rem; right: 1.5rem; }
}

@media (max-width: 575px) {
  .gallery-dense-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-dense-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Motion Entrance Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.animate-active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

.animate-on-scroll.animate-left {
  transform: translateX(-50px) translateY(0);
}

.animate-on-scroll.animate-right {
  transform: translateX(50px) translateY(0);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.93) translateY(0);
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Custom Homepage Content Sections Styling */
.why-hire-section {
  background: linear-gradient(-45deg, #f9fafb, #f3f4f6, #f9fafb, #ffffff);
  background-size: 400% 400%;
  animation: movingGradientBg 20s ease infinite;
}

@keyframes movingGradientBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.premium-light-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-subtle);
}

.premium-light-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.25);
}

.why-hire-section.animate-active .premium-light-card:nth-child(1) { transition-delay: 0ms; }
.why-hire-section.animate-active .premium-light-card:nth-child(2) { transition-delay: 150ms; }
.why-hire-section.animate-active .premium-light-card:nth-child(3) { transition-delay: 300ms; }

.card-icon-wrap {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.criteria-section {
  background-color: var(--color-bg-light);
}

@media (min-width: 992px) {
  .criteria-section .grid-4 {
    position: relative;
  }
  
  .criteria-section .grid-4::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(to right, rgba(88, 186, 64, 0.1), var(--color-primary), rgba(88, 186, 64, 0.1));
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .criteria-section.animate-active .grid-4::before {
    transform: scaleX(1);
  }
}

.criteria-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-subtle);
}

.criteria-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.3);
}

.criteria-section.animate-active .criteria-card:nth-child(1) { transition-delay: 100ms; }
.criteria-section.animate-active .criteria-card:nth-child(2) { transition-delay: 300ms; }
.criteria-section.animate-active .criteria-card:nth-child(3) { transition-delay: 500ms; }
.criteria-section.animate-active .criteria-card:nth-child(4) { transition-delay: 700ms; }

.criteria-num {
  font-size: 2.5rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.8;
}

.criteria-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.criteria-quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.criteria-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   CASE STUDIES SECTION STYLING (SaaS / Vercel style)
   ========================================================================== */
.cases-section {
  background-color: var(--color-bg-main);
}

.cases-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 3.5rem;
}

.case-card-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.case-card-split:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.25);
}

@media (min-width: 992px) {
  .case-card-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .case-card-split.case-right {
    direction: rtl;
  }
  .case-card-split.case-right .case-details,
  .case-card-split.case-right .case-visual {
    direction: ltr;
  }
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 4px;
}

.case-title {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--color-text-main);
}

.case-situation-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .case-situation-split {
    grid-template-columns: 1fr 1fr;
  }
}

.situation-box {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
}

.situation-box.after {
  border-color: var(--color-primary-pastel);
  background-color: var(--color-primary-light);
}

.situation-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: #e2e8f0;
  border-radius: var(--border-radius-sm);
}

.situation-label.highlight {
  background: var(--color-primary-pastel);
  color: var(--color-primary-hover);
}

.situation-box p {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0;
  color: var(--color-text-main);
}

.case-metrics-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

@media (min-width: 576px) {
  .case-metrics-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.metric-col h4,
.case-metric-title {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.metric-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-col li {
  font-size: 0.875rem;
  color: var(--color-text-main);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.metric-col.target li::before {
  content: "○";
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.bullet-check {
  fill: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.case-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-image-wrapper {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  margin: 0; /* Reset browser default figure margins */
}

.case-chart-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

.case-chart-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  clip-path: inset(0 100% 0 0);
  transform: scale(0.9);
  opacity: 0;
  transition: clip-path 1.4s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.cases-section.animate-active .case-chart-img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  opacity: 1;
}

.case-card-split:hover .case-chart-img {
  transform: scale(1.06);
}

/* ==========================================================================
   7. MOBILE RESPONSIVE LAYOUT FIXES (BELOW-THE-FOLD)
   ========================================================================== */
@media (max-width: 768px) {
  /* Section Padding */
  .section-padding {
    padding: 3.5rem 0 !important;
  }
  
  .section-title-wrapper {
    margin-bottom: 2.25rem !important;
    padding: 0 1rem !important;
  }
  
  /* Heading typography overrides - absolute fix for vertical overlaps */
  .section-title,
  h2.section-title,
  .criteria-section h2,
  .faq-section h2,
  .gallery-section h2,
  .blog-section h2,
  .testimonials-section h2,
  .brands-section h2 {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }
  
  .section-subtitle,
  .section-subtitle-white,
  .brands-section h2.section-title {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    letter-spacing: 0.1em !important;
  }
  
  .brands-section .section-title-wrapper {
    margin-bottom: 1.5rem !important;
  }
  
  /* Services Section layout and card heights/overlap fixes */
  .services-layout {
    gap: 2rem !important;
  }
  
  .services-left {
    position: relative !important;
    top: auto !important;
    text-align: center !important;
  }
  
  .services-left .services-btn {
    display: none !important; /* Hide duplicate desktop button from left panel */
  }
  
  .services-grid-block {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  .service-card {
    padding: 1.5rem !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  .service-card-top h3 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
    height: auto !important;
  }
  
  .service-card-top p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    display: block !important;
    height: auto !important;
  }
  
  /* Why Choose Us Section with Background Image */
  .why-us-bg-layout {
    gap: 2.5rem !important;
  }
  
  .why-us-bg-text {
    text-align: center !important;
  }
  
  .why-us-bullets-white {
    margin: 1.5rem 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  
  .why-us-bullet-item-white {
    font-size: 0.9rem !important;
  }
  
  .why-us-bg-badges-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .why-us-glass-badge {
    padding: 1.25rem !important;
    text-align: left !important;
  }
  
  /* Testimonials Section */
  .testimonials-header-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .testimonials-header-left {
    max-width: 100% !important;
  }
  
  .testimonial-card {
    padding: 1.5rem !important;
  }
  
  .testimonial-quote-icon {
    font-size: 2.25rem !important;
  }
  
  .testimonial-text {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
  }
  
  /* Brand Logos grid on mobile */
  .brands-logos-grid {
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
  
  .brand-logo-item {
    height: 50px !important;
  }
  
  .brand-logo-item img {
    max-height: 38px !important;
  }
  
  /* Brands Marquee Mobile spacing */
  .brands-marquee {
    padding: 1rem 0 !important;
  }
  .brands-marquee-track {
    gap: 2.5rem !important;
  }
  
  /* Press Section Carousel */
  .press-card-content {
    padding: 1.25rem !important;
  }
  
  .press-card-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
  }
  
  .press-card-excerpt {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }
  
  /* Blog / Resources Section */
  .blog-card-content {
    padding: 1.25rem !important;
  }
  
  .blog-card-content h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  
  .premium-light-card {
    padding: 1.5rem !important;
    gap: 0.75rem !important;
  }
  
  .premium-light-card h3 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
  }
  
  .premium-light-card p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }
  
  /* Selection Criteria Cards */
  .criteria-card {
    padding: 1.5rem !important;
    gap: 0.5rem !important;
  }
  
  .criteria-num {
    font-size: 2rem !important;
  }
  
  .criteria-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  
  .criteria-card p {
    font-size: 0.825rem !important;
    line-height: 1.5 !important;
  }
  
  /* Gallery section grid */
  .gallery-dense-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 100px !important;
    gap: 8px !important;
  }
  
  .gallery-dense-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  
  /* FAQ Accordion items */
  .faq-header {
    font-size: 0.9rem !important;
    padding: 1rem 1.25rem !important;
  }
  
  .faq-body {
    padding: 0 1.25rem 1.25rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  
  /* Floating Hotline styling */
  .floating-hotline {
    bottom: 20px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
  }
  
  .floating-hotline svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Footer responsive grid */
  .footer-container {
    gap: 2rem !important;
    padding: 0 1rem !important;
  }
  
  .footer-widget h3 {
    margin-bottom: 1rem !important;
  }

  /* Case Studies Section mobile layout */
  .cases-wrapper {
    gap: 2.5rem !important;
    margin-top: 2rem !important;
  }
  
  .case-card-split {
    padding: 1.5rem !important;
    gap: 2rem !important;
    grid-template-columns: 1fr !important;
  }
  
  .case-logo-icon {
    width: 36px !important;
    height: 36px !important;
  }
  
  .case-title {
    font-size: 1.25rem !important;
  }
  
  .case-situation-split {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .situation-box {
    padding: 1rem !important;
  }
  
  .case-metrics-compare {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding-top: 1.25rem !important;
  }
  
  .case-image-wrapper {
    padding: 0.5rem !important;
  }
}

/* Ensure links in headings inherit parent text colors for visual consistency */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.case-title a,
.case-metric-title a {
  color: inherit !important;
  text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
.case-title a:hover,
.case-metric-title a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   8. ABOUT US TEMPLATE SECTIONS STYLING (Eco-Tech & Clean SaaS)
   ========================================================================== */

/* Vision, Mission & Values */
.vision-mission-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: 3rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .vision-mission-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vision-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.25);
}

.vision-card h2 {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vision-card h2 svg {
  width: 26px;
  height: 26px;
  fill: var(--color-primary);
}

.vision-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Values Full Width Section Card */
.values-full-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.values-full-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.25);
}

.values-section-title {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 2.5rem;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.values-section-title svg {
  width: 26px;
  height: 26px;
  fill: var(--color-primary);
}

.values-grid-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  padding: 1.75rem;
  border-radius: var(--border-radius-md);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.value-item-col:hover {
  background: #ffffff;
  border-color: rgba(88, 186, 64, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.value-item-col svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
  margin-bottom: 0.25rem;
}

.value-item-col h3 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0;
  line-height: 1.4;
}

.value-item-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Background Blur Blobs */
.bg-blur-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 186, 64, 0.05) 0%, rgba(88, 186, 64, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.blob-top-left { top: 10%; left: -100px; }
.blob-bottom-right { bottom: 10%; right: -100px; }
.blob-center-left { top: 45%; left: -150px; }
.blob-center-right { top: 60%; right: -150px; }

/* Cinematic Hero Team Image Animation */
@keyframes cinematicPan {
  0% {
    transform: scale(1.06) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
.hero-team-full-img {
  animation: cinematicPan 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}

/* Cascading scroll reveal delays */
.vision-mission-row > :nth-child(1) { transition-delay: 0.1s; }
.vision-mission-row > :nth-child(2) { transition-delay: 0.2s; }

.values-grid-cols > :nth-child(1) { transition-delay: 0.1s; }
.values-grid-cols > :nth-child(2) { transition-delay: 0.2s; }
.values-grid-cols > :nth-child(3) { transition-delay: 0.3s; }

.team-grid > :nth-child(1) { transition-delay: 0.05s; }
.team-grid > :nth-child(2) { transition-delay: 0.1s; }
.team-grid > :nth-child(3) { transition-delay: 0.15s; }
.team-grid > :nth-child(4) { transition-delay: 0.2s; }
.team-grid > :nth-child(5) { transition-delay: 0.25s; }
.team-grid > :nth-child(6) { transition-delay: 0.3s; }

.services-grid-block > :nth-child(1) { transition-delay: 0.05s; }
.services-grid-block > :nth-child(2) { transition-delay: 0.1s; }
.services-grid-block > :nth-child(3) { transition-delay: 0.15s; }
.services-grid-block > :nth-child(4) { transition-delay: 0.2s; }
.services-grid-block > :nth-child(5) { transition-delay: 0.25s; }
.services-grid-block > :nth-child(6) { transition-delay: 0.3s; }

.roadmap-timeline > :nth-child(1) { transition-delay: 0.05s; }
.roadmap-timeline > :nth-child(2) { transition-delay: 0.1s; }
.roadmap-timeline > :nth-child(3) { transition-delay: 0.15s; }
.roadmap-timeline > :nth-child(4) { transition-delay: 0.2s; }
.roadmap-timeline > :nth-child(5) { transition-delay: 0.25s; }
.roadmap-timeline > :nth-child(6) { transition-delay: 0.3s; }
.roadmap-timeline > :nth-child(7) { transition-delay: 0.35s; }

.awards-grid > :nth-child(1) { transition-delay: 0.05s; }
.awards-grid > :nth-child(2) { transition-delay: 0.1s; }
.awards-grid > :nth-child(3) { transition-delay: 0.15s; }
.awards-grid > :nth-child(4) { transition-delay: 0.2s; }

/* Our Experience Section split */
.exp-section {
  background-color: var(--color-bg-light);
}

.exp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .exp-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.exp-image-wrap {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
}

.exp-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Team section */
.team-section {
  background-color: var(--color-bg-main);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.25rem;
  margin-top: 3.5rem;
}

.team-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.2);
}

.team-member-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
}

.team-member-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover .team-member-img-wrapper img {
  transform: scale(1.03);
}

.team-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.team-member-name {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0;
}

.team-member-role {
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-member-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.team-member-socials {
  display: flex;
  gap: 0.85rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
}

.team-member-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-pill);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.team-member-socials a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(88, 186, 64, 0.25);
  transform: translateY(-2px);
}

.team-member-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Roadmap timeline horizontal/vertical */
.roadmap-section {
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
  padding-top: 1.5rem;
}

@media (min-width: 1025px) {
  .roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 4%;
    right: 4%;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
  }
}

.roadmap-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roadmap-step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-pill);
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.2);
  border: 4px solid var(--color-bg-light);
  transition: var(--transition-smooth);
  flex-shrink: 0 !important; /* Force perfect circle */
}

.roadmap-step:hover .roadmap-step-num {
  transform: scale(1.1);
  background: var(--color-primary-hover);
}

.roadmap-step-title {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.roadmap-step-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 180px;
}

@media (max-width: 1024px) {
  .roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-left: 2.5rem;
    padding-top: 0;
    margin-top: 2.5rem;
  }
  
  .roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--color-border);
    z-index: 1;
  }
  
  .roadmap-step {
    text-align: left;
    align-items: flex-start;
  }
  
  .roadmap-step-num {
    position: absolute;
    left: -2.5rem;
    top: -2px;
    margin-bottom: 0;
    border-color: var(--color-bg-light);
  }
  
  .roadmap-step-desc {
    max-width: 100%;
  }
}

/* Awards / Achievements Section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.award-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.2);
}

.award-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background: var(--color-primary-light);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(88, 186, 64, 0.1);
  padding: 10px;
}

.award-icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.award-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary);
}

.award-card h3 {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0;
  line-height: 1.4;
  min-height: 3rem; /* Align descriptions by forcing same title height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Company details */
.company-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .company-info-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.company-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.company-info-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.85rem;
  font-size: 0.95rem;
  align-items: center;
}

.company-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.company-info-label {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}

.company-info-value {
  color: var(--color-text-main);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

.company-office-image-wrapper {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
}

.company-office-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .company-info-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* About Page Hero Stats 3-Column Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* About Page Hero Centered Light Theme Overrides */
.about-hero-section .hero-title {
  font-size: 3.75rem;
  line-height: 1.15;
  color: var(--color-primary);
  font-weight: var(--font-weight-headline-max);
  margin-bottom: 1rem;
}
.about-hero-section .hero-title .hero-line-1,
.about-hero-section .hero-title .hero-line-2 {
  color: var(--color-primary);
}
.about-hero-section .hero-tagline {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.15em;
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-transform: uppercase;
}
.about-hero-section .hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto 2.25rem auto;
}
.about-hero-section .why-us-glass-badge {
  text-align: center;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}
.about-hero-section .metric-val {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}
.about-hero-section .metric-lbl {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* About Hero Layout & Structure (Uncoupled from Homepage) */
.about-hero-section {
  padding: 6.5rem 0 0 0;
  background: linear-gradient(180deg, rgba(88, 186, 64, 0.04) 0%, var(--color-bg-main) 100%);
  color: var(--color-text-main);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero-centered-text {
  max-width: 800px;
  margin: 0 auto;
}
.about-hero-centered-ctas {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.about-hero-centered-image-container-full {
  width: 100%;
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1.5rem;
  position: relative;
}
.about-hero-centered-image-container-full .about-hero-centered-img-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(88, 186, 64, 0.15);
  box-shadow: var(--shadow-subtle);
}
.about-hero-centered-img-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--color-bg-main) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 3.5rem 0 0 0 !important;
  }
  .about-hero-section .hero-title {
    font-size: 2.15rem !important;
    line-height: 1.25 !important;
    padding: 0 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .about-hero-section .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem !important;
  }
  .about-hero-centered-ctas {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0 auto 1rem auto !important;
    gap: 0.75rem !important;
  }
  .about-hero-centered-ctas .btn {
    width: 100% !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  .about-hero-centered-image-container-full .about-hero-centered-img-wrapper {
    height: auto !important;
  }
  .about-hero-centered-img-fade {
    height: 40px !important;
  }
  .about-stats-container {
    margin-top: 1.5rem !important;
  }
}
.about-stats-container {
  margin-top: -5rem;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   9. V3 RESTRUCTURING & SAAS MOTION TIMELINE
   ========================================================================== */

/* CEO Feature Standalone Banner */
.ceo-feature-section {
  background: linear-gradient(135deg, #0b1108 0%, #152211 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(88, 186, 64, 0.2);
  padding: 3.5rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-subtle);
  will-change: transform, opacity;
}
@media (min-width: 992px) {
  .ceo-feature-section {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.ceo-feature-content {
  position: relative;
  z-index: 2;
  text-align: left;
}
.ceo-feature-title {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: var(--font-weight-headline-max);
  margin-bottom: 0.5rem;
}
.ceo-feature-subtitle {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  display: block;
}
.ceo-feature-divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin-bottom: 2rem;
  border-radius: var(--border-radius-sm);
}
.ceo-feature-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-dark-text-muted);
  margin-bottom: 1.5rem;
}
.ceo-feature-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid rgba(88, 186, 64, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background-color: var(--color-dark-card);
  aspect-ratio: 4 / 5;
}
.ceo-feature-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.ceo-feature-section:hover .ceo-feature-image-wrapper img {
  transform: scale(1.04);
}

/* Symmetrical 2x2 Team Grid for Managers/Leaders */
.remaining-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .remaining-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Serpentine Timeline Layout (Desktop) */
@media (min-width: 1025px) {
  .roadmap-timeline-serpentine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 2rem;
    position: relative;
    margin-top: 4.5rem;
  }
  
  .roadmap-timeline-serpentine .roadmap-step-1 { grid-row: 1; grid-column: 1; }
  .roadmap-timeline-serpentine .roadmap-step-2 { grid-row: 1; grid-column: 2; }
  .roadmap-timeline-serpentine .roadmap-step-3 { grid-row: 1; grid-column: 3; }
  .roadmap-timeline-serpentine .roadmap-step-4 { grid-row: 1; grid-column: 4; }
  .roadmap-timeline-serpentine .roadmap-step-5 { grid-row: 2; grid-column: 4; }
  .roadmap-timeline-serpentine .roadmap-step-6 { grid-row: 2; grid-column: 3; }
  .roadmap-timeline-serpentine .roadmap-step-7 { grid-row: 2; grid-column: 2; }
  
  /* Disable old straight CSS lines in favor of curved serpentine SVG pathing */
  .roadmap-timeline-serpentine .roadmap-step-num::after,
  .roadmap-timeline-serpentine .roadmap-step-num::before {
    content: none !important;
  }
}

@media (max-width: 1024px) {
  .roadmap-timeline-serpentine {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-left: 2.5rem;
    padding-top: 0;
    margin-top: 2.5rem;
    position: relative;
  }
  .roadmap-timeline-serpentine::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--color-border);
    z-index: 1;
  }
  .roadmap-timeline-serpentine .roadmap-step {
    text-align: left;
    align-items: flex-start;
    position: relative;
  }
  .roadmap-timeline-serpentine .roadmap-step-num {
    position: absolute;
    left: -2.5rem;
    top: -2px;
    margin-bottom: 0;
    border-color: var(--color-bg-light);
  }
  .roadmap-timeline-serpentine .roadmap-step-desc {
    max-width: 100%;
  }
}

/* Fallback timeline line hidden when serpentine starts */
@media (min-width: 1025px) {
  .roadmap-timeline::before {
    display: none !important;
  }
}

/* Progressive delays for sequential animation */
.roadmap-step-1 { transition-delay: 0.1s !important; }
.roadmap-step-2 { transition-delay: 0.2s !important; }
.roadmap-step-3 { transition-delay: 0.3s !important; }
.roadmap-step-4 { transition-delay: 0.4s !important; }
.roadmap-step-5 { transition-delay: 0.5s !important; }
.roadmap-step-6 { transition-delay: 0.6s !important; }
.roadmap-step-7 { transition-delay: 0.7s !important; }

/* ==========================================================================
   10. V3 METHODOLOGY & CORE SERVICES SPLIT SECTIONS
   ========================================================================== */

/* Methodology Section V3 */
.methodology-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-main);
}

.methodology-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .methodology-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.methodology-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* Core Services Section V3 */
.core-services-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

@media (min-width: 992px) {
  .core-services-section .services-grid-block {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ==========================================================================
   11. ABOUT TEMPLATE INTERACTIVE SAAS ANIMATIONS
   ========================================================================== */

/* 1. Header Hover & Scroll Blur Overrides */
.site-header {
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease !important;
}
.site-header.header-scrolled {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-subtle) !important;
}
.site-header .header-cta .btn-primary {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease !important;
}
.site-header .header-cta .btn-primary:hover {
  transform: scale(1.05) translateY(-1px) !important;
  box-shadow: 0 8px 25px rgba(88, 186, 64, 0.3) !important; /* Prominent green shadow for hover action */
}

/* ==========================================================================
   MEGAMENU NAVIGATION STYLING
   ========================================================================== */
.main-navigation ul {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation ul li {
  position: relative;
}

/* Parent menu link with dropdown indicator */
.main-navigation ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-smooth);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--color-primary);
}

.dropdown-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

.main-navigation ul li:hover > a .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Megamenu Container */
.megamenu-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 580px;
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.008); /* Opacity strictly under 0.008 */
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  z-index: 1000;
  will-change: transform, opacity;
}

.main-navigation ul li:hover .megamenu-dropdown {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Grid layout for megamenu columns */
.main-navigation ul.megamenu-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-direction: unset !important;
}

/* Megamenu sub-item link */
.megamenu-item-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  padding: 0.85rem !important;
  border-radius: var(--border-radius-md);
  background-color: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease !important;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.megamenu-item-link:hover {
  background-color: var(--color-primary-light) !important;
  transform: translateY(-2px);
}

/* Icon box wrapper */
.menu-item-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.megamenu-item-link:hover .menu-item-icon-wrapper {
  transform: scale(1.08);
}

.menu-item-icon-wrapper svg {
  width: 20px;
  height: 20px;
  display: block;
}

.menu-item-icon-wrapper svg path {
  fill: currentColor;
}

.menu-item-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Text elements */
.menu-item-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.menu-item-text-wrapper .menu-item-title {
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-main);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.megamenu-item-link:hover .menu-item-title {
  color: var(--color-primary-hover);
}

.menu-item-text-wrapper .menu-item-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  font-weight: var(--font-weight-regular);
}

/* Responsive Overrides for Mobile Navigation */
@media (max-width: 768px) {
  .main-navigation ul {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  
  .main-navigation ul li {
    width: 100%;
  }
  
  .main-navigation ul li a {
    padding: 0.75rem 0 !important;
    width: 100%;
    justify-content: space-between;
  }
  
  .megamenu-dropdown {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    background-color: transparent !important;
    display: none !important;
  }
  
  .main-navigation ul li.submenu-open .megamenu-dropdown {
    display: block !important;
  }
  
  .main-navigation ul.megamenu-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  
  .megamenu-item-link {
    padding: 0.5rem !important;
    justify-content: flex-start !important;
  }
  
  .menu-item-text-wrapper .menu-item-desc {
    display: none; /* Hide descriptions to save space */
  }
}

/* 2. Hero Section Animations */
.about-hero-section .hero-title .hero-line-1,
.about-hero-section .hero-title .hero-line-2 {
  display: block;
  opacity: 0;
  filter: blur(20px);
  transform: translateY(15px);
  animation: blurRevealHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.about-hero-section .hero-title .hero-line-1 {
  animation-delay: 100ms;
}
.about-hero-section .hero-title .hero-line-2 {
  animation-delay: 350ms; /* Delay +250ms for line 2 */
}
@keyframes blurRevealHero {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.about-hero-section .hero-desc .word-reveal {
  opacity: 0;
  display: inline-block;
  transform: translateY(5px);
  animation: wordRevealAnim 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes wordRevealAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero-section .about-hero-centered-ctas .btn {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleUpButtons 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.about-hero-section .about-hero-centered-ctas .btn-primary {
  animation-delay: 700ms;
}
.about-hero-section .about-hero-centered-ctas .btn-outline-primary {
  animation-delay: 850ms;
}
@keyframes scaleUpButtons {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3. Team Photo floating shapes & Zoom reveal */
.hero-centered-image-container-full .hero-centered-img-wrapper img {
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-section-centered.animate-active .hero-centered-img-wrapper img {
  transform: scale(1);
}

.about-hero-centered-image-container-full .about-hero-centered-img-wrapper img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: var(--border-radius-lg);
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.about-hero-section.animate-active .about-hero-centered-img-wrapper img {
  transform: scale(1);
}
.about-hero-centered-img-wrapper:hover img {
  transform: scale(1.03) rotate(1deg) !important;
}

.floating-badge {
  position: absolute;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(88, 186, 64, 0.2);
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  z-index: 5;
  pointer-events: none;
  animation: floatShapesLoop 4s ease-in-out infinite;
}
.badge-seo { top: 15%; left: 10%; animation-delay: 0s; }
.badge-ai { top: 25%; right: 12%; animation-delay: 0.8s; }
.badge-geo { bottom: 25%; left: 8%; animation-delay: 1.6s; }
.badge-traffic { bottom: 20%; right: 10%; animation-delay: 2.4s; }

@keyframes floatShapesLoop {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 4. KPI Stats Stagger */
.about-stats-grid .why-us-glass-badge {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-stats-grid .why-us-glass-badge.animate-active {
  opacity: 1;
  transform: translateY(0);
}
.about-stats-grid .why-us-glass-badge:nth-child(1) { transition-delay: 0ms; }
.about-stats-grid .why-us-glass-badge:nth-child(2) { transition-delay: 150ms; }
.about-stats-grid .why-us-glass-badge:nth-child(3) { transition-delay: 300ms; }

/* 5. Vision & Mission Split Reveal & Hover */
.vision-mission-row .vision-card {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.vision-mission-row .vision-card:nth-child(1) {
  transform: translateX(-40px);
}
.vision-mission-row .vision-card:nth-child(2) {
  transform: translateX(40px);
}
.vision-mission-row .vision-card.animate-active {
  opacity: 1;
  transform: translateX(0);
}
.vision-card:hover {
  transform: translateY(-8px) !important;
}
.vision-card h2 svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.vision-card:hover h2 svg {
  transform: rotate(15deg);
}

/* 6. Core Values Title Mask Reveal & Card Cascade */
.values-section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}
.values-section-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform: translateX(-101%);
  z-index: 2;
}
.values-full-card.animate-active .values-section-title::after {
  animation: titleMaskRevealAction 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes titleMaskRevealAction {
  0% { transform: translateX(-101%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(101%); }
}
.values-section-title span,
.values-section-title svg {
  opacity: 0;
}
.values-full-card.animate-active .values-section-title span,
.values-full-card.animate-active .values-section-title svg {
  animation: fadeInAfterMask 0.1s linear 0.6s forwards;
}
@keyframes fadeInAfterMask {
  to { opacity: 1; }
}

.values-grid-cols .value-item-col {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease !important;
}
.values-full-card.animate-active .value-item-col {
  opacity: 1;
  transform: translateY(0);
}
.values-grid-cols .value-item-col:nth-child(1) { transition-delay: 200ms; }
.values-grid-cols .value-item-col:nth-child(2) { transition-delay: 350ms; }
.values-grid-cols .value-item-col:nth-child(3) { transition-delay: 500ms; }

.value-item-col:hover {
  transform: translateY(-12px) !important;
  border-color: var(--color-primary) !important;
}

/* 7. Experience Image Parallax & Bullet Reveals */
.exp-image-wrap {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1 !important; /* Force square ratio */
}
.exp-image-wrap img {
  transition: transform 0.1s ease-out !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.why-us-bullets .why-us-bullet-item {
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.exp-section.animate-active .why-us-bullet-item {
  opacity: 1;
  transform: translateX(0);
}
.why-us-bullets .why-us-bullet-item:nth-child(1) { transition-delay: 100ms; }
.why-us-bullets .why-us-bullet-item:nth-child(2) { transition-delay: 200ms; }
.why-us-bullets .why-us-bullet-item:nth-child(3) { transition-delay: 300ms; }
.why-us-bullets .why-us-bullet-item:nth-child(4) { transition-delay: 400ms; }
.why-us-bullets .why-us-bullet-item:nth-child(5) { transition-delay: 500ms; }

/* 8. CEO Section Brand Gradient (Bright Theme) */
.ceo-feature-section {
  background: linear-gradient(135deg, #f9fcf8, #eef6eb, #f9fcf8) !important;
  background-size: 200% 200% !important;
  animation: ceoBgGradientPulse 10s ease infinite !important;
  border: 1px solid rgba(88, 186, 64, 0.3) !important;
  box-shadow: var(--shadow-subtle) !important;
  color: var(--color-text-main) !important;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}
@keyframes ceoBgGradientPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ceo-feature-section:hover {
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(88, 186, 64, 0.5) !important;
}
.ceo-feature-section .ceo-feature-title {
  color: var(--color-text-main) !important;
}
.ceo-feature-section .ceo-feature-desc {
  color: var(--color-text-muted) !important;
}
.ceo-feature-image-wrapper img {
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ceo-feature-section.animate-active .ceo-feature-image-wrapper img {
  transform: scale(1);
}

/* 9. Team Grid Stagger & Hover Actions */
.remaining-team-grid .team-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.remaining-team-grid.animate-active .team-card {
  opacity: 1;
  transform: translateY(0);
}
.remaining-team-grid .team-card:nth-child(1) { transition-delay: 100ms; }
.remaining-team-grid .team-card:nth-child(2) { transition-delay: 250ms; }
.remaining-team-grid .team-card:nth-child(3) { transition-delay: 400ms; }
.remaining-team-grid .team-card:nth-child(4) { transition-delay: 550ms; }

.team-card:hover {
  transform: translateY(-10px) !important;
  border-color: var(--color-primary) !important;
}
.team-card:hover .team-member-name {
  color: var(--color-primary) !important;
}
.team-card .team-member-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.team-card:hover .team-member-img-wrapper img {
  transform: scale(1.08) !important;
}

/* 10. Methodology Line Reveal & Highlight Wipes */
.highlight-word {
  position: relative;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(120deg, rgba(88, 186, 64, 0.12) 0%, rgba(88, 186, 64, 0.12) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 4px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
}
.methodology-left.animate-active .highlight-word {
  background-size: 100% 100%;
}
.methodology-left.animate-active .highlight-word:nth-of-type(1) { transition-delay: 0.4s; }
.methodology-left.animate-active .highlight-word:nth-of-type(2) { transition-delay: 0.8s; }
.methodology-left.animate-active .highlight-word:nth-of-type(3) { transition-delay: 1.2s; }

.conversion-matrix-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  background: var(--color-bg-light);
  padding: 2.25rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
}
@media (min-width: 576px) {
  .conversion-matrix-visual {
    flex-direction: row;
    justify-content: space-between;
  }
  .matrix-arrow svg {
    transform: rotate(-90deg);
  }
}
.matrix-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column !important; /* Stack icon and label vertically */
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.5rem !important;
  min-height: 140px !important; /* Fixed min-height to prevent misalignment */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.005);
  transition: var(--transition-smooth);
}
.matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(88, 186, 64, 0.05);
}
.matrix-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.matrix-label {
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  line-height: 1.35;
}
.matrix-arrow {
  color: var(--color-primary);
  opacity: 0.7;
}
.matrix-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.methodology-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem !important; /* Space out the cards from each other */
}

.methodology-feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem; /* Clean inner padding */
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.methodology-feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}
.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.feature-card-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(88, 186, 64, 0.2);
  line-height: 1;
}
.feature-card-check {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

/* 11. Services Grid Stagger & Hover */
.service-card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}
.service-card-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.services-grid-block .service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.services-right.animate-active .service-card,
.services-grid-block.animate-active .service-card {
  opacity: 1;
  transform: translateY(0);
}
.services-grid-block .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid-block .service-card:nth-child(2) { transition-delay: 100ms; }
.services-grid-block .service-card:nth-child(3) { transition-delay: 200ms; }
.services-grid-block .service-card:nth-child(4) { transition-delay: 300ms; }
.services-grid-block .service-card:nth-child(5) { transition-delay: 400ms; }
.services-grid-block .service-card:nth-child(6) { transition-delay: 500ms; }

.service-card:hover {
  transform: translateY(-12px) !important;
  border-color: var(--color-primary) !important;
}
.service-card:hover .service-card-icon-wrapper {
  background: var(--color-primary);
}
.service-card:hover .service-card-icon {
  fill: #ffffff;
  transform: rotate(10deg) scale(1.1);
}
.service-card:hover .service-card-link {
  transform: translateX(5px);
}
.service-card-link {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 12. Roadmap Timeline Serpentine SVG Overlay & Step Scale */
.roadmap-timeline-serpentine .roadmap-step .roadmap-step-num {
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, border-color 0.4s ease;
}
.roadmap-timeline-serpentine .roadmap-step.animate-active .roadmap-step-num {
  transform: scale(1);
}
.roadmap-timeline-serpentine .roadmap-step:hover .roadmap-step-num {
  transform: scale(1.1) !important;
}
.serpentine-svg-line {
  position: absolute;
  top: -43px;
  left: 0;
  width: 100%;
  height: 371px;
  pointer-events: none;
  z-index: 1;
  display: none;
}
@media (min-width: 1025px) {
  .serpentine-svg-line {
    display: block;
  }
  .roadmap-timeline-serpentine .roadmap-step {
    height: 180px;
  }
  /* Shift content left on Col 4 (Step 4 & Step 5) to clear the right curve line */
  .roadmap-timeline-serpentine .roadmap-step-4 .roadmap-step-badge,
  .roadmap-timeline-serpentine .roadmap-step-4 .roadmap-step-title,
  .roadmap-timeline-serpentine .roadmap-step-4 .roadmap-step-desc,
  .roadmap-timeline-serpentine .roadmap-step-5 .roadmap-step-badge,
  .roadmap-timeline-serpentine .roadmap-step-5 .roadmap-step-title,
  .roadmap-timeline-serpentine .roadmap-step-5 .roadmap-step-desc {
    transform: translateX(-50px);
  }
}
.serpentine-progress-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 0.1s linear;
}

/* 13. Infinite Marquee client logos */
.brands-logos-grid-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
}
.brands-logos-grid-marquee::before,
.brands-logos-grid-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.brands-logos-grid-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-main) 0%, rgba(255, 255, 255, 0) 100%);
}
.brands-logos-grid-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-main) 0%, rgba(255, 255, 255, 0) 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 5rem;
  animation: marqueeScrollAction 28s linear infinite;
}
.brands-logos-grid-marquee:hover .marquee-track {
  animation-play-state: paused;
}
.brand-logo-item {
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 5px;
}
.brand-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none !important; /* Force colorful logos */
  opacity: 1 !important;    /* Full opacity */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo-item img:hover {
  transform: scale(1.08); /* Interactive hover scaling */
}

/* 14. Achievements perspective flip up */
.awards-grid .award-card {
  opacity: 0;
  transform: perspective(1000px) rotateX(15deg) translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.awards-grid.animate-active .award-card {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}
.awards-grid .award-card:nth-child(1) { transition-delay: 100ms; }
.awards-grid .award-card:nth-child(2) { transition-delay: 250ms; }
.awards-grid .award-card:nth-child(3) { transition-delay: 400ms; }
.awards-grid .award-card:nth-child(4) { transition-delay: 550ms; }
.awards-grid .award-card:nth-child(5) { transition-delay: 700ms; }

.award-card:hover {
  transform: translateY(-10px) !important;
}

/* 15. Table row by row reveal & Parallax Image wrapper */
.company-details-list .company-info-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.company-details-list.animate-active .company-info-item {
  opacity: 1;
  transform: translateY(0);
}
.company-details-list .company-info-item:nth-child(1) { transition-delay: 50ms; }
.company-details-list .company-info-item:nth-child(2) { transition-delay: 120ms; }
.company-details-list .company-info-item:nth-child(3) { transition-delay: 190ms; }
.company-details-list .company-info-item:nth-child(4) { transition-delay: 260ms; }
.company-details-list .company-info-item:nth-child(5) { transition-delay: 330ms; }
.company-details-list .company-info-item:nth-child(6) { transition-delay: 400ms; }
.company-details-list .company-info-item:nth-child(7) { transition-delay: 470ms; }

.company-office-image-wrapper {
  overflow: hidden;
  height: 360px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}
.company-office-image-wrapper img {
  transition: transform 0.1s ease-out !important;
  width: 100% !important;
  height: 120% !important; /* Extra height to support parallax shifts */
  object-fit: cover !important; /* Crops to fill the frame completely */
}

/* 16. Footer hover animations (re-mapped to new selectors inside site-footer block) */

/* ==========================================================================
   17. CONTACT PAGE TEMPLATE STYLING (PERFORMANCE-FIRST)
   ========================================================================== */

/* Breadcrumbs Section */
.contact-breadcrumbs {
  background-color: transparent;
  padding: 0 0 1.5rem 0;
  border-bottom: none;
  font-size: 0.875rem;
  width: 100%;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}
.breadcrumb-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
  color: var(--color-primary);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding-right: 0.5rem;
  color: var(--color-border);
}
.breadcrumb-current {
  color: var(--color-text-main);
  font-weight: var(--font-weight-medium);
}

/* Hero Page Header */
.contact-page-header {
  position: relative;
  background: radial-gradient(at 0% 0%, rgba(88, 186, 64, 0.05) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(253, 216, 53, 0.03) 0px, transparent 50%), var(--color-bg-light);
  color: var(--color-text-main);
  padding: 4rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.contact-page-header .header-content-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .contact-page-header .header-content-container {
    gap: 2rem;
  }
}
.contact-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}
.contact-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-headline-max);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  max-width: 800px;
}
.contact-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 1rem;
}
.contact-hero-image-wrapper {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 7; /* Wide rectangular ratio */
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
}
.contact-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Crop empty floor and focus on team's faces */
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-hero-image-wrapper:hover .contact-hero-banner-img {
  transform: scale(1.015);
}



/* Contact Grid Section */
.contact-grid-section {
  background-color: var(--color-bg-main);
}
.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 992px) {
  .contact-grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Info & Form Cards */
.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg); /* Max 10px */
  box-shadow: var(--shadow-subtle); /* Max opacity 0.008 */
  padding: 2.5rem;
  transition: var(--transition-smooth);
  will-change: transform, opacity;
}
.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-4px);
}
.card-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary-light);
}

/* Corp Info List */
.corp-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.corp-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--border-radius-md);
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--color-primary);
}
.info-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.info-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-value {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.5;
}
.info-value.italic {
  font-style: italic;
  color: var(--color-text-muted);
}
.contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: var(--font-weight-medium);
}
.contact-link:hover {
  color: var(--color-primary);
}

/* Contact Social links */
.contact-social-section {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.social-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.contact-social-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--border-radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
}
.social-icon-btn svg {
  fill: currentColor;
}
.social-icon-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}
.social-svg-text {
  padding: 0 0.25rem;
}

/* Custom Contact Form */
.contact-form-card {
  display: flex;
  flex-direction: column;
}
.custom-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}
.form-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.custom-contact-form .form-group-message {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.custom-contact-form .form-group-message .input-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-main);
}
.form-label .required {
  color: #dc3545;
  margin-left: 0.25rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg-light);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text-main);
  box-shadow: var(--shadow-input);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(88, 186, 64, 0.15);
  background-color: #ffffff;
}
.form-textarea {
  resize: vertical;
  flex-grow: 1;
  min-height: 140px;
}

/* Form Action Buttons */
.form-submit-wrapper {
  margin-top: auto;
  padding-top: 1rem;
}
.btn-submit-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}
.btn-submit-form:disabled {
  cursor: not-allowed;
  background-color: var(--color-border) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text-muted) !important;
}
.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 2rem;
}
.spinner {
  animation: rotateSpinner 2s linear infinite;
  width: 20px;
  height: 20px;
}
.spinner .path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dashSpinner 1.5s ease-in-out infinite;
}
@keyframes rotateSpinner {
  100% { transform: rotate(360deg); }
}
@keyframes dashSpinner {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Alert Boxes */
.contact-form-alert {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.contact-form-alert.success {
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary-pastel);
  color: var(--color-primary-hover);
}
.contact-form-alert.error {
  background-color: rgba(220, 53, 69, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Embed Maps Section */
.contact-map-section {
  background-color: var(--color-bg-light);
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.map-header-container {
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}
.map-iframe-wrapper {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-subtle);
}
.map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(15%) contrast(105%);
  transition: filter 0.4s ease;
}
.map-iframe-wrapper:hover iframe {
  filter: grayscale(0%) contrast(100%);
}

/* Background blobs (Optimized GPU scale/opacity transitions) */
.bg-blur-blob {
  position: absolute;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}
.blob-top-right {
  top: -10rem;
  right: -10rem;
}
.blob-bottom-left {
  bottom: -10rem;
  left: -10rem;
}

/* ==========================================================================
   X. SINGLE POST TEMPLATE STYLES
   ========================================================================== */

/* Breadcrumbs */
.single-breadcrumbs {
  margin-top: 50px;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100%;
}
.single-breadcrumbs .breadcrumb-list {
  display: flex !important;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  justify-content: flex-start !important;
}
.single-breadcrumbs .breadcrumb-item {
  display: flex;
  align-items: center;
}
.single-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--color-border);
  font-weight: 300;
}
.single-breadcrumbs .breadcrumb-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.single-breadcrumbs .breadcrumb-item a:hover {
  color: var(--color-primary);
}
.single-breadcrumbs .breadcrumb-item.active {
  color: var(--color-text-main);
  font-weight: 500;
}

/* Post Header */
.post-header-section {
  margin-bottom: 2.5rem;
}
.post-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-headline-max); /* 750 */
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}
.post-meta-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  gap: 0.5rem 0;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-icon {
  color: var(--color-primary);
}
.meta-separator {
  margin: 0 1.25rem;
  color: var(--color-border);
  font-weight: 300;
}

/* Full-width Gradient Header Banner */
.post-header-section-wrapper {
  background: linear-gradient(135deg, #f2fbf0 0%, #daf4d7 100%);
  padding: 3.5rem 0 7.5rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  width: 100%;
}
.post-header-section-wrapper .single-breadcrumbs {
  margin-top: 0 !important;
  margin-bottom: 1.5rem;
}
.post-header-section-wrapper .post-header-section {
  margin-bottom: 0;
}

/* Featured Image (Overlapping style) */
.post-featured-image-wrapper {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1024 / 538;
  margin-top: -5.8rem;
  position: relative;
  z-index: 10;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  margin-bottom: 3.5rem;
}
.page .post-featured-image-wrapper {
  margin-top: 0;
}
.post-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two-Column Layout Grid */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .single-post-layout {
    grid-template-columns: 3fr 1fr;
  }
}
.single-post-layout.no-featured-image {
  padding-top: 30px;
}

/* Main Content Area */
.post-main-content {
  min-width: 0; /* Prevents flex/grid blowouts */
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-main);
}
.entry-content img {
  border-radius: 7px;
}
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Premium Lists & Checklist Styling */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.75rem 1.5rem;
  padding: 0;
}
.entry-content li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
  color: var(--color-text-main);
  position: relative;
}
.entry-content ul {
  list-style: none;
}
.entry-content ul li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: 700;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
.entry-content ol {
  list-style-type: decimal;
}
.entry-content ol li {
  padding-left: 0.25rem;
}

/* Premium Table Styling */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}
.entry-content thead {
  background-color: var(--color-primary);
  color: #ffffff;
}
.entry-content th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
.entry-content thead th {
  color: #ffffff;
}
.entry-content td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
  line-height: 1.6;
}
.entry-content tbody tr:nth-child(even) {
  background-color: rgba(88, 186, 64, 0.02);
}
.entry-content tbody tr:last-child td {
  border-bottom: none;
}
.entry-content tbody tr {
  transition: background-color 0.2s ease;
}
.entry-content tbody tr:hover {
  background-color: rgba(88, 186, 64, 0.05);
}
.entry-content h2 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-headline-max);
  margin: 2.5rem 0 1.25rem 0;
  color: var(--color-text-main);
}
.entry-content p {
  margin-bottom: 1.5rem;
}

/* Inline Table of Contents */
.post-toc {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 0 0 2rem 0;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  will-change: transform, opacity;
}
.post-toc .toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.post-toc .toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.post-toc .toc-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.post-toc .toc-toggle-btn:hover {
  color: var(--color-primary);
}
.post-toc.collapsed .toc-toggle-btn {
  transform: rotate(-180deg);
}
.post-toc.collapsed .toc-list,
.post-toc.collapsed .toc-sublist.level-2 {
  display: none;
}
.post-toc .toc-list,
.post-toc .toc-sublist.level-2 {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Remove bullets and margin defaults for lists inside all TOC wrappers */
.post-toc ul,
.post-toc ol,
.sidebar-toc-widget ul,
.sidebar-toc-widget ol,
.mobile-toc-drawer ul,
.mobile-toc-drawer ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.post-toc li,
.sidebar-toc-widget li,
.mobile-toc-drawer li {
  margin-bottom: 0 !important;
  list-style: none !important;
}
.post-toc li::before,
.sidebar-toc-widget li::before,
.mobile-toc-drawer li::before {
  content: none !important;
  display: none !important;
}

/* TOC link wrapper and nested elements */
.toc-link-wrapper,
.sidebar-toc-link-wrapper,
.drawer-toc-link-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-link,
.sidebar-toc-link,
.drawer-toc-link {
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.toc-arrow-btn,
.sidebar-toc-arrow-btn,
.drawer-toc-arrow-btn {
  background: none;
  border: none;
  padding: 0.15rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.toc-arrow-btn:hover,
.sidebar-toc-arrow-btn:hover,
.drawer-toc-arrow-btn:hover {
  color: var(--color-primary);
}

.toc-arrow-icon,
.sidebar-toc-arrow-icon,
.drawer-toc-arrow-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toc-arrow-btn.expanded .toc-arrow-icon,
.sidebar-toc-arrow-btn.expanded .sidebar-toc-arrow-icon,
.drawer-toc-arrow-btn.expanded .drawer-toc-arrow-icon {
  transform: rotate(90deg);
}

.toc-bullet-spacer,
.sidebar-toc-bullet-spacer,
.drawer-toc-bullet-spacer {
  width: 18px;
  flex-shrink: 0;
}

/* Enable list layout and column gaps for root level-2 lists */
.post-toc .toc-sublist.level-2,
.sidebar-toc-widget .sidebar-toc-sublist.level-2,
.mobile-toc-drawer .drawer-toc-sublist.level-2 {
  border-left: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.15rem !important; /* Increase gap between H2 headings */
}

/* Nested lists styling with visual tree line indicators (Level-3 and deeper) */
.post-toc .toc-sublist:not(.level-2),
.sidebar-toc-widget .sidebar-toc-sublist:not(.level-2),
.mobile-toc-drawer .drawer-toc-sublist:not(.level-2) {
  list-style: none !important;
  margin: 0.65rem 0 0.65rem 1.25rem !important; /* Clear spacing above/below sublists */
  padding: 0 0 0 1rem !important; /* Spacing from the border line */
  border-left: 1.5px solid var(--color-border) !important;
  display: flex;
  flex-direction: column;
  gap: 0.85rem; /* Increase gap between sub-headings */
}

/* Distinct visual scaling for different heading levels */
.toc-item.level-2,
.sidebar-toc-item.level-2,
.drawer-toc-item.level-2 {
  font-size: 0.95rem;
  font-weight: 600;
}
.toc-item.level-2 .toc-link,
.sidebar-toc-item.level-2 .sidebar-toc-link,
.drawer-toc-item.level-2 .drawer-toc-link {
  color: var(--color-text-main) !important;
  line-height: 1.4;
}

.toc-item.level-3,
.sidebar-toc-item.level-3,
.drawer-toc-item.level-3 {
  font-size: 0.88rem;
  font-weight: 500;
}
.toc-item.level-3 .toc-link,
.sidebar-toc-item.level-3 .sidebar-toc-link,
.drawer-toc-item.level-3 .drawer-toc-link {
  color: var(--color-text-muted) !important;
  line-height: 1.4;
}

.toc-item.level-4,
.sidebar-toc-item.level-4,
.drawer-toc-item.level-4 {
  font-size: 0.82rem;
  font-weight: 400;
}
.toc-item.level-4 .toc-link,
.sidebar-toc-item.level-4 .sidebar-toc-link,
.drawer-toc-item.level-4 .drawer-toc-link {
  color: var(--color-text-muted) !important;
  opacity: 0.85;
  line-height: 1.4;
}

.toc-item.level-5,
.sidebar-toc-item.level-5,
.drawer-toc-item.level-5 {
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
}
.toc-item.level-5 .toc-link,
.sidebar-toc-item.level-5 .sidebar-toc-link,
.drawer-toc-item.level-5 .drawer-toc-link {
  color: var(--color-text-muted) !important;
  opacity: 0.75;
  line-height: 1.4;
}

/* Reduced boldness and size overrides specifically for the sidebar widget */
.sidebar-toc-widget .sidebar-toc-item.level-2 {
  font-weight: 500; /* Medium instead of bold semibold */
  font-size: 0.92rem;
}
.sidebar-toc-widget .sidebar-toc-item.level-3 {
  font-weight: 400; /* Regular instead of medium */
  font-size: 0.85rem;
}
.sidebar-toc-widget .sidebar-toc-item.level-4 {
  font-weight: 400;
  font-size: 0.80rem;
}

/* Link translation on hover */
.toc-link:hover,
.sidebar-toc-link:hover,
.drawer-toc-link:hover {
  color: var(--color-primary) !important;
  transform: translateX(4px);
  opacity: 1 !important;
}

/* Sidebar TOC Widget */
.sidebar-toc-widget {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}
.sidebar-toc-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sidebar TOC Collapsed State styling */
.sidebar-toc-widget.collapsed .sidebar-toc-sublist.level-2 {
  display: none !important;
}

.sidebar-toc-widget .sidebar-toc-toggle-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.sidebar-toc-widget .sidebar-toc-toggle-btn:hover {
  color: var(--color-primary);
}

.sidebar-toc-widget.collapsed .sidebar-toc-toggle-btn {
  transform: rotate(-180deg);
}

.sidebar-toc-widget.collapsed .sidebar-toc-header {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.sidebar-toc-widget .sidebar-toc-sublist.level-2 {
  max-height: 280px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-right: 0.5rem !important;
}
.sidebar-toc-widget .sidebar-toc-sublist.level-2::-webkit-scrollbar {
  width: 4px;
}
.sidebar-toc-widget .sidebar-toc-sublist.level-2::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-toc-widget .sidebar-toc-sublist.level-2::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: var(--border-radius-pill);
}
.sidebar-toc-item {
  font-size: 0.95rem;
}
.sidebar-toc-link {
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  gap: 0.4rem;
  line-height: 1.4;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.sidebar-toc-link:hover,
.sidebar-toc-link.active {
  color: var(--color-primary);
  font-weight: 600;
  transform: translateX(4px);
}
.sidebar-toc-link.active .toc-num {
  color: var(--color-primary-hover);
}
.sidebar-toc-link .toc-num {
  color: var(--color-primary);
  font-weight: 600;
}

/* Sidebar CRO CTA Widgets */
.sidebar-cta-widget {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.sidebar-cta-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(88, 186, 64, 0.015);
  border-color: var(--color-primary-pastel);
}
.course-widget {
  border-left: 4px solid var(--color-primary);
}
.service-widget {
  border-left: 4px solid #0077b5;
}
.cta-widget-badge {
  align-self: flex-start;
  background-color: var(--color-primary-pastel);
  color: var(--color-primary-hover);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--border-radius-pill);
  text-transform: uppercase;
}
.service-widget .cta-widget-badge {
  background-color: rgba(0, 119, 181, 0.08);
  color: #0077b5;
}
.cta-widget-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.25;
}
.cta-widget-price {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  white-space: nowrap;
}
.cta-widget-price strong {
  color: #dc3545;
  font-size: 0.95rem;
}
.cta-widget-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 0;
}
.cta-widget-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cta-widget-features li {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.35;
}
.cta-widget-features li span {
  flex-grow: 1;
}
.feature-tick {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.05rem;
  width: 14px;
  height: 14px;
}
.cta-widget-btn {
  display: block;
  text-align: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border: none;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(88, 186, 64, 0.08);
}
.cta-widget-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(88, 186, 64, 0.2);
}
.cta-widget-btn.btn-secondary {
  background: linear-gradient(135deg, #0077b5 0%, #005a87 100%);
  box-shadow: 0 4px 10px rgba(0, 119, 181, 0.08);
}
.cta-widget-btn.btn-secondary:hover {
  box-shadow: 0 6px 15px rgba(0, 119, 181, 0.15);
}

/* Sticky Sidebar mechanism */
@media (min-width: 992px) {
  .post-sidebar {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Hide Sidebar on Mobile/Tablet */
@media (max-width: 991px) {
  .post-sidebar {
    display: none !important;
  }
}

/* Post Meta Footer (Modified Date & Rating Inline) */
.post-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}
.post-modified-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.post-footer-rating .kk-star-ratings {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  float: none !important;
}
.post-footer-rating .kk-star-ratings .kksr-stars {
  display: flex !important;
  align-items: center !important;
}
.post-footer-rating .kk-star-ratings .kksr-legend {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
}

/* Social Share Buttons */
.post-share-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 576px) {
  .post-share-section {
    flex-direction: row;
    align-items: center;
  }
}
.post-share-section .share-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  min-width: 130px;
}
.share-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius-pill);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform;
}
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.share-btn svg {
  display: block;
}

/* Brand-specific Share Colors (Premium & Balanced) */
.btn-facebook {
  background-color: #1877f2;
  color: #ffffff;
}
.btn-linkedin {
  background-color: #0077b5;
  color: #ffffff;
}
.btn-x {
  background-color: #000000;
  color: #ffffff;
}
.btn-zalo {
  background-color: #0068ff;
  color: #ffffff;
}

/* Mobile Floating TOC Widgets */
.floating-toc-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none !important; /* Hidden on desktop by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(88, 186, 64, 0.2);
  z-index: 99;
  opacity: 0;
  transform: translateY(1.5rem) scale(0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.floating-toc-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-toc-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .floating-toc-btn {
    display: flex !important; /* Visible only on mobile/tablet */
    left: 16px !important;
    right: auto !important;
  }
}

/* Mobile TOC Drawer overlay & slide panel */
.mobile-toc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}
.mobile-toc-drawer.open {
  pointer-events: auto;
}
.mobile-toc-drawer .drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
  will-change: opacity;
}
.mobile-toc-drawer.open .drawer-overlay {
  opacity: 1;
}
.mobile-toc-drawer .drawer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 75vh;
  background-color: var(--color-bg-main);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.mobile-toc-drawer.open .drawer-content {
  transform: translateY(0);
}
.mobile-toc-drawer .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.mobile-toc-drawer .drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.mobile-toc-drawer .drawer-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}
.mobile-toc-drawer .drawer-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-toc-drawer .drawer-toc-link {
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.mobile-toc-drawer .drawer-toc-link:hover,
.mobile-toc-drawer .drawer-toc-link.active {
  color: var(--color-primary);
  font-weight: 600;
}
.mobile-toc-drawer .drawer-toc-link .toc-num {
  color: var(--color-primary);
  font-weight: 600;
}

/* High-Converting CTA Card */
.post-cta-card {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(88, 186, 64, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid var(--color-primary-pastel);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  will-change: transform, box-shadow;
}
.post-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.post-cta-card .cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .post-cta-card .cta-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.post-cta-card .cta-badge {
  display: inline-block;
  background-color: var(--color-primary-pastel);
  color: var(--color-primary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-badge);
}
.post-cta-card .cta-title {
  font-size: 1.85rem;
  font-weight: var(--font-weight-headline-max);
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}
.post-cta-card .cta-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}
.post-cta-card .cta-desc strong {
  color: var(--color-text-main);
}
.post-cta-card .cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.post-cta-card .cta-benefits li {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.post-cta-card .benefit-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* CTA Form Styling */
.cta-form-wrapper {
  background-color: var(--color-bg-main);
  padding: 2.25rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(88, 186, 64, 0.01);
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cta-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cta-form .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}
.cta-form .form-label .required {
  color: #dc3545;
}
.cta-form .form-input {
  width: 100%;
  padding: 0.8rem 1.15rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  font-family: inherit;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.cta-form .form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-main);
  box-shadow: 0 0 0 3px rgba(88, 186, 64, 0.12);
}
.btn-submit-cta {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border: none;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(88, 186, 64, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.btn-submit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 186, 64, 0.18);
}
.btn-submit-cta:active {
  transform: translateY(0);
}

/* Fullwidth CTA wrapper styling */
.post-fullwidth-cta {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 5rem 0;
  width: 100%;
}
.post-fullwidth-cta .post-cta-card {
  margin-top: 0;
  background: #ffffff;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Author Box at the end of post */
.post-author-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 576px) {
  .post-author-box {
    flex-direction: row;
    align-items: flex-start;
  }
}
.post-author-box .author-avatar {
  flex-shrink: 0;
}
.post-author-box .author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-pastel);
  display: block;
}
.post-author-box .author-info {
  flex-grow: 1;
  display: block;
}
.post-author-box .author-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary-hover);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.post-author-box .author-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin: 0 0 0.25rem 0;
}
.post-author-box .author-name a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-author-box .author-name a:hover {
  color: var(--color-primary);
}
.post-author-box .author-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
}
.post-author-box .author-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.post-author-box .author-socials {
  display: flex;
  gap: 0.75rem;
}
.post-author-box .author-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.post-author-box .author-social-link:hover {
  color: #ffffff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

@media (max-width: 575px) {
  .post-author-box {
    align-items: center;
    text-align: center;
  }
  .post-author-box .author-avatar {
    margin-left: auto;
    margin-right: auto;
  }
  .post-author-box .author-socials {
    justify-content: center;
  }
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}
.related-posts-section .related-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.related-posts-section .related-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 576px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .related-posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.related-post-card.semrush-style {
  background-color: #f4f9f2;
  border: 1px solid var(--color-primary-pastel);
  border-radius: var(--border-radius-lg);
  padding: 0;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow, background-color;
  overflow: hidden;
}
.related-post-card.semrush-style:hover {
  background-color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(88, 186, 64, 0.008);
  border-color: var(--color-primary-pastel);
}
.related-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-light);
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.related-post-card.semrush-style:hover .related-card-image img {
  transform: scale(1.05);
}
.related-post-card.semrush-style .related-card-content {
  padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}
.related-post-card.semrush-style .related-card-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary-hover);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.related-post-card.semrush-style .related-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}
.related-post-card.semrush-style .related-card-title a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-card.semrush-style .related-card-title a:hover {
  color: var(--color-primary);
}
.related-post-card.semrush-style .related-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Utility and Helper classes for Single Post */
.d-none {
  display: none !important;
}
.opacity-30 {
  opacity: 0.3 !important;
}
.inline-spinner {
  display: inline-block;
  vertical-align: middle;
}
.btn-submit-cta .btn-loader {
  display: inline-flex;
  align-items: center;
  position: static;
  margin-left: 8px;
}

/* ==========================================================================
   BLOG PAGE — Semrush-inspired Design v2
   ========================================================================== */

/* ── BASE ── */
.blog-pg { padding-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   HERO — Dark gradient + SVG dot grid + white text
   ══════════════════════════════════════════════════════════ */
.blog-pg__hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 0;
  background: linear-gradient(135deg, #246b1a 0%, #318c26 35%, #44a038 65%, #56b04a 100%);
  border-bottom: 1px solid rgba(88,186,64,0.2);
}

/* Radial glow accent */
.blog-pg__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 110% 50%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at -10% 80%, rgba(88,186,64,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* SVG dot grid overlay */
.blog-pg__hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23ffffff' fill-opacity='.1'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

.blog-pg__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
}
@media (max-width: 900px) {
  .blog-pg__hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* Breadcrumb — white text, left-aligned */
.blog-pg__breadcrumb .breadcrumb-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex-wrap: wrap;
  text-align: left;
}
.blog-pg__breadcrumb a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-pg__breadcrumb a:hover { color: #ffffff; }
.blog-pg__breadcrumb .breadcrumb-sep {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.55);
}
.blog-pg__breadcrumb .breadcrumb-current {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  opacity: 0.9;
}

/* Hero H1 + desc */
.blog-pg__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--font-weight-headline-max);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem;
}
.blog-pg__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.5rem;
  max-width: 520px;
}

/* Stat chips on dark bg */
.blog-pg__stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.blog-pg__stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  backdrop-filter: blur(4px);
}
.blog-pg__stat-chip svg { opacity: 0.8; flex-shrink: 0; }

/* Spotlight card */
.blog-pg__spotlight {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
  border: 1px solid rgba(255,255,255,0.1);
}
.blog-pg__spotlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.45);
}
.blog-pg__spotlight-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.blog-pg__spotlight:hover .blog-pg__spotlight-img { transform: scale(1.05); }
.blog-pg__spotlight-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,12,7,0.92) 0%, rgba(5,12,7,0.25) 55%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.blog-pg__spotlight-badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #1d2b1a; background: var(--color-primary);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}
.blog-pg__spotlight-title {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700; color: #fff;
  line-height: 1.4; margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-pg__spotlight-meta { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* Spotlight placeholder (no image) */
.blog-pg__spotlight-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e4a26 0%, #2d6b35 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════════
   CATEGORY NAV TABS — Sticky below site header (top set by JS)
   ══════════════════════════════════════════════════════════ */
.blog-pg__cat-nav {
  position: sticky;
  top: 0; /* overridden by JS to header height */
  z-index: 80;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.blog-pg__cat-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-pg__cat-tabs::-webkit-scrollbar { display: none; }
.blog-pg__cat-tab {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.84rem; font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.blog-pg__cat-tab:hover { color: var(--color-text-main); }
.blog-pg__cat-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.blog-pg__cat-tab-count {
  font-size: 0.63rem; font-weight: 700;
  background: var(--color-primary-pastel);
  color: var(--color-primary-hover);
  border-radius: 9999px;
  padding: 0.1rem 0.42rem;
  vertical-align: top; margin-top: 0.05rem;
}

/* ══════════════════════════════════════════════════════════
   LATEST POSTS — Editorial 1+3 layout
   ══════════════════════════════════════════════════════════ */
.blog-pg__section {
  padding: 4rem 0;
  background: #fff;
}
.blog-pg__section--latest { padding-top: 3.5rem; }

/* Section label row */
.blog-pg__sec-head { margin-bottom: 1.75rem; }
.blog-pg__sec-label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary-hover);
  margin-bottom: 0.35rem;
}
.blog-pg__sec-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700; color: var(--color-text-main);
  margin: 0; line-height: 1.2;
  position: relative; padding-bottom: 0.6rem;
}
.blog-pg__sec-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px;
  background: var(--color-primary); border-radius: 2px;
}

/* ── Editorial Layout: 1 large + 3 list ── */
.latest-ed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .latest-ed { grid-template-columns: 1fr; }
}

/* Main featured card (left) */
.latest-ed__main {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
}
@media (max-width: 768px) {
  .latest-ed__main { border-right: none; border-bottom: 1px solid var(--color-border); }
}
.latest-ed__main-img-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f8e3 0%, #f0fae9 100%);
}
.latest-ed__main-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.latest-ed__main:hover .latest-ed__main-img { transform: scale(1.04); }
.latest-ed__main-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); opacity: 0.3;
}
.latest-ed__main-body {
  padding: 1.5rem;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.latest-ed__main-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700; line-height: 1.4;
  margin: 0.6rem 0 0.75rem;
}
.latest-ed__main-title a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s;
}
.latest-ed__main-title a:hover { color: var(--color-primary); }
.latest-ed__main-excerpt {
  font-size: 0.9rem; line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-ed__main-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem; color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.latest-ed__meta-sep { opacity: 0.4; }

/* List items (right column) */
.latest-ed__list {
  display: flex; flex-direction: column;
}
.latest-ed__item {
  padding: 1rem 1.5rem;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  transition: background-color 0.2s;
}
.latest-ed__item:hover { background-color: rgba(88,186,64,0.03); }
.latest-ed__item-title {
  font-size: 0.92rem; font-weight: 700;
  line-height: 1.45; margin: 0.4rem 0 0.5rem;
}
.latest-ed__item-title a {
  color: var(--color-text-main);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.latest-ed__item-title a:hover { color: var(--color-primary); }
.latest-ed__item-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem; color: var(--color-text-muted);
}
.latest-ed__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   SECTION SEPARATOR — Decorative divider (replaces alt bg)
   ══════════════════════════════════════════════════════════ */
.blog-pg__sep {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0 var(--container-padding, 1.5rem);
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
}
.blog-pg__sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,186,64,0.25), transparent);
}
.blog-pg__sep-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(88,186,64,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   CATEGORY SECTION HEADER — Panel style
   ══════════════════════════════════════════════════════════ */
.blog-pg__cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.4rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, rgba(88,186,64,0.06) 0%, rgba(88,186,64,0.01) 100%);
  border: 1px solid rgba(88,186,64,0.15);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  flex-wrap: wrap;
}
.blog-pg__cat-header-left { flex: 1 1 auto; min-width: 0; }
.blog-pg__cat-count {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary-hover);
  margin-bottom: 0.2rem;
}
.blog-pg__cat-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800; color: var(--color-text-main);
  margin: 0; line-height: 1.2;
}
.blog-pg__cat-title a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.blog-pg__cat-title a:hover { color: var(--color-primary); }
.blog-pg__cat-title-desc {
  font-size: 0.85rem; color: var(--color-text-muted);
  margin: 0.3rem 0 0; line-height: 1.5;
}

/* Xem thêm button */
.blog-pg__viewmore-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.84rem; font-weight: 600;
  color: var(--color-primary-hover);
  text-decoration: none;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap; flex-shrink: 0;
  will-change: transform;
}
.blog-pg__viewmore-btn:hover {
  background-color: var(--color-primary);
  color: #fff; transform: translateY(-1px);
}
.blog-pg__viewmore-btn svg { transition: transform 0.2s; }
.blog-pg__viewmore-btn:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════
   POST CARD GRID — 4 cols desktop
   ══════════════════════════════════════════════════════════ */
.blog-pg__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 576px) { .blog-pg__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blog-pg__grid { grid-template-columns: repeat(4, 1fr); } }

/* Post card */
.bpc-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  /* scroll reveal: parent [data-reveal].is-visible triggers opacity */
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s cubic-bezier(0.16,1,0.3,1) var(--delay, 0ms),
    transform 0.45s cubic-bezier(0.16,1,0.3,1) var(--delay, 0ms),
    box-shadow 0.3s ease,
    border-color 0.25s ease;
  will-change: transform, opacity;
}
.blog-pg__grid.is-visible .bpc-card {
  opacity: 1; transform: translateY(0);
}
.blog-pg__grid.is-visible .bpc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(88,186,64,0.12);
  border-color: rgba(88,186,64,0.35);
}
.bpc-card__img-wrap {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #e8f8e3, #f0fae9);
  text-decoration: none; flex-shrink: 0;
}
.bpc-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.blog-pg__grid.is-visible .bpc-card:hover .bpc-card__img { transform: scale(1.05); }
.bpc-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); opacity: 0.35;
}
.bpc-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex; flex-direction: column; flex-grow: 1;
}
.bpc-card__badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--color-primary-hover);
  background: var(--color-primary-pastel);
  border-radius: 9999px;
  padding: 0.18rem 0.58rem;
  margin-bottom: 0.6rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.bpc-card__badge:hover { background: var(--color-primary); color: #fff; }
.bpc-card__title {
  font-size: 0.93rem; font-weight: 700;
  line-height: 1.5; margin: 0;
  flex-grow: 1; padding-bottom: 0.8rem;
}
.bpc-card__title a {
  color: var(--color-text-main); text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.bpc-card__title a:hover { color: var(--color-primary); }
.bpc-card__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.5rem; margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
}
.bpc-card__date, .bpc-card__read {
  display: inline-flex; align-items: center; gap: 0.28rem;
  font-size: 0.72rem; color: var(--color-text-muted);
}
.bpc-card__date svg, .bpc-card__read svg { opacity: 0.55; flex-shrink: 0; }

/* Section footer (view all) */
.blog-pg__sec-footer { margin-top: 2.25rem; display: flex; justify-content: center; }
.blog-pg__all-posts-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600;
  color: var(--color-primary-hover);
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  padding: 0.7rem 1.6rem;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
  will-change: transform;
}
.blog-pg__all-posts-btn:hover {
  background: var(--color-primary); color: #fff; transform: translateY(-2px);
}
.blog-pg__all-posts-btn svg { transition: transform 0.2s; }
.blog-pg__all-posts-btn:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════ */
.blog-pg__cta-banner { padding: 3rem 0; }
.blog-pg__cta-banner--green {
  background: linear-gradient(135deg, #2e8c1c 0%, #3eaa28 40%, #58BA40 70%, #6cd14e 100%);
}
.blog-pg__cta-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.blog-pg__cta-text { flex: 1 1 auto; min-width: 0; }
.blog-pg__cta-title {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700; color: #fff;
  line-height: 1.3; margin-bottom: 0.5rem;
}
.blog-pg__cta-sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
  margin: 0; line-height: 1.5; max-width: 560px;
}
.blog-pg__cta-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff !important; color: var(--color-primary-hover) !important;
  border-color: #fff !important;
  font-weight: 700; padding: 0.75rem 1.5rem; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-pg__cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.blog-pg__cta-btn svg { transition: transform 0.2s; }
.blog-pg__cta-btn:hover svg { transform: translateX(3px); }

/* ── Empty state ── */
.blog-pg__empty { text-align: center; padding: 5rem 1rem; color: var(--color-text-muted); }
.blog-pg__empty svg { display: block; margin: 0 auto 1.25rem; opacity: 0.2; }
.blog-pg__empty p { font-size: 1rem; margin: 0; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .blog-pg__hero { padding: 2rem 0 0; }
  .blog-pg__section { padding: 2.5rem 0; }
  .blog-pg__cat-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .blog-pg__cta-inner { flex-direction: column; text-align: center; }
  .blog-pg__cta-sub { max-width: 100%; }
  .blog-pg__cta-btn { align-self: center; }
}


/* ============================================================
   CATEGORY ARCHIVE PAGE  (.cat-pg__)
   template: category.php
   ============================================================ */

/* ── Hero — Green gradient (giống blog-pg__hero) ── */
.cat-pg__hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 0;
  background: linear-gradient(135deg, #246b1a 0%, #318c26 35%, #44a038 65%, #56b04a 100%);
  border-bottom: 1px solid rgba(88,186,64,0.2);
}
/* Radial glow accent (clone blog-pg__hero-bg) */
.cat-pg__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 110% 50%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at -10% 80%, rgba(88,186,64,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* SVG dot grid (clone blog-pg__hero-grid) */
.cat-pg__hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23ffffff' fill-opacity='.1'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}
/* 2-cột: trái text, phải spotlight */
.cat-pg__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
}
@media (max-width: 900px) {
  .cat-pg__hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.cat-pg__hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;   /* Luôn bắt đầu từ góc trên trái, không bị kéo giữa bởi grid */
  text-align: left;
}

/* ── Breadcrumb ── */
.cat-pg__breadcrumb {
  margin-bottom: 1.25rem;
}
.cat-pg__breadcrumb .breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.cat-pg__breadcrumb a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.cat-pg__breadcrumb a:hover { color: #ffffff; }
.cat-pg__breadcrumb .breadcrumb-sep {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.55);
}
.cat-pg__breadcrumb .breadcrumb-current {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  opacity: 0.9;
}

/* ── H1 ── */
.cat-pg__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--font-weight-headline-max);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem;
}

/* ── Stat chip ── */
.cat-pg__stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.cat-pg__stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: var(--font-weight-medium);
  padding: 0.3rem 0.75rem;
  border-radius: var(--border-radius-pill);
}
.cat-pg__stat-chip svg { opacity: 0.75; flex-shrink: 0; }

/* ── Description + View More ── */
.cat-pg__desc-wrap {
  max-width: 680px;
  margin-top: 0.5rem;
}
.cat-pg__desc {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.cat-pg__desc-full { display: block; }
.cat-pg__desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  padding: 0;
  transition: opacity 0.2s;
}
.cat-pg__desc-toggle:hover { opacity: 0.8; }
.cat-pg__desc-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-pg__desc-chevron--up { transform: rotate(180deg); }

/* ── Posts Section ── */
.cat-pg__posts-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg-main);
}

/* ── H2 Section Heading ── */
.cat-pg__posts-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary);
  display: block;
}
.cat-pg__posts-heading-name {
  color: var(--color-primary);
}

/* ── Card Grid — tái dùng bpc-card, thêm lớp cat-pg__grid ── */
.cat-pg__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* Scroll-reveal: ban đầu ẩn cards (opacity + translateY) */
}
@media (min-width: 576px) {
  .cat-pg__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .cat-pg__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .cat-pg__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Scroll Reveal animation trên cat-pg__grid ── */
.cat-pg__grid .bpc-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}
.cat-pg__grid.is-visible .bpc-card {
  opacity: 1;
  transform: translateY(0);
}
.cat-pg__grid.is-visible .bpc-card:hover {
  transform: translateY(-4px);
}
.cat-pg__grid.is-visible .bpc-card:hover .bpc-card__img {
  transform: scale(1.05);
}

/* ── Pagination số ── */
.cat-pg__pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}
.cat-pg__pagination-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
/* Các item: số / prev / next */
.cat-pg__page-item {
  display: contents; /* Không thêm wrapper box */
}
/* paginate_links generate <a> hoặc <span class="page-numbers"> */
.cat-pg__pagination-inner .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 0.88rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  background: var(--color-bg-main);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.cat-pg__pagination-inner a.page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}
/* Trang hiện tại */
.cat-pg__pagination-inner .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  cursor: default;
}
/* Prev / Next (chứa SVG) */
.cat-pg__pagination-inner .prev.page-numbers,
.cat-pg__pagination-inner .next.page-numbers {
  padding: 0 0.65rem;
}
/* Dots … */
.cat-pg__pagination-inner .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: default;
  min-width: 1.5rem;
}

/* ── Empty state ── */
.cat-pg__empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--color-text-muted);
}
.cat-pg__empty svg {
  display: block;
  margin: 0 auto 1.25rem;
  opacity: 0.2;
}
.cat-pg__empty p {
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

/* ── Responsive Mobile ── */
@media (max-width: 767px) {
  .cat-pg__hero { padding: 2.5rem 0 0; }
  .cat-pg__posts-section { padding: 2.5rem 0 3.5rem; }
  .cat-pg__posts-heading { font-size: 1.25rem; }
  .cat-pg__pagination-inner { gap: 0.25rem; }
  .cat-pg__pagination-inner .page-numbers { min-width: 2.1rem; height: 2.1rem; font-size: 0.82rem; }
  /* Ẩn spotlight card trên mobile vì không có chỗ */
  .cat-pg__hero-inner .blog-pg__spotlight { display: none; }
}

/* ==========================================================================
   Awards Section Styling (Storytelling Motion Design)
   ========================================================================== */
.awards-section {
  background-color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.awards-carousel-container {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 0 55px;
  margin-top: 3rem;
}

.awards-carousel-container .carousel-track {
  gap: 1.5rem;
}

/* Slide item sizing configuration */
#awardsCarousel .slide-item {
  width: calc((100% - 1.5rem * 4) / 5);
  flex-shrink: 0;
}

.home-award-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.award-image-wrapper {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.award-trophy-img {
  max-width: 65%;
  max-height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-award-card-title {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  line-height: 1.45;
  margin: 0;
  transition: color 0.3s ease;
  max-width: 180px;
}

/* Hover effects */
.home-award-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(88, 186, 64, 0.12);
  border-color: var(--color-primary);
}

.home-award-card:hover .award-image-wrapper {
  transform: scale(1.05);
  background: #ffffff;
  border-color: rgba(88, 186, 64, 0.3);
}

.home-award-card:hover .award-trophy-img {
  transform: scale(1.08);
}

.home-award-card:hover .home-award-card-title {
  color: var(--color-primary);
}

/* Nav Arrows Positioning */
.awards-carousel-container .carousel-nav-arrows {
  position: absolute;
  top: calc(50% - 22px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 20;
}

.awards-carousel-container .carousel-arrow {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.awards-carousel-container .carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.awards-carousel-container .carousel-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.25);
  transform: translateY(-2px);
}

.awards-carousel-container .carousel-arrow:active {
  transform: translateY(0);
}

/* Pagination Dots */
.awards-carousel-container .carousel-dots-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Stagger entrance reveal on scroll */
.awards-section .home-award-card {
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.awards-section.animate-active .home-award-card {
  opacity: 1;
  transform: translateY(0);
}

.awards-section.animate-active .home-award-card:nth-child(1) { transition-delay: 50ms; }
.awards-section.animate-active .home-award-card:nth-child(2) { transition-delay: 150ms; }
.awards-section.animate-active .home-award-card:nth-child(3) { transition-delay: 250ms; }
.awards-section.animate-active .home-award-card:nth-child(4) { transition-delay: 350ms; }
.awards-section.animate-active .home-award-card:nth-child(5) { transition-delay: 450ms; }

/* Responsive adjustments */
@media (max-width: 1199px) {
  #awardsCarousel .slide-item {
    width: calc((100% - 1.5rem * 3) / 4);
  }
}

@media (max-width: 991px) {
  .awards-carousel-container {
    padding: 0 45px !important;
    margin-top: 2rem;
  }
  .awards-carousel-container .carousel-nav-arrows {
    left: -5px !important;
    right: -5px !important;
    top: calc(50% - 18px);
  }
  .awards-carousel-container .carousel-arrow {
    width: 36px !important;
    height: 36px !important;
  }
  .awards-carousel-container .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
  #awardsCarousel .slide-item {
    width: calc((100% - 1.5rem * 2) / 3);
  }
  .award-image-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }
  .home-award-card-title {
    font-size: 0.875rem;
  }
  .home-award-card {
    padding: 1.75rem 0.75rem;
  }
}

@media (max-width: 767px) {
  #awardsCarousel .slide-item {
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 575px) {
  .awards-carousel-container {
    padding: 0 !important;
  }
  .awards-carousel-container .carousel-nav-arrows {
    display: none !important;
  }
  .awards-carousel-container .carousel-dots-indicator {
    margin-top: 1.75rem;
  }
}

@media (max-width: 400px) {
  .award-image-wrapper {
    width: 80px !important;
    height: 80px !important;
  }
  .home-award-card {
    padding: 1.5rem 0.5rem !important;
  }
  .home-award-card-title {
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   Achievements Counter Section Styling (Brand Green & Split Layout)
   ========================================================================== */
.achievements-section {
  background: var(--gradient-brand);
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
  color: #ffffff;
}

.achievements-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 80%);
  background-size: 35px 35px, 35px 35px, 100% 100%;
  pointer-events: none;
  z-index: -1;
}

.achievements-split-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4.5rem;
}

@media (min-width: 992px) {
  .achievements-split-header {
    grid-template-columns: 42% 58%;
    gap: 4rem;
    align-items: start;
  }
}

.achievements-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.achievements-tagline {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  display: inline-block;
}

.achievements-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-family);
  letter-spacing: -0.01em;
}

@media (max-width: 991px) {
  .achievements-tagline {
    font-size: 1rem;
  }
  .achievements-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 767px) {
  .achievements-title {
    font-size: 2.25rem;
  }
}

.achievements-header-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.achievements-desc-item {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

/* Bottom Stats Row */
.achievements-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}

@media (min-width: 768px) {
  .achievements-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.achievement-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.achievement-stat-number-wrap {
  display: flex;
  align-items: baseline;
  color: #ffffff;
  font-family: var(--font-family);
  font-weight: 800;
  line-height: 1;
}

.achievements-section .achievement-number {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
}

@media (max-width: 991px) {
  .achievements-section .achievement-number {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .achievements-section .achievement-number {
    font-size: 3rem;
  }
}

.achievement-stat-prefix {
  font-size: 2.8rem;
  margin-right: 0.15rem;
  font-weight: 700;
}

.achievement-stat-suffix {
  font-size: 2.8rem;
  margin-left: 0.15rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .achievement-stat-prefix,
  .achievement-stat-suffix {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .achievement-stat-prefix,
  .achievement-stat-suffix {
    font-size: 1.8rem;
  }
}

.achievement-stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
  margin: 0.75rem 0 0 0;
  font-weight: 500;
  font-family: var(--font-family);
}

/* Stagger scroll entrance animations */
.achievements-section .achievement-stat-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievements-section.animate-active .achievement-stat-card {
  opacity: 1;
  transform: translateY(0);
}

.achievements-section.animate-active .achievement-stat-card:nth-child(1) { transition-delay: 50ms; }
.achievements-section.animate-active .achievement-stat-card:nth-child(2) { transition-delay: 150ms; }
.achievements-section.animate-active .achievement-stat-card:nth-child(3) { transition-delay: 250ms; }
.achievements-section.animate-active .achievement-stat-card:nth-child(4) { transition-delay: 350ms; }

/* ==========================================================================
   8. SEO CONVERSION PAGE TEMPLATE STYLES
   ========================================================================== */

/* Main Container */
.seoc-main {
  background-color: var(--color-bg-main);
  overflow: hidden;
}

/* Breadcrumbs inside Hero */
.seoc-breadcrumbs {
  margin-bottom: 1.5rem;
  text-align: left !important;
  width: 100% !important;
}
.seoc-breadcrumbs .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  justify-content: flex-start !important;
  text-align: left !important;
}
.seoc-breadcrumbs .breadcrumb-item {
  color: var(--color-text-muted);
}
.seoc-breadcrumbs .breadcrumb-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.seoc-breadcrumbs .breadcrumb-item a:hover {
  color: var(--color-primary);
}
.seoc-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--color-border);
}
.seoc-breadcrumbs .breadcrumb-item.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

/* Hero Section */
.seoc-hero {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(88, 186, 64, 0.03) 0%, var(--color-bg-main) 100%);
  border-bottom: 1px solid var(--color-border);
}
.seoc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
.seoc-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.seoc-hero-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}
.seoc-hero-title .highlight {
  color: var(--color-primary);
}
.seoc-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
}
.seoc-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.seoc-hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
}
.seoc-hero-ctas svg {
  flex-shrink: 0;
}

/* Author Badge */
.seoc-author-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  max-width: 380px;
}
.seoc-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-pill);
  overflow: hidden;
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
}
.seoc-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seoc-author-info {
  display: flex;
  flex-direction: column;
}
.seoc-author-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seoc-author-name {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  line-height: 1.3;
}
.seoc-author-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

/* Diagram Column */
.seoc-hero-diagram {
  display: flex;
  justify-content: center;
  width: 100%;
}
.funnel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.funnel-container li {
  list-style: none;
}
.funnel-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.funnel-step:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 186, 64, 0.2);
  box-shadow: var(--shadow-hover);
}
.funnel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}
.funnel-text {
  display: flex;
  flex-direction: column;
}
.funnel-text .step-title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
}
.funnel-text .step-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.funnel-arrow {
  color: var(--color-border);
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: funnelBounce 2s infinite ease-in-out;
}

/* Leads Step & Connected Box */
.funnel-leads-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.funnel-side-connector {
  display: none;
}
.funnel-side-box {
  margin-top: 1rem;
  width: 100%;
  background-color: var(--color-primary-light);
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.funnel-side-box .side-box-title {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.funnel-side-box .side-box-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

@keyframes funnelBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Intro Section */
.seoc-intro {
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}
.seoc-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.seoc-section-title {
  font-size: 1.6rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}
.seoc-intro-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.seoc-stats-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.seoc-stats-box li {
  list-style: none;
}
.seoc-stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-subtle);
}
.seoc-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-md);
  background-color: rgba(88, 186, 64, 0.05);
  color: var(--color-primary);
  flex-shrink: 0;
}
.seoc-stat-value {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
}
.seoc-stat-value .stat-num {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.1;
}
.seoc-stat-value .stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.seoc-intro-right {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

/* Pillars Section */
.seoc-pillars {
  background-color: var(--color-bg-main);
}
.seoc-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.seoc-pillars-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}
.seoc-pillars-subtitle {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}
.seoc-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.seoc-pillar-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
}
.seoc-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.15);
}
.pillar-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pillar-number {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  background-color: var(--color-primary-pastel);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.pillar-title {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  line-height: 1.3;
  margin: 0;
}
.pillar-illustration {
  margin: 0;
  margin-bottom: 2rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.seoc-pillar-card:hover .pillar-illustration img {
  transform: scale(1.02);
}
.pillar-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}
.pillar-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.pillar-subheading {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0;
}
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.pillar-list li span {
  flex-grow: 1;
}
.pillar-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Check list (green checkmarks) */
.check-list svg {
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 0;
}

/* Bullet list (green dots) */
.bullet-list .bullet {
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-pill);
  background-color: var(--color-primary);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* Error list (red crosses) */
.error-list svg {
  color: #d32f2f;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pillar 3 Subcategories */
.pillar-sub-category {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
}
.sub-category-title {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.inline-list {
  gap: 0.5rem;
}
.inline-list li {
  font-size: 0.85rem !important;
  color: var(--color-text-main);
}
.inline-list svg {
  stroke-width: 2.5;
}

/* Highlight box in card footers */
.pillar-highlight-box {
  background-color: rgba(88, 186, 64, 0.04);
  border-left: 3px solid var(--color-primary);
  padding: 1rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-main);
  margin-top: auto;
}

/* CTA Form Section */
.seoc-cta-section {
  padding: 6rem 0;
  background-color: var(--color-primary);
  background-image: var(--gradient-soft);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.seoc-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.seoc-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.seoc-cta-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.seoc-cta-title {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: var(--font-weight-headline-max);
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.seoc-cta-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* White Form Card */
.seoc-form-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  color: var(--color-text-main);
}
.seoc-form-title {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.seoc-form-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.seoc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  position: relative;
  width: 100%;
}
.seoc-contact-form input[type="text"],
.seoc-contact-form input[type="email"],
.seoc-contact-form input[type="tel"],
.seoc-contact-form input[type="url"] {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}
.seoc-contact-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(88, 186, 64, 0.1);
}
.seoc-form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

/* Screen Reader utility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP min-width: 768px & 992px)
   ========================================================================== */
@media (min-width: 768px) {
  .seoc-hero {
    padding: 5.5rem 0;
  }
  .seoc-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
  .seoc-hero-title {
    font-size: 2.4rem;
  }
  .seoc-hero-ctas {
    flex-direction: row;
  }
  .seoc-hero-ctas .btn {
    width: auto;
  }
  .seoc-intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
  .seoc-section-title {
    font-size: 2.25rem;
  }
  .seoc-stats-box {
    grid-template-columns: repeat(3, 1fr);
  }
  .seoc-pillars-title {
    font-size: 2.25rem;
  }
  .seoc-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
  .seoc-pillar-card {
    padding: 2.25rem 1.75rem;
  }
  .pillar-head {
    min-height: 5rem;
  }
  .seoc-cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .seoc-cta-title {
    font-size: 2.25rem;
  }
  .form-row {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .seoc-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
  }
  .seoc-hero-title {
    font-size: 2.75rem;
  }
  .seoc-hero-desc {
    font-size: 1.15rem;
  }
  
  /* Connect Leads Step to Funnel Side Box */
  .funnel-leads-wrapper {
    flex-direction: row;
    justify-content: flex-end;
    width: auto;
    right: -100px;
  }
  .funnel-leads-wrapper .step-leads {
    width: 250px;
    z-index: 5;
  }
  .funnel-side-connector {
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    height: 2px;
    z-index: 4;
  }
  .funnel-side-connector .connector-line {
    width: 100%;
    height: 1.5px;
    border-top: 1.5px dashed var(--color-primary);
  }
  .funnel-side-connector .connector-arrow {
    position: absolute;
    right: -3px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
  }
  .funnel-side-box {
    margin-top: 0;
    width: 210px;
    text-align: left;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-subtle);
    z-index: 5;
    flex-shrink: 0;
  }
  .funnel-side-box .side-box-title {
    font-size: 1rem;
  }
  .funnel-side-box .side-box-desc {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Consultation Form Section (Section Form nhận tư vấn)
   ========================================================================== */
.consult-section {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-bottom: var(--consult-overlap-desktop);
  background-color: transparent;
  overflow: visible;
  padding: 40px 0 0 0;
}

.consult-container {
  position: relative;
  z-index: 2;
  overflow: visible;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.consult-grid {
  display: grid;
  grid-template-columns: 64% 36%;
  position: relative;
  overflow: hidden; /* ALWAYS clip the image and wrapper to card's rounded corners */
  background-color: #ffffff;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.consult-left-col {
  background: #ffffff;
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  position: relative;
  z-index: 2;
}

.consult-left-content {
  padding: 60px 80px;
}

.consult-heading {
  font-family: 'Inter', sans-serif !important;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 15px;
  text-align: center;
}

.consult-subheading {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem;
  color: #475569;
  margin: 0 auto 40px auto;
  max-width: 620px;
  line-height: 1.6;
  text-align: center;
}

.consult-card {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.consult-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-full-width {
  grid-column: span 2;
}

.consult-field-group {
  display: flex;
  flex-direction: column;
}

.consult-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.required-star {
  color: #ef4444;
  margin-left: 4px;
}

.consult-input {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.25s ease;
  background-color: #ffffff;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
}

.consult-input:focus {
  outline: none;
  border-color: var(--consult-btn-bg);
  box-shadow: 0 0 0 3px rgba(88, 186, 64, 0.15);
}

.consult-input::placeholder {
  color: #94a3b8;
}

.consult-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: 'Inter', sans-serif !important;
}

.consult-select-wrapper {
  position: relative;
  width: 100%;
}

.consult-select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.consult-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px !important;
  cursor: pointer;
}

.consult-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.consult-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--consult-btn-bg);
  flex-shrink: 0;
}

.consult-checkbox-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px;
  line-height: 1.4;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.consult-form-footer {
  margin-top: 24px;
}

.consult-submit-btn {
  font-family: 'Inter', sans-serif !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--consult-btn-bg) 0%, #3d9227 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.25);
}

.consult-submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(88, 186, 64, 0.35);
}

.consult-submit-btn:active {
  transform: translateY(0);
}

.consult-submit-icon {
  transition: transform 0.2s ease;
}

.consult-submit-btn:hover .consult-submit-icon {
  transform: translateX(4px);
}

.consult-submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.consult-submit-btn.loading .consult-submit-icon {
  display: none;
}

.consult-submit-btn .btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

.consult-submit-btn.loading .btn-spinner {
  display: inline-block;
}

.consult-form-message {
  font-family: 'Inter', sans-serif !important;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  display: none;
}

.consult-form-message.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  display: block;
}

.consult-form-message.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  display: block;
}

.consult-right-col {
  background: linear-gradient(135deg, var(--consult-dark-bg) 0%, #0d1527 100%);
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  position: relative;
  z-index: 1;
  overflow: hidden; /* ALWAYS clip the image and wrapper to card's rounded corners */
}

/* Fallback image style: covers the column cleanly instead of placing a square image inside a dark box */
.consult-right-col.has-fallback-image {
  background: none !important;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
}

.consult-right-col.has-fallback-image .consult-expert-img-wrap {
  position: relative;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
}

.consult-right-col.has-fallback-image .consult-expert-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
}

.consult-expert-img-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%; /* ALWAYS fill the entire container */
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
}

.consult-expert-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ALWAYS cover the container */
  object-position: center top; /* Center-top positioning is ideal for portraits to show faces */
  display: block;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* General sibling styling to add breathing room in the footer when the consultation section is active */
.consult-section ~ .site-footer {
  padding-top: 170px !important;
}

/* Responsive Styling for Consultation Form */
@media (max-width: 991px) {
  .consult-left-content {
    padding: 50px 40px;
  }
  .consult-heading {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .consult-section {
    margin-bottom: var(--consult-overlap-mobile);
    background-color: transparent;
    padding: 20px 0 0 0;
  }
  
  .consult-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .consult-grid {
    grid-template-columns: 1fr;
    border-radius: 20px;
    margin: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  }
  
  .consult-left-col {
    border-radius: 20px;
  }
  
  .consult-left-content {
    padding: 40px 20px;
  }
  
  .consult-heading {
    font-size: 1.75rem;
    text-align: center;
    padding: 0;
    margin-bottom: 12px;
  }
  
  .consult-subheading {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
  
  .consult-card {
    padding: 0;
    border-radius: 0;
  }
  
  .consult-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .field-full-width {
    grid-column: span 1;
  }
  
  .consult-right-col {
    display: none;
  }

  .consult-section ~ .site-footer {
    padding-top: 120px !important;
  }
}

/* ==========================================================================
   18. Network & Team Section Styling (Mạng lưới & Nhân sự)
   ========================================================================== */
.network-team-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  position: relative;
  overflow: hidden;
}

.network-map-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .network-map-block {
    grid-template-columns: 55% 45%;
    gap: 2rem;
    align-items: center;
    margin-bottom: 6rem;
  }
}

.network-left-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.office-tabs {
  display: flex;
  gap: 12px;
  margin: 2rem 0 0 0;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 2;
}

.office-tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.office-tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.office-tab-btn.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.08);
}

@media (min-width: 576px) {
  .office-tabs {
    margin-bottom: 0;
    gap: 8px;
  }
  .office-tab-btn {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    margin-bottom: -1px;
  }
  .office-tab-btn.active {
    background-color: #ffffff;
    border-bottom-color: #ffffff;
    box-shadow: none;
  }
}

.office-tab-btn .icon-building {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.office-addresses {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2.5rem;
  z-index: 1;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .office-addresses {
    border-top-left-radius: 0;
  }
}

.office-address-detail {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.office-address-detail.active {
  display: block;
  opacity: 1;
  transform: none; /* removes translation completely to prevent sub-pixel blur */
}

/* 7:3 Grid Restructure & Checklist */
.office-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .office-detail-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.office-info-col {
  width: 100%;
}

.office-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

.checklist-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(88, 186, 64, 0.06);
}

.checklist-icon svg {
  width: 14px;
  height: 14px;
}

.checklist-label {
  font-weight: 700;
  color: var(--color-text-main);
  min-width: 110px;
  flex-shrink: 0;
}

.checklist-value {
  color: var(--color-text-muted);
  font-weight: 500;
}

.office-photo-col {
  width: 100%;
}

.office-photo-wrap {
  margin-top: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  background-color: #f1f5f9;
  width: 100%;
}

.office-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.office-photo-wrap:hover .office-photo {
  transform: scale(1.05);
}

.network-blockquote {
  background: #ffffff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  padding: 1.5rem 2rem;
  margin: 0;
  position: relative;
  box-shadow: var(--shadow-subtle);
  border-top: 1px solid rgba(88, 186, 64, 0.04);
  border-right: 1px solid rgba(88, 186, 64, 0.04);
  border-bottom: 1px solid rgba(88, 186, 64, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.network-blockquote .quote-char {
  position: absolute;
  right: 15px;
  bottom: -15px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(88, 186, 64, 0.06);
  font-family: Georgia, serif;
  pointer-events: none;
  font-weight: 800;
}

.network-blockquote p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

/* Right Column: SVG Interactive Map */
.network-right-map {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.vietnam-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  transform: scale(1.36) translateX(-9%);
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.map-glow-bg {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(88, 186, 64, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Water drop ripple animation container centered under map */
.map-ripple-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.map-ripple-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1.5px solid rgba(88, 186, 64, 0.16);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
}

/* Start ripples when section enters viewport */
.network-team-section.animate-active .map-ripple-ring {
  animation: mapRippleLoop 6.5s cubic-bezier(0.1, 0.8, 0.25, 1) infinite;
}

.network-team-section.animate-active .map-ripple-ring.ring-1 {
  animation-delay: 0s;
}

.network-team-section.animate-active .map-ripple-ring.ring-2 {
  animation-delay: 2.15s;
}

.network-team-section.animate-active .map-ripple-ring.ring-3 {
  animation-delay: 4.3s;
}

@keyframes mapRippleLoop {
  0% {
    transform: scale(0.35);
    opacity: 0;
    box-shadow: 0 0 10px rgba(88, 186, 64, 0.02) inset, 0 0 10px rgba(88, 186, 64, 0.02);
  }
  6% {
    opacity: 0.85;
    box-shadow: 0 0 20px rgba(88, 186, 64, 0.08) inset, 0 0 20px rgba(88, 186, 64, 0.08);
  }
  65% {
    opacity: 0.15;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
    box-shadow: 0 0 35px rgba(88, 186, 64, 0) inset, 0 0 35px rgba(88, 186, 64, 0);
  }
}

.vietnam-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.vietnam-map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(88, 186, 64, 0.18));
  transform: translateZ(0); /* forces GPU composite layer to prevent scaling blurriness */
  backface-visibility: hidden;
}

.vietnam-map-svg--overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

/* New connection line SVG overlay — uses % viewBox (0-100) to match pin % positions */
.map-connection-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.conn-line-draw {
  stroke-dasharray: 8 4;
  stroke-dashoffset: 60;
  stroke-width: 0.45;
  opacity: 0.15;
  filter: url(#connGlow);
}

/* Start looping animations when section is scrolled into view */
.network-team-section.animate-active .conn-hn-dn {
  animation: connDrawHNDN 6s linear infinite;
}

.network-team-section.animate-active .conn-dn-sg {
  animation: connDrawDNSG 6s linear infinite;
}

@keyframes connDrawHNDN {
  0% {
    stroke-dashoffset: 60;
    opacity: 0.15;
    stroke-width: 0.45;
  }
  3% {
    stroke-dashoffset: 60;
    opacity: 1;
    stroke-width: 0.65;
  }
  20% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-width: 0.65;
  }
  50% {
    stroke-dashoffset: -12;
    opacity: 1;
    stroke-width: 0.65;
  }
  55% {
    opacity: 0.15;
    stroke-width: 0.45;
  }
  100% {
    stroke-dashoffset: 60;
    opacity: 0.15;
    stroke-width: 0.45;
  }
}

@keyframes connDrawDNSG {
  0% {
    stroke-dashoffset: 60;
    opacity: 0.15;
    stroke-width: 0.45;
  }
  20% {
    stroke-dashoffset: 60;
    opacity: 0.15;
    stroke-width: 0.45;
  }
  23% {
    stroke-dashoffset: 60;
    opacity: 1;
    stroke-width: 0.65;
  }
  40% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-width: 0.65;
  }
  50% {
    stroke-dashoffset: -6;
    opacity: 1;
    stroke-width: 0.65;
  }
  55% {
    opacity: 0.15;
    stroke-width: 0.45;
  }
  100% {
    stroke-dashoffset: 60;
    opacity: 0.15;
    stroke-width: 0.45;
  }
}

/* Keep the old class for any legacy usage but make it display-mode overlay */
.vietnam-outline {
  stroke: url(#mapGradient);
  stroke-width: 1.8;
  fill: url(#mapFillGradient);
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 8px rgba(88, 186, 64, 0.08));
}

.map-mesh-lines line {
  stroke: rgba(88, 186, 64, 0.18);
  stroke-width: 0.75px;
  stroke-linecap: round;
}

.map-mesh-nodes circle {
  fill: #ffffff;
  stroke: var(--color-primary);
  stroke-width: 0.75px;
  transition: all 0.3s ease;
}

.map-mesh-nodes circle.node-important {
  fill: var(--color-primary);
  filter: drop-shadow(0 0 3px rgba(88, 186, 64, 0.6));
}

.connection-line {
  stroke: rgba(88, 186, 64, 0.15);
  stroke-width: 1.5;
  fill: none;
}

.connection-line-draw {
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.map-island-text {
  font-size: 8px;
  fill: var(--color-text-muted);
  font-family: var(--font-family);
  user-select: none;
}

.map-island-text-bold {
  font-size: 8px;
  fill: var(--color-text-main);
  font-weight: 700;
  font-family: var(--font-family);
  user-select: none;
}

/* Pulsing Pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.pin-marker {
  width: 28px;
  height: 28px;
  color: var(--color-text-muted);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.pin-marker svg {
  width: 100%;
  height: 100%;
}

.pin-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(88, 186, 64, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: pinPulse 2.2s infinite ease-out;
}

.map-pin:hover .pin-marker,
.map-pin.active .pin-marker {
  color: var(--color-primary);
  transform: scale(1.18) translateY(-3px);
}

.map-pin.active .pin-pulse {
  background: rgba(88, 186, 64, 0.6);
  animation-duration: 1.8s;
}

/* Tooltips */
.pin-tooltip {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #1e293b;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 5;
}

.map-pin:hover .pin-tooltip,
.map-pin.active .pin-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Block B: Metrics & Balanced Grid Photos */
/* Block B: Metrics & 9-Box Grid Layout */
.team-asymmetric-block {
  margin-top: 5rem;
  width: 100%;
}

.team-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  position: relative;
}

.team-text-box .team-title-main {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
  font-family: var(--font-family);
}

.team-text-box .team-title-sub {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-family);
  display: inline-block;
}

.team-text-box .metric-number-wrap {
  display: flex;
  align-items: baseline;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-family);
  font-weight: 800;
  line-height: 1;
}

.team-text-box .metric-number {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.team-text-box .metric-suffix {
  font-size: 2.5rem;
  margin-left: 0.15rem;
  font-weight: 700;
}

.team-text-box .metric-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0.4rem 0 0 0;
}

.team-text-box .quote-card-char {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -20px;
  font-size: 5rem;
  color: rgba(88, 186, 64, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
  font-weight: 800;
  pointer-events: none;
}

.team-text-box .team-quote-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-main);
  font-weight: 500;
  margin: 0;
  padding: 0 1rem;
}

.team-asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .team-asymmetric-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem 2rem;
  }
}

.team-photo-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.team-photo-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2; /* 3:2 landscape ratio */
  overflow: hidden;
  border-radius: 12px;
}

.team-photo-frame img,
.team-grid-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-photo-wrapper:hover img {
  transform: scale(1.08);
}

/* Stagger entrance animations */
.network-team-section .office-tab-btn,
.network-team-section .network-blockquote,
.network-team-section .vietnam-map-wrapper,
.network-team-section .team-photo-wrapper,
.network-team-section .team-text-box {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-team-section.animate-active .office-tab-btn,
.network-team-section.animate-active .network-blockquote,
.network-team-section.animate-active .vietnam-map-wrapper,
.network-team-section.animate-active .team-photo-wrapper,
.network-team-section.animate-active .team-text-box {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay counters */
.network-team-section.animate-active .network-left-info .office-tab-btn:nth-child(1) { transition-delay: 50ms; }
.network-team-section.animate-active .network-left-info .office-tab-btn:nth-child(2) { transition-delay: 150ms; }
.network-team-section.animate-active .network-left-info .office-tab-btn:nth-child(3) { transition-delay: 250ms; }
.network-team-section.animate-active .network-blockquote { transition-delay: 350ms; }
.network-team-section.animate-active .vietnam-map-wrapper { transition-delay: 200ms; }

.network-team-section.animate-active .box-1 { transition-delay: 80ms; }
.network-team-section.animate-active .box-2 { transition-delay: 160ms; }
.network-team-section.animate-active .box-3 { transition-delay: 240ms; }
.network-team-section.animate-active .box-4 { transition-delay: 120ms; }
.network-team-section.animate-active .box-5 { transition-delay: 200ms; }
.network-team-section.animate-active .box-6 { transition-delay: 280ms; }
.network-team-section.animate-active .box-7 { transition-delay: 160ms; }
.network-team-section.animate-active .box-8 { transition-delay: 240ms; }
.network-team-section.animate-active .box-9 { transition-delay: 320ms; }

/* Responsive Adjustments */
@media (max-width: 991px) and (min-width: 768px) {
  .team-asymmetric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  
  .wrapper-img-1,
  .wrapper-img-2,
  .wrapper-img-3 {
    margin-top: 0 !important;
  }
  
  .team-asymmetric-grid .box-1 { grid-column: 1; grid-row: 1; }
  .team-asymmetric-grid .box-2 { grid-column: 2; grid-row: 1; }
  .team-asymmetric-grid .box-3 { grid-column: 1; grid-row: 2; }
  .team-asymmetric-grid .box-4 { grid-column: 2; grid-row: 2; }
  .team-asymmetric-grid .box-5 { grid-column: 1; grid-row: 3; }
  .team-asymmetric-grid .box-6 { grid-column: 2; grid-row: 3; }
  .team-asymmetric-grid .box-7 { grid-column: 1; grid-row: 4; }
  .team-asymmetric-grid .box-8 { grid-column: 2; grid-row: 4; }
  .team-asymmetric-grid .box-9 { grid-column: 1 / span 2; grid-row: 5; }
}

@media (max-width: 767px) {
  .network-map-block {
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .network-left-info {
    align-items: stretch;
    text-align: center;
    width: 100%;
  }

  .network-map-block .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
    text-align: center;
    width: 100%;
  }

  .office-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin: 1.5rem 0 0 0;
  }
  
  .office-tab-btn {
    padding: 10px 2px;
    font-size: 0.8rem;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    border-bottom: 1px solid var(--color-border);
  }

  .office-tab-btn.active {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
  }

  .office-tab-btn .icon-building {
    display: none;
  }

  .office-addresses {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }
  
  .office-checklist li {
    font-size: 0.9rem;
    gap: 10px;
    text-align: left;
  }

  .checklist-icon {
    width: 24px;
    height: 24px;
  }

  .office-photo-wrap {
    aspect-ratio: 16 / 9;
  }

  .network-right-map {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
  }

  .vietnam-map-wrapper {
    transform: scale(1.05) translateX(0);
    max-width: 320px;
    margin: 0 auto;
  }
  
  .network-blockquote {
    text-align: left;
    padding: 1.25rem 1rem;
    margin-top: 1rem;
  }
  
  .team-block-title-col {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .team-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .wrapper-img-1,
  .wrapper-img-2,
  .wrapper-img-3 {
    margin-top: 0 !important;
  }

  .team-text-box {
    min-height: auto !important;
    padding: 1.5rem 1rem;
  }

  .team-asymmetric-grid .box-1 { grid-row: 1; }
  .team-asymmetric-grid .box-2 { grid-row: 2; }
  .team-asymmetric-grid .box-3 { grid-row: 3; }
  .team-asymmetric-grid .box-4 { grid-row: 4; }
  .team-asymmetric-grid .box-5 { grid-row: 5; }
  .team-asymmetric-grid .box-6 { grid-row: 6; }
  .team-asymmetric-grid .box-7 { grid-row: 7; }
  .team-asymmetric-grid .box-8 { grid-row: 8; }
  .team-asymmetric-grid .box-9 { grid-row: 9; }
}

@keyframes pinPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* ==========================================================================
   14. PLATFORM PARTNERS SECTION
   ========================================================================== */
.platform-partners-section {
  position: relative;
  background: linear-gradient(to bottom, var(--color-bg-light) 0%, #edf7eb 50%, var(--color-bg-main) 100%);
  overflow: hidden;
  border: none;
  padding: 5rem 0;
}

.partners-mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-border) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.partners-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}

.platform-partners-section .container {
  position: relative;
  z-index: 2;
}

.text-brand-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.platform-partners-carousel-container {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 0 55px;
  margin-top: 3.5rem;
  box-sizing: border-box;
}

.platform-partners-carousel-container .carousel-track {
  gap: 1.5rem;
  display: flex;
}

#platformPartnersCarousel .slide-item {
  width: calc((100% - 1.5rem * 5) / 6); /* 6 columns on desktop */
  flex-shrink: 0;
}

.platform-partner-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.platform-partner-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 100%;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

.platform-partner-card-inner:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(88, 186, 64, 0.08);
}

.platform-partner-img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.4s ease;
}

/* Allow Google Partner Card to render slightly taller inside the 90px card container */
.platform-partner-img[src*="google-partner"],
.platform-partner-img[src*="partner"],
.platform-partner-img[src*="badge"] {
  max-height: 75px !important;
}

/* Nav Arrows Positioning */
.platform-partners-carousel-container .carousel-nav-arrows {
  position: absolute;
  top: calc(50% - 22px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 20;
}

.platform-partners-carousel-container .carousel-arrow {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.platform-partners-carousel-container .carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.platform-partners-carousel-container .carousel-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.25);
  transform: translateY(-2px);
}

.platform-partners-carousel-container .carousel-arrow:active {
  transform: translateY(0);
}

.platform-partners-carousel-container .carousel-dots-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Scroll Entrance Animations */
.platform-partners-section .platform-partner-card-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-partners-section.animate-active .platform-partner-card-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .platform-partners-carousel-container {
    padding: 0 45px !important;
    margin-top: 2.5rem;
  }
  .platform-partners-carousel-container .carousel-nav-arrows {
    left: -5px !important;
    right: -5px !important;
    top: calc(50% - 18px);
  }
  .platform-partners-carousel-container .carousel-arrow {
    width: 36px !important;
    height: 36px !important;
  }
  .platform-partners-carousel-container .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
  #platformPartnersCarousel .slide-item {
    width: calc((100% - 1.5rem * 2) / 3); /* 3 items per view on tablet */
  }
}

@media (max-width: 767px) {
  #platformPartnersCarousel .slide-item {
    width: calc((100% - 1.5rem) / 2); /* 2 items per view on mobile */
  }
}

@media (max-width: 575px) {
  .platform-partners-carousel-container {
    padding: 0 !important;
  }
  .platform-partners-carousel-container .carousel-nav-arrows {
    display: none !important;
  }
  .platform-partners-carousel-container .carousel-dots-indicator {
    margin-top: 2rem;
  }
}

/* ==========================================================================
   SECTION: PRICING (BẢNG GIÁ)
   ========================================================================== */
.pricing-section {
  position: relative;
  background-color: #f0faf2; /* Ultra-light pastel green */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text-main);
  overflow: hidden;
  z-index: 1;
}

/* Overlay: washes out background image to a barely-visible texture */
.pricing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 250, 242, 0.93);
  z-index: -1;
}

/* Heading text colors — light background */
.pricing-subtitle-color {
  color: var(--color-primary) !important;
}

.pricing-title-color {
  color: var(--color-text-main) !important;
}

.pricing-desc-color {
  color: var(--color-text-muted) !important;
}

/* Grid Layout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

/* Pricing Card base styles — premium white card on light green bg */
.pricing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(88, 186, 64, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  color: var(--color-text-main);
  box-shadow: 0 8px 30px rgba(88, 186, 64, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(88, 186, 64, 0.14), 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(88, 186, 64, 0.35);
}

/* Featured Badge */
.pricing-card .featured-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ffd600;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 0;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  letter-spacing: 1px;
}

/* Header inside Card */
.pricing-card .card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pricing-card.featured .card-header {
  margin-top: 1.5rem; /* Give space for the featured top badge */
}

.pricing-card .package-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-card.featured .package-name {
  color: #ffffff;
}

.pricing-card .package-tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.pricing-card.featured .package-tagline {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card .price-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
}

.pricing-card .price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.pricing-card.featured .price-amount {
  color: #ffffff;
}

.pricing-card .price-unit {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pricing-card.featured .price-unit {
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Buttons inside cards */
.pricing-card .card-action {
  margin-bottom: 2rem;
}

.pricing-card .pricing-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1.5px dashed #ef4444;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(88, 186, 64, 0.2);
  transition: all 0.3s ease;
}

.pricing-card .pricing-cta-btn:hover {
  background-color: #2ea121;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 161, 33, 0.35);
}

/* Featured card style — Scale & Glow Visual Anchor */
.pricing-card.featured {
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  transform: scale(1.05);
  box-shadow: 0 0 32px rgba(88, 186, 64, 0.45), 0 20px 50px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 0 48px rgba(88, 186, 64, 0.55), 0 30px 60px rgba(0, 0, 0, 0.22);
}

.pricing-card.featured .pricing-cta-btn {
  background-color: #ffd600;
  color: #1e293b;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.35);
}

.pricing-card.featured .pricing-cta-btn:hover {
  background-color: #ffc400;
  box-shadow: 0 6px 18px rgba(255, 196, 0, 0.5);
}

/* Features List styling */
.pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card .features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.pricing-card .feature-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 2px;
}

.pricing-card .check-icon {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.pricing-card.featured .check-icon {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.pricing-card .cross-icon {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.pricing-card.featured .cross-icon {
  background-color: rgba(255, 77, 79, 0.25);
  color: #ff4d4f;
}

.pricing-card .feature-icon svg {
  width: 12px;
  height: 12px;
}

.pricing-card .feature-text {
  color: var(--color-text-main);
}

.pricing-card.featured .feature-text {
  color: #ffffff;
}

/* Group Subheadings inside Features List */
.pricing-card .feature-group-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-top: 15px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
  display: block !important;
}

.pricing-card.featured .feature-group-title {
  color: #ffd600;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Bottom Short Note */
.pricing-bottom-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-style: italic;
}

/* Footer Banner CTA styling — Premium green magnet block */
.pricing-footer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-brand);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 3rem;
  margin-top: 3.5rem;
  box-shadow: 0 16px 48px rgba(46, 161, 33, 0.3), 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Decorative inner shimmer layer */
.pricing-footer-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 45%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  pointer-events: none;
}

.pricing-footer-banner .banner-text {
  max-width: 65%;
}

.pricing-footer-banner .banner-text .banner-title {
  font-size: 1.55rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.pricing-footer-banner .banner-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.6;
}

/* CTA button — clean white button */
.pricing-footer-banner .pricing-footer-cta {
  background-color: #ffffff;
  color: #2ea121;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-footer-banner .pricing-footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR PRICING
   ========================================================================== */
@media (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .pricing-footer-banner {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .pricing-footer-banner .banner-text {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Reset scale on mobile to avoid overflow & visual clipping */
  .pricing-card.featured {
    transform: scale(1);
    box-shadow: 0 0 24px rgba(88, 186, 64, 0.35), 0 12px 32px rgba(0, 0, 0, 0.14);
  }
  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
  .pricing-footer-banner {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
  }
  .pricing-footer-banner .banner-text .banner-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   STICKY CONTACT WIDGET
   Fixed floating 3-button contact cluster at bottom-right corner
   ========================================================================== */

.sticky-contact-widget {
  position: fixed;
  bottom: 2rem;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

/* Base button style */
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20), 0 1px 4px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.sticky-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Icon wrapper */
.sticky-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.sticky-btn__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* Tooltip label */
.sticky-btn__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1d2b1a;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%) translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Tooltip arrow */
.sticky-btn__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1d2b1a;
  border-right-width: 0;
}

.sticky-btn:hover .sticky-btn__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* === HOTLINE button: brand green gradient === */
.sticky-btn--hotline {
  background: var(--gradient-brand);
}

.sticky-btn--hotline:hover {
  box-shadow: 0 8px 28px rgba(88, 186, 64, 0.45), 0 2px 8px rgba(88, 186, 64, 0.25);
}

/* === ZALO button: official Zalo blue === */
@keyframes zalo-glow-wiggle {
  0% {
    box-shadow: 0 4px 18px rgba(0, 104, 255, 0.25), 0 0 0 0 rgba(0, 104, 255, 0.5);
    transform: scale(1) rotate(0deg);
  }
  25% {
    box-shadow: 0 6px 22px rgba(0, 104, 255, 0.35), 0 0 0 12px rgba(0, 104, 255, 0);
    transform: scale(1.06) rotate(0deg);
  }
  50% {
    box-shadow: 0 4px 18px rgba(0, 104, 255, 0.25), 0 0 0 0 rgba(0, 104, 255, 0);
    transform: scale(1) rotate(0deg);
  }
  70% {
    transform: scale(1.05) rotate(0deg);
  }
  74% {
    transform: scale(1.05) rotate(-10deg);
  }
  78% {
    transform: scale(1.05) rotate(10deg);
  }
  82% {
    transform: scale(1.05) rotate(-8deg);
  }
  86% {
    transform: scale(1.05) rotate(8deg);
  }
  90% {
    transform: scale(1.05) rotate(0deg);
  }
  100% {
    box-shadow: 0 4px 18px rgba(0, 104, 255, 0.25), 0 0 0 0 rgba(0, 104, 255, 0.5);
    transform: scale(1) rotate(0deg);
  }
}

.sticky-btn--zalo {
  background: #0068FF;
  animation: zalo-glow-wiggle 3s ease-in-out infinite;
}

.sticky-btn--zalo:hover {
  background: #005ae0;
  animation: none;
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 104, 255, 0.35), 0 2px 8px rgba(0, 104, 255, 0.18);
}

/* === MESSENGER button: official purple-blue gradient === */
.sticky-btn--messenger {
  background: linear-gradient(135deg, #0099ff 0%, #a033ff 60%, #ff5c87 100%);
}

.sticky-btn--messenger:hover {
  box-shadow: 0 8px 28px rgba(160, 51, 255, 0.40), 0 2px 8px rgba(160, 51, 255, 0.22);
}

/* === Pulse animation for Hotline (attention getter) === */
@keyframes sticky-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20), 0 0 0 0 rgba(88, 186, 64, 0.5); }
  50%       { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20), 0 0 0 10px rgba(88, 186, 64, 0); }
}

.sticky-btn--hotline {
  animation: sticky-pulse 2.5s ease-in-out infinite;
}

.sticky-btn--hotline:hover {
  animation: none;
}

/* === RESPONSIVE: Mobile (<= 767px) === */
@media (max-width: 767px) {
  .sticky-contact-widget {
    bottom: 2rem;
    right: 16px;
    gap: 10px;
  }

  .sticky-btn {
    width: 48px;
    height: 48px;
  }

  .sticky-btn__icon img {
    width: 24px;
    height: 24px;
  }

  /* Hide tooltips on mobile (touch devices) */
  .sticky-btn__tooltip {
    display: none;
  }
}

/* === Very small screens (<= 360px) === */
@media (max-width: 360px) {
  .sticky-contact-widget {
    bottom: 2rem;
    right: 12px;
    gap: 8px;
  }

  .sticky-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   VIDEO INTRO OVERLAP SECTION (Floats over Hero section footer)
   ========================================================================== */
.video-intro-section {
  position: relative;
  margin-top: -65px;
  z-index: 15;
  margin-bottom: 2.5rem;
}

.video-intro-box {
  background-color: var(--color-bg-main);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
  padding: 3rem 3.5rem;
  border: 1px solid rgba(88, 186, 64, 0.08);
}

.video-intro-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: stretch;
}

/* Left Content Column */
.video-intro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.video-intro-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.video-intro-tagline::after {
  content: '';
  display: inline-block;
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
  margin-left: 10px;
}

.video-intro-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.video-intro-title .text-highlight {
  color: var(--color-primary); /* Highlight accent in brand green */
}

.video-intro-title .text-brand-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.video-intro-desc-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Quote styling */
.video-intro-blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 0 0 2rem 0;
  background-color: rgba(88, 186, 64, 0.02);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.video-intro-quote-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.video-intro-author-cite {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Play Button */
.video-intro-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(88, 186, 64, 0.2);
}

.video-intro-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 186, 64, 0.35);
}

.play-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

/* Right Media Column */
.video-intro-media {
  position: relative;
  display: flex;
  height: 100%;
}

.video-intro-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: visible;
  min-height: 380px; /* Base height for styling wrapper */
}

.video-intro-team-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Abstract blob decoration behind image */
.blob-bg-decoration {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(88, 186, 64, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

/* ==========================================================================
   VIDEO POPUP MODAL
   ========================================================================== */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #000000;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.active .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.video-modal-iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-modal-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   RESPONSIVE OVERIDES
   ========================================================================== */
@media (max-width: 991px) {
  .video-intro-box {
    padding: 2.5rem;
  }
  
  .video-intro-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .video-intro-media {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .video-intro-title {
    font-size: 2.15rem;
  }
}

@media (max-width: 575px) {
  .video-intro-section {
    margin-top: -45px;
    margin-bottom: 1.5rem;
  }
  
  .video-intro-box {
    padding: 2rem 1.25rem;
    border-radius: 14px;
  }
  
  .video-intro-title {
    font-size: 1.75rem;
  }
  
  .video-intro-tagline {
    font-size: 0.75rem;
  }
  
  .video-intro-tagline::after {
    width: 30px;
  }
  
  .video-intro-blockquote {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .video-intro-quote-text {
    font-size: 0.95rem;
  }
  
  .video-intro-play-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   QUY TRÌNH TRIỂN KHAI TEMPLATE STYLES
   ========================================================================== */

/* 1. Hero Section */
.qt-main {
  overflow-x: hidden;
}

.qt-hero {
  padding: 6rem 0 4rem 0;
  background: var(--color-bg-light);
}

.qt-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .qt-hero {
    padding: 8rem 0 6rem 0;
  }
  .qt-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.qt-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(88, 186, 64, 0.15);
}

.qt-hero-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.qt-hero-title span.text-primary,
.qt-hero-title span.highlight {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .qt-hero-title {
    font-size: 2.75rem;
  }
}

.qt-hero-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.qt-hero-desc p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.qt-hero-commitments {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.qt-hero-commitments li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.qt-icon-check {
  color: var(--color-primary);
  flex-shrink: 0;
}

.qt-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.qt-hero-ctas .btn {
  padding: 14px 28px;
  font-weight: 600;
}

/* Laptop Mockup */
.qt-laptop-mockup {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.qt-laptop-screen {
  background: #1e1e1e;
  border-radius: 12px 12px 0 0;
  padding: 3.5%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 4px solid #333;
  border-bottom: none;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qt-laptop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.qt-laptop-base {
  height: 12px;
  background: #e2e8f0;
  border-radius: 0 0 16px 16px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #cbd5e1;
}

.qt-laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  height: 4px;
  background: #94a3b8;
  border-radius: 0 0 4px 4px;
}

.qt-usp {
  background: var(--color-bg-main);
  position: relative;
}
.qt-usp-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.qt-usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .qt-usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qt-usp-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.qt-usp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(88, 186, 64, 0.04);
  border-color: rgba(88, 186, 64, 0.2);
}

.qt-usp-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.qt-usp-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.qt-usp-desc p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.qt-steps {
  background: var(--color-bg-light);
}

.qt-steps-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 992px) {
  .qt-steps-list {
    gap: 6rem;
  }
}

.qt-step-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .qt-step-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
  .qt-step-row-reverse {
    direction: ltr;
  }
  .qt-step-row-reverse .qt-step-content {
    order: 2;
  }
  .qt-step-row-reverse .qt-step-media {
    order: 1;
  }
}

.qt-step-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qt-step-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(88, 186, 64, 0.2);
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.qt-step-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.qt-step-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.qt-step-desc ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.qt-step-desc li {
  margin-bottom: 0.5rem;
}

.qt-step-media-wrapper {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.qt-step-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  display: block;
}

.qt-step-image-placeholder {
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 500;
  font-style: italic;
  border: 2px dashed var(--color-border);
}

.qt-results {
  background: var(--color-bg-main);
}
.qt-results h2.section-title {
  color: var(--color-primary) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 0 !important;
  display: inline-block !important;
  text-align: center !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}
.qt-results .section-title-wrapper {
  margin-bottom: 1.5rem !important;
  text-align: center;
}

.qt-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .qt-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .qt-results-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.qt-results-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.qt-results-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88, 186, 64, 0.15);
}

.qt-results-icon-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #f8fafc;
  padding: 6px;
  border: 1px solid #f1f5f9;
}

.qt-results-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.qt-results-card-placeholder {
  color: var(--color-text-muted);
  opacity: 0.25;
}

.qt-results-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.4;
}

/* 5. Data Proof Banner */
.qt-proof {
  background: linear-gradient(135deg, #0b1108 0%, #152511 100%);
  color: #ffffff;
}

.qt-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .qt-proof-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
  }
}

.qt-proof-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qt-proof-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.qt-proof-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: var(--font-weight-headline-max);
  color: #ffffff;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .qt-proof-title {
    font-size: 2.25rem;
  }
}

.qt-proof-desc p {
  font-size: 1rem;
  color: var(--color-dark-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.qt-proof-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.qt-proof-badge-item {
  border-left: 2px solid var(--color-primary);
  padding-left: 1rem;
}

.qt-proof-badge-val {
  display: block;
  font-size: 1.75rem;
  font-weight: 750;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.qt-proof-badge-label {
  font-size: 0.85rem;
  color: var(--color-dark-text-muted);
  font-weight: 500;
}

.qt-proof-image-wrapper {
  background: var(--color-dark-card);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.qt-proof-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  display: block;
  object-fit: cover;
}

/* 6. Refund Banner & Form */
.qt-cta {
  background: #ffffff;
}

.qt-cta-wrapper {
  display: flex;
  flex-direction: column;
}

.qt-refund-banner {
  background: var(--color-primary);
  background: var(--gradient-brand);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 15px 35px rgba(88, 186, 64, 0.2);
}

@media (min-width: 768px) {
  .qt-refund-banner {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }
}

.qt-refund-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  min-width: 150px;
}

.qt-refund-shield-icon {
  margin-bottom: 0.5rem;
}

.qt-refund-percent-label {
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.qt-refund-sub-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.qt-refund-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qt-refund-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.qt-refund-content .btn-secondary {
  background: #ffffff;
  color: var(--color-text-main);
  border: none;
  font-weight: 600;
  padding: 14px 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.qt-refund-content .btn-secondary:hover {
  background: #f8fafc;
}

/* Pulsing effect for Refund CTA Button */
.qt-btn-pulse {
  animation: qtPulse 2s infinite;
}

@keyframes qtPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Consultation Form Section */
.qt-form-block {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.qt-form-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .qt-form-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.qt-form-sidebar {
  background: var(--color-bg-light);
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 992px) {
  .qt-form-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: 4rem 3.5rem;
  }
}

.qt-sidebar-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.qt-sidebar-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-headline-max);
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 2rem;
}

.qt-sidebar-title span.text-primary {
  color: var(--color-primary);
}

.qt-sidebar-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qt-sidebar-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.qt-sidebar-benefits svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.qt-founder-avatar-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qt-founder-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.qt-founder-info {
  display: flex;
  flex-direction: column;
}

.qt-founder-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.qt-founder-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.qt-form-wrapper {
  padding: 3rem 2.5rem;
}

@media (min-width: 992px) {
  .qt-form-wrapper {
    padding: 4rem 3.5rem;
  }
}

.qt-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.qt-form-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.qt-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .qt-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qt-form-field-group {
  display: flex;
  flex-direction: column;
}

.qt-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.qt-form-label .required-star {
  color: #ef4444;
}

.qt-form-input {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.qt-form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.qt-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.qt-select-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--color-text-muted);
  position: absolute;
  right: 16px;
  pointer-events: none;
}

.qt-form-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
  padding-right: 36px;
}

.qt-form-message {
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  display: none;
}

.qt-form-message.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.qt-form-message.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Loading state for button */
.qt-submit-btn.loading span {
  opacity: 0.5;
}

.qt-submit-btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: qtSpin 0.8s linear infinite;
  margin-left: 8px;
  display: inline-block;
}

@keyframes qtSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   QUY TRÌNH LANDING PAGE - MOTION DESIGN STYLES
   ========================================================================== */

/* 1. Hero Motion */
.qt-line {
  display: block;
  filter: blur(20px);
  opacity: 0;
  transform: translateY(15px);
  transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.qt-line.animated {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}
.qt-line.line-1 { transition-delay: 0ms; }
.qt-line.line-2 { transition-delay: 200ms; }
.qt-line.line-3 { transition-delay: 400ms; }

.qt-floating-word {
  position: absolute;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-headline);
}
@media (max-width: 767px) {
  .qt-floating-word {
    font-size: 2.2rem;
  }
}

.qt-hero-commitments li {
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.qt-hero-commitments li.animated {
  opacity: 1;
  transform: translateX(0);
}

.qt-hero-ctas .btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}
.qt-hero-ctas .btn:hover {
  transform: scale(1.05);
}

/* 2. USP Motion */
.qt-usp-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.qt-usp-card.animated {
  opacity: 1;
  transform: translateY(0);
}
.qt-usp-card:hover {
  transform: translateY(-10px) !important;
}
.qt-usp-card svg {
  transition: transform 0.4s ease;
}
.qt-usp-card:hover svg {
  transform: rotate(10deg);
}

/* 3. Partners Marquee (Section 4) */
/* 3. Partners Marquee (Section 4) */
.qt-results-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.qt-results-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2rem !important;
  width: max-content !important;
  padding: 1rem 0 !important;
}
.qt-results-card {
  flex: 0 0 200px !important;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
}
.qt-results-card:hover {
  filter: grayscale(0) !important;
  opacity: 1 !important;
  transform: translateY(-8px) scale(1.02) !important;
}

/* 4. Proof Banner Gradient Animation */
.qt-proof {
  background: linear-gradient(135deg, #0b1108, #152511, #0b1108) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 20s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 5. SVG Timeline Path & Bot Progress */
.qt-steps {
  position: relative;
}
.qt-roadmap-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#qt-roadmap-svg-path, #qt-roadmap-svg-path-bg {
  stroke-linecap: round;
  stroke-linejoin: round;
}
#qt-roadmap-svg-path {
  transition: stroke 0.8s ease, filter 0.8s ease;
}
#qt-roadmap-svg-path.completed {
  stroke: #58BA40 !important;
  filter: drop-shadow(0 0 8px rgba(88,186,64,.3));
}
#qt-roadmap-bot {
  filter: drop-shadow(0 0 8px rgba(88,186,64,.9)) drop-shadow(0 0 15px rgba(88,186,64,.6));
  z-index: 10;
}

/* 6. Step Card States & Aspect Ratio */
.qt-step-row {
  position: relative;
  z-index: 2;
  opacity: 0.4;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.qt-step-row.qt-step-active {
  opacity: 1;
  transform: scale(1);
}
.qt-step-content {
  border: 2px solid transparent;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  background: transparent;
  transition: border-color 0.6s ease, box-shadow 0.6s ease, background-color 0.6s ease;
}
.qt-step-row.qt-step-active .qt-step-content {
  border-color: #58BA40;
  box-shadow: 0 20px 40px rgba(88,186,64,.08);
  background: #ffffff;
}
.qt-step-number {
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.3s ease;
}
.qt-step-row.qt-step-active .qt-step-number {
  transform: scale(1.1);
}
.qt-step-row.qt-step-completed .qt-step-number {
  background-color: #58BA40 !important;
  color: #ffffff !important;
}
.qt-step-row.qt-step-completed .qt-step-number::before {
  content: '✓';
  font-size: 0.95rem;
  font-weight: 700;
}
.qt-step-row.qt-step-completed .qt-step-number {
  font-size: 0;
}
.qt-step-media-wrapper {
  opacity: 1;
  transform: none;
}
.qt-step-media-wrapper img, .qt-step-image {
  width: 100% !important;
  aspect-ratio: 1024 / 555 !important;
  object-fit: cover !important;
  border-radius: var(--border-radius-md);
  transition: transform 0.4s ease;
}
.qt-step-media-wrapper:hover img {
  transform: scale(1.03);
}
.qt-step-number:hover {
  color: #58BA40 !important;
}

/* 7. Refund Glow & Shield & Contrast Text */
.qt-refund-banner {
  transform: scale(0.95);
  opacity: 0;
  box-shadow: 0 0 0px rgba(88,186,64,0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}
.qt-refund-banner.qt-refund-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 20px 50px rgba(88, 186, 64, 0.25), 0 0 30px rgba(88, 186, 64, 0.15);
}
.qt-refund-text, .qt-refund-text p {
  color: #ffffff !important;
}

/* 8. Progressive Form Fields */
.qt-form-field-group, .qt-submit-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.qt-form-field-group.revealed, .qt-submit-btn.revealed {
  opacity: 1;
  transform: translateY(0);
}
.qt-form-input:focus {
  border-color: #58BA40 !important;
}
.qt-submit-btn:hover {
  transform: translateY(-3px) !important;
}

/* 9. Founder & Footers */
.qt-founder-img {
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.qt-founder-avatar-badge:hover .qt-founder-img {
  transform: translateY(-10px);
}
.qt-address-bounce {
  animation: bounceIcon 2s infinite;
}
@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 10. Mobile UI & Animation Cores */
@media (max-width: 991px) {
  /* Centering title & subtitle */
  .qt-hero-content {
    text-align: center !important;
  }
  .qt-hero-content .qt-badge {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block !important;
  }
  .qt-hero-title {
    text-align: center !important;
  }
  /* Buttons expand full width */
  .qt-hero-ctas, .hero-section-centered .btn-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  .qt-hero-ctas .btn, .hero-section-centered .btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  /* Mobile Form Spacing & Padding alignment */
  .qt-cta-wrapper {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
  }
  .qt-form-sidebar {
    padding: 2rem 1.25rem !important;
  }
  .qt-form-wrapper {
    padding: 2rem 1.25rem !important;
  }
  .qt-form-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .qt-form-grid {
    gap: 1rem !important;
  }
  .qt-form-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 11. Partners Marquee Grayscale Removal */
.qt-results-card {
  filter: none !important;
  opacity: 1 !important;
}

/* 12. Báo cáo minh bạch light background & text color overrides */
.qt-proof {
  position: relative;
  background-color: #f0faf2 !important; /* Pastel green base */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  color: var(--color-text-main) !important;
  z-index: 1;
}
.qt-proof-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(243, 250, 241, 0.94) 0%, rgba(231, 245, 228, 0.94) 100%) !important;
  z-index: 0;
}
.qt-proof-content, .qt-proof-media {
  position: relative;
  z-index: 1;
}
.qt-proof-title {
  color: var(--color-text-main) !important;
}
.qt-proof-desc p, .qt-proof-badge-label {
  color: var(--color-text-muted) !important;
}
.qt-proof-image-wrapper {
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-subtle) !important;
}

/* 13. Blinking Cursor for Typing Effect */
.qt-line.typing::after {
  content: "│";
  font-weight: 300;
  display: inline-block;
  margin-left: 3px;
  color: var(--color-primary);
  animation: qtBlink 0.6s step-end infinite;
  transition: opacity 0.5s ease;
  vertical-align: middle;
}
.qt-line.typing.cursor-fade-out::after {
  opacity: 0;
}
@keyframes qtBlink {
  from, to { color: transparent; }
  50% { color: var(--color-primary); }
}

/* ==========================================================================
   SUCCESS CASE STUDIES LANDING PAGE TEMPLATE STYLES
   ========================================================================== */

/* Main Containers */
.cs-page-main {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  overflow-x: hidden;
  font-family: var(--font-family);
}

.cs-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* 1. Hero Section */
.cs-hero {
  position: relative;
  background: var(--gradient-bg);
}
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cs-hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}
.cs-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}
.cs-hero-desc p {
  margin-bottom: 0;
}
.cs-indicators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.cs-indicator-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
}
.cs-indicator-icon-wrapper {
  color: var(--color-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-light);
  border-radius: var(--border-radius-sm);
}
.cs-indicator-svg {
  width: 20px;
  height: 20px;
}
.cs-indicator-content {
  display: flex;
  flex-direction: column;
}
.cs-indicator-val {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  line-height: 1.2;
}
.cs-indicator-lbl {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.cs-hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cs-hero-mockup-img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
}
.cs-hero-mockup-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* 2. Case Studies Section */
.cs-cases-section {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}
.cs-cases-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}
.cs-case-row {
  display: grid;
  align-items: center;
  gap: 3rem;
}
.cs-row-odd {
  grid-template-columns: 4fr 4fr 2.2fr;
}
.cs-row-even {
  grid-template-columns: 2.2fr 4fr 4fr;
}
.cs-case-image-box {
  width: 100%;
  position: relative;
}
.cs-case-square-img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow-subtle);
}
.cs-case-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
}
.cs-case-badge-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.cs-case-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
  margin-top: 3px;
}
.cs-case-title {
  font-size: 1.65rem;
  line-height: 1.3;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin: 0;
}
.cs-case-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.cs-case-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cs-case-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.cs-bullet-check {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Stats Card in Case Studies */
.cs-stats-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-subtle);
}
.cs-stats-card-title {
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.cs-stats-card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cs-stat-block {
  display: flex;
  flex-direction: column;
}
.cs-stat-val {
  font-size: 1.65rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  line-height: 1.1;
}
.cs-stat-lbl {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* 3. Other Industries Section */
.cs-other-stats-section {
  background-color: #ffffff;
}
.cs-commitment-section {
  position: relative;
  background-color: transparent !important;
  overflow: hidden;
}
.cs-other-stats-container {
  position: relative;
  z-index: 3;
}
.cs-section-header {
  text-align: center !important;
  margin-bottom: 3.5rem !important;
  width: 100% !important;
  display: block !important;
}
.cs-section-header .cs-badge {
  display: inline-block !important;
  margin-bottom: 1rem !important;
}
.cs-stats-section-title {
  font-size: 2.25rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin-bottom: 1rem;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}
.cs-stats-section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto !important;
  text-align: center !important;
  display: block !important;
}
.cs-industries-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.cs-ind-left-col {
  width: 100%;
}
.cs-ind-right-col {
  width: 100%;
}
.cs-ind-stats-table {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}
.cs-ind-stats-row {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}
.cs-ind-stats-row:last-child {
  border-bottom: none;
}
.cs-ind-stats-row:hover {
  background-color: var(--color-bg-light);
}
.cs-ind-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 32%;
}
.cs-ind-icon-box {
  width: 36px;
  height: 36px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-ind-name {
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  color: var(--color-text-main);
}
.cs-ind-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 43%;
}
.cs-ind-old-val {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.cs-growth-arrow {
  color: var(--color-primary);
}
.cs-ind-new-val {
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}
.cs-lbl-traffic-muted {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: 2px;
}
.cs-ind-leads {
  width: 25%;
  text-align: left;
}
.cs-ind-lead-val {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* Right Industry Box Card */
.cs-ind-box-card {
  position: relative;
  background: rgba(88, 186, 64, 0.02);
  border: 1px solid rgba(88, 186, 64, 0.08);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 3rem 2.5rem 4rem;
  box-shadow: none;
  overflow: hidden;
  height: auto;
  box-sizing: border-box;
}
.cs-ind-box-card::before {
  content: "“";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
.cs-ind-box-title {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.cs-ind-box-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  position: relative;
  z-index: 2;
}
.cs-ind-watermark-svg {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* 4. Commitment Section */
.cs-commit-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cs-commit-desc-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}
.cs-commit-bullets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cs-commit-bullet-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-commit-bullet-icon-box {
  width: 38px;
  height: 38px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-commit-bullet-title {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
  margin: 0;
}
.cs-commit-bullet-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* Dark Green Gradient CTA Box */
.cs-cta-banner-box {
  background: var(--gradient-brand);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(46, 161, 33, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cs-cta-banner-content h3 {
  color: #ffffff !important;
  font-size: 1.75rem !important;
  font-weight: var(--font-weight-bold) !important;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.cs-cta-banner-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem !important;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.cs-cta-pulse-btn {
  display: inline-block;
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
  font-weight: var(--font-weight-bold) !important;
  padding: 0.9rem 2.2rem !important;
  border-radius: var(--border-radius-pill) !important;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: ctaPulseGlow 2.5s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-decoration: none !important;
  font-size: 0.95rem;
}
.cs-cta-pulse-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

@keyframes ctaPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* 5. Partners Slider Section */
.cs-partners-slider-section {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}
.cs-partners-slider-title {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 2.5rem;
}
.cs-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
}
.cs-marquee-content {
  display: flex;
  animation: csMarqueeRun 30s linear infinite;
  width: max-content;
}
.cs-marquee-slide {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
}
.cs-marquee-logo-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}
.cs-marquee-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}
.cs-marquee-logo-card:hover .cs-marquee-logo-img {
  transform: scale(1.05);
}

@keyframes csMarqueeRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 991px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .cs-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cs-hero-title {
    font-size: 2.5rem;
  }
  .cs-indicators-grid {
    width: 100%;
    max-width: 550px;
  }
  
  .cs-case-row {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .cs-row-even .cs-case-stats-col {
    order: 3;
  }
  .cs-row-even .cs-case-content-col {
    order: 2;
  }
  .cs-row-even .cs-case-media-col {
    order: 1;
  }
  .cs-case-square-img {
    max-height: 450px;
  }

  .cs-industries-grid-layout {
    gap: 2.5rem;
  }
  
  .cs-commit-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 767px) {
  .cs-hero-title {
    font-size: 2.1rem;
  }
  .cs-indicators-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cs-stats-card-grid {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .cs-stat-block {
    flex: 1 1 40%;
  }

  .cs-ind-stats-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 1rem;
  }
  .cs-ind-info {
    width: 100%;
  }
  .cs-ind-traffic {
    width: 60%;
  }
  .cs-ind-leads {
    width: 40%;
    text-align: left;
  }
  
  .cs-commit-bullets-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cs-cta-banner-box {
    padding: 2.5rem 1.5rem;
  }
  .cs-cta-banner-content h3 {
    font-size: 1.4rem !important;
  }
}

/* ==========================================================================
   MOTION DESIGN & ANIMATION KEYFRAMES (AI ERA STYLE 2026)
   ========================================================================== */

/* Blur Reveal for H1 */
.cs-blur-reveal {
  filter: blur(20px);
  opacity: 0;
  transform: translateY(15px);
  transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, opacity, transform;
}
.cs-blur-reveal.animate-active {
  filter: blur(0) !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Word Reveal elements */
.cs-word-reveal span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, opacity, transform;
}
.cs-word-reveal.animate-active span {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) !important;
}

/* Spotlight Showcase transitions for Case Studies */
.cs-case-row {
  opacity: 0.15;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}
.cs-case-row.spotlight {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Image Scale transition inside Case Card */
.cs-case-square-img {
  transform: scale(0.94);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}
.cs-case-row.spotlight .cs-case-square-img {
  transform: scale(1) !important;
}
.cs-case-square-img:hover {
  transform: scale(1.03) !important;
  transition: transform 0.4s ease-out !important;
}

/* Case Title transition */
.cs-case-title {
  opacity: 0.5;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.cs-case-row.spotlight .cs-case-title {
  opacity: 1 !important;
}

/* Active State for Stats KPI Box */
.cs-stats-card {
  transition: border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.cs-case-row.spotlight .cs-stats-card {
  border-color: #58BA40 !important;
  box-shadow: 0 20px 40px rgba(88, 186, 64, 0.12) !important;
}

/* Micro Interactions */
.cs-stat-block {
  transition: transform 0.3s ease-out !important;
}
.cs-stat-block:hover {
  transform: translateY(-4px) !important;
}
.cs-case-row.spotlight:hover {
  transform: translateY(-8px) scale(1) !important;
}

/* Stats Counter Glow and Pulse */
.cs-stat-val {
  transition: text-shadow 0.5s ease, transform 0.5s ease;
  display: inline-block;
}
.cs-stat-block.glow-pulse .cs-stat-val {
  animation: csGlowPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

@keyframes csGlowPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0px rgba(88, 186, 64, 0);
  }
  30% {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(88, 186, 64, 0.6);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0px rgba(88, 186, 64, 0);
  }
}

/* Stagger checklist bullets */
.cs-case-bullets li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.cs-case-row.spotlight .cs-case-bullets li {
  opacity: 1;
  transform: translateY(0);
}

/* Values Card Stagger entrance & Hover states */
.cs-commit-bullet-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}
.cs-commitment-section.animate-active .cs-commit-bullet-item {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.cs-commit-bullet-item:hover {
  transform: translateY(-10px) !important;
}
.cs-commit-bullet-item:hover .cs-commit-bullet-icon-box {
  transform: rotate(8deg);
}
.cs-commit-bullet-icon-box {
  transition: transform 0.3s ease !important;
}

/* Soft CTA Background Animation Shift */
.cs-cta-banner-box {
  background-size: 200% 200% !important;
  animation: csCtaGradientShift 20s ease infinite;
}
@keyframes csCtaGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Industry Rows Stagger entrance */
.cs-ind-stats-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}
.cs-other-stats-section.animate-active .cs-ind-stats-row {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Floating Data Layer styling */
.cs-float-tag {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.025 !important;
  pointer-events: none;
  user-select: none;
  animation: csFloatDrift 12s ease-in-out infinite !important;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes csFloatDrift {
  0% { transform: translateY(-15px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(2deg); }
  100% { transform: translateY(-15px) rotate(0deg); }
}

/* Form and inputs animate focus state */
.custom-contact-form input,
.custom-contact-form textarea,
.custom-contact-form select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(88, 186, 64, 0.1) !important;
}

/* Mini Sparkline and Growth Badge */
.cs-mini-sparkline {
  margin-left: 0.75rem;
  vertical-align: middle;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: stroke-dashoffset;
}
.cs-other-stats-section.animate-active .cs-mini-sparkline {
  stroke-dashoffset: 0 !important;
}

.cs-ind-growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: rgba(88, 186, 64, 0.08);
  color: #2ea121;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 0.5rem;
  border: 1px solid rgba(88, 186, 64, 0.12);
  white-space: nowrap;
  vertical-align: middle;
  transition: transform 0.3s ease-out;
}
.cs-ind-growth-badge:hover {
  transform: scale(1.08);
}

/* ============================================================
   AUTHOR ARCHIVE PAGE  (.author-pg__)
   template: author.php
   ============================================================ */

/* ── Hero — Green gradient (giống blog-pg__hero & cat-pg__hero) ── */
.author-pg__hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 0;
  background: linear-gradient(135deg, #246b1a 0%, #318c26 35%, #44a038 65%, #56b04a 100%);
  border-bottom: 1px solid rgba(88,186,64,0.2);
}
.author-pg__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 110% 50%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at -10% 80%, rgba(88,186,64,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.author-pg__hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23ffffff' fill-opacity='.1'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}
.author-pg__hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 3.5rem;
}
.author-pg__hero-content {
  max-width: 900px;
}

/* ── Breadcrumb ── */
.author-pg__breadcrumb {
  margin-bottom: 1.5rem;
}
.author-pg__breadcrumb .breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.author-pg__breadcrumb a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.author-pg__breadcrumb a:hover { color: #ffffff; }
.author-pg__breadcrumb .breadcrumb-sep {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.55);
}
.author-pg__breadcrumb .breadcrumb-current {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  opacity: 0.9;
}

/* ── Author Box (Profile Box) ── */
.author-info {
  display: flex;
  align-items: flex-start;
  gap: 2.25rem;
}
.author-info__avatar-wrap {
  flex-shrink: 0;
}
.author-info__avatar {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: var(--color-dark-card);
}
.author-info__body {
  flex-grow: 1;
}
.author-info__name {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: var(--font-weight-headline-max);
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.author-info__title {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}
.author-info__bio {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.25rem;
  max-width: 720px;
}
.author-info__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.author-info__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  backdrop-filter: blur(4px);
}
.author-info__count svg {
  opacity: 0.8;
  flex-shrink: 0;
}
.author-info__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-info__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.3s, color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.author-info__social-link:hover {
  background: #ffffff;
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ── Posts Section ── */
.author-posts {
  background: var(--color-bg-main);
}
.author-posts__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 2.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary);
  line-height: 1.2;
}

/* Grid & Cards (Kế thừa từ category.php) */
.author-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 576px) {
  .author-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .author-posts__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Scroll Reveal animation */
.author-posts__grid .bpc-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}
.author-posts__grid.is-visible .bpc-card {
  opacity: 1;
  transform: translateY(0);
}
.author-posts__grid.is-visible .bpc-card:hover {
  transform: translateY(-4px);
}
.author-posts__grid.is-visible .bpc-card:hover .bpc-card__img {
  transform: scale(1.05);
}

/* Pagination */
.author-posts__pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}
.author-posts__pagination-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.author-posts__page-item {
  display: contents;
}
.author-posts__pagination-inner .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 0.88rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  background: var(--color-bg-main);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.author-posts__pagination-inner a.page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}
.author-posts__pagination-inner .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  cursor: default;
}
.author-posts__pagination-inner .prev.page-numbers,
.author-posts__pagination-inner .next.page-numbers {
  padding: 0 0.65rem;
}
.author-posts__pagination-inner .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: default;
  min-width: 1.5rem;
}

/* Empty state */
.author-posts__empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--color-text-muted);
}
.author-posts__empty svg {
  display: block;
  margin: 0 auto 1.25rem;
  opacity: 0.2;
}
.author-posts__empty p {
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

/* ── Responsive Mobile ── */
@media (max-width: 767px) {
  .author-pg__hero {
    padding: 2.5rem 0 0;
  }
  .author-pg__hero-inner {
    padding-bottom: 2.5rem;
  }
  .author-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .author-info__avatar {
    width: 100px;
    height: 100px;
  }
  .author-info__meta {
    justify-content: center;
  }
  .author-posts {
    padding: 3rem 0;
  }
  .author-posts__heading {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
  }
  .author-posts__pagination-inner {
    gap: 0.25rem;
  }
  .author-posts__pagination-inner .page-numbers {
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 0.82rem;
  }

  /* Optimized CEO Feature Block for Mobile */
  .ceo-feature-section {
    padding: 2rem 1.25rem !important;
    gap: 1.75rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2.5rem !important;
  }
  .ceo-feature-section .ceo-feature-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }
  .ceo-feature-divider {
    margin-bottom: 1.25rem !important;
  }
}

/* ==========================================================================
   SEMANTIC HTML5 RESETS — About Page (v2 semantic update)
   Ensures <figure>, <dl>/<dd>, <ul>/<li> semantic wrappers
   don't inherit disruptive browser-default styles.
   ========================================================================== */

/* figure resets — prevents default margin in older browsers */
figure.about-hero-centered-img-wrapper,
figure.exp-image-wrap,
figure.ceo-feature-image-wrapper,
figure.company-office-image-wrapper,
figure.award-icon-wrap {
  margin: 0;
  padding: 0;
}

figure.team-member-img-wrapper {
  margin: 0 0 1.6rem 0; /* Restores spacing between image and name (approx 25px) */
  padding: 0;
}

/* dl/dt/dd resets for company-details-list */
dl.company-details-list {
  margin: 0;
  padding: 0;
}
dl.company-details-list dt.company-info-label {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}
dl.company-details-list dd.company-info-value {
  margin-left: 0; /* Override browser default dd margin */
  color: var(--color-text-main);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

/* ul/li resets for team-member-socials */
ul.team-member-socials {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
ul.team-member-socials li {
  display: inline-flex;
}

/* article resets for value-item-col (previously div) */
article.value-item-col {
  display: flex;
  flex-direction: column;
}

/* ol/li resets for roadmap-timeline-serpentine */
ol.roadmap-timeline-serpentine {
  list-style: none;
  margin: 0;
  padding: 0;
}
ol.roadmap-timeline-serpentine li.roadmap-step {
  list-style: none;
}

/* ul/li resets for about-stats-grid */
ul.about-stats-grid {
  list-style: none;
  margin: 0 auto; /* Correctly centers the stats grid (specificity fix override) */
  padding: 0;
}
ul.about-stats-grid li.why-us-glass-badge {
  list-style: none;
}

/* ol/li resets for conversion-matrix-visual */
ol.conversion-matrix-visual {
  list-style: none;
  margin: 3rem 0 0 0;
  padding: 2.25rem;
}
ol.conversion-matrix-visual li {
  list-style: none;
}
@media (max-width: 575px) {
  ol.conversion-matrix-visual {
    margin-top: 3rem;
  }
}

/* ol/li resets for serpentine roadmap timeline */
ol.roadmap-timeline-serpentine li.serpentine-svg-wrapper {
  display: contents;
}

/* ul/li resets for marquee-track (legacy) */
ul.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.marquee-track li.brand-logo-item {
  list-style: none;
}

/* =========================================================
   BRANDS STATIC GRID — khách hàng tiêu biểu trang Giới Thiệu
   ========================================================= */
.brands-static-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.brands-static-grid .brand-logo-item {
  width: auto;
  height: 90px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.25rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  box-sizing: border-box;
}
.brands-static-grid .brand-logo-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-pastel);
  box-shadow: 0 8px 24px rgba(88, 186, 64, 0.1);
}
.brands-static-grid .brand-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(80%) opacity(0.65);
  transition: filter 0.35s ease;
  display: block;
}
.brands-static-grid .brand-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Awards 5-col: tablet → 3 cols, mobile → 2 cols */
@media (max-width: 1024px) {
  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brands-static-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .awards-grid .award-card:nth-child(odd):last-child {
    grid-column: span 2;
  }
  .brands-static-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .brands-static-grid .brand-logo-item:nth-child(odd):last-child {
    grid-column: span 2;
  }
  .brands-static-grid .brand-logo-item {
    height: 70px;
    padding: 0.75rem;
  }
}

/* ==========================================================================
   POPUP MODAL FOR STEP DETAILS (QUY TRÌNH CHI TIẾT)
   ========================================================================== */
.qt-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.qt-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 17, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
}

.qt-modal-container {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(88, 186, 64, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(88, 186, 64, 0.08);
}

.qt-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.qt-modal-close:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.qt-modal-header {
  padding: 2.25rem 2.25rem 1.25rem 2.25rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.qt-modal-step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(88, 186, 64, 0.2);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.qt-modal-title {
  font-size: 1.65rem;
  font-weight: var(--font-weight-headline-max);
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.3;
}

.qt-modal-body {
  padding: 2.25rem;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.qt-modal-body p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.qt-modal-body ul, .qt-modal-body ol {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.qt-modal-body li {
  margin-bottom: 0.5rem;
}

.qt-modal-body strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.qt-modal-footer {
  padding: 1.25rem 2.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  background: #f8fafc;
}

/* ==========================================================================
   SEMANTIC TAG RESETS & FLEX ALIGNMENTS FOR QUY TRÌNH PAGE
   ========================================================================== */
ol.qt-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
dl.qt-proof-badges, dl.qt-proof-badges dd {
  margin: 0;
  padding: 0;
}
.qt-results-card figure {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

/* State locks for Hero Section elements to prevent ScrollTrigger/CSS transitions conflict reversions */
.qt-hero-content .qt-badge.animated,
.qt-line.animated,
.qt-hero-desc.animated,
.qt-hero-commitments li.animated,
.qt-hero-ctas .btn.animated {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ==========================================================================
   8. EQUAL HEIGHT CAROUSEL CARDS Overrides for Press & Blog
   ========================================================================== */
.carousel-track {
  align-items: stretch !important;
}

.carousel-track .slide-item {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important; /* Let flex stretch control the height */
}

/* Force cards to expand and fill the slide height */
.carousel-track .slide-item > .card,
.carousel-track .slide-item > .blog-card,
.carousel-track .slide-item > .press-card,
.carousel-track .slide-item > .testimonial-card {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  height: auto !important; /* Allow stretch */
}

/* Align contents inside cards (e.g., push meta/footer elements to bottom) */
.blog-card-content,
.press-card-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
}

/* ==========================================================================
   9. PRESS OUTLET BADGE STYLING
   ========================================================================== */
.press-outlet-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important; /* Slightly larger gap */
  margin-bottom: 0.9rem !important;
  background-color: var(--color-primary-light) !important;
  border: 1px solid var(--color-border) !important;
  padding: 5px 12px !important; /* Slightly larger padding */
  border-radius: var(--border-radius-pill) !important;
  align-self: flex-start !important; /* Prevent stretching horizontally */
}

.press-outlet-logo {
  width: 18px !important; /* Slightly larger logo */
  height: 18px !important;
  object-fit: contain !important;
  border-radius: 2px !important;
}

.press-outlet-name {
  font-size: 0.78rem !important; /* Slightly larger font */
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}


