/* ==========================================================================
   ECOM CAPTAIN - MAIN STYLESHEET
   Multipage, Responsive & SEO-Optimized eCommerce Training & Services Site
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Theme Design Tokens (User Brand Spec)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette from User Spec */
  --primary: #0033FF;          /* Electric Royal Blue */
  --primary-hover: #0026CC;    /* Deep Blue Hover */
  --primary-light: #E6EDFF;    /* Light Royal Blue Tint */
  --primary-dark: #0A1B4D;     /* Dark Royal Navy */

  --accent: #FF6A00;           /* Vibrant Electric Orange */
  --accent-hover: #E05D00;     /* Deep Orange Hover */
  --accent-light: #FFF0E6;     /* Soft Orange Tint */

  /* Neutrals from User Spec */
  --slate-900: #0D1B3D;        /* Deep Navy Black - Headlines & Hero BG */
  --slate-800: #15244A;        /* Dark Surface Slate */
  --slate-700: #334155;        /* Subheaders */
  --slate-600: #5A6473;        /* Slate Gray - Body Text */
  --slate-500: #5A6473;        /* Secondary Label */
  --slate-300: #CBD5E1;        /* Borders / Light Dividers */
  --slate-200: #E6E8EC;        /* Soft Gray Surface Border */
  --slate-100: #F1F3F7;        /* Section Alternate BG */
  --slate-50:  #F8FAFC;        /* Body Background */
  --white:     #FFFFFF;

  /* Status Colors */
  --success: #10B981;
  --error:   #EF4444;

  /* Typography Specs (Poppins Headings + Inter Subheadings & Body) */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-subheading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-main: var(--font-body);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(13, 27, 61, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(13, 27, 61, 0.08), 0 2px 4px -2px rgba(13, 27, 61, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(13, 27, 61, 0.1), 0 4px 6px -4px rgba(13, 27, 61, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(13, 27, 61, 0.15), 0 8px 10px -6px rgba(13, 27, 61, 0.04);
  --shadow-blue: 0 10px 25px -5px rgba(0, 51, 255, 0.3);

  /* Layout & Spacing */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Core Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--slate-50);
  color: var(--slate-600);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p, li, a, span, label, input, textarea, button, .tagline, .section-header p, .hero-subtitle, .btn, .nav-link, .mobile-nav-link, .form-control, .badge, .card-desc, .card-meta-item, .footer-links a, .stat-label {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6, .logo-text, .stat-number, .footer-title {
  font-family: var(--font-heading);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3vw + 0.5rem, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw + 0.25rem, 1.85rem); }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

/* Accessible Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   3. Container & Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--slate-100);
}

.section-dark {
  background-color: var(--slate-900);
  color: var(--slate-300);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header .tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--slate-900);
  border-color: var(--slate-300);
  font-family: var(--font-heading);
  font-weight: 700;
}

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

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-heading);
  font-weight: 700;
}

.btn-outline-white:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.badge-teal, .badge-blue { background-color: var(--primary-light); color: var(--primary); }
.badge-gold, .badge-orange { background-color: var(--accent-light); color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Shared Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  height: auto;
}

.site-header .logo-link {
  height: 100%;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: inline-block;
  background: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Nav Drawer Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-800);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Drawer Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1002;
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-600);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-800);
  padding: 0.5rem 0;
}

.mobile-nav-link.active {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   6. Shared Breadcrumb Bar
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 1.5rem;
  background-color: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.breadcrumb-item a {
  color: var(--slate-600);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--slate-400);
}

.breadcrumb-item.current {
  color: var(--primary);
  font-weight: 600;
}

/* Page Banner Title Section */
.page-banner {
  background: linear-gradient(135deg, #0D1B3D 0%, #001A80 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 51, 255, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-banner p {
  font-size: 1.2rem;
  color: var(--slate-300);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   7. Homepage Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #0D1B3D 0%, #050D21 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero-content h1 span {
  color: var(--accent);
  background: linear-gradient(135deg, #FF6A00 0%, #FFA800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-pill {
  color: var(--accent);
  background: rgba(255, 106, 0, 0.15);
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-300);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--slate-300);
}

.hero-trust-badges div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-media-wrapper {
  position: relative;
}

.hero-network-card {
  background: rgba(13, 27, 61, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 51, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.network-card-header {
  margin-bottom: 1.5rem;
}

.network-top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.network-stat-number {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.live-status-pill {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #FF6A00;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: lowercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #FF6A00;
  border-radius: 50%;
  box-shadow: 0 0 10px #FF6A00;
  animation: liveBlink 1.5s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.network-stat-desc {
  font-size: 0.9rem;
  color: var(--slate-300);
  font-weight: 500;
}

.network-map-container {
  width: 100%;
  height: 240px;
  position: relative;
  margin-bottom: 1.75rem;
  background: radial-gradient(circle at 50% 45%, rgba(0, 51, 255, 0.15) 0%, rgba(13, 27, 61, 0) 70%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
}

.map-floating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(21, 36, 74, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 106, 0, 0.35);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.world-map-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.animated-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawPath 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.path-2 { animation-delay: 0.8s; }
.path-3 { animation-delay: 1.6s; }
.path-4 { animation-delay: 2.4s; }

@keyframes drawPath {
  0% { stroke-dashoffset: 500; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.radar-pulse {
  transform-origin: center;
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }

@keyframes radarPing {
  0% { transform: scale(0.5); opacity: 0.9; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

.network-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-card {
  background: rgba(21, 36, 74, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.metric-card:hover, .metric-card.active-card {
  border-color: rgba(255, 106, 0, 0.4);
  background: rgba(21, 36, 74, 0.9);
  transform: translateY(-2px);
}

.metric-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--slate-300);
  margin-top: 0.25rem;
  font-weight: 500;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate-300);
  margin-top: 0.25rem;
}

.stats-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  border-top: 1px solid var(--slate-200);
  padding: 2.75rem 0;
  box-shadow: 0 4px 20px rgba(13, 27, 61, 0.03);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  align-items: center;
}

.stats-item {
  padding: 0.5rem;
}

.stats-item h3,
.stats-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--primary);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.stats-item p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-600);
  font-weight: 600;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   9. Component Cards (Training, Services, Testimonials, Blog)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--slate-600);
  font-size: 0.975rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-meta-list {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}

.card-meta-item svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--slate-700);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--slate-200);
  object-fit: cover;
}

.author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.result-badge {
  margin-left: auto;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. Blog Grid & Article Details
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: var(--slate-200);
}

.blog-card-body {
  padding: 1.75rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  color: var(--slate-600);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

/* Blog Article Post Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
}

.article-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--slate-200);
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-800);
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion Component
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.75rem;
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

/* --------------------------------------------------------------------------
   12. Contact Form & Map Component
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-card-info {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-wrapper {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background-color: var(--slate-50);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-control.error {
  border-color: var(--error);
}

.error-message {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

.form-control.error + .error-message {
  display: block;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
}

.form-alert.success {
  display: block;
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* --------------------------------------------------------------------------
   13. Footer Component
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0D1B3D;
  color: #E6E8EC;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-brand p {
  margin-top: 0.85rem;
  color: #CBD5E1 !important;
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-grid p {
  margin-top: 0.5rem;
  color: #CBD5E1 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--slate-900);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #CBD5E1;
}

.footer-legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. Animations & Utilities
   -------------------------------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Chat Widget
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
  color: #FFFFFF !important;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.5);
  z-index: -1;
  animation: waPulse 2.2s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #0D1B3D;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0D1B3D;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   15. Comprehensive Responsive Media Queries (Desktop, Laptop, Tablet, Mobile)
   -------------------------------------------------------------------------- */

/* Laptops & Medium Screens (1025px - 1280px) */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 1.2rem;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
  }
}

/* Tablets Landscape & Small Laptops (992px - 1024px) */
@media (max-width: 1024px) {
  .hero-grid, 
  .article-layout, 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Prevent 300px / 320px fixed sidebars from squeezing left content */
  div[style*="grid-template-columns: 1fr 300px"],
  div[style*="grid-template-columns: 1fr 320px"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card-grid, .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile & Tablet Navigation Breakpoint (up to 991px) */
@media (max-width: 991px) {
  .nav-menu, .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  .brand-logo-img {
    height: 40px;
    max-width: 180px;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.22;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-trust-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .article-content, 
  .contact-form-wrapper, 
  .contact-card-info {
    padding: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo-img {
    height: 34px;
    max-width: 150px;
  }

  .tagline, div[class*="tagline"] {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
    display: inline-block !important;
  }

  h1 { font-size: 1.75rem; line-height: 1.2; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  .hero-network-card {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }

  .network-stat-number {
    font-size: 1.75rem;
  }

  .network-map-container {
    height: 170px;
    margin-bottom: 1rem;
  }

  .network-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .metric-card {
    padding: 0.65rem 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stats-item {
    padding: 0.25rem;
  }

  .stats-item h3, .stats-item .stat-number {
    font-size: 1.5rem;
  }

  .stats-item p {
    font-size: 0.775rem;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-tooltip {
    display: none !important;
  }

  .card-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    width: 100%;
  }

  .breadcrumb-bar {
    padding-top: calc(var(--header-height) + 1rem);
  }
}
