/*
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, #2c2c2c 0%, #3a3a3a 35%, #474747 60%, #565656 100%);
    min-height: 100vh;
}
a { color: #e8730c; 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; }

/* --- HEADER: row 1 = logo + ERT links, row 2 = menu --- */
#top-menu-bar {
    display: block;
    width: 100%;
    position: relative;
    z-index: 300;
}

/* Row 1 */
#header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px 40px;
    background: #fff;
}

#nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
/* Logo: animated atom + text. Everything is sized in em off the
   subtitle size, so changing font-size scales the whole logo. */
.site-logo {
    --logo-size: 15px;
    display: flex;
    align-items: center;
    gap: 1.15em;
    font-size: var(--logo-size);
    font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
    color: #111;
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo-atom {
    height: 6.95em;
    width: 6.02em;
    display: block;
    flex-shrink: 0;
}
.site-logo-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.site-logo-title {
    font-size: 4.56em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.075em;
    margin-right: -0.075em; /* cancel trailing letter-space so it centres */
    text-align: center;
    white-space: nowrap;
}
.site-logo-sub {
    margin-top: 0.4em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    color: #333;
}

#nav-ertopen {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-ert-logo,
.nav-ertopen-link {
    display: flex;
    align-items: center;
    height: 44px;
    transition: transform 0.2s;
}
.nav-ert-logo + .nav-ertopen-link {
    padding-left: 22px;
    border-left: 1px solid rgba(0,0,0,0.12);
}
.nav-ert-logo img,
.nav-ertopen-link img {
    height: 100%;
    width: auto;
    display: block;
}
.nav-ertopen-link { height: 38px; }
.nav-ert-logo:hover,
.nav-ertopen-link:hover {
    transform: translateY(-1px);
}

/* --- HERO (front page only) --- */
#site-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 40px 40px;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(255,246,238,0.97) 0%, rgba(255,232,211,0.98) 100%);
    border-bottom: 3px solid rgba(232,115,12, 0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 6px 40px rgba(232,115,12,0.1);
}

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

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

.hero-subtext {
    font-size: 0.92em;
    color: #3a3a3a;
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

#hero-video {
    flex: 0 0 64%;
    min-width: 300px;
    max-width: 1100px;
}
#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);
}

/* Row 2: menu bar */
.main-navigation {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    background: linear-gradient(180deg, #424242 0%, #2e2e2e 100%);
    border-top: 3px solid #e8730c;
    border-bottom: 1px solid rgba(232,115,12, 0.35);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.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 1 auto;
    display: flex;
    align-items: stretch;
    position: relative;
}
.main-navigation li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 18px;
    margin-top: -9px;
    border-left: 1px solid rgba(255,255,255,0.14);
}

.main-navigation a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
    color: #f2ebe4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase; /* lang="el" → browsers drop the Greek accents */
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
/* Green underline that grows on hover / marks the current page */
.main-navigation > .menu-container > ul > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: #ffa04a;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.main-navigation > .menu-container > ul > li > a:hover::after,
.main-navigation > .menu-container > ul > li.current-menu-item > a::after {
    transform: scaleX(1);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: rgba(232,115,12, 0.22);
    color: #fff;
    text-decoration: none;
}

/* Submenus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #3d3d3d;
    border: 1px solid rgba(107,74,46,0.5);
    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 #303030;
    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: #b85a08; }


/* --- LAYOUT: 1/6 LEFT | 5/6 RIGHT --- */
#main-wrap {
    display: flex;
    padding: 30px;
    box-sizing: border-box;
}
/* Short pages: the box fills the screen and the footer sits at the bottom. */
body > .container { display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; }
body > .container > #main-wrap { flex: 1 0 auto; }

#sidebar-left {
    width: 200px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(232,115,12, 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(232,115,12, 0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(232,115,12,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: #e8730c; }

.post-meta {
    color: #777;
    font-size: 0.85em;
    margin-bottom: 15px;
    border-left: 3px solid #e8730c;
    padding-left: 10px;
}
/* category tags before the date (classic homepage) */
.post-meta:has(.post-cat) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    border-left: 0;
    padding-left: 0;
}
.post-meta .post-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft, #fdeee0);
    border: 1px solid var(--accent-line, #f6c79c);
    color: var(--accent-strong, #b85a08);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-meta .post-cat:hover,
.post-meta .post-cat:focus-visible {
    background: var(--accent, #e8730c);
    border-color: var(--accent, #e8730c);
    color: var(--on-accent, #fff);
}

.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: #e8730c;
    color: #fff;
    border-color: #e8730c;
}

/* --- FOOTER --- */
#footer {
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(232,115,12, 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(232,115,12, 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: #a14d05;
    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: #e8730c;
    background: #fff8f1;
}

/* 8. Active/Current Item */
#sidebar-left .menu li.current-menu-item > a,
#sidebar-left .menu li.current-menu-ancestor > a {
    color: #e8730c;
    background: #fff2e5;
    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: #e8730c;
}

/* --- 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(232,115,12, 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(232,115,12, 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: #e8730c;
}

/* 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: 1040px) {
    #header-brand { padding: 18px 28px; }
    .site-logo { --logo-size: 12px; }
    .nav-ert-logo { height: 36px; }
    .nav-ertopen-link { height: 31px; }

    /* Button fills full nav bar height via flex alignment */
    .main-navigation {
        display: flex;
        align-items: stretch;
        position: relative;
    }
    .main-navigation li + li::before,
    .main-navigation > .menu-container > ul > li > a::after { display: none; }
    .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(232,115,12,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(46,46,46);
        border-top: 2px solid rgba(232,115,12,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: 13px;
        color: #f2ebe4;
    }
    .main-navigation a:hover {
        background: rgba(232,115,12,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 { flex: none; width: 100%; max-width: 560px; min-width: 0; align-self: center; }
    .hero-headline { font-size: 1.8em; }
}

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

    /* 1. Header: logo centered on top, ERT links hidden, menu below */
    #header-brand {
        justify-content: center;
        padding: 14px 16px;
    }
    /* logo is ~43em wide: fit it to the screen, never larger than 13px */
    .site-logo { --logo-size: min(13px, calc((100vw - 40px) / 43)); }
    #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: #b85a08;
        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;
    }

    /* 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 { flex: none; width: 100%; max-width: none; min-width: 0; align-self: stretch; }

    /* 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: #e8730c;
    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: #e8730c;
    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(232,115,12, 0.2);
}
.post-nav a {
    flex: 1;
    padding: 10px 14px;
    background: rgba(232,115,12, 0.07);
    border: 1px solid rgba(232,115,12, 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(232,115,12, 0.15);
    border-color: #e8730c;
    color: #e8730c;
    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(232,115,12, 0.2);
}
.related-posts-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #a14d05;
    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(232,115,12, 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(232,115,12,0.08), rgba(232,115,12,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: #e8730c; }

@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 #e8730c; 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: #e8730c; }

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

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

/* --- CONTACT PAGE (template-parts/contact.php) — works in every layout and skin;
       the var() fallbacks are the classic orange look --- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 18px;
}
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card-alt, #faf7f4);
    border: 1px solid var(--card-border, rgba(0,0,0,0.08));
    border-radius: var(--radius-sm, 10px);
}
.layout-modern .contact-card { background: var(--card); box-shadow: var(--card-shadow); }
.contact-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft, rgba(232,115,12,0.1));
    color: var(--accent-strong, #b85a08);
}
.contact-label {
    margin: 0 0 3px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted, #777);
}
.contact-value {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--heading, #222);
    overflow-wrap: anywhere;
}
.contact-value a { color: inherit; text-decoration: none; }
.contact-value a:hover { color: var(--accent, #e8730c); text-decoration: none; }
.contact-sub { font-size: 0.95rem; font-weight: 400; color: var(--text-soft, #555); }
.contact-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.contact-map {
    min-height: 340px;
    border: 1px solid var(--card-border, rgba(0,0,0,0.08));
    border-radius: var(--radius-sm, 10px);
    overflow: hidden;
    background: var(--card-alt, #f3f3f3);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
@media screen and (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* --- SITE SEARCH (template-parts/search-form.php) — all layouts and skins;
       the var() fallbacks are the classic orange look --- */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.site-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 620px; margin: 0; }
.site-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 54px 0 20px;
    border: 1.5px solid var(--line, #d9d5cf);
    border-radius: 999px;
    background: var(--card, #fff);
    color: var(--heading, #222);
    font: inherit;
    font-size: 16px;               /* 16px stops iPhones zooming in on focus */
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.site-search input[type="search"]::placeholder { color: var(--muted, #888); opacity: 1; }
.site-search input[type="search"]:focus {
    border-color: var(--accent, #e8730c);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #e8730c) 18%, transparent);
}
.site-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent, #e8730c);
    color: var(--on-accent, #fff);
    cursor: pointer;
    transition: background 0.15s;
}
.site-search-btn:hover { background: var(--accent-strong, #b85a08); }

/* matched words on results pages (search.js) */
mark.search-hl {
    padding: 0 0.06em;
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent, #e8730c) 24%, transparent);
    color: inherit;
}

/* "nothing found" */
.search-empty {
    padding: 28px 30px;
    background: var(--card, #fff);
    border: 1px solid var(--card-border, rgba(0,0,0,0.08));
    border-radius: var(--radius, 12px);
    color: var(--text-soft, #555);
}
.search-empty p { margin: 0 0 8px; }
.search-empty p:last-child { margin-bottom: 0; }
.search-empty-title { font-size: 1.15em; font-weight: 700; color: var(--heading, #222); }
.search-empty-links a { font-weight: 600; }

/* classic layout: magnifier at the end of the menu bar + the search row under it */
.main-navigation li.menu-search-item { flex: 0 0 auto; }
.menu-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    padding: 0;
    border: 0;
    background: none;
    color: #f2ebe4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.menu-search-toggle:hover,
.menu-search-toggle[aria-expanded="true"] { background: rgba(232,115,12, 0.22); color: #fff; }
.skin-modern .menu-search-toggle { color: var(--nav-text); }
.skin-modern .menu-search-toggle:hover,
.skin-modern .menu-search-toggle[aria-expanded="true"] { background: var(--nav-hover-bg); color: var(--nav-hover-text); }
#header-search-panel {
    display: flex;
    justify-content: center;
    padding: 16px 40px;
    background: #f7f4f0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
#header-search-panel[hidden] { display: none; }
.skin-modern #header-search-panel { background: var(--card-alt); border-bottom-color: var(--line); }

/* classic results page */
.search-header .page-title { margin-bottom: 4px; }
.search-count { margin: 0 0 16px; color: var(--muted, #777); font-size: 0.95em; }
.search-header .site-search { margin-bottom: 26px; }

@media screen and (max-width: 1040px) {
    .main-navigation li.menu-search-item { display: none; }
    #header-search-panel,
    #header-search-panel[hidden] { display: flex; padding: 12px 16px; }
}