/*
Theme Name: Smart Pets Learning
Theme URI: https://smartpetslearning.com
Author: Smart Pets Learning
Author URI: https://smartpetslearning.com
Description: A modern, SEO-optimized, AdSense-ready WordPress blog theme for pet training tips and care guides. Features a 3D-feel design with smooth animations, mobile-first layout, and high-RPM ad placements.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart-pets-learning
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, one-column, two-columns, right-sidebar
*/

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════ */
:root {
    --spl-green:       #6EDC8A;
    --spl-green-dark:  #218c3c;
    --spl-green-deep:  #185e29;
    --spl-orange:      #FF9B50;
    --spl-pink:        #FF6B9D;
    --spl-yellow:      #FFD060;
    --spl-purple:      #A78BFA;
    --spl-blue:        #38BDF8;

    --text-dark:       #0A1C0F;
    --text-muted:      rgba(10,28,15,0.55);
    --text-faint:      rgba(10,28,15,0.38);

    --bg-body:         #F8FFFB;
    --bg-card:         #ffffff;
    --bg-section-alt:  rgba(110,220,138,0.04);

    --border-card:     rgba(0,0,0,0.07);
    --border-nav:      rgba(110,220,138,0.12);

    --nav-bg-scroll:   rgba(255,255,255,0.88);
    --nav-height:      68px;

    --radius-card:     22px;
    --radius-large:    32px;
    --radius-pill:     999px;

    --shadow-card:     0 2px 16px rgba(0,0,0,0.06);
    --shadow-hover:    0 20px 48px rgba(0,0,0,0.12);
    --shadow-green:    0 8px 32px rgba(110,220,138,0.35);

    --font-main:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition-base: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--spl-green-dark); }

ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(33,140,60,0.35);
    border-radius: 99px;
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.screen-reader-text:focus {
    background: #fff;
    border-radius: 4px;
    clip: auto !important;
    color: var(--text-dark);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 24px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* ═══════════════════════════════════════════════════════════
   SKIP LINK
═══════════════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--spl-green-dark);
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus { left: 0; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT WRAPPERS
═══════════════════════════════════════════════════════════ */
.site-wrapper { min-height: 100vh; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

/* Content + Sidebar layout */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr 340px;
        gap: 60px;
        padding: 60px 0;
    }
}

/* Hard-contain sidebar — no children can overflow its column */
#secondary.sidebar {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

/* Kill any rogue WP block widget output outside our sidebar container.
   These appear when WP auto-populates sidebar-1 from a previous theme. */
body:not(.widgets-page) .wp-block-widget-area,
body:not(.widgets-page) [data-widget-id],
.section-articles > .widget,
.section-articles > .wp-block,
.content-sidebar-wrap > .widget_archive,
.content-sidebar-wrap > .widget_categories,
.content-sidebar-wrap > .widget_search,
.content-sidebar-wrap > .widget_recent_entries,
.content-sidebar-wrap > .widget_recent_comments {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1); }
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(110,220,138,0.3); }
    50%       { box-shadow: 0 0 40px rgba(110,220,138,0.6); }
}

.animate-fade-up   { animation: fadeSlideUp 0.75s cubic-bezier(0.16,1,0.3,1) both; }
.animate-fade-in   { animation: fadeIn 0.6s ease both; }
.animate-delay-1   { animation-delay: 0.1s; }
.animate-delay-2   { animation-delay: 0.2s; }
.animate-delay-3   { animation-delay: 0.35s; }
.animate-delay-4   { animation-delay: 0.5s; }
.animate-delay-5   { animation-delay: 0.65s; }

/* Scroll reveal — JS adds .is-visible */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: var(--transition-slow);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════════════════════ */

/* Admin bar offset — WP adds 32px/46px bar for logged-in users */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
/* Categories bar also needs to clear header + admin bar */
.admin-bar .categories-bar { top: calc(var(--nav-height) + 32px); }
@media screen and (max-width: 782px) {
    .admin-bar .categories-bar { top: calc(var(--nav-height) + 46px); }
}
/* Mobile menu top when admin bar present */
.admin-bar .mobile-menu { top: calc(var(--nav-height) + 32px); }
@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu { top: calc(var(--nav-height) + 46px); }
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-nav);
    display: flex;
    align-items: center;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
    background: var(--nav-bg-scroll);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-nav);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Nav sits in middle column, perfectly centered */
.site-header .primary-navigation {
    justify-self: center;
}

/* Actions sit in right column, flush right */
.site-header .nav-actions {
    justify-self: end;
}

/* Logo in left column */
.site-header .site-logo {
    justify-self: start;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.85; }

.site-logo__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(110,220,138,0.4);
    flex-shrink: 0;
}

.site-logo__text {
    font-weight: 800;
    font-size: 17px;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    line-height: 1;
}
.site-logo__text span { color: var(--spl-green-dark); }

/* Primary nav — hidden on mobile, always visible on desktop */
.primary-navigation {
    display: none;
    flex: 1;
    justify-content: center;
}

@media (min-width: 768px) {
    .primary-navigation {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation a {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10,28,15,0.55);
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
    color: var(--text-dark);
    background: rgba(10,28,15,0.05);
}

/* Nav menu list items — reset WP defaults */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li { list-style: none; margin: 0; padding: 0; }
.nav-menu li a {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10,28,15,0.55);
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    display: block;
    text-decoration: none;
}
.nav-menu li a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--text-dark);
    background: rgba(10,28,15,0.05);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-btn,
.nav-toggle-dark {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 18px;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}
.nav-search-btn:hover,
.nav-toggle-dark:hover {
    background: rgba(110,220,138,0.1);
    color: var(--spl-green-dark);
}

.btn-subscribe {
    display: none;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(33,140,60,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

@media (min-width: 480px) { .btn-subscribe { display: block; } }

.btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(33,140,60,0.55);
    color: #fff;
}

/* Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 99px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-nav);
    z-index: 999;
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    color: rgba(10,28,15,0.72);
    transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover {
    background: rgba(33,140,60,0.08);
    color: var(--spl-green-dark);
}

.mobile-menu .btn-subscribe {
    display: block;
    margin-top: 8px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION (BLOG HOME)
═══════════════════════════════════════════════════════════ */
.blog-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at 30% 30%, #D8FBE6 0%, #F0FFF5 55%, #FFF9F0 100%);
}

/* When admin bar is present, hero needs extra top offset */
.admin-bar .blog-hero { padding-top: 152px; }
@media screen and (max-width: 782px) {
    .admin-bar .blog-hero { padding-top: 166px; }
}

.blog-hero__glow-1,
.blog-hero__glow-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.blog-hero__glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(110,220,138,0.18) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.blog-hero__glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,155,80,0.1) 0%, transparent 70%);
    bottom: 60px; right: 0;
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    text-align: center;
    padding: 0 24px;
}

.blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(110,220,138,0.16);
    border: 1px solid rgba(33,140,60,0.38);
    border-radius: var(--radius-pill);
    padding: 6px 20px;
    margin-bottom: 28px;
}
.blog-hero__badge span {
    font-size: 12px;
    font-weight: 700;
    color: var(--spl-green-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-hero__h1 {
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -3px;
    color: #071410;
    margin-bottom: 24px;
}
.blog-hero__h1 .gradient-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--spl-green) 0%, var(--spl-green-dark) 50%, var(--spl-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero__sub {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
    color: rgba(7,20,16,0.58);
    max-width: 520px;
    margin: 0 auto 40px;
}

/* Hero search */
.hero-search {
    display: flex;
    max-width: 540px;
    margin: 0 auto 32px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.hero-search input {
    flex: 1;
    padding: 16px 24px;
    font-size: 15px;
    font-family: var(--font-main);
    border: none;
    outline: none;
    background: rgba(255,255,255,0.97);
    color: var(--text-dark);
    min-width: 0;
}
.hero-search button {
    padding: 16px 28px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.hero-search button:hover { opacity: 0.9; }

/* Trending tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}
.hero-tags__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-faint);
}
.hero-tag {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 600;
    color: rgba(10,28,15,0.65);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}
.hero-tag:hover {
    border-color: var(--spl-green-dark);
    color: var(--spl-green-dark);
}

/* Hero stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.hero-stat__num {
    font-size: 28px;
    font-weight: 900;
    color: var(--spl-green-dark);
}
.hero-stat__label {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 2px;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    animation: scrollBounce 2s infinite;
}
.scroll-cue__dot {
    width: 24px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(33,140,60,0.5);
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-cue__dot::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border-radius: 99px;
    background: var(--spl-green-dark);
    animation: dotPulse 1.8s infinite;
}

/* ═══════════════════════════════════════════════════════════
   SECTION LABELS & HEADINGS
═══════════════════════════════════════════════════════════ */
.section-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--spl-green-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-heading {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORIES BAR
═══════════════════════════════════════════════════════════ */
.categories-bar {
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: var(--bg-section-alt);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
}

.categories-bar__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}
.categories-bar__inner::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    background: rgba(0,0,0,0.05);
    color: rgba(10,28,15,0.6);
}
.cat-pill:hover,
.cat-pill.active {
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(33,140,60,0.4);
}

/* ═══════════════════════════════════════════════════════════
   POST CARDS
═══════════════════════════════════════════════════════════ */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 600px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* Featured 2-col grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 900px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }

/* Post Card */
.post-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.post-card--featured {
    border-radius: 28px;
}

/* Thumbnail */
.post-card__thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(110,220,138,0.15), rgba(110,220,138,0.05));
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb--regular { height: 160px; }
.post-card__thumb--featured { height: 200px; }

/* No image placeholder */
.post-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

/* Badge on thumb */
.post-card__badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--spl-green-dark);
}

/* Card body */
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card--featured .post-card__body { padding: 24px 28px 28px; }

.post-card__cat {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: var(--spl-green-dark);
    background: rgba(110,220,138,0.15);
    border: 1px solid rgba(110,220,138,0.35);
    text-decoration: none;
    transition: background 0.2s;
}
.post-card__cat:hover { background: rgba(110,220,138,0.28); color: var(--spl-green-dark); }

.post-card__title {
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: color 0.2s;
    text-decoration: none;
    display: block;
}
.post-card__title:hover { color: var(--spl-green-dark); }

.post-card--featured .post-card__title { font-size: clamp(17px, 2vw, 22px); }

.post-card__excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

/* Card meta */
.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.post-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.post-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(110,220,138,0.4), rgba(110,220,138,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.post-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-card__author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}
.post-card__date {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 1px;
}
.post-card__readtime {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════
   AD PLACEMENTS
═══════════════════════════════════════════════════════════ */
.ad-unit {
    background: var(--bg-section-alt);
    border: 1px dashed rgba(110,220,138,0.3);
    border-radius: var(--radius-card);
    text-align: center;
    overflow: hidden;
    position: relative;
}
.ad-unit--banner {
    min-height: 90px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-unit--rectangle {
    min-height: 280px;
    width: 100%;
}
.ad-unit--in-content {
    margin: 32px 0;
}
.ad-unit ins,
.ad-unit > div { display: block; }

/* ═══════════════════════════════════════════════════════════
   FEATURED POSTS SECTION
═══════════════════════════════════════════════════════════ */
.section-featured {
    padding: 80px 0;
}
.section-featured__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}
@media (min-width: 600px) {
    .section-featured__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--spl-green-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-base);
}
.view-all-link:hover {
    color: var(--spl-green-dark);
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE GRID SECTION
═══════════════════════════════════════════════════════════ */
.section-articles { padding: 60px 0 80px; }

.load-more-btn {
    display: block;
    margin: 48px auto 0;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--spl-green-dark);
    background: transparent;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    color: var(--spl-green-dark);
    cursor: pointer;
    transition: var(--transition-base);
    min-height: 44px;
}
.load-more-btn:hover {
    background: rgba(33,140,60,0.06);
    box-shadow: 0 8px 28px rgba(33,140,60,0.2);
}

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */
.single-post-wrap {
    padding-top: calc(var(--nav-height) + 40px);
}

/* Hero image */
.single-post__hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-large) var(--radius-large);
    background: linear-gradient(135deg, rgba(110,220,138,0.15), rgba(110,220,138,0.05));
    margin-bottom: 48px;
}
@media (min-width: 768px) { .single-post__hero { height: 520px; } }

.single-post__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.single-post__hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}

/* Post header */
.single-post__header { max-width: 820px; margin: 0 auto 40px; }

.single-post__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.single-post__cat {
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    background: rgba(110,220,138,0.15);
    color: var(--spl-green-dark);
    border: 1px solid rgba(110,220,138,0.4);
    text-decoration: none;
    transition: background 0.2s;
}
.single-post__cat:hover { background: rgba(110,220,138,0.28); color: var(--spl-green-dark); }

.single-post__title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.single-post__author-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.single-post__author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(110,220,138,0.4), rgba(110,220,138,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.single-post__author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.single-post__author-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.single-post__date        { font-size: 13px; color: var(--text-muted); }
.single-post__readtime    { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Table of contents */
.toc-box {
    background: rgba(110,220,138,0.06);
    border: 1px solid rgba(110,220,138,0.25);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 40px 0;
}
.toc-box__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-box ol { list-style: none; counter-reset: toc-counter; }
.toc-box ol li { counter-increment: toc-counter; }
.toc-box ol li::before {
    content: counter(toc-counter) ".";
    font-size: 12px;
    font-weight: 700;
    color: var(--spl-green-dark);
    margin-right: 8px;
}
.toc-box ol a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}
.toc-box ol a:hover { color: var(--spl-green-dark); }
.toc-box ol li { padding: 5px 0; }

/* Post content */
.entry-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h2 {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 48px 0 20px;
    color: var(--text-dark);
}
.entry-content h3 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-dark);
}
.entry-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text-dark);
}
.entry-content p { margin-bottom: 24px; }

.entry-content ul,
.entry-content ol {
    margin: 0 0 24px 28px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; line-height: 1.7; }

.entry-content blockquote {
    border-left: 4px solid var(--spl-green);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(110,220,138,0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--text-dark);
}
.entry-content blockquote cite {
    display: block;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    color: var(--spl-green-dark);
    margin-top: 8px;
}

.entry-content img {
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.entry-content a {
    color: var(--spl-green-dark);
    text-decoration: underline;
    text-decoration-color: rgba(33,140,60,0.3);
    text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-color: var(--spl-green-dark); }

.entry-content code {
    background: rgba(110,220,138,0.1);
    border: 1px solid rgba(110,220,138,0.25);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: var(--spl-green-dark);
}
.entry-content pre {
    background: #0A1C0F;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
}
.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--spl-green);
    font-size: 14px;
}

/* First letter drop cap */
.entry-content > p:first-of-type::first-letter {
    font-size: 4em;
    font-weight: 900;
    float: left;
    line-height: 0.85;
    margin: 4px 12px 0 0;
    color: var(--spl-green-dark);
}

/* ═══════════════════════════════════════════════════════════
   AUTHOR BOX
═══════════════════════════════════════════════════════════ */
.author-box {
    max-width: 820px;
    margin: 64px auto 0;
    padding: 32px;
    border-radius: var(--radius-card);
    background: rgba(110,220,138,0.05);
    border: 1px solid rgba(110,220,138,0.2);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
@media (max-width: 600px) {
    .author-box { flex-direction: column; }
}

.author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(110,220,138,0.4), rgba(110,220,138,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    border: 3px solid rgba(110,220,138,0.3);
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.author-box__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--spl-green-dark);
    margin-bottom: 12px;
}
.author-box__bio {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   RELATED POSTS
═══════════════════════════════════════════════════════════ */
.related-posts {
    max-width: 820px;
    margin: 60px auto;
}
.related-posts__heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(110,220,138,0.25);
}
.related-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) {
    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .related-posts__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════════ */
.comments-area {
    max-width: 820px;
    margin: 60px auto;
}
.comments-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(110,220,138,0.2);
}

/* Comment list */
.comment-list { list-style: none; margin: 0 0 48px; }
.comment {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.comment:last-child { border-bottom: none; }

.comment__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.comment__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(110,220,138,0.25);
}
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment__author { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.comment__date   { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.comment__body   { font-size: 15px; line-height: 1.65; color: var(--text-muted); padding-left: 58px; }
.comment__body p { margin: 0; }

.reply { padding-left: 48px; }

/* Comment form */
.comment-respond {
    background: rgba(110,220,138,0.04);
    border: 1px solid rgba(110,220,138,0.18);
    border-radius: var(--radius-card);
    padding: 32px;
    margin-top: 40px;
}
.comment-reply-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url,
.comment-form .comment-form-comment {
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--spl-green); }
.comment-form textarea { height: 140px; resize: vertical; }

.comment-form .form-submit { margin-top: 8px; }
.comment-form input[type="submit"] {
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    border: none;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    transition: transform 0.15s, box-shadow 0.15s;
}
.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(33,140,60,0.45);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 32px; }

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
}
.widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(110,220,138,0.2);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 14px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.widget ul li a:hover { color: var(--spl-green-dark); }

/* Sidebar ad slot */
.widget--ad {
    background: var(--bg-section-alt);
    border: 1px dashed rgba(110,220,138,0.3);
    padding: 12px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popular posts widget */
.popular-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.popular-post:last-child { border-bottom: none; }
.popular-post__thumb {
    width: 64px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(110,220,138,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.popular-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-decoration: none;
    display: block;
}
.popular-post__title:hover { color: var(--spl-green-dark); }
.popular-post__date { font-size: 11px; color: var(--text-faint); }

/* Popular post meta row */
.popular-post__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}
.popular-post__read {
    font-size: 11px;
    color: var(--text-faint);
}

/* Category pill — small variant for sidebar */
.cat-pill-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    background: rgba(0,0,0,0.04);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.07);
    transition: var(--transition-base);
    line-height: 1;
}
.cat-pill-sm:hover,
.cat-pill-sm.active {
    background: rgba(33,140,60,0.1);
    color: var(--spl-green-dark);
    border-color: rgba(33,140,60,0.3);
}
.cat-pill-sm__count {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-faint);
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 99px;
    line-height: 1.4;
    vertical-align: middle;
}

/* Sidebar newsletter widget */
.widget--newsletter {
    background: linear-gradient(140deg, #0A1C0F 0%, #185e29 100%) !important;
    border: none !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden;
    position: relative;
}
.widget--newsletter::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(110,220,138,0.12);
    pointer-events: none;
}
.widget-newsletter__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.widget-newsletter__icon {
    font-size: 40px;
    margin-bottom: 14px;
    line-height: 1;
}
.widget-newsletter__title {
    font-size: 18px;
    font-weight: 800;
    color: #E8FFF0 !important;
    margin-bottom: 10px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    line-height: 1.25;
}
.widget-newsletter__desc {
    font-size: 13px;
    color: rgba(232,255,240,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}
.widget-newsletter__btn {
    display: block;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    background: var(--spl-green);
    color: #071410;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(110,220,138,0.35);
    margin-bottom: 12px;
}
.widget-newsletter__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #071410;
}
.widget-newsletter__note {
    font-size: 11px;
    color: rgba(232,255,240,0.4);
    margin: 0;
}
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-cloud a {
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    background: rgba(0,0,0,0.04);
    color: rgba(10,28,15,0.62);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.07);
    transition: var(--transition-base);
}
.cat-cloud a:hover {
    background: rgba(33,140,60,0.08);
    color: var(--spl-green-dark);
    border-color: rgba(33,140,60,0.3);
}

/* ─── WordPress default widget overrides ────────────────── */
/* Make WP's built-in Archives, Categories, Recent Posts etc.
   look styled even before custom widgets are configured.    */
.sidebar .widget_archive li,
.sidebar .widget_categories li,
.sidebar .widget_recent_entries li,
.sidebar .widget_recent_comments li,
.sidebar .widget_pages li,
.sidebar .widget_meta li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 14px;
    list-style: none;
}
.sidebar .widget_archive li:last-child,
.sidebar .widget_categories li:last-child,
.sidebar .widget_recent_entries li:last-child,
.sidebar .widget_recent_comments li:last-child {
    border-bottom: none;
}
.sidebar .widget_archive a,
.sidebar .widget_categories a,
.sidebar .widget_recent_entries a,
.sidebar .widget_recent_comments a,
.sidebar .widget_pages a,
.sidebar .widget_meta a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar .widget_archive a:hover,
.sidebar .widget_categories a:hover,
.sidebar .widget_recent_entries a:hover,
.sidebar .widget_recent_comments a:hover {
    color: var(--spl-green-dark);
}
.sidebar .widget_categories .children { padding-left: 14px; }

/* Search widget */
.sidebar .widget_search .search-form {
    display: flex;
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1.5px solid rgba(0,0,0,0.1);
}
.sidebar .widget_search input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    min-width: 0;
}
.sidebar .widget_search input[type="submit"] {
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    background: var(--spl-green-dark);
    color: #fff;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s;
}
.sidebar .widget_search input[type="submit"]:hover { opacity: 0.85; }

/* Tag cloud widget */
.sidebar .widget_tag_cloud .tagcloud a {
    display: inline-block;
    margin: 3px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px !important;
    font-weight: 700;
    background: rgba(0,0,0,0.04);
    color: rgba(10,28,15,0.62);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.07);
    transition: var(--transition-base);
}
.sidebar .widget_tag_cloud .tagcloud a:hover {
    background: rgba(33,140,60,0.08);
    color: var(--spl-green-dark);
    border-color: rgba(33,140,60,0.3);
}

/* Text / HTML widgets */
.sidebar .widget_text p,
.sidebar .widget_custom_html p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Recent comments author */
.sidebar .widget_recent_comments .comment-author-link {
    font-weight: 700;
    color: var(--spl-green-dark);
}

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER SECTION
═══════════════════════════════════════════════════════════ */
.newsletter-section { padding: 64px 0 80px; }

.newsletter-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
    text-align: center;
    padding: 64px 24px;
    background: linear-gradient(135deg, #6EDC8A 0%, #218c3c 55%, #185e29 100%);
    box-shadow: var(--shadow-green);
}
@media (min-width: 640px) { .newsletter-box { padding: 80px 64px; } }

.newsletter-box__blob-1 {
    position: absolute;
    top: -64px; right: -64px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}
.newsletter-box__blob-2 {
    position: absolute;
    bottom: -48px; left: -48px;
    width: 176px; height: 176px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.newsletter-box__content { position: relative; z-index: 1; }

.newsletter-box__icon  { font-size: 48px; margin-bottom: 20px; }
.newsletter-box__title {
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 16px;
}
.newsletter-box__desc {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    max-width: 440px;
    margin: 0 auto 32px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
        border-radius: var(--radius-pill);
    }
}
.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 15px;
    background: #fff;
    color: var(--text-dark);
    border-radius: 20px 20px 0 0;
    min-width: 0;
}
@media (min-width: 480px) {
    .newsletter-form input { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
}
.newsletter-form button {
    padding: 16px 28px;
    border: none;
    cursor: pointer;
    background: #0A1C0F;
    color: var(--spl-green);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s;
    border-radius: 0 0 20px 20px;
    min-height: 44px;
}
@media (min-width: 480px) {
    .newsletter-form button { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
}
.newsletter-form button:hover { opacity: 0.88; }

.newsletter-note {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 48px 0;
    flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1.5px solid rgba(0,0,0,0.1);
    background: var(--bg-card);
    text-decoration: none;
    transition: var(--transition-base);
}
.page-numbers:hover { border-color: var(--spl-green-dark); color: var(--spl-green-dark); }
.page-numbers.current {
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(33,140,60,0.4);
}
.page-numbers.prev,
.page-numbers.next { font-size: 18px; }

/* ═══════════════════════════════════════════════════════════
   PAGE TEMPLATES
═══════════════════════════════════════════════════════════ */
.page-content {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 80px;
    max-width: 820px;
    margin: 0 auto;
}

/* Archive/Category header */
.archive-header {
    padding: calc(var(--nav-height) + 48px) 0 48px;
    text-align: center;
}
.archive-header__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--spl-green-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.archive-header__title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.archive-header__desc {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* Search page */
.search-header { padding: calc(var(--nav-height) + 40px) 0 48px; }
.search-form-large {
    display: flex;
    max-width: 600px;
    margin: 32px auto 0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.search-form-large input {
    flex: 1;
    padding: 16px 24px;
    font-family: var(--font-main);
    font-size: 16px;
    border: none;
    outline: none;
    background: #fff;
    color: var(--text-dark);
    min-width: 0;
}
.search-form-large button {
    padding: 16px 28px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
}

/* 404 page */
.page-404 {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 48px) 24px 80px;
}
.page-404__emoji { font-size: 96px; margin-bottom: 24px; }
.page-404__code  { font-size: 100px; font-weight: 900; color: var(--spl-green); line-height: 1; margin-bottom: 16px; }
.page-404__title { font-size: clamp(24px, 3vw, 40px); font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.page-404__desc  { font-size: 17px; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; }
.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: var(--shadow-green);
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(33,140,60,0.5);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
    background: #0A1C0F;
    padding-top: 64px;
    padding-bottom: 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 56px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand { grid-column: span 2; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}
.footer-logo__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--spl-green), var(--spl-green-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.footer-logo__text {
    font-weight: 800;
    font-size: 17px;
    color: #E8FFF0;
}
.footer-logo__text span { color: var(--spl-green); }

.footer-desc {
    font-size: 14px;
    color: rgba(232,255,240,0.42);
    line-height: 1.65;
    max-width: 260px;
    margin-bottom: 24px;
}

/* Social icons */
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(232,255,240,0.5);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.social-links a:hover {
    background: rgba(110,220,138,0.18);
    color: var(--spl-green);
}

/* Footer columns */
.footer-col__title {
    font-size: 14px;
    font-weight: 800;
    color: #E8FFF0;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.footer-col__links { list-style: none; margin: 0; padding: 0; }
.footer-col__links li { margin-bottom: 12px; }
.footer-col__links a {
    font-size: 13px;
    color: rgba(232,255,240,0.42);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-col__links a:hover { color: var(--spl-green); }

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}
@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom__copy,
.footer-bottom__made {
    font-size: 13px;
    color: rgba(232,255,240,0.3);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-green  { color: var(--spl-green-dark); }
.mt-0 { margin-top: 0 !important; }

/* ═══════════════════════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark:      #E8FFF0;
        --text-muted:     rgba(232,255,240,0.6);
        --text-faint:     rgba(232,255,240,0.38);
        --bg-body:        #060D08;
        --bg-card:        rgba(255,255,255,0.05);
        --bg-section-alt: rgba(110,220,138,0.04);
        --border-card:    rgba(255,255,255,0.08);
        --border-nav:     rgba(110,220,138,0.15);
        --nav-bg-scroll:  rgba(6,13,8,0.88);
    }

    .blog-hero {
        background: radial-gradient(ellipse at 30% 30%, #0A2214 0%, #060D08 60%, #020504 100%);
    }
    .hero-search input { background: rgba(255,255,255,0.1); color: #E8FFF0; }
    .hero-tag {
        background: rgba(255,255,255,0.07);
        border-color: rgba(255,255,255,0.14);
        color: rgba(232,255,240,0.7);
    }
    .comment-form input,
    .comment-form textarea {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.12);
        color: #E8FFF0;
    }
    .mobile-menu {
        background: rgba(6,13,8,0.97);
    }
    .mobile-menu a { color: rgba(232,255,240,0.75); }
    .menu-toggle span { background: #E8FFF0; }
    .site-logo__text { color: #E8FFF0; }
    .primary-navigation a { color: rgba(232,255,240,0.65); }
    .newsletter-form input { background: rgba(255,255,255,0.1); color: #E8FFF0; }
}

/* ═══════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════ */
@media print {
    .site-header,
    .mobile-menu,
    .sidebar,
    .ad-unit,
    .newsletter-section,
    .related-posts,
    .site-footer { display: none !important; }

    body { font-size: 12pt; color: #000; background: #fff; }
    .entry-content { max-width: 100%; }
    a { color: #000; }
}
