/**
 * TECHNO FLAVOUR - MASTER STYLESHEET & DESIGN SYSTEM
 * Powered by Data. Driven by Growth.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand Colors */
  --tf-navy: #0B1F3B;
  --tf-dark-navy: #061122;
  --tf-navy-card: #0E2547;
  --tf-navy-border: #1B355A;
  --tf-yellow: #FFC107;
  --tf-yellow-hover: #E5AC00;
  --tf-yellow-glow: rgba(255, 193, 7, 0.25);
  
  --tf-grey-900: #111827;
  --tf-grey-800: #1F2937;
  --tf-grey-700: #374151;
  --tf-grey-600: #4B5563;
  --tf-grey-500: #6B7280;
  --tf-grey-400: #9CA3AF;
  --tf-grey-200: #E5E7EB;
  --tf-grey-100: #F3F4F6;
  --tf-grey-50: #F9FAFB;
  --tf-white: #FFFFFF;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(255, 193, 7, 0.15);
  --shadow-dark-card: 0 10px 30px rgba(6, 17, 34, 0.6);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: #1E293B; /* High-contrast Slate 800 for crisp, clear readability across all devices */
  background-color: var(--tf-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tf-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Ensure headings inside all dark sections are ALWAYS bright white */
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy h6,
.bg-dark-navy h1, .bg-dark-navy h2, .bg-dark-navy h3, .bg-dark-navy h4, .bg-dark-navy h5, .bg-dark-navy h6,
.bg-navy-card h1, .bg-navy-card h2, .bg-navy-card h3, .bg-navy-card h4, .bg-navy-card h5, .bg-navy-card h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero-wrapper h1, .hero-wrapper h2, .hero-wrapper h3, .hero-wrapper h4, .hero-wrapper h5, .hero-wrapper h6,
.footer-tf h1, .footer-tf h2, .footer-tf h3, .footer-tf h4, .footer-tf h5, .footer-tf h6,
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6 {
  color: #FFFFFF !important;
}

a {
  color: var(--tf-navy);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #B45309;
}

/* ======================================================== */
/* 🎨 UNIVERSAL COLOR CORRECTIONS FOR ALL TEXT & SURFACES   */
/* ======================================================== */

/* 1. Deep Brand Navy Text Utility */
.text-navy {
  color: #0B1F3B !important;
}

a.text-navy {
  color: #0B1F3B !important;
}

a.text-navy:hover,
a.text-navy:focus {
  color: #B45309 !important;
}

/* Auto-switch .text-navy inside dark backgrounds to vibrant golden yellow for 100% legibility */
.bg-navy .text-navy,
.bg-dark-navy .text-navy,
.bg-navy-card .text-navy,
.bg-dark .text-navy,
.text-light .text-navy,
.footer-tf .text-navy {
  color: #FFC107 !important;
}

/* 2. Yellow & Accent Text */
.text-yellow {
  color: #FFC107 !important;
}

/* 3. Text Contrast in Light vs Dark Containers */
/* In light sections: Crisp Slate 600 (WCAG AAA compliant 7:1 contrast on white) */
.text-secondary {
  color: #475569 !important;
}

.text-muted {
  color: #64748B !important;
}

p.lead {
  color: #334155 !important;
}

/* In dark sections: Clean, bright Slate 300 & Slate 400 (crystal clear on navy/dark backgrounds) */
.bg-navy .text-secondary,
.bg-dark-navy .text-secondary,
.bg-navy-card .text-secondary,
.bg-dark .text-secondary,
.text-light .text-secondary,
.footer-tf .text-secondary {
  color: #CBD5E1 !important;
}

.bg-navy .text-muted,
.bg-dark-navy .text-muted,
.bg-navy-card .text-muted,
.bg-dark .text-muted,
.text-light .text-muted,
.footer-tf .text-muted {
  color: #94A3B8 !important;
}

.bg-navy .lead,
.bg-dark-navy .lead,
.bg-dark .lead,
.text-light .lead {
  color: #E2E8F0 !important;
}

/* 4. Warning / Gold text legibility */
/* On dark backgrounds: vibrant golden yellow */
.bg-navy .text-warning,
.bg-dark-navy .text-warning,
.bg-navy-card .text-warning,
.bg-dark .text-warning,
.text-light .text-warning,
.footer-tf .text-warning {
  color: #FFC107 !important;
}

/* On light/white backgrounds: rich golden amber (#D97706) so it never washes out */
.bg-light .text-warning,
.bg-white .text-warning,
.card .text-warning,
.table .text-warning,
.accordion .text-warning,
body > :not(.bg-navy):not(.bg-dark):not(.bg-dark-navy):not(.bg-navy-card):not(.footer-tf) .text-warning {
  color: #D97706 !important;
}

/* 5. Badges Contrast Corrections */
.badge.bg-secondary.text-warning,
.badge.bg-secondary.bg-opacity-25.text-warning,
.badge.bg-secondary.text-light {
  background-color: #0B1F3B !important;
  color: #FFC107 !important;
  border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

.badge.bg-white.text-dark {
  background-color: #FFFFFF !important;
  color: #0B1F3B !important;
  border: 1px solid #CBD5E1 !important;
}

.badge.bg-white.text-dark:hover {
  background-color: #0B1F3B !important;
  color: #FFC107 !important;
  border-color: #0B1F3B !important;
}

/* 6. Opacity text contrast in dark containers */
.bg-navy .text-light.opacity-75,
.bg-dark-navy .text-light.opacity-75,
.bg-dark .text-light.opacity-75,
.footer-tf .text-light.opacity-75 {
  opacity: 0.9 !important;
  color: #E2E8F0 !important;
}

.bg-navy .text-light.opacity-80,
.bg-dark-navy .text-light.opacity-80,
.bg-dark .text-light.opacity-80,
.footer-tf .text-light.opacity-80 {
  opacity: 0.95 !important;
  color: #F8FAFC !important;
}

.bg-navy .text-light.opacity-90,
.bg-dark-navy .text-light.opacity-90,
.bg-dark .text-light.opacity-90,
.footer-tf .text-light.opacity-90 {
  opacity: 1 !important;
  color: #FFFFFF !important;
}

.bg-navy .text-light.opacity-50,
.bg-dark-navy .text-light.opacity-50,
.bg-dark .text-light.opacity-50,
.footer-tf .text-light.opacity-50 {
  opacity: 0.8 !important;
  color: #CBD5E1 !important;
}

/* 7. Tables, Form controls, and Accordions */
.table td, .table th {
  color: #1E293B;
}

.table thead.bg-navy th,
.table thead.bg-dark th {
  color: #FFFFFF !important;
}

.table .text-secondary {
  color: #475569 !important;
}

.form-control, .form-select {
  color: #0F172A !important;
  background-color: #FFFFFF;
  border-color: #CBD5E1;
}

.form-control::placeholder {
  color: #94A3B8 !important;
}

.accordion-button {
  color: #0B1F3B !important;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  color: #0B1F3B !important;
  background-color: rgba(255, 193, 7, 0.08) !important;
}

.accordion-body {
  color: #334155 !important;
}

/* ======================================================== */
/* 🧭 HIGH-PERFORMANCE RESPONSIVE NAVBAR SYSTEM             */
/* ======================================================== */
.navbar-tf {
  background-color: rgba(11, 31, 59, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: all 0.25s ease-in-out;
  z-index: 1030;
}

.navbar-tf .navbar-container {
  width: 100%;
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-tf .navbar-brand {
  padding: 0;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.navbar-tf .navbar-brand img,
.navbar-logo-img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  display: block;
  transition: transform 0.2s ease;
}

.navbar-tf .navbar-brand:hover img {
  transform: scale(1.02);
}

.navbar-tf .navbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
  margin-left: auto;
  margin-right: auto;
}

.navbar-tf .nav-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-tf .nav-link {
  font-size: 0.865rem !important;
  font-weight: 500 !important;
  color: #E2E8F0 !important;
  padding: 0.45rem 0.65rem !important;
  border-radius: var(--radius-sm);
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar-tf .nav-link:hover,
.navbar-tf .nav-link:focus {
  color: var(--tf-yellow) !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar-tf .nav-link.active {
  color: var(--tf-yellow) !important;
  font-weight: 700 !important;
  background-color: rgba(255, 193, 7, 0.08);
}

.navbar-tf .nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.navbar-tf .nav-cta-group .btn {
  white-space: nowrap !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem !important;
  padding: 0.5rem 1.1rem !important;
  line-height: 1.25 !important;
}

.footer-tf .footer-logo img {
  height: 68px !important;
  max-height: 68px !important;
  width: auto !important;
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .navbar-tf .navbar-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar-tf .navbar-brand {
    margin-right: 0.85rem;
  }
  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 42px !important;
    max-height: 42px !important;
  }
  .navbar-tf .nav-link {
    font-size: 0.815rem !important;
    padding: 0.35rem 0.42rem !important;
  }
  .navbar-tf .nav-cta-group .btn {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.85rem !important;
  }
}

@media (max-width: 1199.98px) {
  .navbar-tf {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
  .navbar-tf .navbar-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 40px !important;
    max-height: 40px !important;
  }
}

@media (max-width: 480px) {
  .navbar-tf {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 160px !important;
  }
  .navbar-tf .btn-sm {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }
}

/* Dark Surface Backgrounds */
.bg-navy {
  background-color: var(--tf-navy) !important;
  color: var(--tf-white);
}

.bg-dark-navy {
  background-color: var(--tf-dark-navy) !important;
  color: var(--tf-white);
}

.bg-navy-card {
  background-color: var(--tf-navy-card) !important;
  color: var(--tf-white);
}

.bg-navy-pattern {
  background-color: var(--tf-navy);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(27, 53, 90, 0.4) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: var(--tf-white);
}

.bg-light-pattern {
  background-color: var(--tf-grey-50);
  background-image: 
    linear-gradient(rgba(11, 31, 59, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 59, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Custom Buttons */
.btn-tf-primary {
  background-color: var(--tf-yellow);
  color: var(--tf-navy);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--tf-yellow);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tf-primary:hover {
  background-color: #f5b700;
  color: var(--tf-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}

.btn-tf-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--tf-white);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;
}

.btn-tf-secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--tf-white);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-tf-outline-dark {
  background-color: transparent;
  color: var(--tf-navy);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--tf-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-tf-outline-dark:hover {
  background-color: var(--tf-navy);
  color: var(--tf-white);
}

/* Badges & Pills */
.badge-tf-yellow {
  background-color: rgba(255, 193, 7, 0.15);
  color: #B45309;
  border: 1px solid rgba(255, 193, 7, 0.4);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-tf-navy {
  background-color: rgba(11, 31, 59, 0.08);
  color: var(--tf-navy);
  border: 1px solid rgba(11, 31, 59, 0.15);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tf-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--tf-yellow);
  border: 1px solid rgba(255, 193, 7, 0.3);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navbar */
.navbar-tf {
  background-color: rgba(11, 31, 59, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tf-navy-border);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
}

.navbar-tf .nav-link {
  color: #D1D5DB;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.navbar-tf .nav-link:hover,
.navbar-tf .nav-link.active {
  color: var(--tf-yellow);
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar-tf .dropdown-menu {
  background-color: var(--tf-navy-card);
  border: 1px solid var(--tf-navy-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dark-card);
  padding: 0.6rem;
}

.navbar-tf .dropdown-item {
  color: #E5E7EB;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.navbar-tf .dropdown-item:hover {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--tf-yellow);
}

/* Hero Section */
.hero-wrapper {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--tf-white);
  letter-spacing: -0.03em;
}

.hero-title .text-highlight {
  color: var(--tf-yellow);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #9CA3AF;
  line-height: 1.7;
  max-width: 580px;
}

/* Analytics Dashboard Card Widget in Hero */
.dashboard-widget {
  background: linear-gradient(135deg, rgba(14, 37, 71, 0.95), rgba(6, 17, 34, 0.98));
  border: 1px solid var(--tf-navy-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  padding: 1.5rem;
  position: relative;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--tf-navy-border);
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
}

.dashboard-icon-badge {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 193, 7, 0.22), rgba(11, 31, 59, 0.85));
  border: 1px solid rgba(255, 193, 7, 0.45);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.25), inset 0 0 8px rgba(255, 193, 7, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-icon-badge:hover {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 0 22px rgba(255, 193, 7, 0.45), inset 0 0 12px rgba(255, 193, 7, 0.25);
}

.dashboard-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.metric-growth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 193, 7, 0.12) !important;
  color: #FFC107 !important;
  border: 1px solid rgba(255, 193, 7, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.12);
}

.stat-pill {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tf-navy-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  transition: all 0.2s ease;
}

.stat-pill:hover {
  border-color: var(--tf-yellow);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tf-white);
}

.stat-label {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.tf-card {
  background-color: var(--tf-white);
  border: 1px solid var(--tf-grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  position: relative;
}

.tf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #D1D5DB;
}

.tf-card-dark {
  background-color: var(--tf-navy-card);
  border: 1px solid var(--tf-navy-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--tf-white);
  transition: all 0.25s ease;
  height: 100%;
}

.tf-card-dark:hover {
  border-color: rgba(255, 193, 7, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.tf-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--tf-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.tf-icon-box-navy {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(11, 31, 59, 0.08);
  color: var(--tf-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* Section Dividers & Headers */
.section-padding {
  padding: 5.5rem 0;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B45309;
  margin-bottom: 0.5rem;
  display: block;
}

.section-tag-dark {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tf-yellow);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--tf-grey-600);
  max-width: 680px;
}

/* Workflow Step Diagram Container */
.workflow-step {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1.5rem;
}

.workflow-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--tf-yellow);
  border: 3px solid var(--tf-navy);
  box-shadow: 0 0 0 2px var(--tf-yellow);
}

.workflow-step::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 24px;
  bottom: -16px;
  width: 2px;
  background-color: rgba(255, 193, 7, 0.3);
}

.workflow-step:last-child::after {
  display: none;
}

/* Academy Form Interactive Skill Tags */
.skill-checkbox-label {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  display: inline-block;
}

.skill-checkbox-label input {
  display: none;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E5E7EB;
  transition: all 0.2s ease;
  line-height: 1.35;
  text-align: center;
}

.skill-checkbox-label input:checked + .skill-pill {
  background-color: var(--tf-yellow);
  color: var(--tf-navy);
  border-color: var(--tf-yellow);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.35);
}

/* Academy Select Dropdowns & Inputs in Dark/Navy Cards */
.bg-navy-card .form-select,
.tf-card-dark .form-select,
.bg-navy-card .form-control,
.tf-card-dark .form-control {
  color: #FFFFFF !important;
  background-color: rgba(10, 25, 47, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  font-size: 16px !important; /* Prevents auto zoom on iOS Safari */
  border-radius: 8px;
}

.bg-navy-card .form-select:focus,
.tf-card-dark .form-select:focus,
.bg-navy-card .form-control:focus,
.tf-card-dark .form-control:focus {
  border-color: var(--tf-yellow) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
  background-color: rgba(10, 25, 47, 0.98) !important;
}

.bg-navy-card .form-select option,
.tf-card-dark .form-select option {
  background-color: #0B1F3B !important;
  color: #FFFFFF !important;
  padding: 8px;
}

.bg-navy-card .form-label,
.tf-card-dark .form-label {
  color: #E2E8F0 !important;
  font-size: 0.85rem !important;
  font-weight: 600;
}

.academy-all-inclusive-badge {
  white-space: normal !important;
  line-height: 1.45 !important;
  text-align: left !important;
  word-break: break-word;
}

/* Editorial Reading Layout */
.editorial-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--tf-grey-800);
}

.editorial-content h2 {
  font-size: 1.75rem;
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
}

.editorial-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.editorial-content p {
  margin-bottom: 1.5rem;
}

.editorial-content blockquote {
  border-left: 4px solid var(--tf-yellow);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--tf-grey-700);
  background: var(--tf-grey-50);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Footer */
.footer-tf {
  background-color: var(--tf-dark-navy);
  color: #9CA3AF;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--tf-navy-border);
}

.footer-heading {
  color: var(--tf-white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-link {
  color: #9CA3AF;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.footer-link:hover {
  color: var(--tf-yellow);
  transform: translateX(3px);
}

/* Tactile Footer Social Buttons */
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tf-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.footer-social-btn:hover,
.footer-social-btn:active {
  background: var(--tf-yellow);
  color: var(--tf-navy);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp:active {
  transform: scale(0.95);
}

/* Toast Notifications */
.tf-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1050;
  min-width: 320px;
  background: var(--tf-navy-card);
  border: 1px solid var(--tf-navy-border);
  color: var(--tf-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ======================================================== */
/* 📱 MOBILE APP-FRIENDLY ARCHITECTURE & BOTTOM DOCK         */
/* ======================================================== */

/* Body buffer for mobile navigation dock on screens < 992px */
@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .footer-tf {
    padding: 3.5rem 0 calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-link {
    padding: 0.2rem 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .floating-whatsapp {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* Persistent Mobile App Bottom Dock */
.mobile-app-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(11, 31, 59, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991.98px) {
  .mobile-app-dock {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

.mobile-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: #9CA3AF;
  padding: 0.3rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  touch-action: manipulation;
}

.mobile-dock-item i {
  font-size: 1.15rem;
  margin-bottom: 3px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-dock-item:hover,
.mobile-dock-item:focus {
  color: #FFFFFF;
}

.mobile-dock-item:active {
  transform: scale(0.9);
}

.mobile-dock-item.active {
  color: var(--tf-yellow);
}

.mobile-dock-item.active i {
  transform: translateY(-2px);
  color: var(--tf-yellow);
}

.mobile-dock-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--tf-yellow);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

/* Highlighted Audit Pill inside Dock */
.mobile-dock-cta {
  background: linear-gradient(135deg, #FFC107, #FFA000);
  color: var(--tf-navy) !important;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(255, 193, 7, 0.45);
  margin: 0 2px;
}

.mobile-dock-cta i {
  color: var(--tf-navy) !important;
  margin-bottom: 1px;
}

.mobile-dock-cta:active {
  transform: scale(0.92);
}

/* App Slide Drawer (Offcanvas Menu) */
.offcanvas-tf {
  background: rgba(6, 17, 34, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--tf-navy-border);
  color: var(--tf-white);
  width: 320px;
  max-width: 85vw;
}

.offcanvas-tf .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.4rem;
}

.offcanvas-tf .offcanvas-body {
  padding: 1.2rem 1.4rem calc(80px + env(safe-area-inset-bottom, 0px));
}

.offcanvas-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.offcanvas-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  color: #E5E7EB;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  margin-bottom: 0.25rem;
}

.offcanvas-link i.link-icon {
  width: 26px;
  font-size: 1rem;
  color: var(--tf-yellow);
  opacity: 0.85;
}

.offcanvas-link:hover,
.offcanvas-link:active,
.offcanvas-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--tf-yellow);
  transform: translateX(4px);
}

.offcanvas-action-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin-top: 1.5rem;
}

/* Horizontal Swipeable Chips on Mobile */
.mobile-swipe-chips {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.2rem;
}

.mobile-swipe-chips::-webkit-scrollbar {
  display: none;
}

.mobile-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E5E7EB;
  transition: all 0.2s ease;
  user-select: none;
}

.mobile-chip:active {
  transform: scale(0.94);
}

.mobile-chip.active,
.mobile-chip:hover {
  background: var(--tf-yellow);
  color: var(--tf-navy);
  border-color: var(--tf-yellow);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

/* ======================================================== */
/* ⚡ PROJECT-WIDE ANIMATIONS & INTERACTIVE HOVER SUITE      */
/* ======================================================== */

/* Enhanced Card Hovers with Luminous Border Glow */
.tf-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.tf-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px -6px rgba(11, 31, 59, 0.18), 0 0 0 1px rgba(255, 193, 7, 0.35);
  border-color: rgba(255, 193, 7, 0.45);
}

.tf-card:active {
  transform: translateY(-2px) scale(0.99);
}

.tf-card-dark {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tf-card-dark:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 193, 7, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 193, 7, 0.18);
}

.tf-card-dark:active {
  transform: translateY(-2px) scale(0.99);
}

/* Shimmer Sweep Animation on Featured Badges */
@keyframes tf-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.badge-shimmer {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.45) 50%, rgba(255, 193, 7, 0.15) 100%);
  background-size: 200% 100%;
  animation: tf-shimmer 3.5s infinite linear;
}

/* Floating Animation for Visual Accent Badges */
@keyframes tf-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.tf-floating {
  animation: tf-float 4s ease-in-out infinite;
}

/* Live Pulse Radar Ring */
@keyframes tf-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: tf-pulse-ring 2s infinite;
}

/* Tactile Button Feedback */
.btn-tf-primary,
.btn-tf-secondary,
.btn-tf-outline-dark {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.btn-tf-primary:active,
.btn-tf-secondary:active,
.btn-tf-outline-dark:active {
  transform: scale(0.96) !important;
}

/* Mobile Friendly Form Inputs */
input.form-control,
select.form-select,
textarea.form-control {
  font-size: 16px !important; /* Prevents auto-zoom on iOS */
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
  border-color: var(--tf-yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

/* ======================================================== */
/* 🌐 INFINITE TECH & CLIENT LOGO MARQUEE                    */
/* ======================================================== */

.tf-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  padding: 1.2rem 0;
}

.tf-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: tf-marquee-scroll 32s linear infinite;
  will-change: transform;
}

.tf-marquee-track.reverse {
  animation: tf-marquee-scroll-reverse 36s linear infinite;
}

.tf-marquee-container:hover .tf-marquee-track {
  animation-play-state: paused;
}

@keyframes tf-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes tf-marquee-scroll-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

.marquee-logo-card img {
  height: 28px;
  width: auto;
  max-width: 150px;
  opacity: 0.72;
  transition: all 0.25s ease;
  filter: grayscale(30%);
}

.marquee-logo-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 193, 7, 0.45);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.marquee-logo-card:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ======================================================== */
/* 📱 COMPREHENSIVE RESPONSIVE ENGINE (ALL SCREENS & DEVICES) */
/* ======================================================== */

/* Universal Responsive Image, Video & Embed Safeguards */
img, svg, iframe, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Preformatted Code & Snippet Overflow Protection */
pre, code, kbd, samp {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Touch-action optimization for zero lag */
button, a, input, select, textarea, .mobile-dock-item, .btn {
  touch-action: manipulation;
}

/* Responsive Table Wrapper with Touch Momentum */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

/* Horizontal Swipe Chips Container (Zero Scrollbar) */
.mobile-swipe-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding-bottom: 4px;
}

.mobile-swipe-chips::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Scroll-Driven Entrance Reveals (Safe & Resilient) */
.tf-reveal {
  opacity: 1; /* Default to visible so search engines, screenshots & mobile never see blanks */
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .tf-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
  }
  .tf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------- */
/* 🖥️ DESKTOP & LARGE SCREENS (>= 1200px)                    */
/* -------------------------------------------------------- */
@media (min-width: 1200px) {
  .navbar-tf .navbar-container {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 48px !important;
    max-height: 48px !important;
  }
}

/* -------------------------------------------------------- */
/* 💻 LAPTOPS & LANDSCAPE TABLETS (992px to 1199.98px)       */
/* -------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-tf .navbar-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 44px !important;
    max-height: 44px !important;
  }

  .section-padding {
    padding: 4.5rem 0;
  }
}

/* Desktop Bottom Dock Suppression (>= 992px) */
@media (min-width: 992px) {
  body {
    padding-bottom: 0 !important;
  }

  .mobile-app-dock {
    display: none !important;
  }

  .floating-whatsapp {
    bottom: 24px !important;
    right: 24px !important;
  }
}

/* -------------------------------------------------------- */
/* 📱 TABLETS & MOBILE SCREENS (< 992px)                     */
/* -------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Safe Mobile Dock Clearance */
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-app-dock {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(11, 31, 59, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .floating-whatsapp {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    z-index: 1035 !important;
  }

  .section-padding {
    padding: 3.75rem 0 !important;
  }

  /* Grid spacing adjustments */
  .g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2rem;
  }
}

/* -------------------------------------------------------- */
/* 📱 SMARTPHONES & PORTRAIT SCREENS (< 768px)               */
/* -------------------------------------------------------- */
@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  /* Container Gutters */
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* Prevent iOS Safari Automatic Zoom on Input Focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Fluid Display & Section Headings */
  h1, .hero-title, .display-4 {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
  }

  h2, .section-title, .display-5 {
    font-size: clamp(1.45rem, 5vw, 1.95rem) !important;
    line-height: 1.25 !important;
  }

  h3, .display-6 {
    font-size: clamp(1.2rem, 4vw, 1.5rem) !important;
    line-height: 1.3 !important;
  }

  .hero-subtitle, .section-desc, p.lead {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .section-padding {
    padding: 3.25rem 0 !important;
  }

  .hero-wrapper {
    padding-top: 2.75rem !important;
    padding-bottom: 3.25rem !important;
  }

  /* Touch-friendly full-width action buttons in hero */
  .hero-wrapper .btn-lg,
  .hero-wrapper .btn-tf-primary,
  .hero-wrapper .btn-tf-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 0.6rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  /* Cards & Widgets */
  .tf-card, .tf-card-dark, .admin-card {
    padding: 1.25rem !important;
    border-radius: 16px !important;
  }

  .dashboard-widget {
    padding: 1.1rem !important;
    border-radius: 18px !important;
  }

  .dashboard-widget canvas {
    max-height: 160px !important;
  }

  /* Tables: compact padding for mobile screens */
  .table > :not(caption) > * > * {
    padding: 0.65rem 0.55rem;
    font-size: 0.85rem;
  }

  /* Academy Mobile Responsive Enhancements */
  .academy-hero-btns {
    display: flex;
    flex-direction: column;
    gap: 0.65rem !important;
  }

  .academy-hero-btns .btn,
  .academy-btn-mobile {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  .skill-pill {
    padding: 0.35rem 0.68rem !important;
    font-size: 0.77rem !important;
  }

  .stat-pill {
    padding: 1.15rem 1rem !important;
    border-radius: 16px !important;
  }

  #academyMain {
    padding-bottom: 5.5rem;
  }

  .academy-subnav-notice {
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
  }
}

/* -------------------------------------------------------- */
/* 📱 COMPACT SMARTPHONES (<= 575.98px, iPhone SE, Galaxy)   */
/* -------------------------------------------------------- */
@media (max-width: 575.98px) {
  .navbar-tf .navbar-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 38px !important;
    max-height: 38px !important;
  }

  /* Stat numbers */
  .tf-counter {
    font-size: 1.55rem !important;
  }

  /* Marquee sizing on small phones */
  .marquee-logo-card {
    padding: 0.45rem 0.85rem !important;
  }

  .marquee-logo-card img {
    height: 22px !important;
    max-width: 105px !important;
  }

  /* Subnav Chips */
  .mobile-swipe-chips {
    gap: 0.4rem;
  }

  .mobile-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Score radial dial scaling on small phones */
  .radial-score-box {
    width: 115px !important;
    height: 115px !important;
  }

  /* Modal Dialogs */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    border-radius: var(--radius-lg) !important;
  }
}

/* -------------------------------------------------------- */
/* 📱 ULTRA-NARROW DEVICES (<= 375px, Galaxy Fold, iPhone SE)*/
/* -------------------------------------------------------- */
@media (max-width: 375px) {
  .navbar-tf .navbar-brand img,
  .navbar-logo-img {
    height: 34px !important;
    max-height: 34px !important;
  }

  h1, .hero-title, .display-4 {
    font-size: 1.7rem !important;
  }

  .btn {
    font-size: 0.85rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .tf-card, .tf-card-dark {
    padding: 1rem !important;
  }
}

/* ======================================================== */
/* 📰 EDITORIAL CONTENT & RICH TEXT RESPONSIVE STYLING      */
/* ======================================================== */

.editorial-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #334155;
  word-break: break-word;
}

.editorial-content p {
  margin-bottom: 1.5rem;
}

.editorial-content h1,
.editorial-content h2,
.editorial-content h3,
.editorial-content h4,
.editorial-content h5,
.editorial-content h6 {
  color: var(--tf-navy, #0B1F3B);
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.editorial-content h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(11, 31, 59, 0.08);
}

.editorial-content h3 {
  font-size: 1.4rem;
}

.editorial-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  margin: 1.8rem auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.editorial-content figure {
  margin: 2rem 0;
  text-align: center;
}

.editorial-content figcaption {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 0.5rem;
  font-style: italic;
}

.editorial-content table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.editorial-content table th,
.editorial-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  font-size: 0.95rem;
}

.editorial-content table th {
  background-color: #F8FAFC;
  color: var(--tf-navy, #0B1F3B);
  font-weight: 700;
}

.editorial-content table tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.editorial-content blockquote {
  border-left: 4px solid var(--tf-yellow, #FFC107);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: #F8FAFC;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}

.editorial-content pre,
.editorial-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
}

.editorial-content pre {
  background-color: #0F172A;
  color: #38BDF8;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.editorial-content :not(pre) > code {
  background-color: #F1F5F9;
  color: #0F172A;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.editorial-content ul,
.editorial-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.editorial-content li {
  margin-bottom: 0.5rem;
}

.editorial-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  margin: 1.5rem 0;
}


