/* Snoji news and guide pages */
.news-body {
    background: var(--bg-light);
}

.news-navbar {
    position: sticky;
}

.news-navbar .container {
    min-height: 72px;
}

.news-brand-link {
    color: inherit;
    text-decoration: none;
}

.news-lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    border: 1px solid rgba(74, 144, 226, 0.22);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.88rem;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.news-page,
.article-page {
    padding-top: 0;
    min-height: 100vh;
}

.news-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, #4A90E2 0%, #7B68EE 100%);
    color: #fff;
    padding: 6rem 0 4rem;
}

.news-kicker {
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.85rem;
    opacity: 0.9;
}

.news-hero h1 {
    font-size: 3rem;
    line-height: 1.18;
    margin-bottom: 1rem;
    max-width: 760px;
}

.news-hero p {
    font-size: 1.12rem;
    max-width: 720px;
    opacity: 0.92;
}

.news-list-section {
    padding: 3rem 0 5rem;
}

.news-section-block + .news-section-block {
    margin-top: 3rem;
}

.news-section-head {
    margin-bottom: 1.2rem;
}

.news-section-kicker {
    color: var(--primary-color);
    margin-bottom: 0.45rem;
}

.news-section-head h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.55rem;
}

.news-section-head p {
    color: var(--text-light);
    max-width: 760px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-section-empty {
    background: #fff;
    border: 1px dashed rgba(44, 62, 80, 0.16);
    border-radius: var(--border-radius);
    color: var(--text-light);
    padding: 1.35rem;
}

.news-card {
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 260px;
    padding: 1.35rem;
    text-decoration: none;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.news-card-hub {
    min-height: 220px;
}

.news-card-meta {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.news-card h2 {
    font-size: 1.32rem;
    line-height: 1.35;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.75;
}

.news-chip-row,
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.news-chip {
    background: rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.16);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.8rem;
    padding: 0.23rem 0.65rem;
}

.article-page {
    background: var(--bg-light);
    padding-bottom: 4rem;
}

.article-shell {
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    padding: 2.4rem;
}

.article-header {
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    margin-bottom: 1.6rem;
    padding-bottom: 1.4rem;
}

.article-meta {
    color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.94rem;
    font-weight: 700;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.article-header h1 {
    font-size: 2.35rem;
    line-height: 1.25;
    margin-bottom: 0.8rem;
}

.article-description {
    color: var(--text-light);
    font-size: 1.08rem;
}

.article-gallery {
    margin: 0 0 1.8rem;
}

.article-gallery-viewport {
    background: var(--bg-light);
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    min-height: 420px;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.article-gallery-slide {
    display: none;
    margin: 0;
    position: relative;
}

.article-gallery-slide.active {
    display: block;
}

.article-gallery-slide img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.article-gallery-slide figcaption {
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    color: var(--text-light);
    font-size: 0.92rem;
    min-height: 48px;
    padding: 0.8rem 1rem;
}

.article-gallery-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: 999px;
    box-shadow: var(--shadow);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: calc(50% - 24px);
    transform: translateY(-50%);
    transition: var(--transition);
    width: 44px;
    z-index: 2;
}

.article-gallery-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-gallery-arrow.prev {
    left: 1rem;
}

.article-gallery-arrow.next {
    right: 1rem;
}

.article-gallery-dots {
    align-items: center;
    bottom: 64px;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 2;
}

.article-gallery-dot {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: 999px;
    cursor: pointer;
    height: 10px;
    padding: 0;
    pointer-events: auto;
    transition: var(--transition);
    width: 10px;
}

.article-gallery-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 26px;
}

.article-body {
    color: var(--text-dark);
    font-size: 1.04rem;
    line-height: 1.85;
}

.article-body h2 {
    font-size: 1.48rem;
    line-height: 1.35;
    margin: 2rem 0 0.75rem;
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 1.4rem 0 0.55rem;
}

.article-body p,
.article-body ul {
    margin-bottom: 1rem;
}

.article-body ul {
    padding-left: 1.35rem;
}

.article-body a {
    color: var(--primary-color);
    font-weight: 700;
}

.article-tags {
    margin-top: 1.7rem;
}

.article-cta {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(123, 104, 238, 0.12));
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--border-radius);
    margin-top: 2rem;
    padding: 1.4rem;
}

.article-cta h2 {
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
}

.article-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .news-section-head h2 {
        font-size: 1.65rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .news-navbar .nav-links {
        display: flex;
        gap: 1rem;
    }

    .news-lang-switch {
        display: none;
    }

    .news-hero {
        padding: 4rem 0 3rem;
    }

    .news-hero h1 {
        font-size: 2.1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-shell {
        padding: 1.35rem;
    }

    .article-gallery-viewport {
        min-height: 270px;
    }

    .article-gallery-arrow {
        height: 38px;
        top: calc(50% - 22px);
        width: 38px;
    }

    .article-gallery-arrow.prev {
        left: 0.65rem;
    }

    .article-gallery-arrow.next {
        right: 0.65rem;
    }

    .article-gallery-dots {
        bottom: 58px;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }
}
