/* ============================================
           NEWS & COMMUNITY PAGE SPECIFIC STYLES
           ============================================ */

        /* Hero section for news page */
        .news-hero {
            background: linear-gradient(rgba(65, 105, 225, 0.85), rgba(30, 60, 160, 0.95)),
                        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 120px 0 80px;
            text-align: center;
        }

        .news-hero .hero-content {
            max-width: 900px;
            margin: 0 auto;
        }

        .news-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 48px;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .news-hero p {
            font-size: 20px;
            margin-bottom: 30px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            opacity: 0.9;
        }

/* ===== ATLAS HERO — appended override, delete to revert ===== */
.news-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 110px;
    background-image:
        radial-gradient(ellipse 60% 55% at 78% 90%, rgba(232,178,74,.18), transparent 60%),
        radial-gradient(ellipse 70% 60% at 20% 10%, rgba(40,80,200,.30), transparent 65%),
        linear-gradient(180deg, rgba(8,16,42,.62) 0%, rgba(8,14,34,.78) 55%, rgba(6,11,28,.92) 100%),
        url('https://images.unsplash.com/photo-1523906834658-6e24ef2386f9?q=80&w=1900&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.news-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='760'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.5'%3E%3Ccircle cx='380' cy='380' r='90'/%3E%3Ccircle cx='380' cy='380' r='170'/%3E%3Ccircle cx='380' cy='380' r='250'/%3E%3Ccircle cx='380' cy='380' r='330'/%3E%3Ccircle cx='130' cy='120' r='60'/%3E%3Ccircle cx='130' cy='120' r='130'/%3E%3Ccircle cx='650' cy='640' r='70'/%3E%3Ccircle cx='650' cy='640' r='150'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 680px 680px;
}
.news-hero::after {
    content: ''; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,182,58,.45) 30%, rgba(80,130,255,.5) 60%, transparent);
}
.news-hero .hero-content { position: relative; z-index: 2; max-width: 860px; }
.news-hero h1 {
    font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06; letter-spacing: -.02em; margin-bottom: 0; text-shadow: 0 2px 24px rgba(0,0,0,.35);
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .3s both;
}
.news-hero h1 em { font-style: italic; font-weight: 500; color: #e8b24a; }
.news-hero p {
    font-size: clamp(16px, 2.1vw, 20px); line-height: 1.7; color: rgba(255,255,255,.9); opacity: 1;
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .6s both;
}
.news-hero .hero-buttons { animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .78s both; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 16px;
    font-size: 13px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: #e8b24a; margin-bottom: 22px;
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .15s both;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, #e8b24a); }
.hero-eyebrow::after { background: linear-gradient(90deg, #e8b24a, transparent); }
.hero-rule {
    width: 70px; height: 3px; border-radius: 2px; margin: 24px auto;
    background: linear-gradient(90deg, transparent, #e8b24a, #b8842a, transparent);
    animation: heroReveal .85s cubic-bezier(.4,0,.2,1) .45s both;
}
.hero-scroll {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll::before { content: ''; width: 4px; height: 8px; border-radius: 3px; background: #e8b24a; animation: heroScroll 1.6s ease-in-out infinite; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroScroll { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
    .news-hero h1, .news-hero p, .news-hero .hero-buttons, .hero-eyebrow, .hero-rule { animation: none; }
    .hero-scroll::before { animation: none; }
}

        /* Content Layout */
        /* Full-width cream band so the cream bg spans the viewport (like the
           gallery/newsletter sections) instead of leaving the dark page bg
           showing on the sides of the centered container. */
        .news-community-band {
            background-color: #f9f7f2;
            padding: 80px 0;
        }
        .news-community-content {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 50px;
        }

        /* Main News Feed */
        .news-feed {
            display: flex;
            flex-direction: column;
            gap: 50px;
        }

        .news-section {
            background-color: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #EEF2FE;
        }

        .section-header h2 {
            color: #1E3EA1;
            font-size: 32px;
            font-family: 'Playfair Display', serif;
        }

        .view-all {
            color: #f5b63a;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .view-all:hover {
            color: #1E3EA1;
            text-decoration: underline;
        }

        /* News Cards */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .news-card {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid #EEF2FE;
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

        .news-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .news-card:hover .news-image img {
            transform: scale(1.08);
        }

        .news-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: #f5b63a;
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-content {
            padding: 25px;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            color: #666;
            font-size: 14px;
        }

        .news-date {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .news-date i {
            color: #f5b63a;
        }

        .news-category {
            color: #f5b63a;
            font-weight: 600;
        }

        .news-content h3 {
            color: #1E3EA1;
            margin-bottom: 15px;
            font-size: 1.3rem;
            line-height: 1.4;
        }

        .news-excerpt {
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
            display: -webkit-box;
            /* -webkit-line-clamp: 3; */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .read-more {
            color: #f5b63a;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }

        .read-more:hover {
            color: #1E3EA1;
            gap: 12px;
        }

        /* Sidebar */
        .news-sidebar {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .sidebar-widget {
            background-color: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .widget-title {
            color: #1E3EA1;
            font-size: 20px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #EEF2FE;
            font-family: 'Playfair Display', serif;
        }

        /* Categories Widget */
        .categories-list {
            list-style: none;
        }

        .categories-list li {
            margin-bottom: 15px;
        }

        .categories-list a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #666;
            text-decoration: none;
            padding: 12px 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .categories-list a:hover {
            background-color: #EEF2FE;
            color: #1E3EA1;
            padding-left: 20px;
        }

        /* Upcoming Tours Widget */
        .upcoming-tours {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .upcoming-tour {
            display: flex;
            gap: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #EEF2FE;
        }

        .upcoming-tour:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .tour-date {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #f5b63a;
            color: white;
            padding: 10px;
            border-radius: 8px;
            min-width: 60px;
            text-align: center;
        }

        .tour-month {
            font-size: 12px;
            text-transform: uppercase;
            opacity: 0.8;
        }

        .tour-day {
            font-size: 20px;
            font-weight: 700;
        }

        .tour-info h4 {
            color: #1E3EA1;
            margin-bottom: 5px;
            font-size: 15px;
            line-height: 1.3;
        }

        .tour-info p {
            color: #666;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .tour-status {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-available {
            background-color: #e8f5e9;
            color: #2e7d32;
        }

        .status-limited {
            background-color: #fff3e0;
            color: #ef6c00;
        }

        /* Community Stats Widget */
        .community-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            text-align: center;
        }

        .stat-item {
            padding: 20px 15px;
            background-color: #f8f9fa;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .stat-item:hover {
            background-color: #EEF2FE;
            transform: translateY(-3px);
        }

        .stat-number {
            font-size: 32px;
            font-weight: 700;
            color: #1E3EA1;
            margin-bottom: 5px;
            font-family: 'Playfair Display', serif;
        }

        .stat-label {
            color: #666;
            font-size: 14px;
        }

        /* Gallery Widget */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .gallery-item {
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        /* Development note style */
        .dev-note {
            font-size: 14px;
            color: #f5b63a;
            margin-left: 10px;
            font-weight: normal;
            vertical-align: middle;
        }

        /* Newsletter Section */
        .newsletter-section {
            padding: 80px 0;
            background-color: #3655b4;
            color: white;
            text-align: center;
        }

        .newsletter-container {
            max-width: 700px;
            margin: 0 auto;
        }

        .newsletter-container h2 {
            font-family: 'Playfair Display', serif;
            font-size: 36px;
            margin-bottom: 20px;
            color: white;
        }

        .newsletter-container p {
            color: #C4D0F5;
            font-size: 18px;
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .newsletter-form {
            display: flex;
            gap: 15px;
            max-width: 500px;
            margin: 0 auto;
        }

        .newsletter-form input {
            flex: 1;
            padding: 15px 20px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            background-color: rgba(255, 255, 255, 0.05);
            color: white;
            font-size: 16px;
        }

        .newsletter-form input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .newsletter-form input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.6);
        }

        /* Стилі для повідомлень підписки */
        .newsletter-message {
            margin-top: 20px;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: 500;
            text-align: center;
        }

        .newsletter-success {
            background-color: rgba(40, 167, 69, 0.2);
            color: #d4edda;
            border: 1px solid #28a745;
        }

        .newsletter-info {
            background-color: rgba(23, 162, 184, 0.2);
            color: #d1ecf1;
            border: 1px solid #17a2b8;
        }

        .newsletter-error {
            background-color: rgba(220, 53, 69, 0.2);
            color: #f8d7da;
            border: 1px solid #dc3545;
        }

        .newsletter-message {
            animation: nlFadeIn 0.35s ease;
        }

        @keyframes nlFadeIn {
            from { opacity: 0; transform: translateY(-6px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Community Events Section */
        .events-section {
            padding: 80px 0;
            background-color: white;
        }

        .events-timeline {
            max-width: 800px;
            margin: 50px auto 0;
            position: relative;
        }

        .events-timeline:before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: #e0e6ef;
            transform: translateX(-50%);
        }

        .timeline-item {
            display: flex;
            margin-bottom: 50px;
            position: relative;
        }

        .timeline-item:nth-child(odd) {
            flex-direction: row;
        }

        .timeline-item:nth-child(even) {
            flex-direction: row-reverse;
        }

        .timeline-date {
            flex: 1;
            padding: 0 30px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .timeline-date h4 {
            color: #1E3EA1;
            font-size: 20px;
            margin-bottom: 5px;
        }

        .timeline-date p {
            color: #666;
            font-size: 15px;
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 20px;
            height: 20px;
            background-color: #f5b63a;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            border: 4px solid white;
            box-shadow: 0 0 0 4px rgba(30, 62, 161, 0.2);
        }

        .timeline-content {
            flex: 1;
            padding: 25px;
            background-color: #f8f9fa;
            border-radius: 12px;
            border-left: 4px solid #f5b63a;
        }

        .timeline-content h4 {
            color: #1E3EA1;
            margin-bottom: 10px;
            font-size: 18px;
        }

        .timeline-content p {
            color: #666;
            line-height: 1.6;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .news-hero h1 { font-size: 36px; }
            .news-hero p { font-size: 18px; }
            .news-community-content { grid-template-columns: 1fr; gap: 40px; }
            .news-grid, .stories-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
            .newsletter-form { flex-direction: column; }
            .events-timeline:before { left: 30px; }
            .timeline-item { flex-direction: row !important; margin-left: 60px; }
            .timeline-date { position: absolute; left: -60px; width: 50px; padding: 0; text-align: left; }
            .timeline-dot { left: 20px; }
        }

        @media (max-width: 768px) {
            .news-hero { padding: 100px 0 60px; }
            .news-hero h1 { font-size: 32px; }
            .news-hero p { font-size: 16px; }
            .news-section { padding: 30px 20px; }
            .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
            .community-stats { grid-template-columns: 1fr; }
            .gallery-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* ── Tours Gallery Section ── */
        .tours-gallery-section {
            padding: 80px 0;
            background: #f0f4ff;
        }
        .gallery-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 38px;
            color: #1a3a5f;
            text-align: center;
            margin-bottom: 12px;
        }
        .gallery-section-sub {
            text-align: center;
            color: #666;
            font-size: 18px;
            margin-bottom: 50px;
        }
        .tours-gallery-grid {
            columns: 4;
            column-gap: 14px;
        }
        .tg-item {
            break-inside: avoid;
            margin-bottom: 14px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
        }
        .tg-item img {
            width: 100%;
            display: block;
            transition: transform 0.4s;
        }
        .tg-overlay {
            position: absolute;
            inset: 0;
            background: rgba(26,58,95,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .tg-overlay i {
            color: white;
            font-size: 28px;
        }
        .tg-item:hover img { transform: scale(1.06); }
        .tg-item:hover .tg-overlay { opacity: 1; }

        /* ── Lightbox ── */
        #lightbox {
            display: none;
            visibility: hidden;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.92);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }
        #lightbox.open {
            display: flex;
            visibility: visible;
        }
        .lb-inner {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #lbImg {
            max-width: 80vw;
            max-height: 85vh;
            border-radius: 8px;
            display: block;
            object-fit: contain;
        }
        .lb-close {
            position: fixed;
            top: 20px;
            right: 28px;
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            font-size: 28px;
            line-height: 1;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10001;
            transition: background 0.2s;
        }
        .lb-close:hover { background: rgba(255,255,255,0.3); }
        .lb-prev, .lb-next {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            font-size: 22px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            cursor: pointer;
            transition: background 0.2s;
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .lb-prev { left: 20px; }
        .lb-next { right: 20px; }
        .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.3); }

        @media (max-width: 1200px) { .tours-gallery-grid { columns: 4; } }
        @media (max-width: 992px)  { .tours-gallery-grid { columns: 3; } }
        @media (max-width: 600px)  { .tours-gallery-grid { columns: 2; } .gallery-section-title { font-size: 28px; } }
        @media (max-width: 400px)  { .tours-gallery-grid { columns: 1; } }

        /* ===== MOBILE IMPROVEMENTS ===== */
        @media (max-width: 480px) {
            .timeline-item { margin-left: 40px; }
            .timeline-date { left: -50px; width: 40px; }
            .gallery-grid { grid-template-columns: 1fr; }
            .community-stats { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .newsletter-form input,
            .newsletter-form .btn {
                padding: 16px;
                font-size: 16px;
            }
        }

        /* ============================================
           ACCESSIBILITY — respect OS reduced-motion preference
           ============================================ */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

/* =====================================================================
   EDITORIAL NEWS SPREAD + FULL-WIDTH FEED — appended override (delete to revert)
   - Sidebar (community stats) is hidden in news.php, so the feed now
     stretches the full container width.
   - "Останні новини" is a magazine-style spread: one large featured story
     on the left + a numbered list of the rest on the right. Cormorant
     Garamond display serif, IBM Plex Mono labels, thin gold rules. Each
     item opens the shared article modal (#newsModal).
   ===================================================================== */

/* Feed spans the full container now that the sidebar is gone */
.news-community-content { display: block; }

/* Drop the white box so the cards sit on the cream band like the tour grid */
.news-section {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

/* ---- Masthead: title + issue line over a heavy rule ---- */
.ed-masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    border-bottom: 2px solid #1c2540;
    padding-bottom: 18px;
    margin-bottom: 44px;
}
.ed-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: #15224a;
}
.ed-title em { font-style: italic; color: #b8842a; }
.ed-issue {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #7c8099; padding-bottom: 6px; white-space: nowrap;
}

/* ---- Spread layout: featured + list ---- */
.ed-spread {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}
.ed-spread.ed-solo { grid-template-columns: 1fr; max-width: 760px; }

/* ---- Featured (currently selected) ---- */
.ed-feat { position: relative; transition: opacity 0.18s ease; }
.ed-feat.ed-swapping { opacity: 0; }   /* brief fade while content is swapped in */
.ed-pic {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 16 / 9;               /* Compact Lead — shorter than the old 4:3 */
    cursor: pointer;
    background: linear-gradient(135deg, #1E3EA1, #0b1430);
}
.ed-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,0.61,0.36,1); }
.ed-feat:hover .ed-pic img { transform: scale(1.04); }
.ed-pic.ed-noimg::after {
    content: '\f1ea'; /* fa newspaper */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 54px; color: rgba(255,255,255,0.35);
}
.ed-tag {
    position: absolute; top: 16px; left: 16px;
    background: #15224a; color: #fbf7ee;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 2px;
}
.ed-kicker {
    margin: 22px 0 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: #b8842a;
}
.ed-feat-title {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.04; letter-spacing: -0.01em;
    color: #1c2540;
}
.ed-feat-ex {
    margin: 0 0 22px;
    font-size: 18.5px; line-height: 1.8; color: #4a4639;   /* bigger, roomier description */
    max-width: 60ch;
}

/* read-more — understated editorial link-button */
.ed-readmore {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #15224a; background: none; border: none; cursor: pointer;
    padding: 0 0 3px; border-bottom: 1px solid #b8842a;
    transition: color 0.2s ease, gap 0.2s ease;
}
.ed-readmore i { color: #b8842a; transition: transform 0.2s ease; }
.ed-readmore:hover { color: #b8842a; }
.ed-readmore:hover i { transform: translateX(4px); }

/* ---- List (the rest) ---- */
.ed-list { display: flex; flex-direction: column; }
.ed-li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px; align-items: start;
    width: 100%; text-align: left;
    padding: 22px 0;
    background: none; border: none; border-top: 1px solid rgba(28,37,64,0.16);
    cursor: pointer; font-family: inherit;
    transition: background 0.2s ease;
}
/* the active story is pulled out of the list (display:grid would beat [hidden]) */
.ed-li[hidden] { display: none; }
/* first VISIBLE row loses its top rule via JS class (DOM order may change on swap) */
.ed-list .ed-li:first-child { border-top: none; padding-top: 0; }
.ed-li.ed-firstvis { border-top: none; padding-top: 0; }
.ed-li .ed-no {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 32px; line-height: 1; color: #b8842a;
}
.ed-lk {
    display: block; margin-bottom: 7px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #9a9486;
}
.ed-li-title {
    display: block; margin-bottom: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600; font-size: 24px; line-height: 1.12; color: #1c2540;
    transition: color 0.2s ease;
}
.ed-li:hover .ed-li-title { color: #b8842a; }
.ed-li-ex {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13.5px; line-height: 1.55; color: #6f6a5e;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
    .ed-spread { grid-template-columns: 1fr; gap: 40px; }
    .ed-feat-ex { max-width: none; }
}
@media (max-width: 560px) {
    .ed-masthead { margin-bottom: 32px; }
    .ed-li { grid-template-columns: 40px 1fr; gap: 14px; }
    .ed-li .ed-no { font-size: 26px; }
    .ed-li-title { font-size: 21px; }
}

/* ---- News article modal ---- */
#newsModal {
    position: fixed; inset: 0; z-index: 10000;
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(6, 11, 28, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
#newsModal.open { display: flex; animation: nmFade 0.3s ease; }
@keyframes nmFade { from { opacity: 0; } to { opacity: 1; } }
.nm-card {
    position: relative;
    width: min(640px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: #fbf7ee;
    border-radius: 20px;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
    animation: nmRise 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
@keyframes nmRise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.nm-hero { position: relative; height: 260px; overflow: hidden; border-radius: 20px 20px 0 0; }
.nm-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,34,0.7), transparent 55%); }
.nm-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: rgba(255,253,248,0.94); color: #b8842a;
    border: 1px solid rgba(184,132,42,0.35);
    padding: 6px 14px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.nm-close {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,0.92); color: #15224a;
    font-size: 17px; line-height: 1; display: grid; place-items: center;
    transition: background 0.2s ease, transform 0.3s ease;
}
.nm-close:hover { background: #fff; transform: rotate(90deg); }
.nm-body { padding: 28px 32px 34px; }
.nm-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 14px; font-size: 12px; color: #8a8f9e;
}
.nm-cat { color: #b8842a; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; }
.nm-date i { color: #e8b24a; margin-right: 6px; }
.nm-title {
    font-family: 'Playfair Display', serif; font-weight: 800;
    color: #15224a; font-size: clamp(24px, 4vw, 32px);
    line-height: 1.2; margin-bottom: 16px;
}
.nm-text { color: #4a5064; line-height: 1.85; font-size: 15.5px; white-space: pre-line; }

@media (max-width: 560px) {
    .nm-hero { height: 200px; }
    .nm-body { padding: 22px 22px 28px; }
}

/* =====================================================================
   AURORA NEWSLETTER — "Листи з дороги" — appended override (delete to revert)
   Replaces the flat royal-blue band with a deep midnight-navy aurora panel
   (gold + blue northern-lights glows, cartographic contour texture, a
   luminous gold horizon, a frosted inline form + staggered scroll reveal).
   ===================================================================== */
.newsletter-section {
    position: relative;
    overflow: hidden;
    padding: 112px 0 120px;
    color: #fff;
    text-align: center;
    background:
        /* luminous gold horizon hairline at the very top */
        linear-gradient(rgba(232,178,74,.45), rgba(232,178,74,.45)) top/100% 1px no-repeat,
        /* gold aurora glow (bottom-right) */
        radial-gradient(120% 80% at 86% 112%, rgba(232,178,74,.16), transparent 55%),
        /* blue aurora glow (top-left) */
        radial-gradient(95% 72% at 8% -12%, rgba(60,110,235,.30), transparent 60%),
        /* deep navy base */
        linear-gradient(165deg, #0a1230 0%, #142149 55%, #0b1533 100%);
}

/* Cartographic contour texture — same family as the page hero */
.newsletter-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    opacity: .4; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.7'%3E%3Ccircle cx='560' cy='250' r='80'/%3E%3Ccircle cx='560' cy='250' r='160'/%3E%3Ccircle cx='560' cy='250' r='240'/%3E%3Ccircle cx='560' cy='250' r='320'/%3E%3Ccircle cx='120' cy='620' r='60'/%3E%3Ccircle cx='120' cy='620' r='130'/%3E%3Ccircle cx='120' cy='620' r='200'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 820px 820px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slowly drifting aurora sheen */
.newsletter-section::after {
    content: '';
    position: absolute; inset: -10% -8%; pointer-events: none;
    mix-blend-mode: screen;
    background:
        linear-gradient(115deg, transparent 32%, rgba(120,170,255,.10) 46%, transparent 60%),
        linear-gradient(115deg, transparent 56%, rgba(232,178,74,.10) 70%, transparent 86%);
    animation: nlAurora 17s ease-in-out infinite alternate;
}
@keyframes nlAurora { from { transform: translateX(-4%) skewX(-2deg); } to { transform: translateX(4%) skewX(2deg); } }

.newsletter-container { position: relative; z-index: 2; max-width: 660px; }

/* Eyebrow with flanking gold rules */
.nl-eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
    color: #e8b24a; margin-bottom: 22px;
}
.nl-eyebrow::before, .nl-eyebrow::after {
    content: ''; width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, #e8b24a);
}
.nl-eyebrow::after { background: linear-gradient(90deg, #e8b24a, transparent); }

.newsletter-container h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.1; letter-spacing: -.015em;
    color: #fff; margin-bottom: 18px;
    text-shadow: 0 2px 26px rgba(0,0,0,.35);
}
.newsletter-container h2 em { font-style: italic; font-weight: 500; color: #e8b24a; }

.newsletter-container p {
    color: #bcc8e8;
    font-size: clamp(15px, 2vw, 18px); line-height: 1.7;
    max-width: 520px; margin: 0 auto 38px;
}

/* Frosted "boarding pass" form — input + gold button in one pill */
.newsletter-form {
    display: flex; align-items: center; gap: 8px;
    max-width: 540px; margin: 0 auto;
    padding: 8px 8px 8px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(232,178,74,.32);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 55px -28px rgba(0,0,0,.75);
    transition: border-color .3s ease, box-shadow .3s ease;
}
.newsletter-form:focus-within {
    border-color: rgba(232,178,74,.7);
    box-shadow: 0 0 0 4px rgba(232,178,74,.14), 0 24px 55px -28px rgba(0,0,0,.75);
}
.newsletter-form input {
    flex: 1; min-width: 0;
    background: transparent; border: none; outline: none;
    color: #fff; caret-color: #e8b24a;
    font-family: 'Open Sans', sans-serif; font-size: 15px;
    padding: 12px 16px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form .btn {
    flex: none; border: none; cursor: pointer;
    padding: 13px 26px; border-radius: 999px;
    background: linear-gradient(135deg, #f5c869, #e8b24a 55%, #c9912f);
    color: #15224a; font-weight: 700; font-size: 14px;
    display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(232,178,74,.6);
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.newsletter-form .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(232,178,74,.78); filter: brightness(1.05); }
.newsletter-form .btn:active { transform: translateY(0); }

/* Staggered reveal (class toggled by IntersectionObserver in news.php) */
.newsletter-section.nl-anim .nl-eyebrow,
.newsletter-section.nl-anim .newsletter-container h2,
.newsletter-section.nl-anim .newsletter-container > p,
.newsletter-section.nl-anim .newsletter-form {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.newsletter-section.nl-anim.in .nl-eyebrow            { opacity: 1; transform: none; transition-delay: .05s; }
.newsletter-section.nl-anim.in .newsletter-container h2 { opacity: 1; transform: none; transition-delay: .18s; }
.newsletter-section.nl-anim.in .newsletter-container > p { opacity: 1; transform: none; transition-delay: .30s; }
.newsletter-section.nl-anim.in .newsletter-form       { opacity: 1; transform: none; transition-delay: .42s; }

/* Keep the pill a single row on tablets (base CSS stacks it at <=992px) */
@media (min-width: 561px) {
    .newsletter-form { flex-direction: row; align-items: center; }
}

/* Mobile — pill becomes a stacked rounded card */
@media (max-width: 560px) {
    .newsletter-section { padding: 84px 0 92px; }
    .newsletter-form { flex-direction: column; border-radius: 18px; padding: 12px; gap: 12px; }
    .newsletter-form input { width: 100%; text-align: center; padding: 14px; }
    .newsletter-form .btn { width: 100%; justify-content: center; padding: 15px; }
}
