/*
Theme Name: Pasimite V3
Author: Custom
Description: 1200px wide, 1/6-5/6 layout, non-overlapping header.
Version: 2.1
*/

/* --- CORE --- */
/* Replace in body block */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a2e0a 0%, #2d4a14 35%, #3a5c1a 60%, #4a7a25 100%);
    min-height: 100vh;
}
a { color: #429e00; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- CONTAINER (WIDER) --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.93);
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.8);
    border-radius: 0 0 12px 12px;
}

.clear { clear: both; }

/* --- TOP NAV BAR: logo | menu | ERT Open --- */
#top-menu-bar {
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(40,40,40,0.97) 0%, rgba(20,20,20,0.99) 100%);
    border-bottom: 2px solid rgba(66, 158, 0, 0.5);
    width: 100%;
    position: relative;
    z-index: 300;
    flex-wrap: nowrap;
}

#nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 24px;
    background: #fff;
    border-right: 3px solid #429e00;
}
#nav-logo img {
    height: 76px;
    width: auto;
    display: block;
}

#nav-ertopen {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 6px 16px;
    gap: 5px;
    border-left: 2px solid rgba(66,158,0,0.25);
    background: rgba(255,255,255,0.03);
}
.nav-ert-logo,
.nav-ertopen-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.88;
    transition: opacity 0.2s;
}
.nav-ert-logo img,
.nav-ertopen-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.nav-ert-logo:hover,
.nav-ertopen-link:hover {
    opacity: 1;
}

/* --- NEWS TICKER --- */
#news-ticker {
    display: flex;
    align-items: stretch;
    height: 32px;
    background: rgba(15, 30, 5, 0.97);
    border-bottom: 1px solid rgba(66,158,0,0.3);
    overflow: hidden;
    position: relative;
    z-index: 290;
    width: 100%;
}
.ticker-label {
    flex-shrink: 0;
    background: #429e00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-right: 2px solid rgba(66,158,0,0.5);
}
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 32px;
}
.ticker-content {
    position: absolute;
    left: 100%;
    top: 0;
    white-space: nowrap;
    color: #c8e8a0;
    text-decoration: none;
    font-size: 13px;
    line-height: 32px;
    animation: ticker-move 24s linear infinite;
}
.ticker-content:hover {
    animation-play-state: paused;
    color: #fff;
}
.ticker-date {
    color: rgba(200,232,160,0.6);
    font-size: 11px;
    margin-right: 12px;
}
@keyframes ticker-move {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 100vw)); }
}

/* --- HERO (front page only) --- */
#site-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 52px;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(240,252,228,0.95) 0%, rgba(220,245,205,0.98) 100%);
    border-bottom: 3px solid rgba(66, 158, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 6px 40px rgba(66,158,0,0.1);
}

#hero-text {
    flex: 1;
    min-width: 0;
}

.hero-headline {
    font-size: 3em;
    font-weight: 800;
    color: #1a4a00;
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(66,158,0,0.12);
}

.hero-subtext {
    font-size: 1.05em;
    color: #3a3a3a;
    line-height: 1.75;
    margin: 0;
    max-width: 500px;
}

#hero-video {
    flex: 0 0 44%;
    min-width: 300px;
    max-width: 520px;
}
#hero-video video,
#hero-video iframe,
#hero-video .wp-video-shortcode {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.3);
}

.main-navigation {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.main-navigation .menu-container {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.main-navigation ul {
    flex: 1;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    flex: 1;
    display: flex;
    align-items: stretch;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.main-navigation a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #c8d8e8;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: rgba(66, 158, 0, 0.28);
    color: #fff;
}

/* Submenus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(45, 74, 20);
    border: 1px solid rgba(95, 153, 54, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    width: 220px;
    z-index: 999;
}
.main-navigation li:hover > ul { display: block; }
.main-navigation ul ul li {
    float: none;
    flex: none;
    border-right: none;
    border-bottom: 1px solid #244010;
    display: block;
}
.main-navigation ul ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: auto;
    font-weight: normal;
    font-size: 12px;
    color: #eee;
    white-space: nowrap;
}
.main-navigation ul ul li a:hover { background: #37591f; }


/* --- LAYOUT: 1/6 LEFT | 5/6 RIGHT --- */
#main-wrap {
    display: flex;
    padding: 30px;
    box-sizing: border-box;
}

#sidebar-left {
    width: 200px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(66, 158, 0, 0.15);
    margin-right: 20px;
    position: relative;
    z-index: 1100;
}

#content-right {
    flex-grow: 1;
    width: calc(100% - 240px); /* Remaining width */
    min-width: 0; /* Allow flex item to shrink below content size on narrow screens */
}

/* --- CONTENT STYLING --- */
/* Replace .hentry styling */
.hentry {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hentry:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(66, 158, 0, 0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(66,158,0,0.25), inset 0 1px 0 rgba(255,255,255,1);
}
/* Featured image — single post: bleeds to card edges, rounded top */
.post-featured-image {
    margin: -30px -30px 24px -30px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    line-height: 0;
}
.post-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Card layout: text left, thumbnail right */
.post-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.post-text { flex: 1; min-width: 0; width: 100%; }

.post-thumbnail-card {
    flex-shrink: 0;
    width: 200px;
}
.post-thumbnail-card a { display: block; }
.post-thumbnail-card img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    transition: opacity 0.2s;
}
.post-thumbnail-card img:hover { opacity: 0.88; }

h2.post-title {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    font-weight: normal;
}
h2.post-title a { color: #000; }
h2.post-title a:hover { color: #429e00; }

.post-meta {
    color: #777;
    font-size: 0.85em;
    margin-bottom: 15px;
    border-left: 3px solid #429e00;
    padding-left: 10px;
}

.pagination { margin: 30px 0; text-align: center; }
.page-numbers {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0 3px;
    color: #333;
    text-decoration: none;
}
.page-numbers.current, .page-numbers:hover {
    background: #429e00;
    color: #fff;
    border-color: #429e00;
}

/* --- FOOTER --- */
#footer {
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(66, 158, 0, 0.3);
    padding: 20px;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 20px;
    border-radius: 0 0 12px 12px;
}

/* --- SIDEBAR MENU: STABLE VERSION (No Jumps) --- */

/* 1. Reset Box Model (Critical for preventing expansion) */
#sidebar-left .widget,
#sidebar-left .widget * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 2. Module Box Styling */
#sidebar-left .widget {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 3px solid rgba(66, 158, 0, 0.45);
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* 3. Widget Title */
#sidebar-left .widget h3 {
    background: #f8f8f8;
    color: #2d6600;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    border-radius: 3px 3px 0 0;
}

/* 4. The Menu List */
#sidebar-left .menu, 
#sidebar-left .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* 5. Menu Items (Container) */
#sidebar-left .menu li {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: 0;
    width: 100%;
}
#sidebar-left .menu li:last-child {
    border-bottom: none;
}

/* 6. Links Styling (The Clickable Area) */
#sidebar-left .menu a {
    display: block;
    width: 100%;
    padding: 8px 10px 8px 25px;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    background: #fff;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

/* 7. Hover State */
#sidebar-left .menu a:hover {
    color: #429e00;
    background: #f5fcf0;
}

/* 8. Active/Current Item */
#sidebar-left .menu li.current-menu-item > a,
#sidebar-left .menu li.current-menu-ancestor > a {
    color: #429e00;
    background: #f0f9e8;
    font-weight: 600;
}

/* 9. Arrow Icon (Main Items) */
#sidebar-left .menu a::before {
    content: "›";
    color: #999;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    left: 10px;
    top: 5px;
}
#sidebar-left .menu a:hover::before,
#sidebar-left .menu li.current-menu-item > a::before {
    color: #429e00;
}

/* --- THE FLYOUT SUB-MENU --- */

/* 10. Flyout Container */
#sidebar-left .menu .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -1px;
    width: 220px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-left: 3px solid rgba(66, 158, 0, 0.45);
    border-radius: 0 6px 6px 0;
    box-shadow: 4px 6px 20px rgba(0,0,0,0.12);
    z-index: 99999;
}

/* Show on Hover */
#sidebar-left .menu li:hover > .sub-menu {
    display: block;
}

/* 11. Sub-menu Items */
#sidebar-left .menu .sub-menu li {
    border-bottom: 1px solid #eee;
    border-left: none; /* No extra borders */
    margin: 0;
}
#sidebar-left .menu .sub-menu li:last-child { 
    border-bottom: none; 
}

/* 12. Sub-menu Links */
#sidebar-left .menu .sub-menu a {
    padding-left: 30px; /* Ensure text clears the arrow */
    font-size: 11px;
    background: transparent;
}

/* 13. Sub-menu Arrow Adjustment */
#sidebar-left .menu .sub-menu a::before {
    left: 12px; /* Indent arrow slightly */
}

/* --- DYNAMIC DOCUMENT LIST --- */
.pasimite-doc-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px dotted #ccc;
}

.pasimite-doc-list li {
    border-bottom: 1px dotted #ccc;
    position: relative;
}

/* Flex Container for the Link */
.pasimite-doc-list a {
    display: flex; 
    align-items: flex-start; /* Aligns icon with top of text */
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.pasimite-doc-list a:hover {
    background: rgba(66, 158, 0, 0.08);
    color: #000;
}

/* --- THE ICON (Fixed Width) --- */
.pasimite-doc-list .file-icon {
    display: inline-block;
    width: 36px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 12px;
    text-transform: uppercase;
    flex-shrink: 0; /* Prevents squishing */
    margin-top: 2px; /* Visual alignment with first line of text */
}

/* --- TEXT WRAPPER (Stacks Title & Desc) --- */
.pasimite-doc-list .file-text-wrap {
    display: flex;
    flex-direction: column;
}

/* Title Styling */
.pasimite-doc-list .file-name {
    font-size: 13px;
    font-weight: normal;
    line-height: 1.3;
}
/* Bold title on hover */
.pasimite-doc-list a:hover .file-name {
    color: #429e00;
}

/* Description Styling */
.pasimite-doc-list .file-desc {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
    line-height: 1.3;
}

/* --- TYPE COLORS (Same as before) --- */
.pasimite-doc-list .file-type-pdf .file-icon { background-color: #d32f2f; }
.pasimite-doc-list .file-type-doc .file-icon { background-color: #2b579a; }
.pasimite-doc-list .file-type-xls .file-icon { background-color: #217346; }
.pasimite-doc-list .file-type-img .file-icon { background-color: #8e44ad; }
.pasimite-doc-list .file-type-zip .file-icon { background-color: #e67e22; }
.pasimite-doc-list .file-type-default .file-icon { background-color: #95a5a6; }
/* Web Link: Teal */
.pasimite-doc-list .file-type-web .file-icon {
    background-color: #00897b; 
}

/* Button hidden by default on desktop — shown only inside media queries below */
.menu-toggle { display: none; }

/* --- NAV HAMBURGER: switch to hamburger when items don't fit --- */
@media screen and (max-width: 1200px) {
    /* Button fills full nav bar height via flex alignment */
    .main-navigation {
        display: flex;
        align-items: stretch;
        position: relative;
    }
    .menu-toggle {
        display: flex !important;
        align-items: center;
        align-self: stretch;
        border: none;
        padding: 0 22px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        background: transparent;
        color: #c8d8e8;
        letter-spacing: 0.04em;
        white-space: nowrap;
        transition: background 0.15s, color 0.15s;
    }
    .menu-toggle:hover {
        background: rgba(66,158,0,0.25);
        color: #fff;
    }
    /* Dropdown falls below the bar — does NOT expand it */
    .main-navigation .menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgb(22,22,22);
        border-top: 2px solid rgba(66,158,0,0.4);
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }
    .main-navigation ul {
        display: block;
    }
    .main-navigation li {
        display: block;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .main-navigation a {
        display: block;
        padding: 13px 24px;
        text-align: left;
        white-space: normal;
        font-size: 14px;
        color: #c8d8e8;
    }
    .main-navigation a:hover {
        background: rgba(66,158,0,0.22);
        color: #fff;
    }
}

/* --- LANDSCAPE MOBILE (hamburger but not full mobile stack yet) --- */
@media screen and (max-width: 1200px) and (max-height: 600px) {
    #site-hero { flex-direction: column; padding: 20px; gap: 16px; }
    #hero-video { display: none; }
    .hero-headline { font-size: 1.8em; }
    #news-ticker { display: none; }
}

/* --- MOBILE / RESPONSIVE FIXES --- */
@media screen and (max-width: 900px) {

    /* 1. Nav bar: logo centered on top, menu below */
    #top-menu-bar {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    #nav-logo {
        width: 100%;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(66,158,0,0.25);
        padding: 12px 16px;
    }
    #nav-logo img { height: 60px; }
    #nav-ertopen { display: none; }

    /* 2. Hamburger: switch nav to block so button + menu stack naturally */
    .main-navigation {
        display: block !important;
        width: 100%;
    }
    .menu-toggle {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        border: none;
        padding: 13px 16px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        background: #37591f;
        color: #fff;
        text-align: center;
        letter-spacing: 0.04em;
    }
    .main-navigation .menu-container {
        display: none;
        width: 100%;
    }
    .main-navigation ul {
        display: block;
        width: 100%;
    }
    .main-navigation li {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
    .main-navigation a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 13px 16px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
        color: #dde8f0;
    }

    /* 3. Ticker: hide on mobile */
    #news-ticker { display: none; }

    /* 4. Cards: stack thumbnail below text on mobile */
    .post-inner { flex-direction: column; align-items: stretch; }
    .post-text { width: 100%; }
    .post-thumbnail-card { width: 100%; }
    .post-thumbnail-card img { max-width: 100%; height: auto; }
    .post-featured-image { margin: -16px -16px 18px -16px; }

    /* 4. Hero: stack, shrink font, hide video */
    #site-hero {
        flex-direction: column;
        padding: 32px 20px;
        gap: 24px;
    }
    .hero-headline { font-size: 2em; }
    #hero-video { display: none; }

    /* 4. Main layout stack */
    #main-wrap {
        flex-direction: column;
        padding: 10px;
    }
    #content-right {
        width: 100%;
        order: 1;
    }

    /* 5. Sidebar */
    #sidebar-left {
        width: 100%;
        margin: 30px 0 0 0;
        border: none;
        padding: 0;
        order: 2;
    }

    /* FIX SUBMENUS on mobile */
    #sidebar-left .menu li:hover > .sub-menu,
    #sidebar-left .menu .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        display: block;
        background-color: #fcfcfc;
    }
    #sidebar-left .menu .sub-menu a {
        padding-left: 40px !important;
        border-bottom: 1px dotted #ddd;
    }
    #sidebar-left .menu .sub-menu a::before { display: none; }

    /* Articles */
    .hentry {
        padding: 15px;
        overflow-wrap: break-word;
        word-break: break-word;
        overflow-x: hidden;
    }
    .entry-content {
        overflow-x: auto;
        max-width: 100%;
    }
    .entry-content table {
        max-width: 100%;
        width: 100%;
    }
    .entry-content img {
        max-width: 100%;
        height: auto;
    }

    /* Pagination */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 20px 0;
    }
    .page-numbers {
        margin: 0;
        padding: 6px 10px;
        display: inline-flex;
        align-items: center;
    }

    /* Glass opacity boost + overflow containment */
    .container { background: rgba(255,255,255,0.88); overflow-x: hidden; }
    .hentry { background: rgba(255,255,255,0.84); }
    #main-wrap { overflow-x: hidden; }
}

/* --- SINGLE POST ADDITIONS --- */

/* Title + image side by side */
.post-title-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}
.post-title-text {
    flex: 1;
    min-width: 0;
}
.post-title-thumb {
    flex: 0 0 auto;
    max-width: 38%;
}
.post-title-thumb img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
@media screen and (max-width: 900px) {
    .post-title-row { flex-direction: column; }
    .post-title-thumb { max-width: 100%; }
}

/* Archive / page header label */
.archive-header {
    margin-bottom: 20px;
}
.archive-label {
    display: block;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #429e00;
    margin-bottom: 6px;
}
h1.page-title {
    font-size: 1.9em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

/* Breadcrumb */
.post-breadcrumb {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.post-breadcrumb a {
    color: #429e00;
    text-decoration: none;
}
.post-breadcrumb a:hover { text-decoration: underline; }

/* h1 title on single news posts */
h1.post-title {
    font-size: 1.9em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

/* Prev/Next navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(66, 158, 0, 0.2);
}
.post-nav a {
    flex: 1;
    padding: 10px 14px;
    background: rgba(66, 158, 0, 0.07);
    border: 1px solid rgba(66, 158, 0, 0.2);
    border-radius: 6px;
    font-size: 0.85em;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.post-nav a:hover {
    background: rgba(66, 158, 0, 0.15);
    border-color: #429e00;
    color: #429e00;
    text-decoration: none;
}
.post-nav .nav-prev { text-align: left; }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-label {
    display: block;
    font-size: 0.78em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 3px;
}

/* Related posts */
.related-posts {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(66, 158, 0, 0.2);
}
.related-posts-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #2d6600;
    margin: 0 0 16px 0;
}
.related-posts-grid {
    display: flex;
    gap: 16px;
}
.related-post-item { flex: 1; min-width: 0; }
.related-post-item a {
    display: block;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.related-post-item a:hover {
    border-color: rgba(66, 158, 0, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}
.related-post-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.related-post-no-thumb {
    height: 80px;
    background: linear-gradient(135deg, rgba(66,158,0,0.08), rgba(66,158,0,0.03));
}
.related-post-title {
    font-size: 0.82em;
    font-weight: 600;
    padding: 8px 10px;
    line-height: 1.35;
    color: #333;
}
.related-post-item a:hover .related-post-title { color: #429e00; }

@media screen and (max-width: 900px) {
    .related-posts-grid { flex-direction: column; }
}

/* Content image lightbox */
.entry-content a.content-lb {
    display: inline-block;
    cursor: zoom-in;
}
.entry-content a.content-lb img {
    transition: opacity 0.2s;
}
.entry-content a.content-lb:hover img {
    opacity: 0.85;
}

.leaflet-container svg.leaflet-attribution-flag { display: none !important; }

/* --- YOUTUBE CHANNEL SHORTCODE --- */
.yt-channel { margin: 20px 0; }

.yt-featured { margin-bottom: 28px; }
.yt-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.yt-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.yt-featured-meta { margin-top: 14px; }
.yt-featured-meta h2 { margin: 0 0 6px; font-size: 1.3em; }
.yt-date { font-size: 0.85em; color: #888; display: block; }
.yt-desc { margin-top: 8px; color: #555; font-size: 0.95em; line-height: 1.5; }

.yt-prev-heading { border-bottom: 2px solid #429e00; padding-bottom: 6px; margin: 24px 0 16px; font-size: 1.05em; }
.yt-video-list { display: flex; flex-direction: column; gap: 14px; }
.yt-video-card { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,0.7); border-radius: 8px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); cursor: pointer; transition: box-shadow 0.2s; }
.yt-video-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.yt-video-card img { width: 160px; height: 90px; object-fit: cover; border-radius: 6px; flex-shrink: 0; transition: opacity 0.2s; }
.yt-video-card:hover img { opacity: 0.85; }
.yt-card-meta { display: flex; flex-direction: column; gap: 6px; }
.yt-card-meta strong { color: #333; font-size: 0.95em; line-height: 1.4; }

/* YouTube modal */
#yt-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
#yt-modal.yt-modal-open { display: flex; }
#yt-modal-inner { position: relative; width: 100%; max-width: 860px; background: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
#yt-modal-inner .yt-embed-wrap { border-radius: 0; box-shadow: none; }
#yt-modal-meta { padding: 12px 16px; }
#yt-modal-title { color: #fff; font-size: 1em; display: block; margin-bottom: 4px; }
#yt-modal-meta .yt-date { color: #aaa; }
#yt-modal-close { position: absolute; top: 10px; right: 12px; z-index: 10; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; cursor: pointer; line-height: 32px; text-align: center; padding: 0; transition: background 0.2s; }
#yt-modal-close:hover { background: #429e00; }

.yt-pagination { margin-top: 24px; }
.yt-error { color: #c00; font-style: italic; }

@media (max-width: 600px) {
    .yt-video-card img { width: 110px; height: 62px; }
}

