/* ============================================================ */
/* ==================== CORE DESIGN SYSTEM ==================== */
/* ============================================================ */

:root {
  /* Color Palette */
  --primary: #981F33;
  --primary-hover: #72162B;
  --secondary: #5F6B72;
  --secondary-hover: #48555C;
  --accent: #FCCB47;
  --accent-text: #7a6420;
  
  --bg-main: #F5F4F2;
  --bg-card: #ffffff;
  --bg-dark: #48555C;
  --border-color: #E6E3DE;
  --border-light: #F0EDE8;
  
  --text-dark: #2B2B2B;
  --text-muted: #5F6B72;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-light-muted: rgba(255, 255, 255, 0.65);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1200px;
  
  /* Font Stacks */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Remove default tap highlight on touch devices */
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent layout shift when scrollbar appears */
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  /* Prevent text zoom on orientation change in iOS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Animations */
@keyframes gfRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.animate-rise {
  animation: gfRise 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================ */
/* ==================== LAYOUT COMPONENTS ==================== */
/* ============================================================ */

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 200ms ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container img {
  height: 30px;
  width: auto;
  cursor: pointer;
  display: block;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms ease;
}

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

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

/* Header Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  font-size: 9px;
  margin-left: 3px;
  display: inline-block;
  transition: transform 200ms ease;
}

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

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 240px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 227, 222, 0.9);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

/* Invisible hover bridge to prevent popup flickering on mouse transition */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

@media (min-width: 992px) {
  .nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  display: block;
  /* Increased padding for a larger touch target */
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.dropdown-item:hover, .dropdown-item:active {
  background: var(--border-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-number {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.phone-number:hover {
  color: var(--primary);
}

/* Mobile Navigation Trigger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  /* Ensure minimum 44x44 touch target (Apple HIG) */
  padding: 11px 8px;
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 110;
  /* Prevent accidental text selection on double-tap */
  user-select: none;
  -webkit-user-select: none;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 4px 0;
  transition: all 200ms ease;
  pointer-events: none;
}

/* Button Styles */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  /* Prevent text selection when tapping repeatedly */
  user-select: none;
  -webkit-user-select: none;
  /* Ensure buttons don't cause scroll on touch */
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover, .btn-primary:active {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover, .btn-outline:active {
  background: var(--primary);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-white:hover, .btn-outline-white:active {
  background: rgba(255, 255, 255, 0.12);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
}

.btn-white:hover, .btn-white:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}

.btn-accent:hover, .btn-accent:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 15px;
}

/* ============================================================ */
/* ==================== HERO SECTION ========================== */
/* ============================================================ */

.hero-section {
  position: relative;
  background: var(--primary);
  color: #ffffff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(120% 140% at 88% 12%, rgba(252, 203, 71, 0.16) 0%, transparent 45%), 
    radial-gradient(120% 120% at 0% 100%, rgba(95, 107, 114, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.hero-large-text {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 320px;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  padding: 96px 40px 88px;
  max-width: 680px;
}

.hero-eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 34px;
  max-width: 520px;
}

.hero-actions-container {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  padding: 60px 40px;
}

@media (max-width: 991px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 20px;
  }
  .hero-grid-container .hero-content {
    margin: 0 auto;
  }
  .hero-grid-container .hero-actions-container {
    justify-content: center;
  }
  .stats-divider {
    border-left: none !important;
    border-top: 1px solid var(--border-color);
  }
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper picture {
  width: 100%;
  display: block;
}

.hero-profile-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 1;
  object-fit: cover;
}

/* Content-Visibility Optimization for Offscreen Performance */
.site-footer,
.explore-section,
.faq-accordion,
.features-grid {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.hero-profile-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.badge-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 2px;
}

.badge-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}

.badge-nmls {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.why-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* ============================================================ */
/* ==================== STATS STRIP =========================== */
/* ============================================================ */

.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 38px;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================ */
/* ==================== FILTER & GRID ========================= */
/* ============================================================ */

.explore-section {
  padding: 72px 0 40px;
}

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 14px;
}

.section-eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 34px 0 40px;
}

.filter-chip {
  border-radius: 30px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 150ms ease;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  outline: none;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.loan-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, border-top-color 180ms ease;
}

.loan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.loan-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.loan-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.loan-badge-text {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loan-card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.loan-card-blurb {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.loan-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.loan-tag-chip {
  font-weight: 600;
  font-size: 12px;
  color: #48555C;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 5px 9px;
}

.loan-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 150ms ease;
}

.loan-card-footer span {
  font-size: 16px;
  transition: transform 150ms ease;
}

.loan-card:hover .loan-card-footer span {
  transform: translateX(4px);
}

.count-label {
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #9a958d;
  margin-top: 26px;
}

/* ============================================================ */
/* ==================== QUIZ & TALK BAND ====================== */
/* ============================================================ */

.teaser-section {
  padding: 40px 0 80px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.quiz-teaser-card {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  color: #ffffff;
}

.quiz-teaser-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 140% at 100% 0%, rgba(252, 203, 71, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.quiz-teaser-content {
  position: relative;
}

.quiz-teaser-eyebrow {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.quiz-teaser-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 420px;
}

.quiz-teaser-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  max-width: 440px;
}

.talk-teaser-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.talk-teaser-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.talk-teaser-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.talk-teaser-card .btn {
  align-self: flex-start;
}

/* ============================================================ */
/* ==================== LOAN DETAIL VIEW ====================== */
/* ============================================================ */

/* Breadcrumbs */
.breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
  padding: 14px 40px;
  font-weight: 500;
  font-size: 13px;
  color: #9a958d;
}

.breadcrumb-link {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 150ms ease;
}

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

.breadcrumb-separator {
  margin: 0 8px;
}

.breadcrumb-current {
  font-weight: 600;
}

/* Detail Hero */
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(110% 140% at 92% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 48%), 
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.14) 100%);
  pointer-events: none;
}

.detail-hero-content {
  position: relative;
  padding: 70px 40px 64px;
  max-width: 660px;
}

.detail-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-hero-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.detail-hero-desc {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 560px;
}

/* Facts Strip */
.facts-strip {
  background: var(--accent);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-item {
  padding: 26px 22px;
  text-align: center;
  border-right: 1px solid rgba(43, 43, 43, 0.1);
}

.fact-item:last-child {
  border-right: none;
}

.fact-value {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 30px;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.fact-key {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-top: 4px;
}

/* Two Column Detail Layout */
.detail-main-layout {
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

.detail-left-content h2 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.detail-overview-p {
  font-size: 17px;
  line-height: 1.72;
  color: #48555C;
  margin-bottom: 16px;
}

.detail-overview-p:last-of-type {
  margin-bottom: 0;
}

.audience-box {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}

.audience-box h3 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.audience-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Benefits Grid */
.detail-left-content h2.section-header {
  margin-top: 48px;
  margin-bottom: 22px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.benefit-icon-container {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.benefit-icon-dot {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.benefit-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.benefit-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* How It Works Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.step-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 18px;
}

.step-content-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.step-content-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Requirements List */
.requirements-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 28px;
}

.requirement-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.requirement-row:last-child {
  border-bottom: none;
}

.requirement-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.requirement-text {
  font-weight: 500;
  font-size: 15.5px;
  color: #48555C;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
}

.faq-sign {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.faq-content {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  display: none;
  animation: fadeIn 200ms ease;
}

.faq-card.open .faq-content {
  display: block;
}

/* Right Sticky Apply Rail */
.apply-aside {
  /* Not sticky: with the contact form under the apply card this column is
     taller than the viewport, and a stuck element that tall pins in place
     with its lower half — the form — permanently out of reach. */
  position: static;
}

.apply-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.apply-card-header {
  padding: 20px 24px;
  color: #ffffff;
}

.apply-card-eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.apply-card-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 20px;
  margin-top: 2px;
}

.apply-card-facts {
  padding: 8px 24px 4px;
}

.apply-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
}

.apply-fact-row:last-child {
  border-bottom: none;
}

.apply-fact-key {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-muted);
}

.apply-fact-value {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}

.apply-card-actions {
  padding: 18px 24px 24px;
}

.apply-card-actions .btn {
  width: 100%;
}

.apply-card-actions .btn + .btn {
  margin-top: 10px;
}

.lo-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.lo-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.lo-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-dark);
}

.lo-desc {
  font-weight: 400;
  font-size: 12.5px;
  color: #9a958d;
}

/* Contact form in the loan detail sidebar — same card chrome as .apply-card
   above it so the two read as a pair, with a tinted (not solid accent) header
   so it supports the apply card rather than competing with it. */
.aside-lead-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 18px;
}

.aside-lead-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.aside-lead-eyebrow {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aside-lead-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-dark);
  margin-top: 3px;
}

.aside-lead-body {
  padding: 20px 24px 24px;
}

.aside-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-lead-form .form-label {
  font-size: 12.5px;
}

.aside-lead-form .form-input {
  font-size: 14px;
  padding: 10px 12px;
}

.apply-aside-footer {
  text-align: center;
  font-weight: 500;
  font-size: 12.5px;
  color: #9a958d;
  margin-top: 14px;
  line-height: 1.5;
}

/* Bottom CTA */
.detail-bottom-cta {
  color: #ffffff;
}

.bottom-cta-content {
  padding: 62px 40px;
  text-align: center;
}

.bottom-cta-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.bottom-cta-desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 auto 30px;
  max-width: 520px;
}

.bottom-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.bottom-cta-back {
  margin-top: 36px;
}

.bottom-cta-back-link {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: all 150ms ease;
}

.bottom-cta-back-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ============================================================ */
/* ==================== FOOTER SECTION ======================== */
/* ============================================================ */

.site-footer {
  background: var(--bg-dark);
  color: #ffffff;
}

.footer-top {
  padding: 56px 0 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  max-width: 280px;
}

.footer-phone {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.footer-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-column-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 11px;
  cursor: pointer;
  transition: color 150ms ease;
}

.footer-link-item:hover {
  color: var(--accent);
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  padding: 28px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
  display: flex;
  gap: 22px;
}

.footer-legal-link {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 150ms ease;
}

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

.footer-disclosure {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 40px;
  padding-bottom: 0;
}

.footer-disclosure a {
  color: rgba(255, 255, 255, 0.65);
}

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

/* ============================================================ */
/* ==================== INTERACTIVE MODALS ==================== */
/* ============================================================ */

/* Native Dialog Modal Styling */
dialog.custom-modal {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  width: 90%;
  max-width: 580px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  overflow: visible; /* to allow close button offsets */
}

/* When dialog is opened, use animation */
dialog.custom-modal[open] {
  animation: scaleUp 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

dialog.custom-modal::backdrop {
  background: rgba(43, 43, 43, 0.4);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  animation: fadeIn 250ms ease forwards;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.modal-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-dark);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease;
}

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

.modal-body {
  padding: 28px;
}

/* Lead Capture Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
}

.form-input {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-dark);
  transition: var(--transition);
}

/* TCPA Disclosure & Agreement */
.form-tcpa-group {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-tcpa-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1.4;
}

.form-tcpa-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.tcpa-disclosure-text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.aside-lead-form .form-tcpa-label {
  font-size: 12px;
}

.aside-lead-form .tcpa-disclosure-text {
  font-size: 10.5px;
  line-height: 1.4;
}

.form-input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.form-input:user-invalid {
  border-color: #d32f2f;
  background-color: #ffebee;
}

.form-input:user-valid {
  border-color: #2e7d32;
  background-color: #e8f5e9;
}

/* Quiz Modal Specifics */
.quiz-steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 250ms ease;
}

.quiz-step-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 180ms ease;
  text-align: left;
}

.quiz-option-btn:hover {
  border-color: var(--primary);
  background: rgba(152, 31, 51, 0.02);
}

.quiz-option-btn.selected {
  border-color: var(--primary);
  background: rgba(152, 31, 51, 0.05);
  box-shadow: 0 0 0 1px var(--primary);
}

.quiz-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.quiz-option-btn.selected .quiz-option-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-option-btn.selected .quiz-option-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.quiz-option-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-dark);
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.quiz-progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 33.3%;
  transition: width 200ms ease;
}

/* Quiz Results Screen */
.quiz-results {
  text-align: center;
}

.results-intro {
  margin-bottom: 24px;
}

.results-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 8px;
}

.results-desc {
  font-size: 14.5px;
  color: var(--text-muted);
}

.results-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.result-card-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.result-card-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.result-card-info {
  flex: 1;
}

.result-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}

.result-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.lead-success-msg {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 300ms ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.success-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 8px;
}

/* ============================================================ */
/* ==================== RESPONSIVE MEDIA QUERIES ============== */
/* ============================================================ */

/* Desktop / Large Screens styling overrides if any */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }
  .breadcrumb-content {
    padding: 14px 24px;
  }
  .detail-hero-content {
    padding: 70px 24px 64px;
  }
}

/* Tablets (landscape and portrait) */
@media (max-width: 991px) {
  .hero-title {
    font-size: 44px;
    margin-bottom: 20px;
  }
  .hero-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
  }
  .hero-large-text {
    font-size: 240px;
  }
  .hero-content {
    padding: 72px 24px 64px;
  }

  /* Switch to hamburger nav at tablet too — prevent text wrapping in header */
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    max-height: calc(100vh - 72px);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-item-dropdown > a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    touch-action: manipulation;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-light);
    background: transparent;
    backdrop-filter: none;
    padding: 4px 0 4px 12px;
    margin-top: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-item-dropdown.submenu-open .dropdown-menu {
    display: block;
  }
  .nav-item-dropdown.submenu-open .dropdown-arrow {
    transform: rotate(180deg);
  }
  .header-actions {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(n+3) {
    border-top: 1px solid var(--border-light);
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .section-desc {
    font-size: 15px;
    line-height: 1.7;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .loan-card-content {
    padding: 22px 20px 18px;
  }
  .loan-card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .loan-card-blurb {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
  }
  
  .teaser-grid {
    grid-template-columns: 1fr;
  }
  .quiz-teaser-card {
    padding: 36px 30px;
  }
  .quiz-teaser-title {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .quiz-teaser-desc {
    margin-bottom: 24px;
  }
  .talk-teaser-card {
    padding: 36px 30px;
  }
  .talk-teaser-title {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .talk-teaser-desc {
    margin-bottom: 22px;
  }
  
  /* Loan detail view — tablet */
  .detail-hero-title {
    font-size: 42px;
    margin-bottom: 18px;
  }
  .detail-hero-desc {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
  }
  .detail-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 60px;
  }
  .detail-left-content h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .detail-overview-p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
  }
  .audience-box {
    padding: 24px 26px;
    margin-top: 32px;
  }
  .audience-box h3 {
    margin-bottom: 10px;
  }
  .audience-desc {
    font-size: 15px;
    line-height: 1.7;
  }
  .benefit-card {
    padding: 20px;
  }
  .benefit-title {
    margin-bottom: 8px;
  }
  .benefit-desc {
    line-height: 1.65;
  }
  .step-card {
    padding: 20px 22px;
  }
  .step-content-desc {
    line-height: 1.65;
  }
  .faq-question {
    font-size: 15px;
  }
  .faq-content {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .apply-aside {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Bottom CTA spacing */
  .bottom-cta-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .bottom-cta-desc {
    font-size: 16px;
    margin-bottom: 26px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .footer-brand p {
    max-width: 100%;
    line-height: 1.7;
  }
  .footer-link-item {
    margin-bottom: 13px;
  }
}

/* Mobile Screens */
@media (max-width: 767px) {
  .hero-title {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 18px;
  }
  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 26px;
  }
  .hero-content {
    padding: 52px 20px 48px;
  }
  .hero-grid-container {
    padding: 40px 20px;
    gap: 30px;
  }
  .hero-large-text {
    display: none;
  }

  /* Hero profile badge on mobile */
  .badge-title {
    font-size: 16px;
  }
  .badge-subtitle {
    font-size: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 22px 20px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-label {
    font-size: 13px;
    margin-top: 4px;
  }
  
  .section-title {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .section-desc {
    font-size: 14.5px;
    line-height: 1.7;
  }
  .explore-section {
    padding: 52px 0 32px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .loan-card-content {
    padding: 22px 20px 18px;
  }
  .loan-card-title {
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .loan-card-blurb {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
  }
  
  .quiz-teaser-card {
    padding: 28px 22px;
  }
  .quiz-teaser-title {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .quiz-teaser-desc {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
  }
  .talk-teaser-card {
    padding: 28px 22px;
  }
  .talk-teaser-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .talk-teaser-desc {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
  }
  .teaser-section {
    padding: 24px 0 52px;
  }
  
  /* Loan detail hero — mobile */
  .detail-hero-title {
    font-size: 30px;
    line-height: 1.12;
    margin-bottom: 16px;
  }
  .detail-hero-desc {
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 24px;
  }
  .detail-hero-content {
    padding: 40px 20px 36px;
  }
  .detail-hero-badge {
    margin-bottom: 16px;
    font-size: 10px;
  }

  /* Loan detail body — mobile */
  .detail-main-layout {
    padding: 36px 0 48px;
  }
  .detail-left-content h2 {
    font-size: 23px;
    margin-bottom: 14px;
  }
  .detail-left-content h2.section-header {
    margin-top: 36px;
    margin-bottom: 18px;
  }
  .detail-overview-p {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
  }
  .audience-box {
    padding: 22px 20px;
    margin-top: 28px;
  }
  .audience-box h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  .audience-desc {
    font-size: 14.5px;
    line-height: 1.7;
  }
  .benefit-card {
    padding: 20px 18px;
  }
  .benefit-title {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .benefit-desc {
    font-size: 13.5px;
    line-height: 1.65;
  }
  .step-card {
    padding: 18px 20px;
    gap: 14px;
  }
  .step-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .step-content-title {
    font-size: 15.5px;
    margin-bottom: 5px;
  }
  .step-content-desc {
    font-size: 13.5px;
    line-height: 1.65;
  }
  .requirements-card {
    padding: 4px 20px;
  }
  .requirement-text {
    font-size: 14.5px;
  }
  .faq-trigger {
    padding: 18px 20px;
  }
  .faq-question {
    font-size: 14.5px;
  }
  .faq-content {
    padding: 0 20px 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  /* Facts strip — mobile */
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-item {
    padding: 20px 16px;
  }
  .fact-value {
    font-size: 24px;
  }
  .fact-key {
    font-size: 10.5px;
    margin-top: 4px;
  }
  .fact-item:nth-child(2) {
    border-right: none;
  }
  .fact-item:nth-child(n+3) {
    border-top: 1px solid rgba(43, 43, 43, 0.1);
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Bottom CTA — mobile */
  .bottom-cta-content {
    padding: 44px 20px;
  }
  .bottom-cta-title {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .bottom-cta-desc {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand p {
    max-width: 100%;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .footer-column-title {
    margin-bottom: 14px;
  }
  .footer-link-item {
    margin-bottom: 13px;
    font-size: 14.5px;
  }
  .footer-address {
    line-height: 1.75;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    margin-top: 36px;
  }
  .footer-legal-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  dialog.custom-modal {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }

  /* Article and News detailed view mobile responsiveness */
  .article-detail-container {
    padding: 35px 15px 50px;
  }
  .detail-title {
    font-size: 26px !important;
    line-height: 1.3;
  }
  .detail-img-wrapper {
    max-height: 250px;
    margin-bottom: 24px;
  }
  .detail-content {
    font-size: 15px;
    line-height: 1.7;
  }
  .share-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0;
  }
}

/* Tablet Screens optimization for Articles & News */
@media (max-width: 991px) {
  .article-detail-container {
    padding: 45px 20px 60px;
  }
  .detail-title {
    font-size: 30px;
  }
  .detail-img-wrapper {
    max-height: 350px;
  }
}

/* ═══════════ Articles & feed pages (grid, detail view, share row) ═══════════ */
    /* Article Specific Styling */
    .articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }

    .article-card {
      background: #ffffff;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .article-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    }

    .article-img-wrapper {
      position: relative;
      width: 100%;
      height: 200px;
      overflow: hidden;
      background: #eee;
    }

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

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

    .article-body {
      padding: 24px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .article-meta {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .article-title {
      font-family: var(--font-headings);
      font-weight: 700;
      font-size: 18px;
      line-height: 1.4;
      color: var(--text-dark);
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 50px;
    }

    .article-excerpt {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-muted);
      margin-bottom: 20px;
      flex: 1;
    }

    .article-btn {
      align-self: flex-start;
      font-weight: 700;
      font-size: 13.5px;
      color: var(--primary);
      background: transparent;
      border: none;
      padding: 8px 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: color 0.15s ease;
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
    }

    .article-btn:hover, .article-btn:active {
      color: var(--accent);
    }

    /* Detailed View Specifics */
    .article-detail-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 60px 20px 80px;
    }

    .detail-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 14px;
      color: var(--text-muted);
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 12px 0;
      margin-bottom: 18px;
      transition: color 0.15s ease;
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
    }

    .detail-back-btn:hover, .detail-back-btn:active {
      color: var(--primary);
    }

    .detail-header {
      margin-bottom: 30px;
    }

    .detail-title {
      font-family: var(--font-headings);
      font-weight: 800;
      font-size: 36px;
      line-height: 1.2;
      color: var(--text-dark);
      margin-bottom: 16px;
    }

    .detail-meta {
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .detail-img-wrapper {
      width: 100%;
      max-height: 450px;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 40px;
      border: 1px solid var(--border-color);
    }

    .detail-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .detail-content {
      font-size: 16.5px;
      line-height: 1.8;
      color: #333333;
    }

    .detail-content p {
      margin-bottom: 24px;
    }

    .detail-content img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 20px 0;
    }

    /* Share Widget */
    .share-container {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 40px 0;
      padding: 20px 0;
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
    }

    .share-label {
      font-weight: 700;
      font-size: 14px;
      color: var(--text-dark);
    }

    .share-buttons {
      display: flex;
      gap: 10px;
    }

    .share-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #F5F4F2;
      color: var(--text-dark);
      border: 1px solid var(--border-color);
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 14px;
      text-decoration: none;
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
    }

    .share-btn:hover, .share-btn:active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .loading-spinner {
      text-align: center;
      padding: 80px 20px;
    }

    .spinner {
      width: 50px;
      height: 50px;
      border: 5px solid #F5F4F2;
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 1s infinite linear;
      margin: 0 auto 20px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
