/* ============================================
   smartafiliate - Unified Stylesheet
   Version: 3.5
   ============================================ */

:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d9e4f2;
  --navy-1: #081426;
  --navy-2: #0b1f3a;
  --navy-3: #12305a;
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-soft: #fff7ed;
  --white-soft: rgba(255, 255, 255, 0.78);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  direction: rtl;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

.skip-link {
  position: absolute;
  top: -48px;
  right: 1rem;
  z-index: 2000;
  background: #ffffff;
  color: #0f172a;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
img { max-width: 100%; display: block; height: auto; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2), var(--navy-3));
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header-scrolled {
  background: var(--navy-1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}
.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-text-light { color: white; }
.logo-text-accent { color: var(--primary); }
.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex: 1 1 auto;
  min-width: 0;
}
.main-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.35rem 0.2rem;
}
.main-nav a:hover { color: white; text-decoration: underline; }
.header-actions {
  display: flex;
  gap: 0.65rem;
  flex: 0 0 auto;
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-primary-light {
  background: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-primary-light:hover { background: var(--primary-dark); transform: translateY(-2px); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }

/* ===== MOBILE MENU ===== */
.main-nav.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 76px;
  right: 1rem;
  left: 1rem;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  padding: 1rem;
  gap: 0.4rem;
  z-index: 1200;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.main-nav.active a {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-align: center;
}
.main-nav.active a:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2), var(--navy-3));
  color: white;
  padding: 4rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 700;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 700;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-card ul { list-style: none; padding: 0; }
.hero-card li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.hero-card li::before { content: "✓"; color: var(--primary); font-weight: bold; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: white; }
main > .section,
main > .section-alt,
footer.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); max-width: 600px; margin: 0 auto; }
.defer-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 16px;
}
.card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.card h3 { margin-bottom: 0.8rem; color: var(--navy-2); }
.card p { color: var(--muted); font-size: 0.9rem; }

/* ===== ARTICLES GRID ===== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.article-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-image { height: 200px; overflow: hidden; background:linear-gradient(135deg,#0b1f3a,#12305a); }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-image img { transform: scale(1.05); }
.article-content { padding: 1.5rem; }
.article-category {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.article-card h3 { margin-bottom: 0.8rem; font-size: 1.1rem; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }
.article-excerpt { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.article-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.read-more { color: var(--primary); font-weight: 700; font-size: 0.85rem; }
.read-more:hover { text-decoration: underline; }

/* ===== POSTS LISTING UTILITIES ===== */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.filter-btn { background: var(--surface); border: 1px solid var(--line); padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.posts-count { text-align: center; margin-bottom: 1.5rem; color: var(--muted); font-size: 0.85rem; }
.post-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-image { height: 200px; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-image img { transform: scale(1.05); }
.post-content { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.post-category { display: inline-block; background: var(--primary-soft); color: var(--primary); padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; margin-bottom: 0.8rem; align-self: flex-start; }
.post-title { margin-bottom: 0.5rem; font-size: 1.1rem; line-height: 1.4; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.6; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.75rem; padding-top: 0.8rem; border-top: 1px solid var(--line); margin-top: auto; }
.read-more-btn { color: var(--primary); font-weight: 700; font-size: 0.8rem; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; transition: all 0.2s; }
.page-link:hover, .page-link.active { background: var(--primary); color: white; border-color: var(--primary); }
.post-shortcuts { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.75rem; }
.post-shortcuts a { color:var(--primary); font-weight:800; font-size:.9rem; }

/* ===== TOOLS GRID ===== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tool-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  padding: 18px;
  border-radius: 20px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.tool-card h3 { margin-bottom: 0.5rem; color: var(--navy-2); }
.tool-card p { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.tool-link {
  display: inline-block;
  background: var(--navy-2);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tool-link:hover { background: var(--primary); transform: translateY(-2px); }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  color: white;
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
}
.newsletter h3 { margin-bottom: 0.5rem; }
.newsletter p { opacity: 0.8; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.newsletter-input {
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 50px;
  width: 280px;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}
.newsletter-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2), var(--navy-3));
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.page-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.page-hero .container { text-align:center; }
.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero p { max-width: 860px; margin:0 auto; opacity: 0.85; }

/* ===== INFO GRID ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.info-card h2 {
  color: var(--navy-2);
  margin-bottom: 1rem;
  border-right: 3px solid var(--primary);
  padding-right: 0.8rem;
}
.info-card p, .info-card li { color: var(--muted); }

/* ===== CONTACT FORM ===== */
.contact-form { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg);
  transition: all 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(234,88,12,0.1); outline: none; }
.submit-btn { background: var(--primary); color: white; border: none; padding: 0.8rem 2rem; border-radius: 40px; font-weight: 700; cursor: pointer; position: relative; transition: all 0.3s ease; }
.submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.submit-btn.loading { opacity: 0.7; pointer-events: none; }
.submit-btn.loading::after { content: "⏳"; margin-right: 0.5rem; animation: spin 1s linear infinite; display: inline-block; }
.contact-email-link { color: #ea580c; font-weight: bold; font-size: 1.1rem; }
.contact-form-title { margin-bottom: 1.5rem; }
.contact-note { font-size: 0.8rem; color: #475569; margin-top: 1rem; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===== ARTICLE PAGE ===== */
.article-container { max-width: 850px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-body { padding: 2rem; }
.article-featured-image {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.article-body h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--navy-2); border-bottom: 2px solid var(--primary-soft); padding-bottom: 0.3rem; }
.article-body p, .article-body li { margin-bottom: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol { padding-right: 1.5rem; margin-bottom: 1rem; }
.article-body-legal { padding: 2rem; }
.legal-link { color: #ea580c; }
.legal-updated { margin-top: 2rem; font-size: 0.85rem; }
.toc { background: var(--bg); border-radius: 18px; padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
.toc h3 { margin-bottom: 0.8rem; }
.toc a { color: var(--navy-3); }
.toc a:hover { color: var(--primary); }
.info-box { background: var(--primary-soft); border-right: 4px solid var(--primary); padding: 1rem 1.2rem; border-radius: 12px; margin: 1.5rem 0; }
.info-link { color: #ea580c; }

/* ===== REVIEW UTILITIES ===== */
.review-cta { background: linear-gradient(135deg, rgba(234,88,12,.08), rgba(245,158,11,.12)); border: 1px solid rgba(234,88,12,.18); border-radius: 22px; padding: 1.2rem; margin: 1.25rem 0 1.75rem; }
.review-cta p { margin: 0 0 .8rem; font-weight: 700; }
.review-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.review-btn-primary, .review-btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.1rem; border-radius: 999px; font-weight: 800; }
.review-btn-primary { background: var(--primary); color: #fff; }
.review-btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.mini-compare { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.mini-compare a { color: var(--primary); font-weight: 800; font-size: .95rem; }
.decision-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin-top: 1.5rem; }

/* ===== SHARE ===== */
.share-section {
  padding-top: 2rem;
}
.share-box {
  background: linear-gradient(135deg, rgba(234,88,12,.08), rgba(245,158,11,.12));
  border: 1px solid rgba(234,88,12,.18);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.share-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.share-box h2 {
  margin-bottom: 0.75rem;
  color: var(--navy-2);
}
.share-box p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.share-btn {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}
.share-btn:hover {
  transform: translateY(-2px);
}
.share-whatsapp {
  background: #25d366;
  color: #fff;
}
.share-telegram {
  background: #229ed9;
  color: #fff;
}
.share-x {
  background: #111827;
  color: #fff;
}
.share-facebook {
  background: #1877f2;
  color: #fff;
}
.share-copy {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.share-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 700;
  min-height: 1.4rem;
}

/* ===== HOMEPAGE UTILITIES ===== */
.cta-strip { background: linear-gradient(135deg, rgba(234,88,12,.08), rgba(245,158,11,.12)); border: 1px solid rgba(234,88,12,.15); border-radius: 22px; padding: 1.25rem; margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-strip p { margin: 0; color: var(--text); font-weight: 600; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-primary, .cta-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .8rem 1.1rem; font-weight: 800; }
.cta-primary { background: var(--primary); color: #fff; }
.cta-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.mini-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.mini-links a { font-size: .9rem; font-weight: 700; color: var(--primary); }
.review-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin-top: 2rem; }
.review-box h3 { margin-bottom: .5rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1rem; margin-top: 1rem; }
.review-card { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.review-card a { color: var(--primary); font-weight: 800; }
.decision-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:1.5rem; }
.decision-card { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:1rem; }
.decision-card h3 { margin-bottom:.45rem; }
.decision-title { margin-bottom:.45rem; font-size:1.1rem; font-weight:800; color:var(--navy-2); }
.quick-jump { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem; }
.quick-jump a { color:var(--primary); font-weight:800; }
.tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.tool-card { height: 100%; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.tool-preview { height: 140px; border-radius: 18px; margin-bottom: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; background: linear-gradient(135deg, rgba(14, 30, 64, 0.98), rgba(25, 75, 150, 0.92)); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); text-align: center; padding: 1rem; }
.tool-preview.design { background: linear-gradient(135deg, rgba(88,28,135,.96), rgba(29,78,216,.92)); }
.tool-preview.video { background: linear-gradient(135deg, rgba(8,47,73,.98), rgba(8,145,178,.9)); }
.preview-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.preview-title { color: #fff; font-weight: 800; font-size: 1rem; }
.preview-subtitle { color: rgba(255,255,255,.8); font-size: .88rem; line-height: 1.7; }
.tool-card h3, .tool-card p { text-align: center; }
.tool-card .mini-links { justify-content: center; margin-top: auto; }
.tool-card .tool-link { margin: .95rem auto 0; }

/* ===== CONTENT HUB UTILITIES ===== */
.hub-cta, .learn-cta { background:linear-gradient(135deg,rgba(234,88,12,.08),rgba(245,158,11,.12)); border:1px solid rgba(234,88,12,.18); border-radius:22px; padding:1.25rem; margin-top:1.5rem; text-align:center; }
.hub-cta p { margin:0 auto .9rem; font-weight:700; max-width:820px; line-height:1.9; }
.learn-cta p { margin:0 auto .85rem; font-weight:700; max-width:820px; line-height:1.9; }
.hub-actions, .learn-actions { display:flex; flex-wrap:wrap; gap:.75rem; justify-content:center; }
.hub-primary, .hub-secondary, .learn-primary, .learn-secondary { display:inline-flex; align-items:center; justify-content:center; padding:.8rem 1.1rem; border-radius:999px; font-weight:800; }
.hub-primary, .learn-primary { background:var(--primary); color:#fff; }
.hub-secondary, .learn-secondary { background:var(--surface); color:var(--text); border:1px solid var(--line); }
.quick-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-top:1.5rem; }
.quick-card { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:1rem; }
.quick-card h3 { margin-bottom:.4rem; }
.quick-card a { color:var(--primary); font-weight:800; }
.article-shortcuts { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.75rem; }
.article-shortcuts a { font-size:.9rem; font-weight:800; color:var(--primary); }
.shortcut-links { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.75rem; }
.shortcut-links a { color:var(--primary); font-weight:800; font-size:.92rem; }
.next-step-box { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:1rem; margin-top:1rem; }

/* ===== ABOUT PAGE UTILITIES ===== */
.about-cta-section { background: linear-gradient(135deg, #0b1f3a, #12305a); color: white; text-align: center; }
.about-cta-text { margin-bottom: 1.5rem; }
.about-cta-button { background: white; color: #0b1f3a; }

/* ===== OPEN SOURCE PAGE UTILITIES ===== */
.hero-strip{background:linear-gradient(135deg,rgba(234,88,12,.08),rgba(245,158,11,.12));border:1px solid rgba(234,88,12,.16);border-radius:22px;padding:1.2rem;margin-top:1.35rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.hero-strip p{margin:0;font-weight:700}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.hero-btn-primary,.hero-btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:.8rem 1.1rem;border-radius:999px;font-weight:800}
.hero-btn-primary{background:var(--primary);color:#fff}
.hero-btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--line)}
.tool-preview.opensource{background:linear-gradient(135deg,rgba(17,24,39,.98),rgba(30,64,175,.92))}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-1);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-col a:hover {
  color: white;
  text-decoration: underline;
  transform: translateX(-5px);
}
.footer-description {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .header-inner { gap: 0.75rem; }
  .logo-text { font-size: 1.25rem; }
  .main-nav { gap: 0.7rem; }
  .main-nav a { font-size: 0.86rem; }
  .header-actions { gap: 0.5rem; }
  .btn-outline-light, .btn-primary-light { padding: 0.5rem 0.85rem; font-size: 0.84rem; }
  .tools-grid, .cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 1.5rem; }
  .hero-buttons { justify-content: center; }
  .menu-toggle { display: inline-flex; }
  .main-nav, .header-actions { display: none; width: 100%; flex-direction: column; align-items: center; padding: 1rem 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .form-group input, .form-group textarea { font-size: 16px; width: 100%; }
  .contact-form { padding: 1.2rem; }
}
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }
  .hero-card { padding: 1.3rem; }
  .cards-grid, .articles-grid, .tools-grid, .info-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 2rem 1.2rem; }
  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-input { width: 100%; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .article-meta, .post-meta { gap: 0.75rem; flex-wrap: wrap; }
  .review-actions, .mini-compare, .share-buttons, .post-shortcuts, .filter-bar { justify-content: center; }
  .share-box { padding: 1.4rem; }
  .share-btn { width: 100%; }
  .cta-strip { padding: 1rem; }
  .cta-actions, .mini-links, .quick-jump, .hub-actions, .article-shortcuts, .learn-actions, .shortcut-links, .hero-actions { justify-content: center; }
  .review-grid, .decision-grid, .tools-grid, .quick-grid, .cards-grid { grid-template-columns: 1fr; }
  .tool-preview { height: 126px; }
  .article-featured-image { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .article-card:hover,
  .post-card:hover,
  .tool-card:hover,
  .card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-primary-light:hover,
  .tool-link:hover,
  .submit-btn:hover,
  .newsletter-btn:hover,
  .share-btn:hover {
    transform: none !important;
  }
  .article-card:hover .article-image img,
  .post-card:hover .post-image img {
    transform: none !important;
  }
}
