/* =====================================================
   IsraelValley Ghost Theme — screen.css
   Pixel-perfect replica of israelvalley.com
   ===================================================== */

/* --- CSS Variables ---------------------------------- */
:root {
    --color-1:  #240084;    /* deep purple/navy - primary brand */
    --color-2:  #f9f9fb;    /* light bg */
    --color-3:  #f6f6f6;    /* slightly darker bg — matches israelvalley.com */
    --color-4:  #65bc7b;    /* green - CTA */
    --color-5:  #1e73be;    /* blue - primary brand blue from israelvalley.com (#1E73BE) */
    --color-6:  #333333;    /* dark gray - body text */
    --color-7:  #333333;    /* headings */
    --color-8:  #141617;    /* near black - footer bg */
    --sidebar-header: #2d2d2d;  /* very dark gray newsletter header — forensic verified */
    --accent:   #50899b;    /* teal accent */
    --meta-text:#666666;    /* meta text color */

    /* Fonts matching israelvalley.com exactly */
    --font-serif: 'Arapey', Arial, Helvetica, serif;              /* article titles, h1/h2 */
    --font-sans:  'PT Sans', Arial, Helvetica, sans-serif;        /* body, UI, meta */
    --font-nav:   'Open Sans', Arial, Helvetica, sans-serif;      /* nav — verified from CSS vars */
    --font-slab:  'Roboto Slab', Arial, Helvetica, sans-serif;    /* h3, sidebar headers */
    --font-slab2: 'Antic Slab', Arial, Helvetica, sans-serif;     /* h4 */

    --container-max: 1200px;
    --sidebar-width: 300px;
    --gap: 30px;
}

/* --- Reset & Base ---------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-6);
    background: #fff;
    overflow-x: hidden;
}

a {
    color: var(--color-5);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--color-1); }

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

ul, ol { list-style: none; }

/* --- Container ---------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   ACCESSIBILITY WIDGET
   ===================================================== */
.accessibility-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.accessibility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
    background: var(--color-1);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.2s;
}
.accessibility-btn:hover { background: var(--sidebar-header); }

/* =====================================================
   TOP UTILITY BAR
   ===================================================== */
.top-utility-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 6px 0;
}

.top-utility-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Google Translate widget */
.google-translate-wrapper {
    display: inline-flex;
    align-items: center;
}
.google-translate-wrapper .goog-te-gadget {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #747474;
}
.google-translate-wrapper .goog-te-gadget-simple {
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 2px 6px;
    background: #fff;
    font-size: 12px;
    font-family: var(--font-sans);
}
.google-translate-wrapper .goog-te-gadget-simple span {
    color: #747474;
}
.google-translate-wrapper .goog-te-gadget-simple .goog-te-menu-value {
    color: #747474;
}
/* Hide the "Powered by Google Translate" text */
.google-translate-wrapper .goog-te-gadget > span a {
    display: none;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
}

.utility-links li {
    display: inline-flex;
    align-items: center;
}

.utility-links li a {
    color: var(--color-5);  /* #1E73BE blue — forensic verified */
    font-size: 13px;
    font-family: var(--font-nav);
    padding: 2px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: color 0.2s;
    white-space: nowrap;
    font-weight: 400;
}
.utility-links li a:hover {
    color: var(--color-1);
    background: transparent;
    text-decoration: underline;
}

.utility-links .separator {
    color: #ddd;
    font-size: 12px;
    user-select: none;
    padding: 0 3px;
}

/* =====================================================
   LOGO ROW
   ===================================================== */
.logo-row {
    background: #fff;
    padding: 20px 0 16px;
}

.logo-row .container {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: inline-block;
}

.site-logo-img {
    height: 80px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}

/* =====================================================
   NAVIGATION ROW
   ===================================================== */
.nav-row {
    background: #fff;
    border-top: 2px solid var(--color-3);
    border-bottom: 2px solid var(--color-3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 48px;
}

.main-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.main-nav-list li a {
    display: block;
    padding: 14px 16px;
    color: var(--color-7);
    font-family: var(--font-nav);  /* Open Sans — verified from israelvalley.com CSS */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav-list li a:hover,
.main-nav-list li.active a,
.main-nav-list li a.active {
    color: var(--color-5);  /* #1E73BE blue — forensic verified active nav color */
}
.main-nav-list li.nav-home.active a,
.main-nav-list li.nav-home a.active {
    color: var(--color-5);  /* blue #1E73BE */
}

.nav-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-7);
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.nav-search-toggle:hover { color: var(--color-5); }

/* Search Panel */
.search-panel {
    display: none;
    background: var(--color-3);
    padding: 12px 0;
    border-top: 1px solid #ddd;
}
.search-panel.open { display: block; }

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
}
.search-input:focus { border-color: var(--color-5); }

.search-submit {
    background: var(--color-5);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.search-submit:hover { background: var(--color-1); }

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-6);
    padding: 8px;
}

/* Typesense Instant Search Results */
.ts-results {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 10px;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    font-family: var(--font-sans);
}
.ts-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: var(--color-6);
}
.ts-count { font-weight: 600; }
.ts-see-all {
    color: var(--color-5);
    text-decoration: none;
    font-weight: 600;
}
.ts-see-all:hover { text-decoration: underline; }
.ts-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ts-result-item {
    border-bottom: 1px solid #f0f0f0;
}
.ts-result-item:last-child { border-bottom: none; }
.ts-result-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.ts-result-link:hover { background: #f7f9fc; }
.ts-thumb-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
}
.ts-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-result-body { flex: 1; min-width: 0; }
.ts-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-h);
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-result-title mark {
    background: #fff8c4;
    color: inherit;
    font-weight: inherit;
    padding: 0 1px;
}
.ts-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.ts-tag {
    background: var(--color-1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ts-date {
    font-size: 11px;
    color: var(--color-6);
}
.ts-excerpt {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-excerpt mark {
    background: #fff8c4;
    color: inherit;
    padding: 0 1px;
}
.ts-loading, .ts-no-results {
    padding: 20px 14px;
    text-align: center;
    color: var(--color-6);
    font-size: 14px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-7);
    transition: all 0.3s;
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    display: none;
    background: var(--color-1);
    padding: 16px 20px;
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel ul { list-style: none; }
.mobile-nav-panel ul li a {
    display: block;
    color: #fff;
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-panel ul li a:hover { color: var(--color-4); }

/* =====================================================
   PAGE WRAPPER
   ===================================================== */
.page-wrapper {
    background: var(--color-2);
    min-height: 60vh;
}

/* =====================================================
   CONTENT LAYOUT (main + sidebar)
   ===================================================== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--gap);
    padding: 30px 0 40px;
    align-items: start;
}

/* =====================================================
   ARTICLE ROW (homepage feed style)
   ===================================================== */
.main-feed {
    min-width: 0;
}

.article-row {
    background: #fff;
    margin-bottom: 24px;
    border-radius: 2px;
    overflow: hidden;
    border-bottom: 1px solid #e8e8ee;
    padding-bottom: 24px;
}

.article-row:last-child {
    border-bottom: none;
}

.article-row-image {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.article-row-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-row-image a:hover img { transform: scale(1.02); }

.hero-article .article-row-image img {
    max-height: 480px;
}

.article-row-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0 0;
}

.article-date-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-5);  /* #1E73BE blue box — forensic verified from original */
    min-width: 50px;
    width: 50px;
    padding: 7px 6px;
    text-align: center;
}

.date-day {
    font-family: var(--font-sans);  /* PT Sans */
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;  /* white text on blue box */
    line-height: 1;
    display: block;
}

.date-month {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;  /* white text on blue box */
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.date-year {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #aaa;
    display: block;
    margin-top: 2px;
}

.article-row-content {
    flex: 1;
    min-width: 0;
}

.article-row-title {
    font-family: var(--font-serif);  /* Arapey — matches israelvalley.com h2 */
    font-size: 18px;                 /* h2_typography-font-size: 18px in original */
    font-weight: 400;                /* h2_typography-font-weight: 400 in original */
    line-height: 1.35;
    color: var(--color-7);
    margin-bottom: 8px;
}

.hero-article .article-row-title {
    font-size: 30px;
}

.a-la-une-badge {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 6px;
    margin-right: 4px;
    vertical-align: middle;
    text-transform: uppercase;
}

.editorial-badge {
    display: inline-block;
    background: var(--color-1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 2px;
    margin-bottom: 6px;
    vertical-align: middle;
}

.editorial-lead {
    border-left: 3px solid var(--color-1);
    padding-left: 12px;
}

.article-row-title a {
    color: var(--color-7);
    transition: color 0.2s;
}
.article-row-title a:hover { color: var(--color-5); }

.article-row-meta {
    font-family: var(--font-sans);  /* PT Sans */
    font-size: 12px;               /* --meta_font_size: 12px in original */
    color: #666666;                /* matches israelvalley.com meta text */
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 8px;
}

.article-row-meta a { color: #666666; }
.article-row-meta a:hover { color: var(--color-5); }

.meta-separator { color: #bbbbbb; margin: 0 2px; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    min-width: 0;
    position: sticky;
    top: 66px; /* nav height */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.sidebar-widget {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #e8e8ee;
}

.widget-header {
    background: var(--sidebar-header);
    padding: 12px 16px;
}

.widget-header h3 {
    font-family: var(--font-slab);  /* Roboto Slab — matches israelvalley.com h3 */
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.widget-header h3 a {
    color: #fff;
}
.widget-header h3 a:hover { color: var(--meta-text); }

/* Newsletter Widget */
.newsletter-widget {
    border: none;
}

/* Spotify Widget */
.spotify-widget .widget-header h3 {
    font-size: 11px;
    letter-spacing: 0.06em;
}
.spotify-embed {
    padding: 0 12px 12px;
}
.spotify-embed iframe {
    display: block;
    border-radius: 12px;
}

.newsletter-header {
    background: var(--accent);  /* teal #50899b — matches israelvalley.com newsletter header */
    padding: 14px 16px;
}

.newsletter-header h3 {
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.newsletter-body {
    background: var(--color-3);
    padding: 16px;
}

.newsletter-form .form-row {
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-6);
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--color-5); }
.form-input::placeholder { color: #bbb; }

.subscribe-btn {
    display: block;
    width: 100%;
    padding: 11px 22px;
    background: var(--color-4);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    margin-top: 8px;
    text-align: center;
}
.subscribe-btn:hover { background: #52a86a; }

.form-success {
    background: rgba(101, 189, 125, 0.15);
    border: 1px solid var(--color-4);
    border-radius: 3px;
    padding: 10px;
    text-align: center;
    color: var(--color-4);
    font-size: 13px;
    margin-top: 10px;
}

.form-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 3px;
    padding: 10px;
    text-align: center;
    color: #dc3545;
    font-size: 13px;
    margin-top: 10px;
}

.newsletter-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Sidebar Post List */
.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-post-item:last-child { border-bottom: none; }

.sidebar-post-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
    display: block;
}

.sidebar-post-title {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-7);
    font-weight: 500;
}
.sidebar-post-title:hover { color: var(--color-5); }

/* =====================================================
   SINGLE POST PAGE
   ===================================================== */
.single-post {
    background: #fff;
    padding: 0;
}

.post-header {
    padding: 24px 0 20px;
}

.post-tag-label {
    margin-bottom: 12px;
}
.post-tag-label a {
    display: inline-block;
    background: var(--sidebar-header);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
}

.post-header-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.post-date-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding-top: 4px;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-7);
    margin-bottom: 12px;
}

.post-meta {
    font-size: 13px;
    color: #747474;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.post-meta a { color: #747474; }
.post-meta a:hover { color: var(--color-5); }

.post-feature-image {
    width: 100%;
    margin: 16px 0 24px;
}
.post-feature-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.post-feature-image figcaption {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* Post Content */
.post-content.gh-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-6);
    padding: 0 0 24px;
}

.post-content.gh-content p { margin-bottom: 1.2em; }
.post-content.gh-content h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-7);
    margin: 1.8em 0 0.8em;
}
.post-content.gh-content h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-7);
    margin: 1.5em 0 0.6em;
}
.post-content.gh-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-7);
    margin: 1.2em 0 0.5em;
}
.post-content.gh-content ul,
.post-content.gh-content ol {
    list-style: disc;
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}
.post-content.gh-content ol { list-style: decimal; }
.post-content.gh-content blockquote {
    border-left: 4px solid var(--color-5);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--color-2);
    font-style: italic;
    color: #555;
}
.post-content.gh-content a { color: var(--color-5); }
.post-content.gh-content a:hover { color: var(--color-1); }
.post-content.gh-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    border-radius: 2px;
}
.post-content.gh-content figure { margin: 1.5em 0; }
.post-content.gh-content figcaption {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    font-style: italic;
}

/* Post Footer */
.post-footer {
    padding: 20px 0;
    border-top: 1px solid #e8e8ee;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #747474;
}

.tag-pill {
    background: var(--color-3);
    color: var(--color-6);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}
.tag-pill:hover { background: var(--sidebar-header); color: #fff; }

.post-share {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #747474;
}

.share-link {
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-li { background: #0077b5; }
.share-wa { background: #25d366; }
.share-link:hover { opacity: 0.85; color: #fff; }

/* Reading time */
.reading-time { color: #747474; font-size: 13px; }
.view-count { color: #747474; font-size: 13px; white-space: nowrap; }
.view-count-icon { font-size: 12px; margin-right: 2px; }
.view-count-num { font-weight: 500; color: #666; }

/* Author Card */
.author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-2);
    border: 1px solid #e8e8ee;
    border-radius: 4px;
    margin: 24px 0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-7);
    margin-bottom: 4px;
}
.author-info h4 a { color: var(--color-7); }
.author-info p {
    font-size: 13px;
    color: #747474;
    line-height: 1.5;
}

/* Related Posts */
.related-posts {
    padding: 24px 0;
    border-top: 2px solid var(--color-3);
    margin-top: 10px;
}

.related-posts-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-7);
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 2px;
    overflow: hidden;
}

.related-post-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: opacity 0.2s;
}
.related-post-img:hover img { opacity: 0.9; }

.related-post-content {
    padding: 12px;
}

.related-post-date {
    font-size: 11px;
    color: var(--color-5);
    font-weight: 600;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 6px;
}

.related-post-content h4 {
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--color-7);
}
.related-post-content h4 a { color: var(--color-7); }
.related-post-content h4 a:hover { color: var(--color-5); }

/* =====================================================
   TAG / AUTHOR ARCHIVE PAGES
   ===================================================== */
.archive-header {
    padding: 30px 0 10px;
    border-bottom: 2px solid var(--color-3);
    margin-bottom: 0;
}

.archive-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-7);
    margin-bottom: 6px;
}

.archive-desc {
    color: #747474;
    font-size: 14px;
    margin-bottom: 6px;
}

.archive-meta {
    font-size: 13px;
    color: #aaa;
}

.author-profile {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* =====================================================
   STATIC PAGE
   ===================================================== */
.page-content {
    background: #fff;
    padding: 30px;
}

.page-header {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-3);
    padding-bottom: 16px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-7);
}

/* =====================================================
   ERROR PAGE
   ===================================================== */
.error-page {
    padding: 80px 0;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 80px;
    font-weight: 700;
    color: var(--color-5);
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 18px;
    color: #747474;
    margin-bottom: 24px;
}

.btn-home {
    display: inline-block;
    background: var(--color-5);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-home:hover { background: var(--color-1); color: #fff; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e8e8ee;
    margin-top: 16px;
}

.pagination a {
    padding: 8px 20px;
    background: var(--color-5);
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.pagination a:hover { background: var(--color-1); color: #fff; }

.pagination .page-number {
    font-size: 13px;
    color: #747474;
}

/* =====================================================
   FLOATING SOCIAL BAR (right edge)
   ===================================================== */
.social-float-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-float-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}
.social-float-item:hover { opacity: 0.85; transform: translateX(-3px); color: #fff; }

.social-float-item.whatsapp  { background: #25d366; }
.social-float-item.facebook  { background: #1877f2; }
.social-float-item.twitter   { background: #1da1f2; }
.social-float-item.linkedin  { background: #0077b5; }
.social-float-item.email     { background: #6c757d; }
.social-float-item.share-btn { background: #50899b; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--color-8);
    color: #ccc;
    padding: 48px 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    color: #999;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: #999;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: #fff;
    transition: opacity 0.2s;
}
.footer-social-link:hover { opacity: 0.8; color: #fff; }
.footer-social-link.fb { background: #1877f2; }
.footer-social-link.tw { background: #1da1f2; }
.footer-social-link.li { background: #0077b5; }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 16px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #666;
}

/* =====================================================
   HOME PAGE specific
   ===================================================== */
.home-page {
    background: var(--color-2);
}

/* =====================================================
   KOENIG EDITOR CARDS (required by Ghost)
   ===================================================== */

/* Wide & Full width */
.post-content .kg-width-wide {
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
    max-width: none;
}

.post-content .kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
    width: 100vw;
}

.post-content .kg-width-wide img,
.post-content .kg-width-full img {
    width: 100%;
}

/* Image card */
.post-content .kg-image-card {
    margin: 1.5em 0;
}

.post-content .kg-image-card img {
    margin: 0 auto;
}

/* Gallery card */
.post-content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    margin: 1.5em 0;
}

.post-content .kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.post-content .kg-gallery-image {
    flex: 1 1 auto;
    overflow: hidden;
}

.post-content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Embed card */
.post-content .kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5em 0;
}

/* Bookmark card */
.post-content .kg-bookmark-card {
    width: 100%;
    margin: 1.5em 0;
}

.post-content .kg-bookmark-container {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.post-content .kg-bookmark-content {
    flex: 1;
    padding: 16px;
}

.post-content .kg-bookmark-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-7);
}

.post-content .kg-bookmark-description {
    font-size: 13px;
    color: #747474;
}

.post-content .kg-bookmark-thumbnail {
    width: 180px;
    flex-shrink: 0;
}

.post-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content .kg-bookmark-metadata {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

/* Video card */
.post-content .kg-video-card {
    margin: 1.5em 0;
}

/* Audio card */
.post-content .kg-audio-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    margin: 1.5em 0;
}

/* File card */
.post-content .kg-file-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    margin: 1.5em 0;
}

/* Toggle card */
.post-content .kg-toggle-card {
    margin: 1.5em 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* Button card */
.post-content .kg-btn-accent {
    background: var(--color-5);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    margin: 1em 0;
}

/* Callout card */
.post-content .kg-callout-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--color-2);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-5);
    border-radius: 4px;
    margin: 1.5em 0;
}

/* Caption */
.post-content figcaption {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 260px; }

    .article-row-title { font-size: 22px; }
    .hero-article .article-row-title { font-size: 24px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        position: static;
        max-height: none;
    }

    .main-nav-list { display: none; }
    .mobile-menu-btn { display: flex; }

    .logo-row { padding: 14px 0 10px; }
    .site-logo-img { height: 55px; }

    .article-row-title { font-size: 20px; }
    .date-day { font-size: 22px; }

    .social-float-bar { display: none; }
    .accessibility-widget { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .related-posts-grid { grid-template-columns: 1fr; }

    .post-title { font-size: 24px; }

    .utility-links li:nth-child(n+5) { display: none; }
}

@media (max-width: 480px) {
    .article-row-title { font-size: 18px; }
    .container { padding: 0 14px; }
    .content-layout { padding: 16px 0 24px; }
}

/* ============================================================
   Post Newsletter CTA — member acquisition
   ============================================================ */
.post-newsletter-cta {
    background: linear-gradient(135deg, #1a0060 0%, #240084 60%, #3060c0 100%);
    border-radius: 6px;
    padding: 32px 28px;
    margin: 32px 0;
    color: #fff;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.cta-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    font-family: var(--font-sans);
}

.cta-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 20px;
    line-height: 1.5;
}

.cta-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cta-email-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}
.cta-email-input::placeholder { color: rgba(255,255,255,0.55); }
.cta-email-input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.18); }

.cta-subscribe-btn {
    padding: 11px 24px;
    background: #65bd7d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    white-space: nowrap;
}
.cta-subscribe-btn:hover { background: #52a86a; }

.cta-success {
    background: rgba(101,189,125,0.2);
    border: 1px solid #65bd7d;
    border-radius: 4px;
    padding: 12px 16px;
    color: #a8f0bb;
    font-size: 14px;
    margin-top: 12px;
}

.cta-error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.5);
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffaaaa;
    font-size: 14px;
    margin-top: 12px;
}

.cta-privacy {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 10px 0 0;
}

@media (max-width: 600px) {
    .post-newsletter-cta { padding: 24px 18px; }
    .cta-form-row { flex-direction: column; }
    .cta-subscribe-btn { width: 100%; }
    .cta-text h3 { font-size: 17px; }
}

/* ─── Search Page ──────────────────────────────────────────────────── */
.search-page-bar {
    margin-bottom: 28px;
}
.search-page-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--color-5);
    border-radius: 6px;
    overflow: hidden;
}
.search-page-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
    color: var(--color-h);
}
.search-page-btn {
    background: var(--color-5);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.search-page-btn:hover { background: var(--color-1); }

.search-page-status {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--color-6);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.search-no-results {
    padding: 40px 0;
    text-align: center;
    color: var(--color-6);
}
.search-page-results mark {
    background: #fff8c4;
    color: inherit;
    padding: 0 2px;
}
.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
}
.page-btn {
    background: var(--color-1);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.page-btn:hover { background: var(--color-5); }
.page-info {
    color: var(--color-6);
    font-size: 14px;
}

/* Logo subbrand (Chaire Startup Nations) */
.logo-subbrand {
    margin-top: 4px;
}
.logo-subbrand-img {
    height: 28px;
    width: auto;
    display: block;
}
