/* =====================================================================
   TechieFixer - Professional Stylesheet
   Mobile-first, fast loading, AdSense-optimized
   Covers: homepage, articles, categories, utility pages
   ===================================================================== */

/* ═══════════════════════════════════════════════════════════════
   AdSense Sites - Professional Template
   Fast loading, mobile-first, AdSense-optimized
   ═══════════════════════════════════════════════════════════════ */

:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #f3f4f6;
  --border: #e5e7eb;
  --radius: 8px;
  --max-w: 820px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --font-body: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────────────────── */

header {
  border-bottom: 3px solid var(--brand);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { opacity: 0.85; }

header ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header ul a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}
header ul a:hover { color: var(--brand); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ── Main ─────────────────────────────────────────────────────── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Typography ───────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.1rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--brand); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: #374151; }
h4 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }

p { margin: 0.9em 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: #111827; }

/* ── Article ──────────────────────────────────────────────────── */

article { margin-bottom: 2rem; }

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

article h2:first-of-type { margin-top: 0; }

article ul, article ol {
  margin: 1em 0;
  padding-left: 1.8em;
}
article li { margin: 0.4em 0; }

article blockquote {
  border-left: 4px solid var(--brand);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #374151;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

article pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.2em 1.5em;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.5em 0;
}
article code {
  background: var(--bg-dark);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
article pre code { background: none; padding: 0; }

/* ── Tables (for comparisons) ─────────────────────────────────── */

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
article th {
  background: var(--brand);
  color: white;
  padding: 0.7em 1em;
  text-align: left;
  font-weight: 600;
}
article td {
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--border);
}
article tr:nth-child(even) { background: var(--bg-alt); }

/* ── Breadcrumbs ──────────────────────────────────────────────── */

.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--brand); }

/* ── Newsletter ───────────────────────────────────────────────── */

.newsletter {
  background: linear-gradient(135deg, var(--brand), #6366f1);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
}
.newsletter h3 {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  color: white;
  margin: 0 0 0.5rem;
}
.newsletter p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0.3rem 0 1.2rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1rem;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: white; background: rgba(255,255,255,0.25); }
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--brand);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.newsletter-note {
  font-size: 0.78rem !important;
  opacity: 0.7 !important;
  margin: 0.8rem 0 0 !important;
}
.newsletter-msg {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.newsletter-msg.success { background: rgba(16,185,129,0.3); }

@media (max-width: 480px) {
  .newsletter { padding: 2rem 1.2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

/* ── Ad Slots ─────────────────────────────────────────────────── */

.ad-slot {
  margin: 2rem 0;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}
.ad-in-article {
  margin: 2.5rem -1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Hero (Homepage) ──────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

/* ── Article Grid (Index & Category) ──────────────────────────── */

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

.article-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.article-card .category {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.article-card h2 {
  font-size: 1.15rem;
  border: none;
  padding: 0;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.4;
}

.article-card .excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ── Category Header ──────────────────────────────────────────── */

.category-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--brand);
}
.category-header h1 { margin: 0; }
.category-header p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0.3rem 0 0;
}

/* ── Related Articles ─────────────────────────────────────────── */

.related {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related h2 { border: none; margin-top: 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.related-card:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.related-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--brand);
}
.related-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-links {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
}
.footer-links a:hover { color: var(--brand); }

footer p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
  main { padding: 1.5rem 1rem; }

  header nav { padding: 0.7rem 1rem; }
  header ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    border-bottom: 2px solid var(--brand);
    box-shadow: var(--shadow);
  }
  header ul.show { display: flex; }
  .menu-btn { display: block; }

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

  article table { font-size: 0.82rem; }
  article th, article td { padding: 0.4em 0.6em; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  header nav { padding: 0.6rem 0.8rem; }
  .logo { font-size: 1.3rem; }
}

/* ── Print ────────────────────────────────────────────────────── */

@media print {
  header, footer, .ad-slot, .related, .breadcrumbs { display: none; }
  main { max-width: 100%; padding: 0; }
  body { font-size: 12pt; }
}


/* -- Expert Section, Picks Hero, Compare Table, Product Cards ------- */

/* ── Affiliate Disclosure Banner ── */
.aff-disclosure{background:#f0f9ff;border-bottom:1px solid #bae6fd;padding:8px 20px;text-align:center;font-size:0.78rem;color:#475569;font-family:var(--font-ui)}
.aff-disclosure a{color:var(--brand)}

/* ── Expert Persona Section ── */
.expert-section{background:linear-gradient(135deg,#eff6ff 0%,#f0fdf4 100%);padding:40px 20px;border-bottom:1px solid var(--border)}
.expert-inner{max-width:900px;margin:0 auto;display:flex;align-items:center;gap:28px}
.expert-avatar{width:100px;height:100px;border-radius:50%;object-fit:cover;border:3px solid var(--brand);flex-shrink:0;box-shadow:0 4px 12px rgba(37,99,235,0.2)}
.expert-info h2{font-family:var(--font-ui);font-size:1.2rem;font-weight:700;color:var(--text);margin-bottom:4px}
.expert-info .title{font-size:0.85rem;color:var(--brand);font-weight:600;font-family:var(--font-ui)}
.expert-info p{font-size:0.88rem;color:var(--text-light);margin-top:8px;line-height:1.6}
.expert-badge{display:inline-flex;align-items:center;gap:5px;background:#dbeafe;color:#1e40af;font-size:0.72rem;font-weight:700;padding:3px 10px;border-radius:20px;margin-top:8px;font-family:var(--font-ui)}

/* ── Top Picks Hero ── */
.picks-hero{background:var(--bg);padding:48px 20px 32px}
.picks-hero h1{font-family:var(--font-ui);font-size:clamp(1.6rem,3.5vw,2.2rem);font-weight:800;text-align:center;margin-bottom:8px;color:var(--text)}
.picks-hero .subtitle{text-align:center;color:var(--text-light);font-size:0.95rem;max-width:600px;margin:0 auto 32px}
.picks-hero .updated{text-align:center;font-size:0.78rem;color:var(--text-muted);margin-bottom:28px;font-family:var(--font-ui)}

/* ── Product Comparison Table ── */
.compare-table{max-width:900px;margin:0 auto 40px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg)}
.compare-row{display:grid;grid-template-columns:1fr 2fr 100px 120px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border);gap:16px}
.compare-row:last-child{border-bottom:none}
.compare-row.header{background:var(--bg-alt);font-family:var(--font-ui);font-size:0.78rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.5px;padding:12px 20px}
.compare-row.best{background:#f0fdf4;border-left:4px solid var(--accent)}
.product-name{font-family:var(--font-ui);font-weight:700;font-size:0.95rem;color:var(--text)}
.product-name .pick-badge{display:inline-block;background:var(--accent);color:#fff;font-size:0.65rem;padding:2px 8px;border-radius:10px;margin-left:8px;vertical-align:middle;font-weight:700}
.product-desc{font-size:0.85rem;color:var(--text-light);line-height:1.5}
.product-rating{font-family:var(--font-ui);font-weight:700;color:var(--warn);font-size:0.95rem}
.product-cta{font-family:var(--font-ui)}
.product-cta a{display:inline-block;background:var(--brand);color:#fff;padding:8px 18px;border-radius:8px;font-size:0.82rem;font-weight:600;text-decoration:none;transition:all 0.2s;white-space:nowrap}
.product-cta a:hover{background:var(--brand-dark);transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,0.3)}

/* ── Category Quick Links ── */
.quick-cats{max-width:900px;margin:0 auto 40px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center;padding:0 20px}
.quick-cat{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:24px;font-family:var(--font-ui);font-size:0.82rem;font-weight:600;text-decoration:none;border:1px solid var(--border);color:var(--text);transition:all 0.2s;background:var(--bg)}
.quick-cat:hover{border-color:var(--brand);color:var(--brand);background:#eff6ff}

/* ── Product Detail Card ── */
.product-card{max-width:900px;margin:0 auto 24px;background:var(--bg);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.product-card-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}
.product-card-header h3{font-family:var(--font-ui);font-size:1.1rem;font-weight:700;display:flex;align-items:center;gap:10px}
.product-card-header .rank{width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:0.75rem;font-weight:800;flex-shrink:0}
.product-card-body{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:24px}
.product-card-body .pros h4,.product-card-body .cons h4{font-family:var(--font-ui);font-size:0.82rem;font-weight:700;margin-bottom:10px;text-transform:uppercase;letter-spacing:0.5px}
.product-card-body .pros h4{color:var(--accent)}
.product-card-body .cons h4{color:#ef4444}
.product-card-body ul{list-style:none;padding:0}
.product-card-body li{font-size:0.88rem;padding:4px 0;padding-left:20px;position:relative;color:var(--text-light);line-height:1.5}
.product-card-body .pros li::before{content:'+';position:absolute;left:0;color:var(--accent);font-weight:700}
.product-card-body .cons li::before{content:'-';position:absolute;left:2px;color:#ef4444;font-weight:700}
.product-card-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:var(--bg-alt)}
.product-card-footer .price{font-family:var(--font-ui);font-size:0.88rem;color:var(--text-light)}
.product-card-footer .price strong{color:var(--text);font-size:1rem}
.product-card-footer a{display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;padding:10px 24px;border-radius:8px;font-family:var(--font-ui);font-size:0.88rem;font-weight:600;text-decoration:none;transition:all 0.2s}
.product-card-footer a:hover{background:var(--brand-dark);transform:translateY(-1px)}

/* ── Section Divider ── */
.section-divider{max-width:900px;margin:48px auto 32px;padding:0 20px}
.section-divider h2{font-family:var(--font-ui);font-size:1.3rem;font-weight:800;color:var(--text);margin-bottom:6px}
.section-divider p{font-size:0.88rem;color:var(--text-light)}

/* ── Responsive ── */
@media(max-width:768px){
  .expert-inner{flex-direction:column;text-align:center}
  .expert-avatar{width:80px;height:80px}
  .compare-row{grid-template-columns:1fr;gap:8px;text-align:left}
  .compare-row.header{display:none}
  .product-card-body{grid-template-columns:1fr}
  .product-card-footer{flex-direction:column;gap:12px;align-items:stretch;text-align:center}
  .product-card-footer a{justify-content:center}
}


/* -- Product Box, Affiliate Widget (articles) ----------------------- */

/* ── Product Recommendation Box ── */
.product-box{background:var(--bg-card,#f8f9fa);border:1px solid #e2e8f0;border-radius:12px;margin:2rem 0;overflow:hidden}
.product-box-header{background:var(--brand,#0066ff);color:#fff;padding:12px 20px;font-weight:700;font-size:0.95rem;letter-spacing:0.02em}
.product-item{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e2e8f0;gap:12px}
.product-item:last-child{border-bottom:none}
.product-info{display:flex;flex-direction:column;gap:2px;flex:1}
.product-info strong{font-size:0.95rem;color:var(--text,#1a1a2e)}
.product-info span{font-size:0.82rem;color:#64748b}
.product-btn{background:var(--brand,#0066ff);color:#fff;text-decoration:none;padding:8px 18px;border-radius:6px;font-size:0.85rem;font-weight:600;white-space:nowrap;transition:opacity 0.2s}
.product-btn:hover{opacity:0.85}

/* ── Affiliate Widget (Sidebar/Sticky) ── */
.affiliate-widget{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin:1.5rem 0;overflow:hidden}
.widget-header{background:#f1f5f9;padding:10px 16px;font-weight:700;font-size:0.85rem;color:#334155;border-bottom:1px solid #e2e8f0}
.widget-product{display:block;padding:12px 16px;text-decoration:none;border-bottom:1px solid #f1f5f9;transition:background 0.2s}
.widget-product:hover{background:#f8f9fa}
.widget-product strong{display:block;font-size:0.9rem;color:var(--brand,#0066ff)}
.widget-product span{display:block;font-size:0.8rem;color:#64748b;margin-top:2px}

/* ── Affiliate Disclosure ── */
.affiliate-disclosure{font-size:0.78rem;color:#94a3b8;border-left:3px solid #e2e8f0;padding:8px 12px;margin:1rem 0 1.5rem;line-height:1.5}

/* ── Ad Slots ── */
.ad-slot{margin:1.5rem 0;text-align:center;min-height:50px}
.ad-in-article{margin:2rem -1rem;padding:0.5rem 0}
.ad-medianet{margin:1.5rem 0}

@media(max-width:768px){
  .product-item{flex-direction:column;align-items:flex-start}
  .product-btn{align-self:flex-start;margin-top:8px}
}


/* -- Progress Bar ---------------------------------------------------- */

.progress-bar {
  position: fixed; top: 0; left: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #6366f1);
  z-index: 200; transition: width 0.1s linear;
}

/* -- Affiliate Disclosure Banner ------------------------------------- */

.aff-disclosure {
  background: var(--bg-alt); text-align: center; font-family: var(--font-ui);
  font-size: 0.78rem; color: var(--text-muted); padding: 8px 16px;
  border-bottom: 1px solid var(--border); line-height: 1.5;
}
.aff-disclosure a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.aff-disclosure a:hover { color: var(--brand-dark); }

/* -- Ad Container ---------------------------------------------------- */

.ad-container { text-align: center; margin: 24px auto; max-width: 728px; min-height: 90px; }

/* -- Card Image & Body (article cards with thumbnails) --------------- */

.card-image { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 1.2rem 1.5rem 1.5rem; }

/* -- Reveal Animation ------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -- Browse Categories ----------------------------------------------- */

.browse-categories { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.browse-categories h2 { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; border: none; padding: 0; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-card { display: flex; align-items: flex-end; justify-content: center; height: 120px; border-radius: 10px; background-size: cover; background-position: center; position: relative; overflow: hidden; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }

.category-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%); border-radius: 10px; }
.category-card span { position: relative; z-index: 1; color: #fff; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700; padding: 10px 14px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }

/* -- Footer (multi-column) ------------------------------------------- */

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand h3 { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 800; color: var(--brand); margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.footer-col h4 { font-family: var(--font-ui); font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.3rem 0; }
.footer-col a { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { text-align: center; padding: 1rem 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* -- Back to Top ----------------------------------------------------- */

.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s; z-index: 90; box-shadow: 0 2px 8px rgba(37,99,235,0.3); display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }

/* -- Cookie Consent -------------------------------------------------- */

#cookie-consent button { transition: background 0.2s; }
#cookie-consent button:hover { background: var(--brand-dark) !important; }

/* -- Tables (dataframe) ---------------------------------------------- */

.dataframe { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-family: var(--font-ui); font-size: 0.92rem; }
.dataframe th { background: var(--brand); color: white; padding: 0.7em 1em; text-align: left; font-weight: 600; }
.dataframe td { padding: 0.6em 1em; border-bottom: 1px solid var(--border); }
.dataframe tr:nth-child(even) { background: var(--bg-alt); }

/* -- Additional responsive for new sections -------------------------- */

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .card-image { height: 140px; }
}

/* GSAP Animation Helpers */
.article-card, .product-card, .category-card, .compare-row, .quick-cat, 
.product-box, .affiliate-widget, .newsletter, .expert-section {
  will-change: transform, opacity;
}

/* Smooth card hover lift */
.article-card, .product-card, .category-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.article-card:hover, .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Button pulse on hover */
.product-cta a:hover, .product-btn:hover {
  animation: pulse 0.6s ease;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Progress bar styling */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
}

/* Parallax image container */
.card-image {
  overflow: hidden;
}
.card-image img {
  transition: transform 0.4s ease;
}
.article-card:hover .card-image img {
  transform: scale(1.08);
}

/* Cookie consent slide-up */
#cookie-consent {
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
