/* ==========================================================================
   MRPL.CITY — Modern Portal Stylesheet & Design System
   Features:
   - Light & Dark Themes (Automatic OS sync + manual toggle)
   - Onest Typography & Scaled Readability
   - Clean Editorial Hierarchy (No unnecessary vertical bars on headings)
   - Strictly Icon-free Highlighted Callouts
   - Mobile-First Architecture (Hero -> Newsfeed -> Publications)
   ========================================================================== */

/* 1. CSS VARIABLES & THEMES */
:root {
    /* Brand Palette */
    --brand-navy: #004E7D;
    --brand-navy-dark: #003657;
    --brand-yellow: #FAB613;
    --brand-yellow-hover: #E5A305;
    --brand-blue-accent: #229ED9;
    --brand-blue-subtle: rgba(34, 158, 217, 0.08);

    /* Light Theme (Default) */
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #F1F5F9;
    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;
    --header-bg: #FFFFFF;
    --header-border: #E2E8F0;

    /* Shadows & Radii */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Dark Theme via attribute or media query */
[data-theme="dark"] {
    --bg-page: #0B0F19;
    --bg-card: #131B2E;
    --bg-card-subtle: #1C263D;
    --text-main: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --border-color: #243352;
    --border-subtle: #19243C;
    --header-bg: #0D1424;
    --header-border: #1E293B;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-page: #0B0F19;
        --bg-card: #131B2E;
        --bg-card-subtle: #1C263D;
        --text-main: #F8FAFC;
        --text-secondary: #CBD5E1;
        --text-muted: #94A3B8;
        --text-light: #64748B;
        --border-color: #243352;
        --border-subtle: #19243C;
        --header-bg: #0D1424;
        --header-border: #1E293B;
        --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.6);
    }
}

/* 2. BASE & RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 3. SITE HEADER */
header.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Brand Logo: mrpl • city with Mariupol Water Tower on hover */
.brand-logo {
    display: inline-flex;
    align-items: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-main);
    user-select: none;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand-logo .dot,
.brand-logo .logo-circle-wrapper {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffd20b;
    margin: 0 5px;
    position: relative;
    top: 2px;
    box-shadow: 0 2px 6px rgba(250, 182, 19, 0.4);
    vertical-align: middle;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo .dot {
    width: 20px;
    height: 20px;
}

.brand-logo .logo-circle {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-circle-wrapper:hover,
.brand-logo:hover .logo-circle-wrapper,
.brand-logo:focus .logo-circle-wrapper,
.brand-logo:active .logo-circle-wrapper {
    width: 54px;
    height: 54px;
    box-shadow: 0 4px 14px rgba(250, 182, 19, 0.5);
}

.logo-circle-wrapper:hover .logo-circle,
.brand-logo:hover .logo-circle,
.brand-logo:focus .logo-circle,
.brand-logo:active .logo-circle {
    width: 54px;
    height: 54px;
    opacity: 1;
}

/* Header Navigation (Single line with logo & actions, original MRPL typography) */
nav.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

nav.main-nav a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #000000;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 72px;
    padding: 0 4px;
    transition: opacity 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

nav.main-nav a:hover {
    color: #000000;
    opacity: 0.75;
}

nav.main-nav a.active {
    color: #000000;
    font-weight: 800;
    opacity: 1;
}

nav.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--brand-yellow);
    border-radius: 3px 3px 0 0;
}

[data-theme="dark"] nav.main-nav a {
    color: #FFFFFF;
}

[data-theme="dark"] nav.main-nav a:hover {
    color: #FFFFFF;
    opacity: 0.8;
}

[data-theme="dark"] nav.main-nav a.active {
    color: #FFFFFF;
    opacity: 1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-search-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search-nav:hover {
    color: var(--text-main);
    border-color: var(--brand-yellow);
    transform: scale(1.05);
}

.btn-theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: all 0.2s ease;
    padding: 0;
}

.btn-theme-toggle:hover {
    border-color: var(--brand-yellow);
    transform: scale(1.05);
}

#themeIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#themeIcon svg {
    display: block;
    width: 19px;
    height: 19px;
    color: currentColor;
    transition: transform 0.2s ease;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #229ED9;
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 158, 217, 0.3);
    transition: all 0.2s ease;
}

.btn-telegram:hover {
    background-color: #1B8DC4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

.btn-telegram svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-burger {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px;
    color: var(--text-main);
    cursor: pointer;
}

/* 4. MAIN LAYOUT & PORTAL GRID */
.main-layout {
    padding: 24px 0 60px;
}

.grid-portal {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Newsfeed Column (Pure CSS Grid matching) */
.newsfeed-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.newsfeed-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.newsfeed-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 6px;
}

.newsfeed-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.newsfeed-heading-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.newsfeed-heading-link:hover {
    color: var(--brand-yellow);
}

.newsfeed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.newsfeed-list::-webkit-scrollbar {
    width: 4px;
}
.newsfeed-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.newsfeed-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.newsfeed-item:last-child {
    border-bottom: none;
}

.newsfeed-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    padding-top: 2px;
}

.newsfeed-time {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.newsfeed-date {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 1px;
}

.newsfeed-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.38;
    display: block;
    text-decoration: none;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

.newsfeed-item:hover .newsfeed-link {
    color: var(--text-main);
    font-weight: 700;
}

.newsfeed-bottom-action {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 14px;
}

.btn-more-news {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-more-news:hover {
    background: var(--brand-yellow);
    color: #111827;
    border-color: var(--brand-yellow);
}

/* Circular Arrow Buttons (Signature Reference Element) */
.circle-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.circle-arrow-btn.sm {
    width: 28px;
    height: 28px;
}

.circle-arrow-btn:hover {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow);
    color: #111827;
    transform: translateX(2px);
}

.circle-arrow-btn.white {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.circle-arrow-btn.white:hover {
    border-color: #ffd20b;
    background: #ffd20b;
    color: #111827;
    transform: translateX(2px);
}

/* Editorial Column (Right side) */
.editorial-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Story Card */
.hero-story-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.hero-image-wrap {
    position: relative;
    background-color: #CBD5E1;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-story-card:hover .hero-image-wrap img {
    transform: scale(1.03);
}

.category-pill {
    display: none !important;
}

.hero-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.32;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 600;
}

.hero-pub-date {
    color: var(--text-secondary);
}

.hero-meta-divider {
    color: var(--border-color);
}

/* 3 Sub-stories Grid */
.sub-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.story-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #CBD5E1;
}

.story-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image-wrap img {
    transform: scale(1.04);
}

.story-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.story-badge {
    display: none !important;
}

.story-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 10px;
}

.story-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.story-title a:hover {
    color: var(--brand-yellow);
}

.story-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.story-meta {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* 5. PUBLICATIONS DARK TEAL/NAVY SECTION (Signature Style) */
.publications-dark-section {
    margin: 44px 0 20px;
}

.publications-inner-box {
    background: #173644;
    border-radius: 16px;
    padding: 32px 30px 36px 30px;
    color: #ffffff;
}

[data-theme="dark"] .publications-inner-box {
    background: #112833;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pub-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.pub-section-link {
    font-size: 14px;
    font-weight: 700;
    color: #ffd20b;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pub-section-link:hover {
    opacity: 0.85;
}

.features-dark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-dark-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.feature-dark-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 11, 0.4);
}

.feature-dark-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-dark-card .feature-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.feature-dark-card .feature-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-dark-card:hover .feature-img-wrap img {
    transform: scale(1.04);
}

.feature-dark-card .feature-info {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.feature-dark-card .feature-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.feature-dark-card .feature-excerpt {
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-dark-card .feature-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-dark-card .feature-date {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* ==========================================================================
   EDITORIAL DESKTOP PUBLICATIONS (SPLIT 2x2 GRID IN RIGHT COLUMN)
   ========================================================================== */
.editorial-pubs-block {
    margin-top: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.editorial-pubs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.editorial-pubs-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #004E7D;
    margin-bottom: 3px;
}

[data-theme="dark"] .editorial-pubs-kicker {
    color: #ffd20b;
}

.editorial-pubs-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0;
}

.editorial-pubs-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.editorial-pubs-link:hover {
    color: #004E7D;
}

[data-theme="dark"] .editorial-pubs-link:hover {
    color: #ffd20b;
}

.editorial-pubs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pub-split-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.pub-split-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(0, 78, 125, 0.3);
}

[data-theme="dark"] .pub-split-card:hover {
    border-color: rgba(255, 210, 11, 0.4);
}

.pub-split-link {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 14px;
    padding: 10px;
    color: inherit;
    text-decoration: none;
    height: 100%;
    align-items: center;
}

.pub-split-thumb {
    width: 124px;
    height: 82px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.pub-split-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pub-split-card:hover .pub-split-thumb img {
    transform: scale(1.06);
}

.pub-split-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 82px;
    min-width: 0;
}

.pub-split-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.pub-split-card:hover .pub-split-title {
    color: #004E7D;
}

[data-theme="dark"] .pub-split-card:hover .pub-split-title {
    color: #ffd20b;
}

.pub-split-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-light);
    font-weight: 600;
}

.pub-split-arrow {
    color: var(--text-light);
    font-weight: 800;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pub-split-card:hover .pub-split-arrow {
    transform: translateX(3px);
    color: var(--brand-yellow);
}

/* Visibility toggles between desktop and mobile */
@media (min-width: 769px) {
    .desktop-only-pubs {
        display: block;
    }
    .mobile-only-pubs {
        display: none !important;
    }
    /* Align newsfeed with editorial column height (9 items on desktop for perfect balance) */
    .newsfeed-item:nth-child(n+10) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only-pubs {
        display: none !important;
    }
    .mobile-only-pubs {
        display: block !important;
    }
}

/* Telegram Brand Banner (Homepage & Category) */
.telegram-brand-banner {
    margin: 36px auto 10px;
}

.telegram-banner-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
}

.telegram-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffd20b;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 210, 11, 0.35);
}

.telegram-icon-circle svg {
    width: 28px;
    height: 28px;
}

.telegram-banner-text-wrap {
    flex-grow: 1;
}

.telegram-banner-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.telegram-banner-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.btn-telegram-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: #229ED9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-telegram-banner:hover {
    background: #1b86b9;
    transform: translateY(-1px);
}
/* 6. INNER ARTICLE PAGE */
.article-page-container {
    margin-top: 20px;
    margin-bottom: 48px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-sep {
    color: var(--text-light);
    opacity: 0.6;
}

.breadcrumbs a:hover {
    color: var(--brand-blue-accent);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}

.article-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 36px 40px;
}

.article-category-badge {
    display: none !important;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.article-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Author Block & Circular Share Buttons (Reference Layout) */
.article-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 0 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.author-meta-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #173644;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

[data-theme="dark"] .author-avatar-circle {
    background: #244b5e;
}

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

.author-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-display-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}

.article-publish-date {
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 500;
}

.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0 0 24px;
}

.article-share-bar.bottom {
    margin: 36px 0 24px;
    border-bottom: none;
    padding-bottom: 0;
}

.share-bar-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.share-circular-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.circle-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.circle-share-btn:hover {
    color: var(--text-main);
    border-color: var(--brand-yellow);
    transform: translateY(-2px);
}

.circle-share-btn.copied {
    border-color: #10b981;
    color: #10b981;
}

.article-main-image-wrap {
    margin: 0 0 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--border-subtle);
    aspect-ratio: 16 / 9;
}

.article-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Prevent accidental duplicate lead image in body if cover image is present */
.article-main-image-wrap ~ .article-body > p:first-child:has(> img:only-child),
.article-main-image-wrap ~ .article-body > p:first-child > img:only-child,
.article-main-image-wrap ~ .article-body > figure:first-child {
    display: none !important;
}

.image-caption {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Article Body Typography */
.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body strong {
    font-weight: 700;
    color: var(--text-main);
}

.article-body h2, .article-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 36px 0 14px;
    line-height: 1.35;
}

.article-body ul {
    margin: 0 0 20px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--brand-yellow);
    padding-left: 18px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Article Source Box */
.article-source-box {
    margin-top: 24px;
    padding: 14px 18px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.article-source-box a {
    color: var(--brand-blue-accent);
    word-break: break-all;
}

/* Article Tags */
.article-tags-wrap {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.article-tag-pill:hover {
    color: #111827;
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

/* Telegram CTA card in article */
.telegram-icon-circle-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffd20b;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 210, 11, 0.35);
}

.telegram-icon-circle-sm svg {
    width: 22px;
    height: 22px;
}

.telegram-cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 18px 22px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.telegram-cta-text {
    flex-grow: 1;
}

.telegram-cta-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.telegram-cta-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-telegram-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: #229ED9;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.btn-telegram-action:hover {
    background: #1b86b9;
}

/* Telegram Button inside Article (Reference Layout) */
.article-telegram-action-box {
    margin: 32px 0 28px;
}

.article-telegram-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #173644;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(23, 54, 68, 0.2);
}

.article-telegram-action-btn:hover {
    background-color: #214b5f;
    color: #ffd20b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 54, 68, 0.3);
}

[data-theme="dark"] .article-telegram-action-btn {
    background-color: #204557;
}

/* Related Dark Box: Azov Navy (#004E7D) with Crisp White Text & Yellow Accents */
.related-dark-box {
    margin-top: 40px;
    background: #004E7D;
    background: linear-gradient(145deg, #004E7D 0%, #003657 100%);
    border-radius: 16px;
    padding: 28px 28px 22px;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 78, 125, 0.2);
}

[data-theme="dark"] .related-dark-box {
    background: linear-gradient(145deg, #003657 0%, #002238 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.related-dark-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.related-dark-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.related-dark-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    margin: 0;
}

.related-dark-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-dark-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 0;
}

.related-dark-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.related-dark-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.related-dark-link:hover {
    transform: translateX(4px);
}

.related-dark-link:hover .related-title {
    color: #ffd20b;
}

.related-dark-box .related-num,
.related-dark-box .circle-arrow-btn {
    display: none !important;
}

.related-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-dark-box .related-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    transition: color 0.2s ease;
}

.related-dark-box .related-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Sidebar in Article */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 22px 20px;
}

.widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title-link {
    font-size: 12px;
    color: var(--brand-blue-accent);
    text-decoration: none;
    font-weight: 700;
}

.widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.widget-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-item:first-child {
    padding-top: 2px;
}

.widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 44px;
    flex-shrink: 0;
}

.widget-item-time {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.widget-item-date {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
    margin-top: 1px;
}

.widget-item-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
    text-decoration: none;
    flex: 1;
    transition: color 0.15s ease;
}

.widget-item-title:hover {
    color: var(--brand-blue-accent);
}

/* 7. FOOTER (AZOV MIDNIGHT DARK) */
footer.site-footer {
    background-color: #0A1926;
    background: linear-gradient(180deg, #0A1926 0%, #061019 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding: 48px 0 32px;
    margin-top: 64px;
    font-size: 14px;
    color: #94A3B8;
}

[data-theme="dark"] footer.site-footer {
    background: #061019;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.site-footer .brand-logo {
    color: #FFFFFF !important;
}

.site-footer .brand-logo:hover {
    color: var(--brand-yellow) !important;
}

.footer-desc {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #94A3B8;
    max-width: 440px;
}

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

.footer-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand-yellow, #ffd20b);
    transform: translateX(2px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #64748B;
}

.footer-bottom div:last-child {
    color: #475569;
}

/* 8. MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 200;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.25s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 20px;
}

.drawer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-nav a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

/* 8. CATEGORY & ARCHIVE LISTS */
.category-page {
    margin-top: 20px;
    margin-bottom: 60px;
}

.category-header-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px 36px;
    margin-bottom: 32px;
}

.category-badge-pill {
    display: inline-block;
    background-color: var(--bg-card-subtle);
    color: var(--brand-blue-accent);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.category-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.category-page-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 800px;
    margin-bottom: 20px;
}

.category-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.category-chip {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.category-chip:hover {
    color: var(--brand-blue-accent);
    border-color: var(--brand-blue-accent);
}

.category-chip.active {
    background-color: var(--brand-yellow);
    color: #111827;
    border-color: var(--brand-yellow);
}

/* Category Grid */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.pagination {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.pagination li a:hover {
    border-color: var(--brand-blue-accent);
    color: var(--brand-blue-accent);
}

.pagination li.active span {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #111827;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-card-subtle);
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .grid-portal {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
    .hero-story-card {
        grid-template-columns: 1fr;
    }
    .sub-stories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .category-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        font-size: 26px;
    }
    .brand-logo .dot,
    .brand-logo .logo-circle-wrapper {
        width: 16px;
        height: 16px;
        top: 1.5px;
    }
    .brand-logo:hover .logo-circle-wrapper,
    .brand-logo:focus .logo-circle-wrapper,
    .brand-logo:active .logo-circle-wrapper {
        width: 48px;
        height: 48px;
    }
    .brand-logo:hover .logo-circle,
    .brand-logo:focus .logo-circle,
    .brand-logo:active .logo-circle {
        width: 48px;
        height: 48px;
        opacity: 1;
    }
    .btn-burger {
        display: block;
    }
    nav.main-nav {
        display: none;
    }

    .grid-portal {
        grid-template-columns: 1fr;
    }
    /* Mobile order: Hero -> Sub-stories -> Newsfeed -> Publications */
    .newsfeed-col {
        order: 2;
        height: auto !important;
    }
    .newsfeed-card {
        height: auto;
        padding: 16px;
    }
    .newsfeed-list {
        overflow-y: visible;
        max-height: none;
    }
    .editorial-col {
        gap: 16px;
    }
    .hero-content {
        padding: 18px 16px;
    }
    .hero-title {
        font-size: 19px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .hero-lead {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    /* Mobile: 1 велика плашка + 2 менші під нею */
    .sub-stories-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .sub-stories-grid .story-card:nth-child(n+3) {
        display: none;
    }
    .sub-stories-grid .story-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 10px;
        border-radius: var(--radius-md);
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-card);
    }
    .sub-stories-grid .story-card:hover {
        transform: none;
    }
    .sub-stories-grid .story-image-wrap {
        width: 76px;
        height: 76px;
        min-width: 76px;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }
    .sub-stories-grid .story-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .sub-stories-grid .story-content {
        padding: 0;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    .sub-stories-grid .story-title {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .sub-stories-grid .story-title a {
        color: var(--text-main);
        text-decoration: none;
    }
    .sub-stories-grid .story-title a:hover {
        color: #004E7D;
    }
    [data-theme="dark"] .sub-stories-grid .story-title a:hover {
        color: #ffd20b;
    }
    .sub-stories-grid .story-footer-row {
        display: none;
    }
    
    /* Publications Dark Section */
    .publications-inner-box {
        padding: 24px 18px 28px;
        border-radius: 14px;
    }
    .features-dark-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Telegram Brand Banner on mobile */
    .telegram-banner-box {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 16px;
    }
    .btn-telegram-banner {
        width: 100%;
        justify-content: center;
    }

    .article-card {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .article-title {
        font-size: 24px;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }
    .article-lead {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 16px;
    }
    .article-body {
        font-size: 17px;
        line-height: 1.65;
    }
    
    .article-author-row {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .article-share-bar {
        padding: 10px 0;
        margin: 16px 0 22px;
    }
    .article-share-bar.bottom {
        margin: 28px 0 20px;
    }
    .article-telegram-action-btn {
        width: 100%;
        padding: 13px 18px;
        font-size: 14.5px;
    }

    /* Telegram CTA card on mobile */
    .telegram-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 14px;
    }
    .telegram-cta-text {
        text-align: center;
    }
    .btn-telegram-action {
        width: 100%;
        justify-content: center;
    }

    /* Related Dark Box on mobile */
    .related-dark-box {
        padding: 22px 16px;
        border-radius: 14px;
    }
    .related-dark-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .main-layout {
        padding-bottom: 24px;
    }
    footer.site-footer {
        margin-top: 24px;
        padding: 32px 0 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
        margin-bottom: 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .category-header-box {
        padding: 24px 18px;
    }
    .category-page-title {
        font-size: 24px;
    }
    .category-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
    .btn-telegram span {
        display: none;
    }
    .btn-telegram {
        padding: 8px 10px;
    }
    .container {
        padding: 0 14px;
    }
    .hero-content {
        padding: 16px;
    }
    .hero-title {
        font-size: 18px;
    }
    .pagination li a, .pagination li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 6px;
    }
}

/* ========================================================
   СТОРІНКА КОНТАКТІВ ТА ФОРМА ЗВОРОТНОГО ЗВ'ЯЗКУ
   ======================================================== */
.contacts-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .contacts-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.contacts-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contacts-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-of-type {
    border-bottom: none;
}

.contact-item-icon {
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-item-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
}

.contact-email-link {
    color: var(--brand-blue-accent);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 700;
}

.contact-email-link:hover {
    color: #1d4ed8;
}

.contact-item-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.contact-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #229ED9;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.2s ease;
}

.contact-tg-btn:hover {
    opacity: 0.9;
}

/* Форма */
.form-group-item {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-blue-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.captcha-badge-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.captcha-badge-icon {
    font-size: 15px;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background-color: var(--brand-blue-accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-submit-btn:hover {
    background-color: #1d4ed8;
}

.form-submit-btn:active {
    transform: scale(0.99);
}

.form-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.form-alert-box.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-alert-box.alert-error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

[data-theme="dark"] .form-alert-box.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #a7f3d0;
}

[data-theme="dark"] .form-alert-box.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.spinner-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 10. SPECIAL PROJECTS SECTION (HOMEPAGE & HUBS) */
.special-projects-section {
    margin-top: 48px;
    margin-bottom: 52px;
}

.sp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
    gap: 16px;
}

.sp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.sp-kicker::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-yellow, #ffd20b);
    border-radius: 2px;
}

.sp-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
}

.sp-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    text-align: right;
    max-width: 460px;
}

.special-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sp-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 210, 11, 0.5);
}

[data-theme="dark"] .sp-card:hover {
    border-color: rgba(255, 210, 11, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.sp-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Image Cover */
.sp-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background-color: #0d1b24;
}

.sp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sp-card:hover .sp-card-img {
    transform: scale(1.05);
}

.sp-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* Restrained Editorial Tag on Photo */
.sp-card-tag {
    position: absolute;
    bottom: 12px;
    left: 14px;
    z-index: 2;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--brand-yellow, #ffd20b);
}

.sp-card-count {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Card Body */
.sp-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 22px 18px;
}

.sp-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0 0 10px 0;
    transition: color 0.2s ease;
}

.sp-card:hover .sp-card-title {
    color: #004E7D;
}

[data-theme="dark"] .sp-card:hover .sp-card-title {
    color: var(--brand-yellow, #ffd20b);
}

.sp-card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.sp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.sp-card-footer span.sp-action-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.sp-card:hover .sp-card-footer span.sp-action-arrow {
    transform: translateX(4px);
    color: var(--brand-yellow, #ffd20b);
}

.sp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Boxes on Category Pages */
.sp-hero-box {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    padding: 36px 36px 32px;
    margin-bottom: 32px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.sp-hero-box--360 {
    background: linear-gradient(135deg, rgba(0, 78, 125, 0.08) 0%, rgba(0, 168, 232, 0.08) 100%), var(--bg-card);
    border-color: rgba(0, 168, 232, 0.35);
}

.sp-hero-box--fest {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(220, 38, 38, 0.06) 100%), var(--bg-card);
    border-color: rgba(245, 158, 11, 0.35);
}

.sp-hero-content {
    position: relative;
    max-width: 800px;
}

.sp-hero-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 12px 0 10px;
    line-height: 1.25;
}

.sp-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.sp-hero-nav-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.sp-chip-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sp-nav-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sp-nav-chip:hover {
    background-color: var(--brand-blue-accent, #00A8E8);
    border-color: var(--brand-blue-accent, #00A8E8);
    color: #ffffff;
}

/* Chervona Ruta Landing Styles */
.cr-page-wrapper {
    margin-top: 24px;
    margin-bottom: 64px;
}

.cr-hero {
    position: relative;
    background: linear-gradient(135deg, #7f1d1d 0%, #1e3a8a 100%);
    border-radius: var(--radius-lg, 16px);
    padding: 48px 40px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    overflow: hidden;
}

.cr-hero-badge {
    display: inline-block;
    background-color: #ffd20b;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.cr-hero-title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 14px 0;
    color: #ffffff;
}

.cr-hero-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
    margin: 0 0 28px 0;
}

.cr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cr-stat-item {
    text-align: left;
}

.cr-stat-number {
    font-size: 28px;
    font-weight: 900;
    color: #ffd20b;
    line-height: 1;
    margin-bottom: 4px;
}

.cr-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.cr-section-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0 0 20px 0;
}

.cr-genres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.cr-genre-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cr-genre-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cr-genre-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.cr-genre-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.cr-genre-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.cr-spots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.cr-spot-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.cr-spot-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.cr-spot-addr {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-blue-accent, #00A8E8);
    margin: 0 0 10px 0;
}

.cr-spot-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.cr-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.cr-article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.cr-article-card:hover {
    border-color: var(--brand-blue-accent, #00A8E8);
    transform: translateY(-2px);
}

.cr-article-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.cr-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 991px) {
    .sp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .sp-section-subtitle {
        text-align: left;
    }
    .special-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cr-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cr-genres-grid {
        grid-template-columns: 1fr;
    }
    .cr-spots-grid {
        grid-template-columns: 1fr;
    }
    .cr-articles-grid {
        grid-template-columns: 1fr;
    }
    .cr-hero {
        padding: 32px 24px;
    }
    .cr-hero-title {
        font-size: 26px;
    }
    .sp-hero-box {
        padding: 24px;
    }
    .sp-hero-title {
        font-size: 24px;
    }
}

