/* =========================================================
   TODAYFIX BLOG - MASTER STYLESHEET
   Official TodayFix.in Editorial & Service Discovery Platform
   ========================================================= */

/* ---------------------------------------------------------
   1. DESIGN SYSTEM & CSS VARIABLES
   --------------------------------------------------------- */
:root {
  /* Brand Palette (TodayFix.in Primary Brand System) */
  --tf-primary: #1464e8;
  --tf-primary-dark: #0f55c7;
  --tf-primary-light: #eef5ff;
  --tf-primary-alpha: rgba(20, 100, 232, 0.08);

  /* Typography Colors */
  --tf-text: #0f172a;
  --tf-text-soft: #334155;
  --tf-muted: #64748b;
  --tf-light-muted: #94a3b8;

  /* Borders & Separation */
  --tf-border: #e2e8f0;
  --tf-border-subtle: #f1f5f9;
  --tf-border-accent: rgba(20, 100, 232, 0.2);

  /* Layered Background System */
  --tf-bg: #ffffff;
  --tf-bg-soft: #f8fafc;
  --tf-bg-blue: #f3f7ff;
  --tf-bg-card: #ffffff;
  --tf-bg-footer: #0b132b;

  /* Border Radii */
  --tf-radius-sm: 8px;
  --tf-radius-md: 12px;
  --tf-radius-lg: 18px;
  --tf-radius-xl: 24px;
  --tf-radius-full: 9999px;

  /* Shadows */
  --tf-shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --tf-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --tf-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --tf-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --tf-shadow-glow: 0 0 30px rgba(20, 100, 232, 0.15);

  /* Structural & Animation */
  --tf-max-width: 1280px;
  --tf-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--tf-bg);
  color: var(--tf-text);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--tf-transition);
}

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

button {
  cursor: pointer;
}

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

/* ---------------------------------------------------------
   3. TYPOGRAPHY HIERARCHY
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--tf-text);
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
}

p {
  margin-top: 0;
  color: var(--tf-text-soft);
}

.section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 16.5px;
  color: var(--tf-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------------------------------------------------------
   4. GLOBAL CONTAINER
   --------------------------------------------------------- */
.container {
  max-width: var(--tf-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------------------------------
   5. PREMIUM FLOATING NAVBAR
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tf-border-subtle);
  transition: var(--tf-transition);
}

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

.nav-wrap {
  max-width: var(--tf-max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.2s ease;
}

.site-header.scrolled .nav-wrap {
  height: 66px;
}

.brand-nav {
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 34px;
  width: auto;
}

/* Desktop Nav Items */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tf-text-soft);
  white-space: nowrap;
}

.nav-item-link {
  color: var(--tf-text-soft);
  padding: 6px 0;
  transition: var(--tf-transition);
}

.nav-item-link:hover {
  color: var(--tf-primary);
}

/* Dropdown Shell */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  border: none;
  background: transparent;
  padding: 6px 0;
  color: var(--tf-text-soft);
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--tf-transition);
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  color: var(--tf-primary);
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Rich Dropdown Panels */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  padding: 10px;
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.nav-dropdown-wide {
  min-width: 320px;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-rich-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--tf-radius-md);
  background: transparent;
  color: var(--tf-text);
  text-align: left;
  cursor: pointer;
  transition: var(--tf-transition);
}

.dropdown-rich-item:hover {
  background: var(--tf-bg-blue);
  color: var(--tf-primary);
}

.dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--tf-radius-sm);
  background: var(--tf-bg-soft);
  color: var(--tf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--tf-transition);
}

.dropdown-rich-item:hover .dropdown-icon {
  background: var(--tf-primary);
  color: #ffffff;
}

.dropdown-text {
  flex: 1;
}

.dropdown-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tf-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-rich-item:hover .dropdown-title {
  color: var(--tf-primary);
}

.dropdown-title .arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--tf-transition);
}

.dropdown-rich-item:hover .dropdown-title .arrow {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-desc {
  font-size: 12px;
  color: var(--tf-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Right Nav Actions */
.right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 500;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--tf-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--tf-radius-sm);
  transition: var(--tf-transition);
}

.icon-btn:hover {
  color: var(--tf-primary);
  background: var(--tf-bg-soft);
}

.vline {
  width: 1px;
  height: 22px;
  background: var(--tf-border);
}
/* =========================================================
   NAVBAR LOGIN
========================================================= */

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  color: var(--tf-text, #0f172a);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-login:hover {
  color: var(--tf-primary, #1464e8);
  background: #f3f7ff;
}

/* Primary CTA Button */
.list-business {
  background: var(--tf-primary);
  color: #ffffff !important;
  padding: 9.5px 20px;
  border-radius: var(--tf-radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(20, 100, 232, 0.25);
  transition: var(--tf-transition);
}

.list-business:hover {
  background: var(--tf-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 100, 232, 0.35);
}

/* Mobile Button & Drawer */
.mobile-btn {
  display: none;
  border: none;
  background: transparent;
  color: var(--tf-text);
  padding: 6px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--tf-transition);
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  background: var(--tf-bg);
  padding: 24px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-bottom: 1px solid var(--tf-border);
  box-shadow: var(--tf-shadow-lg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--tf-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--tf-border-subtle);
}

.mobile-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 14px;
  background: var(--tf-bg-soft);
  border-radius: var(--tf-radius-md);
  border: 1px solid var(--tf-border-subtle);
}

.mobile-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tf-primary);
  margin-bottom: 4px;
}

.mobile-group a,
.mobile-article-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--tf-text-soft);
  background: transparent;
  border: none;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
}

.mobile-actions {
  margin-top: 16px;
}

.mobile-list {
  justify-content: center;
  width: 100%;
}

/* ---------------------------------------------------------
   6. LAYERED HERO SECTION (TWO-COLUMN COMPOSITION)
   --------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tf-bg-blue) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tf-border-subtle);
  padding: 80px 32px 0;
  margin-top: 72px;
}

.hero-bg-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.glow-1 {
  top: -100px;
  right: -50px;
  width: 420px;
  height: 420px;
  background: rgba(20, 100, 232, 0.1);
}

.glow-2 {
  bottom: -50px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: rgba(15, 85, 199, 0.05);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--tf-border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

.hero-container {
  max-width: var(--tf-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 54px;
}

/* Left Hero Column */
.eyebrow-badge {
  display: inline-block;
  color: var(--tf-primary);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 14px;
  background: var(--tf-primary-light);
  border-radius: var(--tf-radius-full);
  border: 1px solid rgba(20, 100, 232, 0.15);
}

.hero-display-title {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--tf-text);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--tf-text-soft);
  margin-bottom: 34px;
  max-width: 620px;
}

/* Hero Search Component */
.hero-search-form {
  max-width: 640px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--tf-shadow-md);
  transition: var(--tf-transition);

  height: 60px;
}

.search-box:focus-within {
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 4px rgba(20, 100, 232, 0.15), var(--tf-shadow-md);
}

.search-box-icon {
  display: flex;
  align-items: center;
  color: var(--tf-muted);
  margin-right: 14px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15.5px;
  color: var(--tf-text);
}

.search-box input::placeholder {
  color: var(--tf-light-muted);
}

.search-box-btn {
  background: var(--tf-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--tf-radius-md);
  padding: 0 28px;
  height: 48px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--tf-transition);
}

.search-box-btn:hover {
  background: var(--tf-primary-dark);
}

.search-status-bar {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--tf-text-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.clear-search-btn {
  background: var(--tf-bg-soft);
  border: 1px solid var(--tf-border);
  padding: 4px 10px;
  border-radius: var(--tf-radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tf-muted);
  cursor: pointer;
}

.clear-search-btn:hover {
  color: #dc2626;
  border-color: #fca5a5;
}

/* Popular Category Shortcuts */
.hero-popular-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.tags-label {
  color: var(--tf-muted);
  font-weight: 600;
}

.tag-shortcut-btn {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--tf-text-soft);
  padding: 4px 12px;
  border-radius: var(--tf-radius-full);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--tf-border);
  cursor: pointer;
  transition: var(--tf-transition);
}

.tag-shortcut-btn:hover {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
  background: #ffffff;
}

/* Right Hero Column (Interactive Insight Stack) */
.hero-right {
  position: relative;
}

.hero-insight-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.stack-card {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--tf-shadow-md);
  transition: var(--tf-transition);
}

.stack-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tf-shadow-lg);
  border-color: var(--tf-border-accent);
}

.card-top {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.stack-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stack-category-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tf-primary);
  background: var(--tf-primary-light);
  padding: 3px 8px;
  border-radius: var(--tf-radius-sm);
}

.stack-meta {
  font-size: 12px;
  color: var(--tf-muted);
}

.stack-title {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.stack-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tf-muted);
  font-weight: 500;
}

.card-main {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border-color: var(--tf-border-accent);
}

.stack-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stack-logo {
  height: 24px;
  width: auto;
}

.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: var(--tf-radius-full);
}

.card-main h3 {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-main p {
  font-size: 14px;
  color: var(--tf-text-soft);
  margin-bottom: 14px;
  line-height: 1.5;
}

.stack-cta-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tf-primary);
}

.stack-cta-link:hover {
  color: var(--tf-primary-dark);
}

.card-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.stack-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--tf-radius-md);
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-badge-text {
  display: flex;
  flex-direction: column;
}

.stack-badge-text strong {
  font-size: 14px;
  color: var(--tf-text);
}

.stack-badge-text span {
  font-size: 12px;
  color: var(--tf-muted);
}

/* Factual Trust Strip */
.trust-strip {
  background: var(--tf-bg);
  border-top: 1px solid var(--tf-border-subtle);
  padding: 18px 0;
  position: relative;
  z-index: 2;
}

.trust-container {
  max-width: var(--tf-max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tf-text-soft);
}

.trust-item svg {
  color: var(--tf-primary);
}

.trust-dot {
  color: var(--tf-border);
}

/* ---------------------------------------------------------
   7. CATEGORY DISCOVERY SECTION
   --------------------------------------------------------- */
.category-discovery-section {
  padding: 56px 0;
  background: var(--tf-bg);
  border-bottom: 1px solid var(--tf-border-subtle);
}

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

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--tf-bg-soft);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--tf-transition);
}

.category-card:hover {
  background: #ffffff;
  border-color: var(--tf-primary);
  transform: translateY(-3px);
  box-shadow: var(--tf-shadow-md);
}

.category-card.active {
  background: var(--tf-primary-light);
  border-color: var(--tf-primary);
  box-shadow: var(--tf-shadow-sm);
}

.category-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--tf-radius-sm);
  background: #ffffff;
  border: 1px solid var(--tf-border);
  color: var(--tf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card p {
  font-size: 13px;
  color: var(--tf-muted);
  margin: 0 0 14px;
  flex: 1;
}

.category-card-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--tf-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-card:hover .category-card-arrow {
  gap: 8px;
}

/* ---------------------------------------------------------
   8. FEATURED EDITORIAL SECTION
   --------------------------------------------------------- */
.featured-editorial-section {
  margin: 56px 0;
}

.featured-cover-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-xl);
  overflow: hidden;
  box-shadow: var(--tf-shadow-sm);
  transition: var(--tf-transition);
}

.featured-cover-card:hover {
  box-shadow: var(--tf-shadow-md);
  border-color: #cbd5e1;
}

.featured-cover-img {
  position: relative;
  display: block;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}

.featured-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-cover-card:hover .featured-cover-img img {
  transform: scale(1.03);
}

.editorial-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--tf-primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--tf-radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.featured-cover-body {
  padding: 40px 40px 40px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-tag-link {
  display: inline-block;
  color: var(--tf-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.featured-cover-body h2 {
  font-size: 32px;
  line-height: 1.22;
  margin-bottom: 16px;
  font-weight: 800;
}

.featured-cover-body h2:hover {
  color: var(--tf-primary);
}

.featured-cover-body p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--tf-text-soft);
  margin-bottom: 24px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--tf-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-read-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tf-primary);
  font-weight: 700;
  font-size: 15px;
}

.btn-read-guide:hover {
  color: var(--tf-primary-dark);
  gap: 12px;
}

/* ---------------------------------------------------------
   9. ARTICLES GRID SECTION
   --------------------------------------------------------- */
.articles-grid-section {
  margin-bottom: 56px;
}

.grid-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tf-border-subtle);
}

.result-counter-badge {
  font-size: 13.5px;
  color: var(--tf-muted);
  font-weight: 600;
  background: var(--tf-bg-soft);
  padding: 4px 12px;
  border-radius: var(--tf-radius-full);
  border: 1px solid var(--tf-border);
}

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

.grid-article-card {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--tf-shadow-xs);
  transition: var(--tf-transition);
}

.grid-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tf-shadow-md);
  border-color: #cbd5e1;
}

.card-img-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tf-bg-soft);
}

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

.grid-article-card:hover .card-img-link img {
  transform: scale(1.04);
}

.card-body-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body-content .category-tag-link {
  margin-bottom: 8px;
}

.card-body-content h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body-content h3:hover {
  color: var(--tf-primary);
}

.card-body-content p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tf-text-soft);
  margin-bottom: 20px;
  flex: 1;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--tf-muted);
  border-top: 1px solid var(--tf-border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

/* ---------------------------------------------------------
   10. PAGINATION
   --------------------------------------------------------- */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
}

.page-btn {
  border: 1px solid var(--tf-border);
  background: var(--tf-bg);
  color: var(--tf-text-soft);
  padding: 9px 16px;
  border-radius: var(--tf-radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--tf-transition);
}

.page-btn:hover:not(.disabled) {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
  background: var(--tf-bg-soft);
}

.page-btn.active {
  background: var(--tf-primary);
  color: #ffffff;
  border-color: var(--tf-primary);
  font-weight: 600;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   11. SERVICE DISCOVERY CTA & NEWSLETTER
   --------------------------------------------------------- */
.service-discovery-cta {
  background: linear-gradient(135deg, #0b132b 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--tf-radius-xl);
  padding: 48px;
  margin: 56px 0;
  box-shadow: var(--tf-shadow-md);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tf-primary);
  background: rgba(20, 100, 232, 0.2);
  padding: 4px 12px;
  border-radius: var(--tf-radius-full);
  margin-bottom: 12px;
}

.cta-content h2 {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 8px;
}

.cta-content p {
  color: #cbd5e1;
  font-size: 16px;
  margin: 0;
  max-width: 600px;
}

.cta-primary-btn {
  background: var(--tf-primary);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: var(--tf-radius-md);
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20, 100, 232, 0.4);

  transition: var(--tf-transition);
}

.cta-primary-btn:hover {
  background: var(--tf-primary-dark) !important;
  transform: translateY(-2px);
}

.newsletter-card {
  background: linear-gradient(135deg, var(--tf-bg-blue) 0%, #eef5ff 100%);
  border: 1px solid var(--tf-border-accent);
  border-radius: var(--tf-radius-xl);
  padding: 44px;
  margin: 56px 0;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.mail-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--tf-radius-md);
  background: var(--tf-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-info h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.newsletter-info p {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

.newsletter-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input-box {
  display: flex;
  gap: 10px;
}

.newsletter-input-box input {
  flex: 1;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  padding: 12px 16px;
  font-size: 14.5px;
  outline: none;
  background: #ffffff;
}

.newsletter-input-box input:focus {
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 3px rgba(20, 100, 232, 0.15);
}

.newsletter-submit-btn {
  background: var(--tf-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--tf-radius-md);
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: var(--tf-transition);
}

.newsletter-submit-btn:hover {
  background: var(--tf-primary-dark);
}

.newsletter-disclaimer {
  font-size: 12px;
  color: var(--tf-muted);
}

.newsletter-disclaimer a {
  color: var(--tf-primary);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   12. MODAL SYSTEM & EDITORIAL READING VIEW
   --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--tf-transition);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--tf-bg);
  border-radius: var(--tf-radius-xl);
  box-shadow: var(--tf-shadow-lg);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 44px;
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  background: var(--tf-bg-soft);
  color: var(--tf-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--tf-transition);
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Article Detail Modal Reader */
.article-detail-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  font-size: 34px;
  line-height: 1.22;
  margin: 12px 0 16px;
  font-weight: 800;
}

.article-content {
  font-size: 17.5px;
  line-height: 1.8;
  color: #334155;
  margin: 28px 0;
}

.article-content h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--tf-text);
  font-weight: 700;
}

.article-content h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--tf-text);
  font-weight: 600;
}

.article-content p {
  margin-bottom: 20px;
  font-size: 17.5px;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Highlighted Tip Callout Box inside Article */
.article-tip-callout {
  background: var(--tf-bg-blue);
  border-left: 4px solid var(--tf-primary);
  border-radius: 0 var(--tf-radius-md) var(--tf-radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.article-tip-callout strong {
  color: var(--tf-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.article-tip-callout p {
  margin: 0;
  font-size: 15.5px;
  color: var(--tf-text);
}

/* Related Articles inside Modal */
.related-articles-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--tf-border);
}

.related-articles-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

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

.related-card {
  background: var(--tf-bg-soft);
  border: 1px solid var(--tf-border-subtle);
  border-radius: var(--tf-radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--tf-transition);
}

.related-card:hover {
  border-color: var(--tf-primary);
  background: var(--tf-bg);
}

.related-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: var(--tf-radius-sm);
  margin-bottom: 8px;
}

.related-card h4 {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------
   13. GUIDE MODAL COMPONENT STYLING
   --------------------------------------------------------- */
.guide-popup-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.guide-popup-label {
  display: inline-block;
  color: var(--tf-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--tf-primary-light);
  padding: 4px 12px;
  border-radius: var(--tf-radius-full);
  margin-bottom: 12px;
}

.guide-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-popup-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.guide-popup-header p {
  font-size: 15.5px;
  color: var(--tf-text-soft);
  line-height: 1.6;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.guide-card {
  background: var(--tf-bg-soft);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.guide-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--tf-radius-sm);
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--tf-primary);
}

.guide-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-card p {
  font-size: 13.5px;
  color: var(--tf-text-soft);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.guide-action-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tf-primary);
  background: transparent;
  border: none;
  padding: 0;
}

.guide-action-btn:hover {
  gap: 10px;
}

.guide-how-heading {
  text-align: center;
  margin-bottom: 24px;
}

.guide-how-heading span {
  font-size: 12px;
  font-weight: 700;
  color: var(--tf-muted);
  letter-spacing: 0.08em;
}

.guide-how-heading h2 {
  font-size: 22px;
  margin: 4px 0 8px;
}

.guide-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.guide-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
}

.guide-flow-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-flow-content span {
  font-size: 11px;
  font-weight: 700;
  color: var(--tf-primary);
  letter-spacing: 0.05em;
}

.guide-flow-content h3 {
  font-size: 15px;
  margin: 2px 0 4px;
}

.guide-flow-content p {
  font-size: 13.5px;
  margin: 0;
  color: var(--tf-text-soft);
}

.guide-popup-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--tf-border);
}

.guide-popup-footer h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.guide-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tf-primary);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: var(--tf-radius-sm);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(20, 100, 232, 0.25);
}

.guide-main-btn:hover {
  background: var(--tf-primary-dark) !important;
}

/* ---------------------------------------------------------
   14. MASTER DARK FOOTER (#0b132b)
   --------------------------------------------------------- */
.master-footer {
  background: var(--tf-bg-footer);
  color: #94a3b8;
  padding: 64px 0 32px;
  font-size: 14px;
  border-top: 1px solid var(--tf-border);
}

.footer-container {
  max-width: var(--tf-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-locations, .footer-tags {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-locations h3, .footer-tags h3 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
}

.location-row {
  margin-bottom: 16px;
}

.location-row h3 {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.location-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.location-row a {
  color: #94a3b8;
  font-size: 13px;
}

.location-row a:hover {
  color: var(--tf-primary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: var(--tf-radius-full);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-list a:hover {
  background: var(--tf-primary);
  color: #ffffff;
  border-color: var(--tf-primary);
}

/* Footer Columns Grid */
.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.footer-subtext {
  color: #94a3b8;
  font-size: 13px;
}

.footer-nav-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-nav-col a:hover {
  color: #ffffff;
}

.footer-btn-link {
  background: transparent;
  border: none;
  padding: 0;
  color: #94a3b8;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: var(--tf-transition);
}

.footer-btn-link:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ---------------------------------------------------------
   15. TOAST NOTIFICATION
   --------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--tf-text);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--tf-radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--tf-shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS (ALL SPECIFIED SIZES)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-cover-card {
    grid-template-columns: 1fr;
  }

  .featured-cover-body {
    padding: 28px;
  }

  .article-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand-col {
    grid-column: span 3;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .right-actions {
    display: none;
  }

  .mobile-btn {
    display: block;
  }

  .nav-wrap {
    padding: 0 20px;
  }

  .container, .hero-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding-top: 40px;
  }

  .hero-display-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .search-box {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 8px;
  }

  .search-box-icon {
    display: none;
  }

  .search-box-btn {
    width: 100%;
    height: 44px;
  }

  .category-cards-grid {
    grid-template-columns: 1fr;
  }

  .article-cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand-col {
    grid-column: span 2;
  }

  .modal-box {
    padding: 24px 18px;
    border-radius: var(--tf-radius-lg);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .trust-container {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-col {
    grid-column: span 1;
  }
}

/* ---------------------------------------------------------
   17. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   TODAYFIX BLOG — PREMIUM REDESIGN OVERRIDE
   Paste this AFTER the existing stylesheet.
   No HTML / JS changes required.
   No line-clamp properties used.
   ========================================================= */


/* =========================================================
   1. PREMIUM DESIGN TOKENS
   ========================================================= */

:root {
  --tf-blue: #1464e8;
  --tf-blue-dark: #0f55c7;
  --tf-blue-soft: #eef5ff;

  --tf-black: #0f172a;
  --tf-slate: #334155;
  --tf-muted-new: #64748b;
  --tf-light: #94a3b8;

  --tf-white: #ffffff;
  --tf-bg-new: #f8fafc;
  --tf-border-new: #e2e8f0;

  --tf-radius-1: 10px;
  --tf-radius-2: 14px;
  --tf-radius-3: 18px;
  --tf-radius-4: 24px;

  --tf-shadow-1: 0 2px 8px rgba(15, 23, 42, 0.05);
  --tf-shadow-2: 0 10px 30px rgba(15, 23, 42, 0.08);
  --tf-shadow-3: 0 22px 60px rgba(15, 23, 42, 0.12);

  --tf-ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================================================
   2. GLOBAL RESET / POLISH
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--tf-black);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(20, 100, 232, 0.22);
  outline-offset: 3px;
}


/* =========================================================
   3. HEADER
   ========================================================= */

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
}

.nav-wrap {
  height: 74px;
  max-width: 1320px;
  padding-left: 28px;
  padding-right: 28px;
}

.site-header.scrolled .nav-wrap {
  height: 68px;
}

.logo img {
  height: 37px;
  width: auto;
  object-fit: contain;
}


/* =========================================================
   4. DESKTOP NAVIGATION
   ========================================================= */

.desktop-nav {
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav-item-link {
  position: relative;
  padding: 10px 3px;
  color: #334155;
}

.nav-item-link::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--tf-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--tf-ease);
}

.nav-item-link:hover {
  color: var(--tf-blue);
}

.nav-item-link:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   5. NAV DROPDOWNS
   ========================================================= */

.nav-dropdown-btn {
  min-height: 40px;
  padding: 8px 3px;
  color: #334155;
  font-weight: 600;
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  color: var(--tf-blue);
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.22s var(--tf-ease);
}

.nav-dropdown-menu {
  top: calc(100% + 12px);
  min-width: 320px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--tf-shadow-3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-dropdown-wide {
  min-width: 360px;
}

.dropdown-rich-item {
  min-height: 62px;
  padding: 11px;
  border-radius: 13px;
  gap: 12px;
}

.dropdown-rich-item:hover {
  background: #f5f8ff;
  transform: translateX(2px);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--tf-blue);
}

.dropdown-rich-item:hover .dropdown-icon {
  background: var(--tf-blue);
  border-color: var(--tf-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.dropdown-title {
  font-size: 14px;
  font-weight: 700;
}

.dropdown-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}


/* =========================================================
   6. RIGHT NAV ACTIONS
   ========================================================= */

.right-actions {
  gap: 8px;
}

.nav-login {
  height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  background: transparent;
}

.nav-login:hover {
  color: var(--tf-blue);
  background: #f3f7ff;
}

.list-business {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--tf-blue);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 5px 16px rgba(20, 100, 232, 0.22);
}

.list-business:hover {
  background: var(--tf-blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 100, 232, 0.28);
}

.vline {
  height: 24px;
  margin: 0 3px;
  background: #e2e8f0;
}


/* =========================================================
   7. HERO
   ========================================================= */

.hero-section {
  margin-top: 74px;
  padding: 88px 32px 0;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(20, 100, 232, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 5% 80%,
      rgba(20, 100, 232, 0.06),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f3f7ff 0%,
      #ffffff 100%
    );
}

.hero-container {
  max-width: 1320px;
  gap: 70px;
  padding-bottom: 60px;
}

.hero-display-title {
  max-width: 760px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 30px;
  color: #475569;
  font-size: 18px;
  line-height: 1.65;
}


/* =========================================================
   8. HERO EYEBROW
   ========================================================= */

.eyebrow-badge {
  padding: 7px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(20, 100, 232, 0.15);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--tf-blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}


/* =========================================================
   9. HERO SEARCH
   ========================================================= */

.hero-search-form {
  max-width: 680px;
}

.search-box {
  height: 64px;
  padding: 7px 7px 7px 20px;
  border-radius: 16px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.search-box:focus-within {
  border-color: var(--tf-blue);
  box-shadow:
    0 0 0 4px rgba(20, 100, 232, 0.12),
    0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-box input {
  font-size: 15px;
}

.search-box-btn {
  height: 50px;
  padding: 0 27px;
  border-radius: 12px;
  background: var(--tf-blue);
  font-weight: 700;
}

.search-box-btn:hover {
  background: var(--tf-blue-dark);
  transform: translateY(-1px);
}


/* =========================================================
   10. HERO POPULAR TAGS
   ========================================================= */

.hero-popular-tags {
  gap: 7px;
  margin-top: 8px;
}

.tags-label {
  margin-right: 3px;
  font-size: 12.5px;
  color: #64748b;
}

.tag-shortcut-btn {
  padding: 6px 12px;
  border: 1px solid #dfe6ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.tag-shortcut-btn:hover {
  border-color: var(--tf-blue);
  color: var(--tf-blue);
  background: #ffffff;
  transform: translateY(-1px);
}


/* =========================================================
   11. HERO RIGHT INSIGHT CARDS
   ========================================================= */

.hero-insight-stack {
  gap: 14px;
}

.stack-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 100, 232, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.stack-category-tag {
  padding: 4px 9px;
  border-radius: 7px;
  background: #eef5ff;
  color: var(--tf-blue);
  font-size: 10.5px;
  font-weight: 800;
}

.stack-title {
  font-size: 16px;
  line-height: 1.4;
}

.stack-rating {
  font-size: 12px;
}

.card-main {
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f3f7ff 100%
    );
  border-color: rgba(20, 100, 232, 0.16);
}

.card-main h3 {
  font-size: 19px;
}

.stack-cta-link {
  font-weight: 700;
}

.card-bottom {
  padding: 16px 20px;
}


/* =========================================================
   12. TRUST STRIP
   ========================================================= */

.trust-strip {
  padding: 20px 0;
  background: #ffffff;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.trust-container {
  max-width: 1320px;
}

.trust-item {
  font-size: 13px;
  font-weight: 650;
  color: #475569;
}

.trust-item svg {
  color: var(--tf-blue);
}


/* =========================================================
   13. CATEGORY SECTION
   ========================================================= */

.category-discovery-section {
  padding: 72px 0;
  background: #ffffff;
}

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

.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  letter-spacing: -0.035em;
}

.section-subtitle {
  max-width: 650px;
  margin-top: 8px;
  color: #64748b;
}

.category-cards-grid {
  gap: 18px;
}

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 17px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.category-card:hover {
  border-color: rgba(20, 100, 232, 0.5);
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-card.active {
  background: #eef5ff;
  border-color: var(--tf-blue);
}

.category-card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #ffffff;
  border-color: #dce5f0;
}

.category-card h3 {
  font-size: 16px;
}

.category-card p {
  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   14. FEATURED ARTICLE
   ========================================================= */

.featured-editorial-section {
  margin: 0 0 72px;
}

.featured-cover-card {
  min-height: 420px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--tf-shadow-2);
}

.featured-cover-img {
  min-height: 420px;
}

.featured-cover-img img {
  transition: transform 0.6s var(--tf-ease);
}

.featured-cover-card:hover .featured-cover-img img {
  transform: scale(1.045);
}

.editorial-badge {
  top: 22px;
  left: 22px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tf-blue);
  font-size: 10.5px;
  font-weight: 800;
}

.featured-cover-body {
  padding: 48px;
}

.category-tag-link {
  color: var(--tf-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.featured-cover-body h2 {
  max-width: 620px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.featured-cover-body p {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;

  /*
     Intentionally no line-clamp.
     This avoids browser/editor lint errors.
  */
  max-height: 82px;
  overflow: hidden;
}

.meta-row {
  gap: 14px;
  margin-bottom: 24px;
}

.btn-read-guide {
  font-size: 14px;
  font-weight: 750;
}

.btn-read-guide:hover {
  gap: 12px;
  color: var(--tf-blue-dark);
}


/* =========================================================
   15. ARTICLES SECTION
   ========================================================= */

.articles-grid-section {
  margin-bottom: 72px;
}

.grid-section-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
}

.result-counter-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border-color: #e2e8f0;
  font-size: 12px;
}

.article-cards-grid {
  gap: 22px;
}

.grid-article-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.grid-article-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.card-img-link {
  aspect-ratio: 16 / 9;
}

.card-img-link img {
  transition: transform 0.55s var(--tf-ease);
}

.grid-article-card:hover .card-img-link img {
  transform: scale(1.055);
}

.card-body-content {
  padding: 22px 22px 20px;
}

.card-body-content h3 {
  min-height: 54px;
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.4;

  /*
     No line-clamp.
     Fixed height keeps cards visually consistent.
  */
  max-height: 54px;
  overflow: hidden;
}

.card-body-content p {
  min-height: 66px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;

  /*
     No line-clamp.
  */
  max-height: 66px;
  overflow: hidden;
}

.card-footer-meta {
  padding-top: 13px;
  font-size: 12px;
}


/* =========================================================
   16. PAGINATION
   ========================================================= */

.pagination-nav {
  gap: 7px;
  margin: 44px 0 58px;
}

.page-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  border-color: #dfe6ef;
  background: #ffffff;
  font-weight: 600;
}

.page-btn:hover:not(.disabled) {
  border-color: var(--tf-blue);
  color: var(--tf-blue);
  background: #f5f8ff;
}

.page-btn.active {
  background: var(--tf-blue);
  border-color: var(--tf-blue);
}


/* =========================================================
   17. SERVICE CTA
   ========================================================= */

.service-discovery-cta {
  margin: 70px 0;
  padding: 52px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(20, 100, 232, 0.22),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #07111f 0%,
      #172033 100%
    );
  box-shadow: 0 20px 50px rgba(7, 17, 31, 0.15);
}

.cta-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
}

.cta-content p {
  color: #cbd5e1;
}

.cta-primary-btn {
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--tf-blue);
}

.cta-primary-btn:hover {
  background: var(--tf-blue-dark) !important;
}


/* =========================================================
   18. NEWSLETTER
   ========================================================= */

.newsletter-card {
  margin: 70px 0;
  padding: 46px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(20, 100, 232, 0.1),
      transparent 35%
    ),
    #f3f7ff;
  border: 1px solid rgba(20, 100, 232, 0.15);
}

.newsletter-info h3 {
  font-size: 23px;
}

.newsletter-input-box input {
  min-height: 48px;
  border-radius: 11px;
  border-color: #d8e1ec;
}

.newsletter-submit-btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 11px;
  background: var(--tf-blue);
}

.newsletter-submit-btn:hover {
  background: var(--tf-blue-dark);
}


/* =========================================================
   19. ARTICLE MODAL
   ========================================================= */

.modal {
  background: rgba(2, 8, 23, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  max-width: 900px;
  max-height: 92vh;
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.22);
}

.modal-close {
  width: 40px;
  height: 40px;
  top: 18px;
  right: 18px;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}


/* =========================================================
   20. ARTICLE READING VIEW
   ========================================================= */

.article-detail-body {
  max-width: 770px;
}

.article-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.article-content {
  color: #334155;
  font-size: 17px;
  line-height: 1.85;
}

.article-content p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 22px;
}

.article-content h2 {
  margin-top: 40px;
  font-size: 25px;
  line-height: 1.25;
}

.article-content h3 {
  margin-top: 30px;
  font-size: 20px;
}

.article-content li {
  margin-bottom: 9px;
}

.article-tip-callout {
  margin: 30px 0;
  padding: 20px 22px;
  border-left-width: 4px;
  background: #eef5ff;
}


/* =========================================================
   21. RELATED ARTICLES
   ========================================================= */

.related-articles-section {
  margin-top: 52px;
  padding-top: 34px;
}

.related-grid {
  gap: 18px;
}

.related-card {
  padding: 12px;
  border-radius: 14px;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.related-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(20, 100, 232, 0.35);
  box-shadow: var(--tf-shadow-1);
}

.related-card img {
  height: 110px;
  border-radius: 10px;
}

.related-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;

  /*
     No line-clamp.
     Fixed max height prevents CSS errors.
  */
  max-height: 40px;
  overflow: hidden;
}


/* =========================================================
   22. GUIDE POPUP
   ========================================================= */

.guide-popup-header {
  max-width: 680px;
}

.guide-popup-icon {
  width: 60px;
  height: 60px;
  background: #eef5ff;
  color: var(--tf-blue);
}

.guide-popup-label {
  background: #eef5ff;
  color: var(--tf-blue);
}

.guide-popup-header h1 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.guide-card-grid {
  gap: 18px;
}

.guide-card {
  min-height: 175px;
  padding: 22px;
  border-radius: 16px;
  border-color: #e2e8f0;
  background: #f8fafc;
  transition: var(--tf-ease);
}

.guide-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(20, 100, 232, 0.25);
  box-shadow: var(--tf-shadow-1);
}

.guide-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--tf-blue);
}

.guide-card h3 {
  font-size: 16px;
}

.guide-flow {
  gap: 14px;
}

.guide-flow-step {
  padding: 18px;
  border-radius: 14px;
  border-color: #e2e8f0;
}

.guide-flow-icon {
  width: 38px;
  height: 38px;
  background: #eef5ff;
  color: var(--tf-blue);
}

.guide-main-btn {
  padding: 13px 28px;
  border-radius: 11px;
  background: var(--tf-blue);
}

.guide-main-btn:hover {
  background: var(--tf-blue-dark) !important;
}


/* =========================================================
   23. FOOTER
   ========================================================= */

.master-footer {
  position: relative;
  margin-top: 80px;
  padding: 72px 0 30px;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(20, 100, 232, 0.12),
      transparent 30%
    ),
    #07111f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: 1320px;
}

.footer-columns-grid {
  gap: 42px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
}

.footer-tagline-text {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.5;
}

.footer-subtext {
  max-width: 330px;
  line-height: 1.6;
}

.footer-nav-col h4 {
  margin-bottom: 17px;
  font-size: 14px;
}

.footer-nav-col ul {
  gap: 11px;
}

.footer-nav-col a,
.footer-btn-link {
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-nav-col a:hover,
.footer-btn-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-locations,
.footer-tags {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-locations h3,
.footer-tags h3 {
  font-size: 15px;
}

.location-row ul {
  gap: 9px 16px;
}

.location-row a {
  font-size: 12.5px;
}

.tag-list a {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.tag-list a:hover {
  background: var(--tf-blue);
  border-color: var(--tf-blue);
}

.footer-bottom-bar {
  padding-top: 25px;
  color: #64748b;
}


/* =========================================================
   24. TOAST
   ========================================================= */

.toast {
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   25. MOBILE NAV
   ========================================================= */

.mobile-btn {
  width: 42px;
  height: 42px;
  display: none;
  border-radius: 11px;
  color: #0f172a;
}

.mobile-btn:hover {
  background: #f3f7ff;
  color: var(--tf-blue);
}

.mobile-menu {
  top: 74px;
}

.mobile-menu-inner {
  padding: 20px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.mobile-nav-links {
  gap: 8px;
}

.mobile-nav-links > a {
  padding: 11px 4px;
  font-size: 15px;
}

.mobile-group {
  margin-top: 7px;
  padding: 15px;
  border-radius: 14px;
}

.mobile-group-title {
  font-size: 11px;
}

.mobile-group a,
.mobile-article-btn {
  padding: 7px 0;
}


/* =========================================================
   26. TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .desktop-nav {
    gap: 13px;
    font-size: 13px;
  }

  .right-actions {
    gap: 5px;
  }

  .hero-container {
    gap: 42px;
  }

  .featured-cover-body {
    padding: 36px;
  }

  .footer-columns-grid {
    gap: 28px;
  }
}


/* =========================================================
   27. MOBILE — 768px
   ========================================================= */

@media (max-width: 768px) {

  .desktop-nav,
  .right-actions {
    display: none;
  }

  .mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-wrap {
    height: 68px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header.scrolled .nav-wrap {
    height: 64px;
  }

  .logo img {
    height: 33px;
  }

  .hero-section {
    margin-top: 68px;
    padding: 50px 16px 0;
  }

  .hero-container {
    gap: 34px;
    padding-bottom: 42px;
  }

  .hero-display-title {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.07;
  }

  .hero-subtitle {
    margin-bottom: 25px;
    font-size: 16px;
  }

  .hero-search-form {
    width: 100%;
  }

  .search-box {
    height: auto;
    min-height: 60px;
    padding: 7px;
    flex-direction: row;
  }

  .search-box-icon {
    display: none;
  }

  .search-box-btn {
    height: 46px;
    padding: 0 19px;
  }

  .hero-popular-tags {
    margin-top: 10px;
  }

  .hero-right {
    width: 100%;
  }

  .stack-card {
    padding: 18px;
  }

  .trust-container {
    padding-left: 18px;
    padding-right: 18px;
    gap: 14px 22px;
    justify-content: flex-start;
  }

  .category-discovery-section {
    padding: 50px 0;
  }

  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    min-height: 165px;
    padding: 17px;
  }

  .featured-editorial-section {
    margin-bottom: 50px;
  }

  .featured-cover-card {
    grid-template-columns: 1fr;
  }

  .featured-cover-img {
    min-height: 260px;
  }

  .featured-cover-body {
    padding: 28px 24px 30px;
  }

  .featured-cover-body h2 {
    font-size: 28px;
  }

  .article-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-article-card {
    border-radius: 16px;
  }

  .card-body-content h3 {
    min-height: auto;
    max-height: none;
  }

  .card-body-content p {
    min-height: auto;
    max-height: none;
  }

  .service-discovery-cta {
    margin: 48px 0;
    padding: 34px 24px;
    border-radius: 20px;
  }

  .newsletter-card {
    margin: 48px 0;
    padding: 30px 22px;
    border-radius: 20px;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter-input-box {
    flex-direction: column;
  }

  .newsletter-submit-btn {
    width: 100%;
  }

  .modal {
    padding: 12px;
  }

  .modal-box {
    max-height: 94vh;
    padding: 30px 18px;
    border-radius: 18px;
  }

  .article-header h1 {
    font-size: 30px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content p {
    font-size: 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .master-footer {
    padding-top: 52px;
  }

  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 22px;
  }

  .footer-brand-col {
    grid-column: span 2;
  }
}


/* =========================================================
   28. SMALL MOBILE — 520px
   ========================================================= */

@media (max-width: 520px) {

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-display-title {
    font-size: 34px;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-box input {
    width: 100%;
    min-height: 42px;
  }

  .search-box-btn {
    width: 100%;
  }

  .category-cards-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 145px;
  }

  .featured-cover-img {
    min-height: 220px;
  }

  .featured-cover-body {
    padding: 24px 20px;
  }

  .featured-cover-body h2 {
    font-size: 25px;
  }

  .meta-row {
    gap: 9px;
  }

  .cta-inner {
    gap: 22px;
  }

  .cta-primary-btn {
    width: 100%;
    justify-content: center;
  }

  .newsletter-info {
    flex-direction: column;
  }

  .mail-badge-icon {
    width: 48px;
    height: 48px;
  }

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

  .footer-brand-col {
    grid-column: span 1;
  }

  .footer-bottom-bar {
    font-size: 12px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}


/* =========================================================
   29. VERY SMALL MOBILE — 380px
   ========================================================= */

@media (max-width: 380px) {

  .nav-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo img {
    height: 30px;
  }

  .hero-display-title {
    font-size: 31px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .featured-cover-body h2 {
    font-size: 23px;
  }

  .modal-box {
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* =========================================================
   30. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   31. FINAL SAFETY OVERRIDES
   ========================================================= */

/* Prevent accidental horizontal overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Correct previous invalid nav-login background declaration */
.nav-login {
  background: transparent;
}

/* Keep links/buttons visually consistent */
.nav-login,
.list-business,
.cta-primary-btn,
.guide-main-btn,
.search-box-btn,
.newsletter-submit-btn,
.page-btn,
.mobile-btn {
  -webkit-appearance: none;
  appearance: none;
}

/* Do not allow images to overflow cards */
.featured-cover-img,
.card-img-link,
.related-card {
  overflow: hidden;
}

/* Clean box sizing for generated content */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* =========================================================
   MODAL — INTERNAL SCROLLBAR + FULL ROUNDED CORNERS
   ========================================================= */

.modal {
  overflow: hidden;
  padding: 20px;
}

.modal-box {
  position: relative;

  /* Keep all four corners rounded */
  border-radius: var(--tf-radius-xl);

  /* Scroll INSIDE the modal */
  overflow-y: auto;
  overflow-x: hidden;

  /* Prevent scrollbar from changing the content width */
  scrollbar-gutter: stable;

  /* Keep rounded white container */
  background: #ffffff;

  /* Smooth scrolling */
  scroll-behavior: smooth;

  /* Make sure the modal stays within screen */
  max-height: 90vh;
}

/* Chrome / Edge / Safari scrollbar */
.modal-box::-webkit-scrollbar {
  width: 10px;
}

.modal-box::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 4px;
}

.modal-box::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 3px solid #ffffff;
}

.modal-box::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Firefox */
.modal-box {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}

/* =========================================================
   MOBILE MODAL
   ========================================================= */

@media (max-width: 768px) {

  .modal {
    padding: 12px;
  }

  .modal-box {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .modal-box::-webkit-scrollbar {
    width: 8px;
  }

  .modal-box::-webkit-scrollbar-track {
    margin: 10px 2px;
  }

  .modal-box::-webkit-scrollbar-thumb {
    border-width: 2px;
  }
}
/* =========================================================
   TODAYFIX NAVBAR — ONLY CLICKED DROPDOWN OPENS
   Add below existing CSS
   ========================================================= */

/* Hide every dropdown by default */
.nav-dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(8px) !important;
}

/* Show ONLY the dropdown with .open */
.nav-dropdown.open > .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* IMPORTANT:
   Do NOT open dropdowns just because the mouse is hovering */
.nav-dropdown:hover > .nav-dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(8px) !important;
}

/* Keep the clicked/open dropdown visible even while hovering */
.nav-dropdown.open:hover > .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Keyboard focus */
.nav-dropdown:focus-within > .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Arrow rotation only for the active dropdown */
.nav-dropdown .dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* =========================================================
   PREVENT DROPDOWN OVERLAPPING OTHER NAV ITEMS
   ========================================================= */

.nav-dropdown {
  position: relative;
  z-index: 1100;
}

.nav-dropdown.open {
  z-index: 1200;
}

/* =========================================================
   SMOOTH DROPDOWN ANIMATION
   ========================================================= */

.nav-dropdown-menu {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease !important;
}
/* =========================================================
   GUIDE POPUP SCREENSHOT IMAGE
========================================================= */

.guide-image {
  width: 100%;
  margin: 24px 0 10px;
  text-align: center;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f7fa;
}

.guide-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

@media (max-width: 768px) {
  .guide-image {
    margin: 20px 0 8px;
    border-radius: 14px;
  }

  .guide-image img {
    max-height: 400px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .guide-image {
    margin: 16px 0 6px;
    border-radius: 12px;
  }

  .guide-image img {
    max-height: 300px;
    border-radius: 12px;
  }
}
/* =========================================================
   GUIDE POPUP IMAGE
   ========================================================= */

.guide-popup-image {
  width: 100%;
  margin: 25px 0 30px;
  text-align: center;
}

.guide-popup-image img {
  display: block;
  width: 100%;
  max-width: 900px;
  max-height: 500px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
}
/* =========================================================
   GUIDE POPUP IMAGE
========================================================= */

.guide-image {
  width: 100%;
  margin: 24px 0 10px;
  text-align: center;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f7fa;
}

.guide-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

/* Tablet */
@media (max-width: 768px) {
  .guide-image {
    margin: 20px 0 8px;
    border-radius: 14px;
  }

  .guide-image img {
    max-height: 400px;
    border-radius: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .guide-image {
    margin: 16px 0 6px;
    border-radius: 12px;
  }

  .guide-image img {
    max-height: 300px;
    border-radius: 12px;
  }
}