:root {
    --accent: #0f62fe;
    --accent-soft: #e9f0ff;
    --text-main: #1a1f2b;
    --text-muted: #6b7280;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --border-soft: #e5e7eb;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --transition-base: 220ms ease;
}

/* Header */
.premium-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.header-top-fluid {
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-soft);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.premium-header.is-sticky {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.navbar-brand img {
    width: 148px;
    height: auto;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-main) !important;
    position: relative;
    font-weight: 600;
    padding: 0.8rem 0.9rem !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.2rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--accent);
    transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.navbar .dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.45rem;
    vertical-align: 0.1rem;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.navbar .dropdown-mega {
    position: relative !important;
}

.navbar .dropdown-mega > .dropdown-menu {
    width: min(960px, 92vw);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-top: 0.65rem;
    border-radius: 18px !important;
}

.navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Content cards */
.card,
.shadow,
.bg-body.rounded-3 {
    border-radius: var(--radius-md) !important;
}

.card {
    border: 1px solid var(--border-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.homepage-hero-wrap .news-block,
.news-block-c {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.news-block-a .card-grid .card {
    margin-bottom: 0;
}

.news-sidebar-tabs {
    border-bottom: 1px solid var(--border-soft);
}

.news-sidebar-tabs .nav-link {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.95rem;
}

.news-sidebar-tabs .nav-link.active {
    border-color: var(--border-soft) var(--border-soft) #fff;
    color: var(--accent) !important;
}

.news-block-b .card-header,
.news-block-b .card-body {
    padding-left: 1rem;
    padding-right: 1rem;
}

.news-block-c .card {
    height: 100%;
}

.city-card-thumb,
.gov-news-card .card-img-top {
    object-fit: cover;
}

/* Fade in sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 360ms ease, transform 360ms ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section:nth-child(2) {
    transition-delay: 70ms;
}

.fade-in-section:nth-child(3) {
    transition-delay: 130ms;
}

/* Dynamic government news filter */
.gov-filter-nav {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gov-search-wrap {
    min-width: 280px;
    max-width: 360px;
    width: 100%;
}

.gov-news-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gov-news-card.is-hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    display: none;
}

.gov-news-card .card-body {
    position: relative;
}

.gov-news-card-inner .badge {
    font-weight: 500;
}

.gov-thumb-placeholder {
    min-height: 160px;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

@media (max-width: 991.98px) {
    .premium-top-bar {
        display: none;
    }

    .navbar .dropdown-mega > .dropdown-menu {
        width: 100%;
        transform: none;
        left: 0;
        margin-top: 0.35rem;
    }

    .navbar-nav {
        align-items: flex-start !important;
        padding-top: 0.6rem;
        padding-bottom: 0.8rem;
    }

    .gov-search-wrap {
        max-width: 100%;
    }

    .news-block-c {
        padding: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card,
    .nav-link::after {
        transition: none;
    }
}

/* Typography for full story */
.article-content {
    font-size: 1.08rem;
    line-height: 1.72;
    color: var(--text-main);
    text-align: left;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    color: #111827;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content figure {
    margin: 0 0 1.25rem;
}

.article-content figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.article-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--accent);
    background: var(--surface-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content ol {
    list-style: decimal;
    margin: 1rem 0;
    padding: 0.95rem 1.2rem 0.95rem 2rem;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.article-content ol li {
    margin-bottom: 0.6rem;
}

.article-content ol li:last-child {
    margin-bottom: 0;
}

.article-content ul {
    margin: 1rem 0;
    padding: 0.95rem 1.2rem 0.95rem 2rem;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.article-content ul li {
    margin-bottom: 0.55rem;
}

.article-content ul li:last-child {
    margin-bottom: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.article-content th {
    background: var(--accent-soft);
    color: #1f2937;
    font-weight: 700;
}

.article-content tr:nth-child(even) td {
    background: #fcfdff;
}

.article-content .table-responsive {
    border-radius: var(--radius-md);
    overflow: auto;
}

.photo-disclaimer {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.map-placeholder {
    width: 100%;
    min-height: 300px;
    background: #eef2f7;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

/* Big footer */
.site-footer {
    margin-top: 2.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .nav-link {
    color: #cbd5e1;
    padding-left: 0;
}

.site-footer .nav-link:hover {
    color: #ffffff;
}

.site-footer .nav-link::after {
    display: none;
}

.top-chip {
    color: var(--text-main);
    font-weight: 500;
}

.lang-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.lang-link.active,
.lang-link:hover {
    color: var(--accent);
}

.search-btn-top {
    line-height: 1;
}

.main-card {
    min-height: 100%;
}

.main-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.main-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.sidebar-news-time {
    min-width: 48px;
    font-size: 0.85rem;
}

.sidebar-news-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-grid-card .card-body {
    position: relative;
}

.news-grid-card:hover {
    box-shadow: var(--shadow-soft);
}

.gov-filter-wrap .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gov-filter-wrap .nav-pills .nav-item {
    flex: 0 0 auto;
}

.card,
.news-grid-card,
.gov-news-card-inner {
    border: none !important;
}

@media (max-width: 991.98px) {
    .news-block-b {
        position: static !important;
    }
}

/* --- Tweaks requested April 2026 --- */
.premium-nav-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.premium-nav-grid > .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.premium-nav-link {
    font-size: 0.86rem;
    padding: 0.58rem 0.5rem !important;
    white-space: nowrap;
    text-transform: none;
}

.nav-link-special,
.nav-link-special-alt {
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.city-brand-meta {
    color: #1f2b40;
    min-width: 260px;
    padding: 0.38rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 65, 133, 0.2);
}

.city-brand-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2b40;
}

#cityFactsSlider {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    opacity: 1;
}

#cityFactsSlider .carousel-item a {
    color: #27456f;
    text-decoration: none;
}

#cityFactsSlider .carousel-item a:hover {
    color: #0e56b8;
    text-decoration: underline;
}

.main-card {
    min-height: 520px;
}

.main-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 15, 40, 0.8) 16%, rgba(5, 15, 40, 0.35) 42%, rgba(0, 0, 0, 0.08) 100%);
    z-index: 1;
}

.main-card-overlay {
    z-index: 2;
}

.main-card-overlay h2,
.main-card-overlay h2 a,
.main-card-overlay p {
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.main-news-secondary .news-grid-card .card-body {
    background: linear-gradient(180deg, #fff, #f7faff);
}

.news-sidebar-tabs .nav-link {
    color: #1f2937 !important;
    background: transparent !important;
    border: 1px solid transparent;
    border-bottom: 0;
}

.news-sidebar-tabs .nav-link.active {
    color: #334155 !important;
    background: #eef2f8 !important;
    border-color: #d7deea #d7deea #fff;
}

.kino-showcase {
    background: linear-gradient(130deg, #1739d7 0%, #5d2ce2 38%, #ff4f8b 68%, #ff8c2b 100%);
    border: none;
}

.kino-showcase h2,
.kino-showcase .btn,
.kino-showcase p {
    color: #fff !important;
}

.kino-showcase .card-film-premium {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gov-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 0.55rem;
}

.gov-links-grid a {
    font-size: 0.88rem;
    padding: 0.52rem 0.65rem;
    border-radius: 0.5rem;
    text-decoration: none;
    background: #f5f8ff;
    border: 1px solid #dfe7fb;
    color: #1e3a8a;
}

.gov-links-grid a:hover {
    background: #e9f0ff;
}

.footer-links a {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.footer-social-btn {
    gap: 0.42rem;
}

@media (max-width: 1200px) {
    .premium-nav-grid {
        flex-wrap: wrap;
    }

    .premium-nav-grid > .nav-item {
        flex: 1 1 calc(33.333% - 0.35rem);
    }
}
