:root {
    --public-page-bg: #f4f6fa;
    --public-surface: #fff;
    --public-text: #172033;
    --public-muted: #687386;
    --public-border: #e4e9f0;
    --public-shadow: 0 12px 32px rgba(20, 36, 58, .08);
    --public-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--public-page-bg);
    color: var(--public-text);
}

.section-page {
    padding-top: 12px;
}

.section-page .page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -.025em;
}

.page-breadcrumb,
.section-page nav[aria-label="breadcrumb"] {
    margin-bottom: 18px;
}

.post-content {
    min-width: 0;
}

.post-content .post-title,
.post-content > .title {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 750;
    line-height: 1.28;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.post-content .post-summary,
.post-content .post-summary h2 {
    color: var(--public-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.75;
}

.post-details-meta,
.post-content .post-meta {
    color: var(--public-muted);
}

.post-content .post-image,
.post-content .post-image-inner,
.post-content .post-image img,
.post-content .post-detail-slider,
.post-content .post-detail-slider-item {
    overflow: hidden;
    border-radius: 14px;
}

.post-content .post-image {
    margin: 22px 0;
}

.post-content .post-image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-content .post-text {
    max-width: 78ch;
    margin-inline: auto;
    color: var(--public-text);
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.post-content .post-text p {
    margin: 0 0 1.35em;
}

.post-content .post-text h2,
.post-content .post-text h3 {
    margin: 1.6em 0 .65em;
    font-weight: 700;
    line-height: 1.4;
}

.post-content .post-text blockquote {
    margin: 1.5em 0;
    padding: 1em 1.25em;
    border-inline-start: 4px solid var(--vr-theme-color, #c62838);
    border-radius: 0 12px 12px 0;
    background: var(--public-page-bg);
    color: var(--public-muted);
}

.post-content .post-text img,
.post-content .post-text iframe,
.post-content .post-text video {
    max-width: 100%;
    border-radius: 12px;
}

.post-content .post-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.post-content {
    padding: 24px;
    border: 1px solid var(--public-border);
    border-radius: 16px;
    background: var(--public-surface);
    box-shadow: 0 10px 28px rgba(20, 36, 58, .055);
}

.post-content .post-image {
    clear: both;
    margin: 18px 0 24px;
}

.post-content .post-summary {
    margin: 10px 0 18px;
}

.post-content .post-details-meta {
    flex-wrap: wrap;
    gap: 8px;
}

.post-content .post-share-buttons {
    flex-wrap: wrap;
}

.post-content .post-next-prev {
    gap: 16px;
}

.post-content .post-next-prev .title,
.post-content .post-next-prev .head-title {
    height: auto;
    overflow: visible;
    white-space: normal;
}

.post-content .post-tags {
    flex-wrap: wrap;
}

.post-content .post-tags ul {
    flex-wrap: wrap;
}

.post-content .btn-share a,
.post-content .btn-share .btn-inner a {
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.post-content .btn-share a:hover,
.post-content .btn-share a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 36, 58, .16);
}

.section-comments,
.section-related-posts {
    border-radius: var(--public-radius);
}

.section-comments .nav-tabs {
    gap: 8px;
    border-color: var(--public-border);
}

.section-comments .nav-link {
    border-radius: 10px 10px 0 0;
}

.post-item:not(.post-item-vr):not(.post-item-small) {
    overflow: hidden;
    border: 1px solid var(--public-border);
    border-radius: 15px;
    background: var(--public-surface);
    box-shadow: 0 5px 18px rgba(20, 36, 58, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-item:not(.post-item-vr):not(.post-item-small):hover {
    transform: translateY(-3px);
    box-shadow: var(--public-shadow);
}

.post-item:not(.post-item-vr):not(.post-item-small) .image,
.post-item:not(.post-item-vr):not(.post-item-small) .post-item-image {
    overflow: hidden;
    border-radius: 12px;
}

.post-item:not(.post-item-vr):not(.post-item-small) .image img,
.post-item:not(.post-item-vr):not(.post-item-small) .post-item-image img {
    transition: transform .35s ease;
}

.post-item:not(.post-item-vr):not(.post-item-small):hover .image img,
.post-item:not(.post-item-vr):not(.post-item-small):hover .post-item-image img {
    transform: scale(1.035);
}

.post-item .title,
.post-item .description {
    overflow-wrap: anywhere;
}

.post-item .title,
.post-item-mid .title,
.post-item-small .title,
.main-slider .caption .title,
.col-featured-right .caption .title,
.top-headlines .title,
.footer-posts .title,
.sidebar-widget .title {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.post-item .title a,
.post-item-mid .title a,
.post-item-small .title a,
.main-slider .caption .title,
.col-featured-right .caption .title a,
.top-headlines .title a,
.footer-posts .title a,
.sidebar-widget .title a {
    display: block;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip;
    white-space: normal !important;
}

.post-item .post-meta,
.post-item .description {
    color: var(--public-muted);
}

.post-meta,
.small-post-meta,
.post-details-meta .item-meta-comment {
    flex-wrap: wrap;
    row-gap: 4px;
}

.section .section-title .title,
.section .section-head .title {
    font-weight: 750;
    letter-spacing: -.02em;
}

.section-category > .container-xl,
body.news .latest-posts {
    padding: clamp(16px, 2.2vw, 28px);
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    background: var(--public-surface);
    box-shadow: 0 8px 26px rgba(20, 36, 58, .04);
}

body.news .section-category {
    margin-bottom: 28px;
}

body.news .section-category .section-title {
    margin-bottom: 22px;
}

body.news .section-featured {
    margin-top: 10px;
}

body.news .main-slider .main-slider-item .img-link::after,
body.news .section-featured .col-featured-right .item::after {
    height: 68%;
    background: linear-gradient(180deg, transparent 4%, rgba(7, 16, 29, .24) 40%, rgba(7, 16, 29, .88) 100%);
}

body.news .top-headlines .item {
    padding-block: 14px;
}

body.news .top-headlines .item .title a:hover {
    color: var(--vr-theme-color, #c62838);
}

body.news #footer {
    margin-top: 40px;
    border-top: 1px solid var(--public-border);
    background: var(--public-surface);
}

.reading-progress {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--vr-theme-color, #c62838);
    transition: transform .08s linear;
}

html[dir="rtl"] .reading-progress span {
    transform-origin: right center;
}

.live-tv-player[hidden] {
    display: none !important;
}

/* Modern public layout enhancements */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 3px solid rgba(214, 44, 58, .32);
    outline-offset: 3px;
}

.skip-to-content {
    position: fixed;
    z-index: 1200;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #172033;
    color: #fff !important;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-to-content:focus {
    transform: translateY(0);
}

#header {
    transition: box-shadow .24s ease, background-color .24s ease;
}

#header.is-scrolled {
    box-shadow: 0 8px 26px rgba(20, 36, 58, .12);
}

body.news #nav-top,
body.news #header,
#nav-top,
#header {
    backdrop-filter: blur(14px);
}

#nav-top,
.top-bar {
    position: relative;
    z-index: 1040;
}

#header {
    position: relative;
    z-index: 1030;
}

body.news .nav-main {
    background: linear-gradient(135deg, #14243a 0%, #0e1a2b 100%);
}

body.news .nav-main .navbar-nav .nav-link {
    position: relative;
    border-radius: 7px;
}

body.news .nav-main .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, .08);
}

body.news .newsticker-container {
    overflow: hidden;
}

body.news .newsticker-title {
    flex: 0 0 auto;
}

body.news .main-slider-container,
body.news .section-featured .col-featured-right .item,
body.news .top-headlines,
body.news .latest-posts,
.section-category > .container-xl {
    border: 1px solid rgba(228, 233, 240, .88);
}

body.news .main-slider-container {
    background: #0d1724;
}

body.news .main-slider .main-slider-item .caption,
body.news .section-featured .col-featured-right .item .caption {
    background: linear-gradient(180deg, transparent 0%, rgba(5, 12, 22, .18) 22%, rgba(5, 12, 22, .92) 100%);
}

body.news .top-headlines .items {
    scrollbar-width: thin;
    scrollbar-color: #bcc5d1 transparent;
}

body.news .section-featured .col-featured-right .item {
    height: auto !important;
    min-height: 217px;
}

.section .section-title .title,
.section .section-head .title,
body.news .top-headlines .top-headlines-title {
    position: relative;
}

.section .section-title .title::after,
.section .section-head .title::before,
body.news .top-headlines .top-headlines-title::after {
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--vr-theme-color, #c62838);
    content: "";
}

.section-category .post-item,
.latest-posts .post-item,
.post-item-small,
.sidebar-widget,
.post-content,
.section-comments,
.section-related-posts {
    border-radius: 14px;
}

.sidebar-widget,
.post-content,
.section-comments,
.section-related-posts {
    background: var(--public-surface);
}

.sidebar-sticky {
    position: sticky;
    z-index: 20;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 0 0 12px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--public-border) transparent;
}

.sidebar-sticky::-webkit-scrollbar {
    width: 5px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--public-border);
}

.sidebar-widget {
    padding: 18px;
    border: 1px solid var(--public-border);
    background: var(--public-surface);
    box-shadow: 0 8px 24px rgba(20, 36, 58, .055);
}

.sidebar-widget .widget-head {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--public-border);
}

.sidebar-widget .widget-head .title {
    margin-bottom: 10px;
    font-size: 17px;
}

.sidebar-widget .post-item-small {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--public-border);
}

.sidebar-widget .post-item-small:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-widget .tag-list {
    padding-bottom: 0;
}

.sidebar-widget .tag-list li a {
    border-radius: 999px;
}

.sidebar-widget .widget-follow .item {
    padding: 4px;
}

.sidebar-widget .widget-follow .item a {
    min-height: 44px;
    justify-content: center;
    border: 1px solid var(--public-border);
    border-radius: 9px;
    background: var(--public-page-bg);
}

.sidebar-widget-trending {
    border-top: 3px solid var(--vr-theme-color, #c62838);
}

.sidebar-widget-latest .widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-widget-latest .widget-head a {
    flex: 0 0 auto;
    margin-bottom: 10px;
    color: var(--vr-theme-color, #c62838);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-trending-list {
    counter-reset: trending;
}

.sidebar-trending-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--public-border);
    color: var(--public-text) !important;
    text-decoration: none !important;
}

.sidebar-trending-item:last-child {
    border-bottom: 0;
}

.sidebar-trending-rank {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--vr-theme-color, #c62838), #ed6a75);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-trending-copy {
    min-width: 0;
}

.sidebar-trending-copy strong {
    display: block;
    margin: 1px 0 5px;
    font-size: 13px;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.sidebar-trending-copy small {
    color: var(--public-muted);
    font-size: 11px;
}

.sidebar-widget-latest .post-item-small {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    width: 100%;
    align-items: start;
}

.sidebar-widget-latest .post-item-small .left,
.sidebar-widget-latest .post-item-small .left .image {
    width: 82px;
}

.sidebar-widget-latest .post-item-small .left .image {
    height: 58px;
    border-radius: 8px;
}

.sidebar-widget-latest .post-item-small .right {
    padding-left: 10px;
}

.sidebar-widget-latest .post-item-small .title {
    font-size: 13px;
    line-height: 1.35;
}

.sidebar-poll-widget {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--public-border);
    background: var(--public-surface);
}

.sidebar-poll-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 5px;
    border-radius: 0 0 8px 0;
    background: #ed2f3f;
}

.sidebar-poll-widget .widget-head {
    margin-bottom: 12px;
}

.sidebar-poll {
    margin: 0;
    padding: 0;
    border: 0;
}

.sidebar-poll .title {
    margin: 0 0 14px;
    color: var(--public-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.35;
}

.sidebar-poll-option {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: var(--public-page-bg);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.sidebar-poll-option:hover {
    border-color: #c8d3e5;
    transform: translateX(2px);
}

.sidebar-poll-option input {
    position: absolute;
    opacity: 0;
}

.sidebar-poll-radio {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #aab4c3;
    border-radius: 50%;
    background: #fff;
}

.sidebar-poll-option input:checked + .sidebar-poll-radio {
    border: 6px solid #ed2f3f;
}

.sidebar-poll-option:has(input:checked) {
    border-color: #ffc1c7;
    background: #e8eeff;
}

.sidebar-poll-label {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sidebar-poll-vote {
    width: 100%;
    margin-top: 10px;
    border-radius: 9px;
}

.sidebar-poll-results {
    display: block;
    margin: 10px auto 0;
    color: #ed2f3f !important;
    font-weight: 700;
}

.sidebar-poll-total {
    margin: 0 0 12px;
    color: #ed2f3f;
    font-size: 13px;
}

.sidebar-poll-total strong {
    font-size: 16px;
}

.sidebar-poll-result-row {
    margin-bottom: 12px;
}

.sidebar-poll-result-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
}

.sidebar-poll-result-row .progress {
    height: 10px;
    border-radius: 999px;
    background: #edf1f7;
    box-shadow: none;
}

.sidebar-poll-result-row .progress-bar {
    border-radius: 999px;
    background: #ed2f3f;
}

.post-item .title a,
.top-headlines .title a,
.footer-posts .title a {
    transition: color .18s ease;
}

.post-item .title a:hover,
.top-headlines .title a:hover,
.footer-posts .title a:hover {
    color: var(--vr-theme-color, #c62838) !important;
}

.scrollup {
    display: grid !important;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #172033 !important;
    box-shadow: 0 8px 22px rgba(20, 36, 58, .24);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.scrollup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scrollup:hover,
.scrollup:focus-visible {
    background: var(--vr-theme-color, #c62838) !important;
}

#footer {
    background: linear-gradient(180deg, var(--public-surface), #eef2f7);
}

#footer .footer-inner {
    border-top: 3px solid var(--vr-theme-color, #c62838);
}

body.dark-mode #footer,
[data-theme="dark"] #footer {
    background: linear-gradient(180deg, var(--public-surface), #10151d);
}

@media (min-width: 992px) {
    body.news #header {
        position: sticky;
        z-index: 1000;
        top: -42px;
    }

    body.news #header.is-scrolled {
        top: 0;
    }

    body.news #nav-top {
        transition: height .2s ease, opacity .2s ease;
    }

    body.news #header.is-scrolled #nav-top {
        height: 0;
        overflow: hidden;
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .sidebar-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        margin-top: 24px;
    }

    .section-page {
        padding-top: 6px;
    }

    .section-category > .container-xl,
    body.news .latest-posts {
        padding: 14px;
        border-radius: 12px;
    }

    .post-content {
        border: 0;
        box-shadow: none;
    }

    body.news .nav-main {
        min-height: 58px;
    }

    body.news .nav-main .navbar-brand .logo {
        max-width: 142px;
        height: 40px;
    }

    .scrollup {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 767.98px) {
    .section-page {
        padding-top: 4px;
    }

    .post-content .post-title,
    .post-content > .title {
        font-size: clamp(1.65rem, 7vw, 2.3rem);
    }

    .post-content .post-text {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .section-category > .container-xl,
    body.news .latest-posts {
        padding: 16px;
        border-radius: 14px;
    }

    body.news .section-featured .main-slider-container,
    body.news .section-featured .main-slider .main-slider-item {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
