/* =====================================================
   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:  #f2f3f5;    /* slightly darker bg */
    --color-4:  #65bd7d;    /* green - CTA / S'abonner */
    --color-5:  #198fd9;    /* blue - links, active nav, date numbers */
    --color-6:  #434549;    /* dark gray - body text */
    --color-7:  #212326;    /* darker gray - headings */
    --color-8:  #141617;    /* near black - footer bg */
    --sidebar-header: #4054b2;  /* blue/indigo sidebar headers */
    --accent:   #50899b;    /* teal accent */
    --meta-text:#e0dede;    /* light gray meta */

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --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: #777;
}
.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: #777;
}
.google-translate-wrapper .goog-te-gadget-simple .goog-te-menu-value {
    color: #777;
}
/* 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: #777;
    font-size: 12px;
    font-family: var(--font-sans);
    padding: 2px 9px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.utility-links li a:hover {
    color: #fff;
    background: var(--color-5);
    border-color: var(--color-5);
}

.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-sans);
    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);
}
.main-nav-list li.nav-home.active a,
.main-nav-list li.nav-home a.active {
    color: var(--color-4);
}

.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;
    min-width: 44px;
    padding-top: 2px;
}

.date-day {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-5);
    line-height: 1;
    display: block;
}

.date-month {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-5);
    text-transform: capitalize;
    display: block;
    margin-top: 2px;
}

.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);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-7);
    margin-bottom: 10px;
}

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

.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-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    border-top: 1px solid #e8e8ee;
    padding-top: 8px;
    margin-top: 6px;
}

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

.meta-separator { color: #ccc; }

/* =====================================================
   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-sans);
    font-size: 12px;
    font-weight: 700;
    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(--sidebar-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); }
.sidebar-more-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #198fd9;
    text-decoration: none;
}
.sidebar-more-link:hover { color: #240084; text-decoration: underline; }

/* =====================================================
   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: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.post-meta a { color: #888; }
.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: #888;
}

.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: #888;
}

.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: #888; font-size: 13px; }
.view-count { color: #888; 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: #888;
    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: #888;
    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: 60px 0 80px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.error-404-icon {
    margin-bottom: 16px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-5);
    margin-bottom: 12px;
}

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

.error-message {
    font-size: 17px;
    color: #666;
    margin-bottom: 28px;
    line-height: 1.6;
}

.error-search-box {
    margin-bottom: 28px;
}

.error-search-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
    border: 2px solid var(--color-5);
    border-radius: 6px;
    overflow: hidden;
}

.error-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.error-search-btn {
    background: var(--color-5);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.error-search-btn:hover { background: var(--color-1); }

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-secondary {
    display: inline-block;
    background: #f0f0f6;
    color: var(--color-5);
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #ddd;
}
.btn-secondary:hover { background: var(--color-5); color: #fff; border-color: var(--color-5); }

.error-recent-posts {
    max-width: 900px;
    margin: 0 auto;
}

.error-recent-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-5);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-5);
}

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

@media (max-width: 768px) {
    .error-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .error-posts-grid { grid-template-columns: 1fr; }
}

.error-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.error-post-card:hover {
    box-shadow: 0 4px 16px rgba(36,0,132,0.12);
    transform: translateY(-2px);
}

.error-post-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f8;
}
.error-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.error-post-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f6;
}

.error-post-body {
    padding: 12px;
    flex: 1;
}

.error-post-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.error-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #212326;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.error-loading {
    grid-column: 1/-1;
    text-align: center;
    color: #999;
    padding: 20px;
}

/* =====================================================
   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: #888;
}

/* =====================================================
   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: #888;
}

.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;
}

/* ─── Tag Cloud Widget ────────────────────────────────────────────────────── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 4px;
}

.tag-cloud-item {
    display: inline-block;
    background: var(--color-3);
    color: var(--color-6);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.tag-cloud-item:hover {
    background: var(--color-1);
    color: #fff;
}

html.dark-mode .tag-cloud-item {
    background: #2e2e50;
    color: #a0a0d0;
    border-color: #3e3e60;
}

html.dark-mode .tag-cloud-item:hover {
    background: var(--color-1);
    color: #fff;
}

/* ─── Dark Mode ─────────────────────────────────────────────────────────────── */
/* Activated via .dark-mode class on <html> element, stored in localStorage */

html.dark-mode {
    --color-2: #1a1a2e;     /* dark bg (was #f9f9fb) */
    --color-3: #16213e;     /* slightly darker dark bg (was #f2f3f5) */
    --color-6: #c8c8d0;     /* light text (was dark gray body text) */
    --color-7: #e8e8f0;     /* light headings (was dark headings) */
    --bg-card: #1e1e36;     /* card bg */
    --border-color: #2e2e50;/* borders */
}

html.dark-mode body {
    background: #121220;
    color: var(--color-6);
}

html.dark-mode .top-utility-bar {
    background: #0d0d1a;
    border-bottom-color: #2e2e50;
}

html.dark-mode .top-utility-bar a { color: #a0a0c0; }

html.dark-mode .logo-row {
    background: #0d0d1a;
    border-bottom-color: #2e2e50;
}

html.dark-mode .nav-row {
    background: var(--color-1); /* keep brand purple */
}

html.dark-mode .page-wrapper,
html.dark-mode .main-feed,
html.dark-mode .sidebar {
    background: transparent;
}

/* Article cards */
html.dark-mode .article-card,
html.dark-mode .article-row {
    background: #1e1e36;
    border-color: #2e2e50;
}

html.dark-mode .article-card-title a,
html.dark-mode .article-row-title a {
    color: #e8e8f0;
}

html.dark-mode .article-card-title a:hover,
html.dark-mode .article-row-title a:hover {
    color: var(--color-5);
}

/* Single post */
html.dark-mode .single-post {
    background: #1e1e36;
    border-color: #2e2e50;
}

html.dark-mode .post-title { color: #e8e8f0; }
html.dark-mode .post-content { color: #c8c8d0; }
html.dark-mode .post-content h2,
html.dark-mode .post-content h3,
html.dark-mode .post-content h4 { color: #e8e8f0; }

/* Sidebar */
html.dark-mode .sidebar-widget {
    background: #1e1e36;
    border-color: #2e2e50;
}

html.dark-mode .sidebar-post-title { color: #c8c8d0; }
html.dark-mode .sidebar-post-title:hover { color: var(--color-5); }
html.dark-mode .sidebar-post-date { color: #6868a0; }

/* Search panel */
html.dark-mode .search-panel {
    background: #1a1a2e;
    border-bottom-color: #2e2e50;
}

html.dark-mode .search-input {
    background: #121220;
    color: #e8e8f0;
    border-color: #3e3e60;
}

/* Forms */
html.dark-mode .form-input,
html.dark-mode .cta-email-input,
html.dark-mode input[type="email"] {
    background: #121220;
    color: #e8e8f0;
    border-color: #3e3e60;
}

/* Tag pills */
html.dark-mode .tag-pill {
    background: #2e2e50;
    color: #a0a0d0;
    border-color: #3e3e60;
}

/* Section headings */
html.dark-mode .section-header h2,
html.dark-mode .widget-header h3 { color: #e8e8f0; }

/* Blockquotes */
html.dark-mode blockquote {
    border-left-color: var(--color-5);
    background: #1a1a2e;
    color: #a0a0c0;
}

/* Table */
html.dark-mode table th { background: #2e2e50; color: #e8e8f0; }
html.dark-mode table td { border-color: #2e2e50; color: #c8c8d0; }
html.dark-mode table tr:nth-child(even) td { background: #1a1a2e; }

/* Ad zones */
html.dark-mode .ad-placeholder { background: #1e1e36 !important; border-color: #3e3e60 !important; }
html.dark-mode .ad-placeholder span { color: #4e4e70 !important; }

/* Footer stays dark (already dark) */

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 9000;
    background: var(--color-1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.2s;
}
.dark-mode-toggle:hover {
    background: var(--color-5);
    transform: scale(1.1);
}

/* Print friendly */
@media print {
    .top-utility-bar, .nav-row, .mobile-nav-panel,
    .sidebar, .site-footer, .social-float-bar,
    .dark-mode-toggle, .accessibility-widget,
    .post-newsletter-cta, .related-posts,
    #iv-cookie-banner, .ad-zone-post-top, .ad-zone-post-bottom { display: none !important; }

    body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
    .post-title { font-size: 20pt; color: #000; margin-bottom: 12pt; }
    .post-content { max-width: 100%; }
    .post-content a { color: #000; text-decoration: underline; }
    .post-content a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
    .feature-image img { max-width: 100%; page-break-inside: avoid; }
    .content-layout { display: block; }
    .main-feed { width: 100%; max-width: 100%; }
    .logo-row { display: block; text-align: center; padding: 8pt 0; }
    .site-logo-img { max-width: 150pt; }
}

/* ─── Breaking News Ticker ─────────────────────────────────────────────────── */
.news-ticker-bar {
    background: #240084;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
    border-bottom: 2px solid #198fd9;
}
.ticker-label {
    flex-shrink: 0;
    background: #198fd9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    padding-left: 20px;
}
.ticker-track.ticker-animate {
    animation: ticker-scroll 60s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-block;
    font-size: 12px;
    padding: 0 6px;
}
.ticker-item a {
    color: #e0e0ff;
    text-decoration: none;
    transition: color 0.2s;
}
.ticker-item a:hover {
    color: #65bd7d;
    text-decoration: underline;
}
.ticker-sep {
    display: inline-block;
    color: #198fd9;
    padding: 0 10px;
    font-size: 10px;
}
.ticker-loading {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}
@media (max-width: 600px) {
    .ticker-label {
        padding: 0 8px;
        font-size: 10px;
    }
    .ticker-item { font-size: 11px; }
}

/* ─── Homepage Section Headers ─────────────────────────────────────────────── */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #240084;
    margin: 24px 0 12px;
    padding-bottom: 6px;
}
.section-title-strip {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #240084;
    text-transform: uppercase;
    margin: 0;
}
.section-title-strip a {
    color: #240084;
    text-decoration: none;
}
.section-more-link {
    font-size: 12px;
    color: #198fd9;
    text-decoration: none;
    font-weight: 600;
}
.section-more-link:hover { text-decoration: underline; }

.analyse-badge {
    display: inline-block;
    background: #4054b2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 2px;
    margin-bottom: 5px;
}
.analyse-article .article-excerpt {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* ─── Archive Page ─────────────────────────────────────────────────────────── */
.archive-page-intro {
    background: #f0f4ff;
    border-left: 4px solid #240084;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 32px;
    font-size: 15px;
    color: #434549;
}
.archive-year {
    font-size: 22px;
    font-weight: 700;
    color: #240084;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #240084;
    font-family: 'Open Sans', sans-serif;
}
.archive-year-count {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}
.archive-months {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.archive-month-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 14px;
    text-decoration: none;
    color: #434549;
    transition: all 0.15s ease;
    min-width: 130px;
}
.archive-month-link:hover {
    background: #240084;
    color: #fff;
    border-color: #240084;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(36,0,132,0.2);
}
.archive-month-name {
    font-size: 13px;
    font-weight: 600;
}
.archive-month-count {
    background: #f0f4ff;
    color: #4054b2;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}
.archive-month-link:hover .archive-month-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
@media (max-width: 600px) {
    .archive-month-link { min-width: 110px; }
    .archive-months { gap: 8px; }
}

/* Share CTA above content (mobile-first) */
.share-cta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f4ff;
    border-left: 3px solid #240084;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}
.share-cta-label {
    color: #240084;
    font-weight: 700;
    white-space: nowrap;
}
.share-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.share-cta-btn {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s;
}
.share-cta-btn:hover { opacity: 0.85; }
.share-cta-fb { background: #1877f2; }
.share-cta-tw { background: #000; }
.share-cta-li { background: #0077b5; }
.share-cta-wa { background: #25d366; }
@media (max-width: 600px) {
    .share-cta-top { flex-direction: column; align-items: flex-start; }
    .share-cta-label { font-size: 12px; }
}

/* Load More Button */
.load-more-btn {
    background: #240084;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}
.load-more-btn:hover {
    background: #198fd9;
    transform: translateY(-1px);
}
.load-more-btn:active {
    transform: translateY(0);
}

/* ─── Subscribe Form Enhancement ──────────────────────────────────── */
/* Loading spinner shown during submission */
.iv-btn-spinner {
    display: inline-block;
    animation: iv-spin 0.8s linear infinite;
    font-style: normal;
    font-size: 14px;
}
@keyframes iv-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Smooth transition for form success/error */
.form-success,
.form-error,
.cta-success,
.cta-error {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Confirm link in success block */
.iv-confirm-link {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #198fd9 !important;
    text-decoration: underline;
}
.iv-confirm-link:hover {
    color: #240084 !important;
}

/* Success enhanced box: bump up contrast slightly */
.form-success {
    border-left: 3px solid #65bd7d;
    text-align: left;
}
