/**
 * Theme Name:     GeneratePress Child
 * Author:         jungbleiben.ch
 * Template:       generatepress
 * Text Domain:    generatepress-child
 * Description:    Custom child theme for jungbleiben.ch — Longevity & Biohacking DACH
 * Version:        1.0.0
 */


/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
    /* Primary: Forest Green */
    --jb-forest: hsl(152, 45%, 22%);
    --jb-forest-light: hsl(150, 35%, 35%);
    --jb-forest-muted: hsl(150, 20%, 55%);

    /* Accent: Gold */
    --jb-gold: hsl(43, 80%, 55%);
    --jb-gold-light: hsl(43, 70%, 70%);
    --jb-gold-dark: hsl(40, 75%, 42%);

    /* Backgrounds */
    --jb-cream: hsl(40, 33%, 96%);
    --jb-cream-dark: hsl(40, 25%, 90%);
    --jb-card: hsl(40, 30%, 98%);
    --jb-muted: hsl(40, 20%, 92%);

    /* Text */
    --jb-text: hsl(150, 30%, 12%);
    --jb-text-muted: hsl(150, 10%, 45%);
    --jb-text-on-primary: hsl(40, 33%, 96%);

    /* Borders & Misc */
    --jb-border: hsl(40, 20%, 88%);
    --jb-warm-gray: hsl(30, 10%, 60%);

    /* Gradients */
    --jb-gradient-forest: linear-gradient(135deg, var(--jb-forest), var(--jb-forest-light));
    --jb-gradient-gold: linear-gradient(135deg, #935c10, var(--jb-gold-dark), var(--jb-gold));
    --jb-gradient-cream: linear-gradient(180deg, var(--jb-cream), var(--jb-cream-dark));

    /* Shadows */
    --jb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --jb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --jb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --jb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --jb-shadow-forest: 0 10px 40px -12px hsla(152, 45%, 22%, 0.2);

    /* Radius */
    --jb-radius: 0.75rem;
    --jb-radius-sm: 0.5rem;
    --jb-radius-lg: 1rem;

    /* Fonts */
    --jb-font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --jb-font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


/* ==========================================================================
   2. BASE / BODY
   ========================================================================== */

body {
    font-family: var(--jb-font-sans);
    color: var(--jb-text);
    background-color: var(--jb-cream);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jb-font-serif);
    color: var(--jb-text);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.875rem;
    }
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

strong, b {
    font-weight: 600;
}

a {
    color: var(--jb-forest);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

blockquote {
    border-left: 3px solid var(--jb-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--jb-card);
    border-radius: var(--jb-radius-sm);
    font-style: italic;
    color: var(--jb-text-muted);
}


/* ==========================================================================
   4. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
    background-color: rgba(247, 244, 239, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--jb-border);
    transition: all 0.3s ease;
}

.main-title a,
.site-header .site-title a {
    font-family: var(--jb-font-sans) !important;
    font-weight: 700 !important;
    color: var(--jb-forest) !important;
    letter-spacing: -0.02em;
}

.main-navigation a,
.main-nav a,
.menu-item a {
    font-family: var(--jb-font-sans) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--jb-text) !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--jb-radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-navigation a:hover,
.main-nav a:hover,
.menu-item a:hover {
    color: var(--jb-forest) !important;
    background-color: var(--jb-muted) !important;
}

.main-navigation .current-menu-item > a,
.main-nav .current-menu-item > a {
    color: var(--jb-forest) !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   5. BUTTONS & CTA
   ========================================================================== */

button,
.button,
.wp-block-button__link,
input[type="submit"],
a.button {
    font-family: var(--jb-font-sans) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    background: var(--jb-gradient-forest) !important;
    color: var(--jb-text-on-primary) !important;
    border: none !important;
    border-radius: var(--jb-radius) !important;
    padding: 0.75rem 1.75rem !important;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: var(--jb-shadow-sm);
    letter-spacing: 0.01em;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
a.button:hover {
    opacity: 0.9;
    box-shadow: var(--jb-shadow-forest);
    transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link,
a.button.is-style-outline {
    background: transparent !important;
    color: var(--jb-forest) !important;
    border: 2px solid var(--jb-forest) !important;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
a.button.is-style-outline:hover {
    background: var(--jb-forest) !important;
    color: var(--jb-text-on-primary) !important;
}


/* ==========================================================================
   6. CARDS & POST GRID
   ========================================================================== */

.inside-article {
    background-color: var(--jb-card);
    border: 1px solid var(--jb-border);
    border-radius: var(--jb-radius-lg);
    box-shadow: var(--jb-shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
}

.inside-article:hover {
    box-shadow: var(--jb-shadow-forest);
    transform: translateY(-2px);
}

article .entry-header .entry-title a {
    font-family: var(--jb-font-serif);
    color: var(--jb-text);
    font-weight: 400;
    transition: color 0.2s ease;
}

article .entry-header .entry-title a:hover {
    color: var(--jb-forest);
}

.entry-meta,
.entry-meta a {
    color: var(--jb-text-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cat-links a,
.entry-meta .cat-links a {
    color: var(--jb-forest) !important;
    font-weight: 600;
}

.post-image img,
.entry-image img {
    border-radius: var(--jb-radius-lg) var(--jb-radius-lg) 0 0;
}


/* ==========================================================================
   7. SINGLE ARTICLE
   ========================================================================== */

.single .inside-article {
    border: none;
    box-shadow: none;
    background-color: transparent;
    max-width: 750px;
    margin: 0 auto;
}

.single .entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.single .entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--jb-border);
}

.single .entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.single .entry-content ul,
.single .entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.single .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single .entry-content img {
    border-radius: var(--jb-radius);
    box-shadow: var(--jb-shadow);
    margin: 1.5rem 0;
}

.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    border-radius: var(--jb-radius);
    overflow: hidden;
    border: 1px solid var(--jb-border);
}

.single .entry-content table th {
    background: var(--jb-forest);
    color: var(--jb-text-on-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--jb-font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single .entry-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--jb-border);
}

.single .entry-content table tr:nth-child(even) {
    background: var(--jb-muted);
}

.single .entry-content table tr:hover {
    background: var(--jb-cream-dark);
}


/* ==========================================================================
   8. SIDEBAR
   ========================================================================== */

.widget {
    background: var(--jb-card);
    border: 1px solid var(--jb-border);
    border-radius: var(--jb-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--jb-shadow-sm);
}

.widget-title {
    font-family: var(--jb-font-sans) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jb-text-muted) !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--jb-gold);
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--jb-text) !important;
    color: var(--jb-cream) !important;
}

.site-footer a {
    color: var(--jb-cream-dark) !important;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--jb-gold) !important;
}

.site-footer .widget-title {
    color: var(--jb-cream) !important;
    border-bottom-color: var(--jb-forest-light) !important;
}

.site-info {
    background-color: hsla(150, 30%, 8%, 1) !important;
    color: var(--jb-text-muted) !important;
    font-size: 0.8rem;
}


/* ==========================================================================
   10. FORMS & INPUTS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
    font-family: var(--jb-font-sans);
    background: var(--jb-card);
    border: 1px solid var(--jb-border);
    border-radius: var(--jb-radius-sm);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--jb-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--jb-forest);
    box-shadow: 0 0 0 3px hsla(152, 45%, 22%, 0.15);
}


/* ==========================================================================
   11. TABLE OF CONTENTS (ETOC Plugin)
   ========================================================================== */

#ez-toc-container {
    background: var(--jb-card) !important;
    border: 1px solid var(--jb-border) !important;
    border-radius: var(--jb-radius) !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: var(--jb-shadow-sm);
}

#ez-toc-container .ez-toc-title {
    font-family: var(--jb-font-sans) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jb-text-muted) !important;
}

#ez-toc-container a {
    color: var(--jb-text) !important;
    font-size: 0.9rem;
}

#ez-toc-container a:hover {
    color: var(--jb-forest) !important;
}


/* ==========================================================================
   12. MEDICAL DISCLAIMER
   ========================================================================== */

.jb-medical-disclaimer {
    background: var(--jb-muted);
    border-left: 3px solid var(--jb-gold);
    border-radius: var(--jb-radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--jb-text-muted);
    line-height: 1.6;
}

.jb-medical-disclaimer p {
    margin-bottom: 0;
}


/* ==========================================================================
   13. EVIDENCE BADGES
   ========================================================================== */

.jb-evidence-strong,
.jb-evidence-moderate,
.jb-evidence-preliminary {
    display: inline-block;
    font-family: var(--jb-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.jb-evidence-strong {
    background: hsla(152, 45%, 22%, 0.12);
    color: var(--jb-forest);
}

.jb-evidence-moderate {
    background: hsla(43, 80%, 55%, 0.15);
    color: var(--jb-gold-dark);
}

.jb-evidence-preliminary {
    background: hsla(0, 72%, 51%, 0.1);
    color: hsl(0, 72%, 45%);
}


/* ==========================================================================
   14. UTILITY CLASSES
   ========================================================================== */

.jb-tag {
    display: inline-block;
    font-family: var(--jb-font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--jb-muted);
    color: var(--jb-text-muted);
}

.jb-tag-forest {
    background: hsla(152, 45%, 22%, 0.1);
    color: var(--jb-forest);
}

.jb-tag-gold {
    background: hsla(43, 80%, 55%, 0.12);
    color: var(--jb-gold-dark);
}

.jb-text-gold-gradient {
    background: var(--jb-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jb-section-cream {
    background: var(--jb-gradient-cream);
    padding: 4rem 0;
}

.jb-section-label {
    font-family: var(--jb-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--jb-forest);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.jb-card {
    background: var(--jb-card);
    border: 1px solid var(--jb-border);
    border-radius: var(--jb-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--jb-shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.jb-card:hover {
    box-shadow: var(--jb-shadow-forest);
    transform: translateY(-2px);
}

.jb-stat-number {
    font-family: var(--jb-font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--jb-forest);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.jb-stat-label {
    font-family: var(--jb-font-sans);
    font-size: 0.8rem;
    color: var(--jb-text-muted);
    font-weight: 500;
}


/* ==========================================================================
   15. SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--jb-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--jb-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jb-warm-gray);
}


/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .inside-article {
        border-radius: var(--jb-radius);
    }

    .widget {
        border-radius: var(--jb-radius-sm);
    }

    .single .entry-content {
        font-size: 1rem;
    }

    button,
    .button,
    .wp-block-button__link,
    input[type="submit"] {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.85rem !important;
    }
}


/* ==========================================================================
   17. PRINT
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .site-header,
    .site-footer,
    .widget,
    #ez-toc-container,
    .jb-medical-disclaimer {
        display: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .single .inside-article {
        max-width: 100%;
    }
}


/* ==========================================================================
   18. HOMEPAGE — HERO SECTION
   ========================================================================== */

.page-id-37 .entry-header {
    display: none !important;
}

.page-id-37 .inside-article {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.page-id-37 .inside-article:hover {
    transform: none;
    box-shadow: none;
}

.page-id-37 .site-content {
    padding-top: 0 !important;
}

.page-id-37 #primary {
    max-width: 100%;
    padding: 0;
}

.page-id-37 .content-area,
.page-id-37 .site-main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.page-id-37 .site.grid-container.container {
    max-width: 100%;
    padding: 0;
}

.jb-homepage-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -1px;
}

.jb-hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.jb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        hsla(152, 45%, 12%, 0.85) 0%,
        hsla(152, 40%, 18%, 0.75) 40%,
        hsla(150, 35%, 25%, 0.65) 100%
    );
    z-index: 1;
}

.jb-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.jb-hero-badge {
    display: inline-block;
    font-family: var(--jb-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--jb-gold-light);
    border: 1px solid hsla(43, 70%, 70%, 0.3);
    padding: 0.4rem 1.25rem;
    border-radius: 9999px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(4px);
}

.jb-hero-title {
    font-family: var(--jb-font-serif) !important;
    font-size: 3rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    line-height: 1.15 !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .jb-hero-title {
        font-size: 4rem !important;
    }
}

@media (min-width: 1024px) {
    .jb-hero-title {
        font-size: 4.5rem !important;
    }
}

.jb-hero-subtitle {
    font-family: var(--jb-font-sans);
    font-size: 1.1rem;
    color: hsla(40, 33%, 96%, 0.85);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 400;
}

.jb-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.jb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--jb-font-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 0.85rem 2rem !important;
    border-radius: var(--jb-radius) !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.jb-btn-primary {
    background: var(--jb-gradient-forest) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 20px -4px hsla(152, 45%, 22%, 0.4);
}

.jb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -4px hsla(152, 45%, 22%, 0.5);
    color: #fff !important;
    opacity: 0.95;
}

.jb-btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid hsla(0, 0%, 100%, 0.35) !important;
    backdrop-filter: blur(4px);
}

.jb-btn-outline:hover {
    background: hsla(0, 0%, 100%, 0.1) !important;
    border-color: hsla(0, 0%, 100%, 0.6) !important;
    color: #fff !important;
    transform: translateY(-2px);
}


/* ==========================================================================
   19. HOMEPAGE — SECTIONS SHARED
   ========================================================================== */

.jb-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.jb-section-eyebrow {
    display: block;
    font-family: var(--jb-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--jb-forest);
    margin-bottom: 0.5rem;
    text-align: center;
}

.jb-section-title {
    text-align: center;
    font-family: var(--jb-font-serif) !important;
    font-size: 2.25rem !important;
    margin-bottom: 0.75rem !important;
    color: var(--jb-text) !important;
}

@media (min-width: 768px) {
    .jb-section-title {
        font-size: 2.75rem !important;
    }
}

.jb-section-subtitle {
    text-align: center;
    font-family: var(--jb-font-sans);
    font-size: 1.05rem;
    color: var(--jb-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}


/* ==========================================================================
   20. HOMEPAGE — PILLAR CARDS
   ========================================================================== */

.jb-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .jb-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jb-pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.jb-pillar-card {
    display: flex;
    flex-direction: column;
    background: var(--jb-card);
    border: 1px solid var(--jb-border);
    border-radius: var(--jb-radius-lg);
    padding: 2rem 1.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.jb-pillar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--jb-gradient-forest);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jb-pillar-card:hover {
    box-shadow: var(--jb-shadow-forest);
    transform: translateY(-4px);
    border-color: var(--jb-forest-muted);
}

.jb-pillar-card:hover::before {
    opacity: 1;
}

.jb-pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.jb-pillar-label {
    font-family: var(--jb-font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--jb-forest);
    margin-bottom: 0.35rem;
    display: block;
}

.jb-pillar-card h3 {
    font-family: var(--jb-font-serif) !important;
    font-size: 1.35rem !important;
    color: var(--jb-text) !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    line-height: 1.3;
}

.jb-pillar-card p {
    font-family: var(--jb-font-sans);
    font-size: 0.88rem;
    color: var(--jb-text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.jb-pillar-link {
    font-family: var(--jb-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--jb-forest);
    transition: color 0.2s ease;
}

.jb-pillar-card:hover .jb-pillar-link {
    color: var(--jb-forest-light);
}


/* ==========================================================================
   21. HOMEPAGE — STATS BAR
   ========================================================================== */

.jb-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: var(--jb-gradient-forest);
    border-radius: var(--jb-radius-lg);
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

@media (min-width: 768px) {
    .jb-stats-bar {
        grid-template-columns: repeat(4, 1fr);
        margin-left: auto;
        margin-right: auto;
    }
}

.jb-stats-bar .jb-stat {
    text-align: center;
}

.jb-stats-bar .jb-stat-number {
    font-family: var(--jb-font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    display: block;
    margin-bottom: 0.35rem;
}

.jb-stats-bar .jb-stat-label {
    font-family: var(--jb-font-sans);
    font-size: 0.78rem;
    color: hsla(40, 33%, 96%, 0.7);
    font-weight: 500;
    display: block;
}


/* ==========================================================================
   22. HOMEPAGE — ARTICLE CARDS
   ========================================================================== */

.jb-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .jb-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.jb-article-card {
    display: flex;
    flex-direction: column;
    background: var(--jb-card);
    border: 1px solid var(--jb-border);
    border-radius: var(--jb-radius-lg);
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.jb-article-card:hover {
    box-shadow: var(--jb-shadow-forest);
    transform: translateY(-4px);
}

.jb-article-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

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

.jb-article-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jb-article-body .jb-tag {
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

.jb-article-body h3 {
    font-family: var(--jb-font-serif) !important;
    font-size: 1.15rem !important;
    color: var(--jb-text) !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    line-height: 1.35;
}

.jb-article-body p {
    font-family: var(--jb-font-sans);
    font-size: 0.88rem;
    color: var(--jb-text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.jb-article-meta {
    font-family: var(--jb-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--jb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ==========================================================================
   23. HOMEPAGE — NEWSLETTER SECTION
   ========================================================================== */

.jb-section-newsletter {
    padding: 0 1.5rem 5rem 1.5rem;
}

.jb-newsletter-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--jb-gradient-forest);
    border-radius: var(--jb-radius-lg);
    padding: 3.5rem 2.5rem;
}

.jb-newsletter-box h2 {
    font-family: var(--jb-font-serif) !important;
    font-size: 2rem !important;
    color: #fff !important;
    margin-bottom: 0.75rem !important;
}

.jb-newsletter-box p {
    font-family: var(--jb-font-sans);
    font-size: 1rem;
    color: hsla(40, 33%, 96%, 0.8);
    line-height: 1.65;
    max-width: 500px;
    margin: 0 auto 1.75rem auto;
}

.jb-newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto 1rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.jb-newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 0.8rem 1.25rem !important;
    border: 1.5px solid hsla(0, 0%, 100%, 0.2) !important;
    border-radius: var(--jb-radius) !important;
    background: hsla(0, 0%, 100%, 0.1) !important;
    color: #fff !important;
    font-family: var(--jb-font-sans) !important;
    font-size: 0.95rem !important;
    backdrop-filter: blur(4px);
}

.jb-newsletter-input::placeholder {
    color: hsla(40, 33%, 96%, 0.5);
}

.jb-newsletter-input:focus {
    border-color: var(--jb-gold) !important;
    outline: none;
    box-shadow: 0 0 0 3px hsla(43, 80%, 55%, 0.2) !important;
}

.jb-newsletter-btn {
    white-space: nowrap;
    background: #fff !important;
    color: var(--jb-forest) !important;
    box-shadow: none !important;
}

.jb-newsletter-btn:hover {
    background: var(--jb-cream) !important;
    color: var(--jb-forest) !important;
    transform: translateY(-1px);
}

.jb-newsletter-note {
    display: block;
    font-family: var(--jb-font-sans);
    font-size: 0.75rem;
    color: hsla(40, 33%, 96%, 0.5);
    margin-top: 0.5rem;
}

/* ========================================
   FOOTER WIDGETS
   ======================================== */
.footer-widgets {
    background: var(--jb-forest);
    color: var(--jb-cream);
    padding: 3rem 0 2rem;
}

.footer-widgets .inside-footer-widgets {
    max-width: var(--jb-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-widgets .footer-widget-1,
.footer-widgets .footer-widget-2,
.footer-widgets .footer-widget-3 {
    padding: 0 1.5rem;
}

.footer-widgets h3,
.footer-widgets .widget-title {
    font-family: var(--jb-font-serif);
    font-size: 1.1rem;
    color: var(--jb-sage);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-widgets p,
.footer-widgets li {
    font-family: var(--jb-font-sans);
    font-size: 0.9rem;
    color: hsla(40, 33%, 96%, 0.8);
    line-height: 1.7;
}

.footer-widgets a {
    color: hsla(40, 33%, 96%, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widgets a:hover {
    color: var(--jb-sage);
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets li {
    padding: 0.3rem 0;
    border-bottom: 1px solid hsla(40, 33%, 96%, 0.08);
}

.footer-widgets li:last-child {
    border-bottom: none;
}

/* Footer Bar (Copyright) */
.site-footer .footer-bar {
    background: hsl(155, 45%, 12%);
    color: hsla(40, 33%, 96%, 0.5);
    font-size: 0.8rem;
    font-family: var(--jb-font-sans);
    padding: 1rem 0;
    text-align: center;
}

.site-footer .footer-bar a {
    color: hsla(40, 33%, 96%, 0.6);
}

.site-footer .footer-bar a:hover {
    color: var(--jb-sage);
}

/* Back to Top */
.generate-back-to-top {
    background: var(--jb-forest) !important;
    color: var(--jb-cream) !important;
    border-radius: var(--jb-radius);
    width: 44px;
    height: 44px;
}
