/*
Theme Name: SiteFix Blog
Theme URI: https://blog.sitefix.bg
Author: SiteFix.BG
Author URI: https://sitefix.bg
Description: Blog theme for blog.sitefix.bg.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sitefix-blog
*/

/* ── Design tokens — ported from frontend/style.css :root ── */
:root {
    --bg-color: #fafffd;
    --text-main: #111917;
    --text-muted: #414543;
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Onest', sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* ═══════════════════════════════════
   ANNOUNCEMENT BAR
═══════════════════════════════════ */
.announce-bar {
    background: #0b201a;
    color: rgba(255,255,255,0.75);
    text-align: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 200;
}
.announce-cta {
    color: var(--accent-green);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.announce-cta:hover { color: var(--accent-green-light); }

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
nav {
    padding: 0 2rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-green);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}
.logo:focus { outline: none; }

.site-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
    padding: 0 1rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}
.nav-link:hover {
    color: var(--accent-green);
    background: rgba(16,185,129,0.06);
}
.nav-link.current { color: var(--accent-green); }

/* Dropdown ("За нас") */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.nav-dropdown-chevron { transition: transform 0.2s ease; }

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-item:hover {
    background: rgba(16,185,129,0.06);
    color: var(--accent-green);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-login {
    color: var(--accent-green) !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-login:hover { color: #0ea271 !important; }
.nav-plus-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; }

.auth-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.auth-link:hover { color: var(--accent-green); }

.auth-btn {
    background: var(--text-main);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.auth-btn:hover {
    background: #111827;
    transform: translateY(-1px);
}

/* Nav green CTA button */
.nav-cta-green {
    background: var(--accent-green) !important;
    color: #fff !important;
    border-radius: 2px !important;
    padding: 0.55rem 1.2rem !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    border: none !important;
    box-shadow: 3px 3px 0 #065f46 !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.nav-cta-green:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 5px 5px 0 #065f46 !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    position: sticky;
    top: 68px;
    z-index: 99;
}
.nav-mobile-drawer .nav-link {
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
}
.nav-mobile-drawer .auth-link {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
}
.nav-mobile-drawer .auth-btn {
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.8rem 1.2rem;
}
.nav-mobile-drawer.open { display: flex; }

@media (max-width: 768px) {
    nav { padding: 0 1.25rem; }
    .nav-links { display: none !important; }
    .nav-auth { display: none !important; }
    .nav-hamburger { display: flex !important; }
}

/* ═══════════════════════════════════
   FOOTER CTA BANNER
═══════════════════════════════════ */
.footer-cta {
    background: linear-gradient(90deg, #0b201a 0%, #10b981 100%);
    position: relative;
    overflow: hidden;
}
.footer-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.footer-cta-text h4 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.footer-cta-text p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.65;
}
.footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.footer-cta-btn-primary {
    background: var(--accent-green);
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 1.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(16,185,129,0.35);
}
.footer-cta-btn-primary:hover {
    background: #0ea271;
    transform: translateY(-2px);
}
.footer-cta-btn-secondary {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.88rem 1.75rem;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.footer-cta-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════
   SITE FOOTER
═══════════════════════════════════ */
.site-footer {
    background: #0b201a;
    border-top: 3px solid var(--accent-green);
    position: relative;
}
.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
    gap: 3rem;
}
.footer-logo {
    display: block;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.footer-logo-img {
    height: 52px;
    width: auto;
}
.footer-tagline {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 300px;
}
.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.social-link:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}
.footer-col-title {
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.footer-col-title-green { color: var(--accent-green) !important; }
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid rgba(16,185,129,0.5);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-cta-pill:hover {
    background: rgba(16,185,129,0.1);
    border-color: var(--accent-green);
}
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.92rem;
}
.footer-contact svg { color: var(--accent-green); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.footer-auth-item {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-auth-login {
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-auth-login:hover { color: var(--accent-green-light); }
.footer-bottom {
    background: var(--accent-green);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}
.footer-copy {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}
.footer-legal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex: 1;
}
.footer-legal a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.footer-legal a:hover { color: #fff; }

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-col-brand { grid-column: 1 / -1; }
    .footer-tagline { max-width: 100%; }
}

@media (max-width: 768px) {
    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }
    .footer-cta-text h4 { font-size: 1.6rem; }
    .footer-cta-text p { margin: 0 auto; }
    .footer-cta-actions { flex-direction: column; width: 100%; }
    .footer-cta-btn-primary,
    .footer-cta-btn-secondary { justify-content: center; width: 100%; }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 3rem 1.5rem 2rem;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    .footer-legal { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .footer-main { grid-template-columns: 1fr; }
    .footer-col-brand { grid-column: auto; }
}

/* ═══════════════════════════════════
   BLOG CONTENT
═══════════════════════════════════ */
.blog-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.blog-header {
    margin-bottom: 3rem;
}
.blog-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.blog-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Card grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-thumb {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.1rem;
    box-shadow: var(--card-shadow);
    background: linear-gradient(135deg, #0b3d26 0%, #10b981 100%);
}
.post-card-thumb-link { display: block; }
.post-card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.post-card-thumb-fallback {
    aspect-ratio: 16 / 10;
}
.post-card-thumb-fallback .post-card-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.post-card-category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(11,32,26,0.85);
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.post-card-body { display: flex; flex-direction: column; flex: 1; }

.post-card .entry-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}
.post-card .entry-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}
.post-card .entry-title a:hover { color: var(--accent-green); }

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.post-meta-author { font-weight: 700; color: var(--text-main); }
.post-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.post-meta a { color: var(--accent-green); text-decoration: none; font-weight: 600; }
.post-meta a:hover { text-decoration: underline; }
.post-meta .sep { opacity: 0.5; }

.post-card .entry-summary {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}
.post-card .entry-summary::first-letter {
    float: left;
    font-family: 'Onest', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 0.8;
    color: var(--accent-green);
    padding: 0.05em 0.12em 0 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    margin-top: auto;
}
.read-more:hover { color: #0ea271; }

@media (max-width: 960px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .post-grid { grid-template-columns: 1fr; }
}

/* Single post */
.single-post-thumb-frame {
    margin-bottom: 2rem;
}
.single-post-thumb {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.single-post-thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}
.single-post-header {
    margin-bottom: 2rem;
}
.single-post-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 0.9rem;
    text-wrap: balance;
}
.single-post-breadcrumbs {
    display: block;
    position: static;
    height: auto;
    padding: 0;
    margin-bottom: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.6;
}
.single-post-breadcrumbs a { color: var(--text-main); text-decoration: none; }
.single-post-breadcrumbs a:hover { color: var(--accent-green); }
.single-post-breadcrumbs .crumb-sep { color: var(--text-muted); margin: 0 6px; opacity: 0.6; }
.single-post-breadcrumbs .crumb-current { color: var(--accent-green); }

.single-post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.single-post-meta-row .meta-block {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.single-post-meta-row .meta-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
}
.single-post-meta-row .meta-author a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}
.single-post-meta-row .meta-author a:hover { color: var(--accent-green); }

.toc-card {
    position: relative;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 1.75rem 2.25rem;
    margin-bottom: 2rem;
}
.toc-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    background: none;
    border: none;
    padding: 4px;
    color: var(--accent-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toc-toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
}
.toc-toggle-icon { flex: none; transition: transform 0.2s ease; }
.toc-card.toc-collapsed .toc-toggle-icon { transform: rotate(180deg); }
.toc-card.toc-collapsed .toc-list { display: none; }

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-right: 2.5rem;
}
.toc-item-h2 { margin-top: 0.9rem; }
.toc-item-h2:first-child { margin-top: 0; }
.toc-item-h3 { margin-top: 0.55rem; }
.toc-card .toc-item a {
    display: flex;
    gap: 0.5em;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.5;
}
.toc-card .toc-item a:hover .toc-text { text-decoration: underline; }
.toc-card .toc-item-h2 > a { font-weight: 800; }
.toc-item-h3 {
    margin-left: 1.75rem;
    font-weight: 400;
}
.toc-number { flex: none; }
.toc-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ═══════════════════════════════════
   SINGLE POST LAYOUT + SIDEBAR
═══════════════════════════════════ */
.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}
.single-post-main { min-width: 0; }

.single-post-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
    overflow: hidden;
}
.sidebar-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    position: relative;
}
.sidebar-card h3 span { color: var(--accent-green); }

.sidebar-card-check .sidebar-card-icon {
    position: absolute;
    top: 0.5rem;
    right: -0.5rem;
    width: 96px;
    height: auto;
    opacity: 0.9;
}
.sidebar-card-check h3 { max-width: 75%; }

.sidebar-card-logo { margin-bottom: 0.75rem; }
.sidebar-card-logo img { height: 24px; width: auto; }

.sidebar-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-green);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
}
.sidebar-card-btn:hover {
    background: #0ea271;
    transform: translateY(-1px);
}

.sidebar-newsletter h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--accent-green);
    border-radius: 8px;
    font-family: 'Onest', sans-serif;
    font-size: 0.92rem;
    color: var(--text-main);
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { outline: none; border-color: #0ea271; }
.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}
.newsletter-consent input[type="checkbox"] {
    margin-top: 3px;
    flex: none;
}
.newsletter-consent a { color: var(--accent-green); }
.newsletter-submit {
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: 0.85rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}
.newsletter-submit:hover {
    background: #0ea271;
    transform: translateY(-1px);
}
.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}
.newsletter-message {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
    min-height: 1em;
}
.newsletter-message-error { color: #dc2626; }
.newsletter-message-success { color: var(--accent-green); }

@media (max-width: 960px) {
    .single-post-layout { grid-template-columns: 1fr; }
    .single-post-sidebar { position: static; }
}

.entry-content {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.85;
}
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 2.25rem;
    scroll-margin-top: 96px;
}
.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.75rem;
    scroll-margin-top: 96px;
}
.entry-content a { color: var(--accent-green); text-decoration: underline; text-decoration-color: rgba(16,185,129,0.35); }
.entry-content a:hover { text-decoration-color: var(--accent-green); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content blockquote {
    border-left: 3px solid var(--accent-green);
    padding: 0.25rem 0 0.25rem 1.25rem;
    color: var(--text-muted);
    font-style: italic;
}
.entry-content img { border-radius: 10px; }
.entry-content pre {
    background: #0b201a;
    color: #eafffa;
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.88rem;
}
.entry-content code {
    background: rgba(16,185,129,0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.entry-content pre code { background: none; padding: 0; }

.author-bio-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 1.75rem 2rem;
    margin-top: 2.5rem;
}
.author-bio-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.author-bio-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.9rem;
}
.author-bio-head img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.author-bio-name { font-weight: 700; color: var(--text-main); }
.author-bio-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-main);
}
.author-bio-text a { color: var(--accent-green); text-decoration: none; font-weight: 600; }
.author-bio-text a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   RELATED ARTICLE + SHARE
═══════════════════════════════════ */
.related-article-section { margin-top: 2.5rem; }
.related-article-section > h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.related-article-card {
    position: relative;
    background: #f6f9f8;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    max-width: 420px;
}
.related-article-logo { margin-bottom: 1rem; }
.related-article-logo img { height: 24px; width: auto; }
.related-article-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: auto;
}
.related-article-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    max-width: 75%;
}
.related-article-card h4 span { color: var(--accent-green); }
.related-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0b201a;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.related-article-btn:hover { background: #123d2b; transform: translateY(-1px); }

.share-section { margin-top: 2.5rem; }
.share-section > h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share-btn-facebook { background: #1877f2; }
.share-btn-twitter { background: #111827; }
.share-btn-linkedin { background: #0a66c2; }
.share-btn-whatsapp { background: #25d366; }

.entry-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.entry-footer a { color: var(--accent-green); text-decoration: none; font-weight: 600; }

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.pagination-nav a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}
.pagination-nav a:hover { text-decoration: underline; }

.page-numbers {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    list-style: none;
    flex-wrap: wrap;
}
.page-numbers li a,
.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}
.page-numbers li .current {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}
.page-numbers li a:hover { border-color: var(--accent-green); color: var(--accent-green); }

/* Search form */
.search-form {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-green);
}
.search-form button {
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: 0 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.search-form button:hover { background: #0ea271; }

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}
.comments-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--border-color); }
.comment-author { font-weight: 700; font-size: 0.95rem; }
.comment-metadata { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { font-size: 0.95rem; line-height: 1.7; }
.comment-reply-link {
    color: var(--accent-green);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.comment-respond { margin-top: 2rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .form-submit input {
    width: auto;
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
}

.no-results { color: var(--text-muted); font-size: 1rem; padding: 2rem 0; }

.blog-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.blog-list-heading h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
}
.blog-list-heading h2 span { color: var(--accent-green); }
.today-date {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}
.today-date span { color: var(--accent-green); }

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.load-more-wrap a {
    display: inline-flex;
    align-items: center;
    background: var(--accent-green);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 16px rgba(16,185,129,0.3);
    transition: all 0.2s ease;
}
.load-more-wrap a:hover {
    background: #0ea271;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════
   BLOG HERO BANNER
═══════════════════════════════════ */
.blog-hero {
    background: linear-gradient(90deg, #0b201a 0%, #10b981 100%);
    position: relative;
    overflow: hidden;
}
.blog-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}
.blog-hero-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.blog-hero-icon { width: 62px; height: auto; flex-shrink: 0; }
.blog-hero-left h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}
.blog-hero-left p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.5;
}
.blog-hero-right {
    text-align: right;
    flex-shrink: 0;
}
.blog-hero-right p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.blog-hero-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.blog-hero-logo img { height: 26px; width: auto; }

/* ═══════════════════════════════════
   CATEGORY SEARCH SECTION
═══════════════════════════════════ */
.category-search {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
}
.category-search-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.category-search-heading span { color: var(--accent-green); }
.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.category-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}
.category-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.category-card-top h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}
.category-card-icon {
    height: 48px;
    width: auto;
    max-width: 56px;
    flex-shrink: 0;
    object-fit: contain;
}
.category-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #0b201a;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.category-card-btn:hover {
    background: #123d2b;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .blog-hero-inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .blog-hero-right { text-align: left; }
    .category-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .blog-wrap { padding: 2.5rem 1.25rem 4rem; }
    .blog-header h1 { font-size: 1.9rem; }
    .single-post-header h1 { font-size: 1.8rem; }
    .blog-hero-inner { padding: 2.25rem 1.25rem; }
    .blog-hero-left { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
    .blog-hero-icon { width: 48px; }
    .blog-hero-left h1 { font-size: 1.5rem; }
    .category-search { padding: 2.25rem 1.25rem 0; }
    .category-cards { grid-template-columns: 1fr; }
    .toc-card { padding: 1.5rem 1.25rem; }
    .toc-toggle {
        position: static;
        width: 100%;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
    .toc-list { padding-right: 0; }
    .toc-item-h3 { margin-left: 1rem; }
}
