/*
Theme Name: DollarMiner Insights
Author: DollarMiner
Version: 1.0
Text Domain: dollarminer-insights
*/

:root {
            --bg: #0f172a;
            --card: rgba(30, 41, 59, 0.95);
            --accent: #10b981;
            --accent-dark: #059669;
            --accent-light: #34d399;
            --success: #10b981;
            --warning: #d97706;
            --danger: #dc2626;
            --muted: #94a3b8;
            --text: #f1f5f9;
            --border: rgba(255, 255, 255, 0.1);
            --radius: 12px;
            --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            --gradient: linear-gradient(135deg, #10b981, #059669, #047857);
            --navbar-height: 70px;
            --dm-adminbar: 0px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            max-width: 100%;
        }

        html {
            scroll-behavior: smooth;
            width: 100%;
            overflow-x: hidden;
        }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            width: 100%;
            overflow-x: hidden;
        }

        /* WordPress admin bar offset (prevents fixed header overlaps when logged in) */
        body { --dm-adminbar: 0px; }
        body.admin-bar { --dm-adminbar: 0px; }
        @media (max-width: 782px){ body.admin-bar { --dm-adminbar: 0px; } }

        body.nav-open {
            overflow: hidden;
        }

        /* Global container system */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        @media (min-width: 1200px) {
            .container {
                padding: 0 5%;
            }
        }

        /* Navigation Bar */
        .navbar {
            position: fixed !important;
            top: 0 !important;
            left: 0;
            right: 0;
            width: 100%;
            height: var(--navbar-height);
            background: rgba(15, 23, 42, 0.98);
            backdrop-filter: blur(40px);
            border-bottom: 1px solid var(--border);
            z-index: 5000;
            display: flex;
            align-items: center;
        }

        .nav-container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: 800;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: var(--gradient);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .nav-links {
            display: flex;
            gap: 24px;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: var(--text);
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            padding: 10px 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

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

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

        .nav-indicator {
            position: absolute;
            bottom: -20px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .nav-item.active .nav-indicator {
            transform: scaleX(1);
        }

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

        .user-profile {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            cursor: pointer;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--gradient);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            box-shadow: none;
        }

        .btn-outline:hover {
            background: rgba(16, 185, 129, 0.1);
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
        }

        .mobile-menu-btn span {
            width: 24px;
            height: 2px;
            background: var(--text);
            transition: 0.3s;
        }

        .mobile-menu-btn.active span:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
        }

        .mobile-menu-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-btn.active span:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
        }

        /* Hero Section – H2 hero (Option A spacing) */
        .hero {
            padding: calc(var(--navbar-height) + 40px) 0 40px;
        }

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

        @media (max-width: 1100px) {
            .hero-inner {
                grid-template-columns: 1fr;
            }
        }

        .hero-content {
            text-align: left;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 20px;
            color: var(--accent);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 18px;
        }

        .hero h1 {
            font-size: clamp(2.1rem, 4vw, 3rem);
            font-weight: 800;
            margin-bottom: 18px;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.15;
        }

        .hero p {
            font-size: clamp(1rem, 1.2vw, 1.15rem);
            color: var(--muted);
            margin-bottom: 26px;
            line-height: 1.7;
            max-width: 520px;
        }

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

        .hero-visual {
            background: radial-gradient(circle at top left, rgba(16,185,129,0.25), transparent 55%),
                        radial-gradient(circle at bottom right, rgba(56,189,248,0.25), transparent 55%),
                        rgba(15,23,42,0.95);
            border-radius: 20px;
            padding: 20px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
        }

        .hero-visual-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .hero-visual-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--muted);
        }

        .hero-visual-pill {
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(15,23,42,0.9);
            border: 1px solid rgba(148,163,184,0.4);
            font-size: 0.7rem;
            color: var(--muted);
        }

        .hero-visual-metrics {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .hero-metric {
            padding: 10px;
            border-radius: 12px;
            background: rgba(15,23,42,0.9);
            border: 1px solid rgba(148,163,184,0.3);
        }

        .hero-metric-label {
            font-size: 0.7rem;
            color: var(--muted);
            margin-bottom: 4px;
        }

        .hero-metric-value {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .hero-metric-value.green {
            color: var(--accent-light);
        }

        .hero-metric-value.blue {
            color: #38bdf8;
        }

        .hero-visual-footnote {
            font-size: 0.75rem;
            color: var(--muted);
        }

        /* Sections */
        .section {
            padding: 30px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .section-label {
            display: inline-block;
            padding: 6px 16px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 20px;
            color: var(--accent);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .section-title {
            font-size: clamp(1.9rem, 3vw, 2.4rem);
            font-weight: 700;
            margin-bottom: 10px;
        }

        .section-subtitle {
            font-size: 1.02rem;
            color: var(--muted);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .feature-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 16px;
        }

        .feature-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .feature-desc {
            color: var(--muted);
            line-height: 1.5;
            margin-bottom: 16px;
            font-size: 0.9rem;
        }

        .feature-card .btn {
            margin-top: auto;
        }

        /* Insights Grid */
        .insights-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .insight-card {
            background: var(--card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .insight-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        .insight-image {
            height: 120px;
            background: linear-gradient(135deg, #10b981, #059669);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .insight-content {
            padding: 16px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .insight-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .insight-category {
            background: rgba(16, 185, 129, 0.2);
            color: var(--accent);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .insight-date {
            color: var(--muted);
            font-size: 0.75rem;
        }

        .insight-title {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .insight-excerpt {
            color: var(--muted);
            line-height: 1.5;
            margin-bottom: 12px;
            font-size: 0.8rem;
        }

        .insight-card .btn {
            margin-top: auto;
        }

        /* Footer */
        footer {
            background: rgba(15, 23, 42, 0.98);
            border-top: 1px solid var(--border);
            padding: 40px 0 30px;
            margin-top: 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 40px;
        }

        .footer-brand .logo {
            margin-bottom: 16px;
        }

        .footer-desc {
            color: var(--muted);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .footer-column h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-link {
            color: var(--muted);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.9rem;
        }

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

        .footer-bottom {
            padding-top: 30px;
            border-top: 1px solid var(--border);
            text-align: center;
            color: var(--muted);
            font-size: 0.9rem;
        }

        /* Scroll to Top */
        .scroll-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
            z-index: 999;
            border: none;
            color: white;
            font-size: 1.2rem;
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
        }

        /* Responsive tweaks */
        @media (max-width: 1280px) {
            .hero {
                padding: calc(var(--navbar-height) + 30px) 0 30px;
            }
            .section {
                padding: 24px 0;
            }
            .feature-card,
            .insight-card {
                padding: 18px;
            }
        }

        @media (max-width: 1024px) {
            .hero-inner {
                grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
                gap: 28px;
            }
            .features-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .insights-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .container {
                padding: 0 16px;
            }
        }

        @media (max-width: 768px) {
            .nav-container {
                padding: 0 20px;
            }

            .nav-links {
                position: fixed;
                top: calc(var(--navbar-height) + var(--dm-adminbar));
                left: 0;
                width: 100%;
                flex-direction: column;
                background: rgba(15, 23, 42, 0.98);
                padding: 0 20px;
                gap: 16px;
                border-bottom: 1px solid var(--border);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease, padding 0.3s ease;
            }

            .navbar.mobile-open .nav-links {
                max-height: 400px;
                padding: 16px 20px 20px;
            }

            /* Mobile header: keep it clean.
               Socials live inside the hamburger dropdown (mobile-social-icons). */
            .nav-actions {
                display: none !important;
            }

            .mobile-menu-btn {
                display: flex;
                margin-left: auto;
            }

            .hero {
                padding: calc(var(--navbar-height) + 20px) 0 30px;
            }

            .hero-inner {
                grid-template-columns: 1fr;
            }

            .hero-content {
                text-align: center;
            }

            .hero p {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-actions {
                justify-content: center;
            }

            .hero-visual {
                margin-top: 8px;
            }

            .section-title {
                font-size: 2rem;
            }

            .scroll-top {
                right: 16px;
                bottom: 16px;
            }
        }

        @media (max-width: 640px) {
            .features-grid {
                grid-template-columns: 1fr;
            }
            .insights-grid {
                grid-template-columns: 1fr;
                max-width: 100%;
            }
            .footer-content {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 24px;
            }
            .footer-brand {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2.2rem;
            }

            .btn {
                padding: 10px 20px;
                font-size: 0.9rem;
                width: 100%;
                max-width: 280px;
            }

            .hero-actions {
                gap: 10px;
                flex-direction: column;
            }

            .section-title {
                font-size: 1.8rem;
            }
        }

/* Social icons (replaces profile button) */
.nav-actions .social-icons{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav-actions .social-icon{
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.04);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.nav-actions .social-icon:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.22);
}
.nav-actions .social-icon svg{
  width:18px;
  height:18px;
  fill:var(--text);
  opacity:.9;
}
@media (max-width: 640px){
  .nav-actions .social-icons{ gap:8px; }
  .nav-actions .social-icon{ width:34px; height:34px; }
  .nav-actions .social-icon svg{ width:16px; height:16px; }
}

/* Very tight screens: keep the header clean by showing 2 socials in the header;
   the full set is always available inside the mobile menu dropdown. */
@media (max-width: 420px){
  .nav-actions .social-icon:nth-child(n+3){ display:none; }
}

/* Mobile dropdown socials */
.mobile-social-icons{
  display:none;
  align-items:center;
  gap:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
@media (max-width: 768px){
  .navbar.mobile-open .mobile-social-icons{ display:flex; }
  .mobile-social-icons .social-icon{ width:34px; height:34px; }
  .mobile-social-icons .social-icon svg{ width:16px; height:16px; }
}

/* ===== WordPress content styling (minimal, matches DollarMiner theme) ===== */
/* Ensure navbar is always flush to the very top.
   When logged in, WP's admin bar can introduce offsets/margins; we neutralize those on the front-end. */
body.admin-bar .navbar { top: 0 !important; }
@media (max-width: 782px){
  html{ margin-top: 0 !important; }
  body.admin-bar .navbar { top: 0 !important; }
}

.dm-wp-wrap{
  padding: calc(var(--navbar-height) + 28px) 0 50px;
}

.dm-article{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

@media (max-width: 640px){
  .dm-article{ padding: 18px; }
}

.dm-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dm-pill{
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.dm-content :where(h1,h2,h3){
  margin: 18px 0 10px;
  line-height: 1.25;
}

.dm-content h1{ font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 0; }
.dm-content h2{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.dm-content h3{ font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

.dm-content p, .dm-content ul, .dm-content ol{
  margin: 12px 0;
  color: var(--text);
}

.dm-content a{
  color: var(--accent-light);
  text-decoration: none;
}
.dm-content a:hover{ text-decoration: underline; }

.dm-content img{
  border-radius: 12px;
  border: 1px solid var(--border);
}

.dm-content figure{ margin: 16px 0; }
.dm-content figcaption{
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.dm-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.dm-content th, .dm-content td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.dm-content th{
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-weight: 700;
}
.dm-content td{
  color: var(--text);
}
/* WP template helpers */
.dm-section-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin: 6px 0 10px;
}
@media (max-width: 640px){
  .dm-section-row{
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Single post: sticky TOC on desktop */
.dm-post-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: start;
}
.dm-toc{
  display: block;
}
.dm-toc-inner{
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  max-height: calc(100vh - var(--navbar-height) - 32px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}
.dm-toc-title{
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.dm-toc-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dm-toc-link{
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.25;
}
.dm-toc-link:hover{
  color: var(--accent);
}
.dm-toc-h3{
  padding-left: 14px;
  font-size: 0.9rem;
}
.dm-content h2, .dm-content h3{
  scroll-margin-top: calc(var(--navbar-height) + 16px);
}

@media (max-width: 1024px){
  .dm-post-layout{
    grid-template-columns: 1fr;
  }
  .dm-toc{
    display:none;
  }
}


/* =========================
   Insights Landing (WP)
   ========================= */

.insights-hero{
  padding: 30px 0 40px;
}
.insights-hero-inner{
  /* Reference flow: title/subtitle, then full-width search, then category pills */
  display:block;
}
.insights-hero-copy{
  max-width:980px;
}
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  font-size:.9rem;
  color:var(--muted);
}
.breadcrumb a{
  color:var(--muted);
  text-decoration:none;
  transition:color .3s ease;
}
.breadcrumb a:hover{ color:var(--accent); }
.breadcrumb .separator{ opacity:.5; }

.insights-hero h1{
  font-size:clamp(2.2rem,4vw,3.2rem);
  font-weight:800;
  margin-bottom:12px;
  background:var(--gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  line-height:1.15;
}
.insights-hero p{
  font-size:clamp(1rem,1.2vw,1.15rem);
  color:var(--muted);
  margin-bottom:16px;
  line-height:1.7;
  max-width:520px;
}

/* Ensure insights search is full-width and sits tight above pills */
.insights-search{ margin:0; }
.insights-search .search-input{ width:100%; }
.search-container{ position:relative; }
.search-input{
  width:100%;
  padding:14px 20px 14px 48px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  color:var(--text);
  font-size:.95rem;
  transition:all .3s ease;
}
.search-input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(16,185,129,.1);
}
.search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none;
}

/* Category Pills */
.category-pills{
  padding:12px 0 40px;
  border-bottom:1px solid var(--border);
}

/* When pills are rendered inside the hero (reference layout): tighter spacing */
.category-pills--hero{
  padding:12px 0 18px;
  margin-top:10px;
}
.pills-scroll-container{ position:relative; }
.pills-wrapper{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 2px 20px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.category-pills--hero .pills-wrapper{ padding-bottom: 0; }
.pills-wrapper::-webkit-scrollbar{ display:none; }
.pill-btn{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  padding:10px 20px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  transition:all .3s ease;
  text-decoration:none;
}
.pill-btn:hover{
  background:rgba(16,185,129,.1);
  border-color:var(--accent);
}
.pill-btn.active{
  background:var(--gradient);
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 20px rgba(16,185,129,.3);
}


/* Insights top UI hardening (prevents browser-default blue links / default inputs) */
.insights-hero .breadcrumb a{
  color:var(--muted);
  text-decoration:none;
  font-weight:500;
}
.insights-hero .breadcrumb a:hover{ color:var(--text); text-decoration:underline; }
.insights-hero .breadcrumb a:visited{ color:var(--muted); }

.insights-hero .search-container form{ width:100%; }
.insights-hero .search-container input[type="search"]{
  width:100%;
  padding:14px 20px 14px 48px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  color:var(--text);
  font-size:.95rem;
  transition:all .3s ease;
}
.insights-hero .search-container input[type="search"]:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(16,185,129,.1);
}
.insights-hero .search-container input[type="search"]::placeholder{ color:var(--muted); }

/* Make category pills look correct even if other styles override link defaults */
.category-pills a{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  padding:10px 20px;
  background:transparent;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  transition:all .3s ease;
  text-decoration:none;
}
.category-pills a:hover{
  background:rgba(16,185,129,.1);
  border-color:var(--accent);
  text-decoration:none;
}
.category-pills a:visited{ color:var(--text); }
.category-pills a.active{
  background:var(--gradient);
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 20px rgba(16,185,129,.3);
}

/* Featured Section */
.featured-section{ padding:50px 0 60px; }
.section-header{ text-align:center; margin-bottom:40px; }
.section-label{
  display:inline-block;
  padding:6px 16px;
  background:rgba(16,185,129,.1);
  border:1px solid rgba(16,185,129,.3);
  border-radius:20px;
  color:var(--accent);
  font-size:.85rem;
  font-weight:600;
  margin-bottom:10px;
}
.section-title{
  font-size:clamp(1.9rem,3vw,2.4rem);
  font-weight:700;
  margin-bottom:10px;
}
.section-subtitle{
  font-size:1.02rem;
  color:var(--muted);
  max-width:600px;
  margin:0 auto;
  line-height:1.6;
}
.featured-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
.featured-main{
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}
.featured-main-content{
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.featured-main-image{
  height:100%;
  background: rgba(15, 23, 42, 0.35); display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  min-height:280px;
}
.featured-main-image img{
  width:100%;
  height:100%;
  max-height:100%;
  max-width:100%;
  object-position:center;
object-fit:contain;
  display:block;
}
.featured-category{
  display:inline-block;
  padding:4px 12px;
  background:rgba(16,185,129,.2);
  color:var(--accent);
  border-radius:6px;
  font-size:.75rem;
  font-weight:600;
  margin-bottom:12px;
}
.featured-main h3{
  font-size:1.5rem;
  font-weight:700;
  margin-bottom:12px;
  line-height:1.3;
}
.featured-excerpt{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:20px;
  font-size:.95rem;
}
.featured-meta{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
  font-size:.85rem;
  color:var(--muted);
  flex-wrap:wrap;
}
.featured-secondary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.featured-card{
  background:var(--card);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  transition:all .3s ease;
  height:100%;
  display:flex;
  flex-direction:column;
}
.featured-card:hover{
  transform:translateY(-5px);
  box-shadow:0 25px 50px rgba(0,0,0,.5);
}
.featured-card .featured-category{ margin-bottom:10px; }
.featured-card h4{
  font-size:1.05rem;
  font-weight:700;
  margin-bottom:10px;
  line-height:1.4;
}
.featured-card .featured-excerpt{
  font-size:.85rem;
  margin-bottom:16px;
  flex-grow:1;
}
.featured-card .featured-meta{
  margin-bottom:0;
  font-size:.8rem;
}
.featured-card .btn{
  margin-top:14px;
}

/* Latest Section wrapper */
.latest-section{
  padding:60px 0 70px;
  border-top:1px solid var(--border);
}

/* Explore by Category */
.categories-section{
  padding:60px 0 70px;
  border-top:1px solid var(--border);
}
.categories-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.category-block{
  background:var(--card);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  transition:all .3s ease;
  height:100%;
}
.category-block:hover{
  transform:translateY(-5px);
  box-shadow:0 25px 50px rgba(0,0,0,.5);
}
.category-block h3{
  font-size:1.3rem;
  font-weight:700;
  margin-bottom:12px;
  color:var(--accent);
}
.category-desc{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:20px;
  font-size:.9rem;
}
.category-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:20px;
}
.category-link{
  color:var(--text);
  text-decoration:none;
  font-size:.9rem;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
  transition:color .3s ease;
}
.category-link:hover{ color:var(--accent); }
.category-link.placeholder{
  color:var(--muted);
  cursor:default;
}
.category-link.placeholder:hover{ color:var(--muted); }
.category-link:last-child{ border-bottom:none; }
.category-viewall{
  color:var(--accent);
  text-decoration:none;
  font-size:.9rem;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:gap .3s ease;
}
.category-viewall:hover{ gap:10px; }

/* Responsive for Insights sections */
@media (max-width: 1024px){
  .insights-hero-inner{ gap:30px; }
  .featured-main{ grid-template-columns:1fr; }
  .featured-main-image{ min-height:200px; }
  .featured-secondary-grid{ grid-template-columns:repeat(2,1fr); }
  .categories-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 768px){
  .insights-hero-inner{ grid-template-columns:1fr; gap:30px; }
  .insights-hero h1, .insights-hero p{ text-align:center; margin-left:auto; margin-right:auto; }
  .breadcrumb{ justify-content:center; }
  .pill-btn{ padding:8px 16px; font-size:.85rem; }
  .featured-main-content{ padding:24px; }
  .featured-main h3{ font-size:1.3rem; }
}
@media (max-width: 640px){
  .featured-secondary-grid{ grid-template-columns:1fr; }
  .categories-grid{ grid-template-columns:1fr; }
}


