/* ==========================================================================
   בריאות באחריות | חנה פאר - רוקחת מוסמכת
   Modern Responsive Design System (RTL First, WCAG 2.0 AA Compliant)
   ========================================================================== */

:root {
  --primary: #0f766e;        /* Deep teal */
  --primary-light: #14b8a6;  /* Vivid teal */
  --primary-dark: #115e59;   /* Forest teal */
  --primary-soft: #f0fdfa;   /* Mint tint */
  
  --secondary: #d97706;      /* Warm amber */
  --secondary-light: #f59e0b;
  --secondary-soft: #fffbeb;

  --accent-health: #10b981;  /* Emerald */
  --accent-alert: #ef4444;   /* Coral red */

  --text-main: #1e293b;      /* Slate 800 */
  --text-muted: #64748b;     /* Slate 500 */
  --text-light: #94a3b8;     /* Slate 400 */
  
  --bg-main: #f8fafc;        /* Slate 50 */
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.88);
  --border-light: #e2e8f0;
  --border-focus: #0f766e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 118, 110, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-base: 'Heebo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Assistant', var(--font-base);
  --font-scale: 1;

  --container-max: 1200px;
  --header-height: 76px;
}

/* Accessibility Variables & Toggles */
body.a11y-large-text {
  --font-scale: 1.15;
}
body.a11y-readable-font {
  --font-base: Arial, sans-serif !important;
}
body.a11y-underline-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
}
body.a11y-high-contrast {
  --bg-main: #000000;
  --bg-card: #121212;
  --bg-card-glass: #121212;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --border-light: #ffffff;
  --primary: #38bdf8;
  --primary-light: #7dd3fc;
  --primary-soft: #082f49;
  --secondary: #fbbf24;
}
body.a11y-grayscale {
  filter: grayscale(100%);
}
body.a11y-stop-animations * {
  animation: none !important;
  transition: none !important;
}

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

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
}

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

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

.header-cta-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
  color: #fff;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.06) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(15, 118, 110, 0.15);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
  color: #fff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-dark);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 1.02rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-frame {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  max-width: 420px;
  width: 100%;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 440px;
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--bg-card-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-icon {
  font-size: 28px;
}

.floating-text strong {
  display: block;
  font-size: 1rem;
  color: var(--primary-dark);
}

.floating-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Highlights Grid */
.highlights-section {
  padding: 40px 0 60px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.highlight-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.highlight-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.highlight-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Lead Capture Section (Replacement for old gift form) */
.lead-capture-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #094d47 0%, #0f766e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.lead-capture-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.lead-capture-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lead-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}

.lead-text p {
  font-size: 1.08rem;
  color: #ccfbf1;
  line-height: 1.7;
  margin-bottom: 24px;
}

.lead-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #f0fdfa;
}

.lead-benefits li span.check-icon {
  color: #34d399;
  font-weight: bold;
}

.lead-form-box {
  background: #ffffff;
  padding: 36px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.lead-form-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.lead-form-box p.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: var(--font-base);
  font-size: 0.96rem;
  background: #f8fafc;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  outline: none;
}

.form-legal-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 12px 0 16px;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 18px;
}

.form-checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #b45309 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.form-feedback {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Articles Section / Grid */
.articles-section {
  padding: 60px 0 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header-text h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.section-header-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.article-card-image {
  height: 190px;
  width: 100%;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

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

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

.article-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 118, 110, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 12px;
}

.article-card-title a {
  color: inherit;
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-card-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.read-more-link {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  color: var(--primary-light);
  gap: 10px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

/* Search Bar */
.search-wrapper {
  margin-bottom: 24px;
  position: relative;
  max-width: 480px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 18px;
}

/* Single Article Reader View */
.single-article-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 36px;
}

.single-article-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 16px;
}

.single-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.single-article-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #334155;
  max-width: 820px;
  margin: 0 auto;
}

.single-article-body p {
  margin-bottom: 22px;
}

.single-article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 16px;
}

.single-article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}

.single-article-body ul, .single-article-body ol {
  margin: 0 24px 24px 0;
}

.single-article-body li {
  margin-bottom: 10px;
}

.single-article-body img {
  border-radius: var(--radius-md);
  margin: 24px auto;
  box-shadow: var(--shadow-md);
}

/* Legal Documents Styling */
.legal-page-header {
  padding: 48px 0 24px;
  background: var(--primary-soft);
  border-bottom: 1px solid rgba(15, 118, 110, 0.15);
  margin-bottom: 40px;
}

.legal-page-header h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.legal-content-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
  line-height: 1.8;
}

.legal-content-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}

.legal-content-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  margin: 22px 0 10px;
}

.legal-content-card p, .legal-content-card ul {
  margin-bottom: 18px;
  color: #334155;
}

.legal-alert {
  background: #fef2f2;
  border-right: 4px solid #ef4444;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #991b1b;
}

.legal-info-box {
  background: #f0fdfa;
  border-right: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  display: none;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.cookie-banner-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-settings {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 12px;
}

/* Accessibility Toolbar / Widget */
.a11y-widget-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.a11y-widget-trigger:hover {
  transform: scale(1.08);
  background: var(--primary-dark);
}

.a11y-panel {
  position: fixed;
  bottom: 86px;
  left: 24px;
  width: 310px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  padding: 20px;
  z-index: 9998;
  display: none;
  text-align: right;
}

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.a11y-panel-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.a11y-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.a11y-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.a11y-opt-btn {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

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

.a11y-opt-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.a11y-panel-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.a11y-reset-btn {
  background: none;
  border: none;
  color: var(--accent-alert);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 24px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-light);
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 16px;
}

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

.footer-col ul a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s, padding-right 0.2s;
  display: inline-block;
}

.footer-col ul a:hover {
  color: #ffffff;
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

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

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

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-badge, .hero-actions {
    justify-content: center;
  }
  .hero-floating-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -15px;
  }
  .lead-capture-inner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    gap: 18px;
    text-align: center;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 16px;
  }
}

/* ==========================================================================
   Responsive Video Wrappers & YouTube Embeds
   ========================================================================== */
.responsive-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 24px 0;
  background: #000000;
}

.responsive-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.article-card:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

