
/* =========================================================
   NEWSROOM - NEWS DETAIL PAGE
   Complete Responsive Stylesheet
   Bootstrap 5 Compatible
   ========================================================= */

/* ---------------------------------------------------------
   01. GLOBAL
--------------------------------------------------------- */

.article-page,
.article-page *,
.article-page *::before,
.article-page *::after {
    box-sizing: border-box;
}

.article-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #fff;
    color: #20242b;
    overflow-wrap: break-word;
}

.article-page img {
    max-width: 100%;
}

.article-page a {
    text-decoration: none;
}

.article-page .container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

/* ---------------------------------------------------------
   02. READING PROGRESS
--------------------------------------------------------- */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1055;
    height: 4px;
    background: #e9edf2;
}

.reading-progress-fill {
    width: 0;
    height: 100%;
    background: #e31b23;
    transition: width .1s linear;
}

/* ---------------------------------------------------------
   03. ARTICLE HEADER
--------------------------------------------------------- */

.article-header {
    display: block;
    width: 100%;
    padding: 28px 0 20px;
    background: #fff;
}

.article-header > .container {
    max-width: 1280px;
}

.article-header .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.article-header .row > .col-lg-8 {
    width: 100%;
    max-width: 850px;
    margin-left: 0 !important;
    padding-left: 12px;
    padding-right: 12px;
}

/* Category */

.article-category-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 11px;
    margin-bottom: 14px;
    border-radius: 4px;
    background: #e31b23;
    color: #fff !important;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: background .2s ease;
}

.article-category-badge:hover {
    background: #b9151c;
    color: #fff !important;
}

/* Title */

.article-title {
    margin: 0 0 15px;
    color: #17191d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
}

.article-subtitle {
    margin: 0 0 20px;
    color: #626975;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

/* ---------------------------------------------------------
   04. ARTICLE META
--------------------------------------------------------- */

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
    color: #777f8b;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.author-avatar-sm {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-link {
    color: #20242b;
    font-weight: 700;
    text-decoration: none;
}

.author-link:hover {
    color: #e31b23;
}

.meta-sep {
    color: #cbd0d7;
}

.reading-time,
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---------------------------------------------------------
   05. READING CONTROLS
--------------------------------------------------------- */

.reading-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-top: 15px;
    border-top: 1px solid #e8eaf0;
}

.reading-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #e0e4e9;
    border-radius: 6px;
    background: #f8f9fb;
    color: #505967;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.reading-ctrl-btn:hover {
    border-color: #e31b23;
    background: #fff3f3;
    color: #e31b23;
}

/* ---------------------------------------------------------
   06. FEATURED IMAGE
--------------------------------------------------------- */

.article-featured-image {
    width: 100%;
    margin: 0 0 30px;
}

.article-featured-image > .container {
    max-width: 1280px;
}

.article-featured-image .row {
    display: flex;
    justify-content: flex-start;
}

.article-featured-image .col-lg-10 {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    padding-left: 12px;
    padding-right: 12px;
}

.article-featured-image figure {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f2f4;
}

.article-featured-image figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: cover;
    object-position: center;
}

.article-image-caption {
    padding: 10px 12px;
    margin: 0;
    border: 1px solid #e9eaed;
    border-top: 0;
    background: #fafafa;
    color: #727985;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   07. ARTICLE BODY LAYOUT
--------------------------------------------------------- */

.article-body-wrapper {
    display: block;
    width: 100%;
    clear: both;
}

.article-body-wrapper > .container {
    max-width: 1280px;
}

/*
   Bootstrap grid compatibility.
   Main article and sidebar must be direct children
   of the same .row.
*/

.article-body-wrapper > .container > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    column-gap: 32px;
    row-gap: 30px;
    width: 100%;
    margin: 0 !important;
}

/* Main column */

.article-body-wrapper > .container > .row > .col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    grid-column: 1;
}

/* Sidebar column */

.article-body-wrapper > .container > .row > .col-lg-4,
.article-body-wrapper > .container > .row > aside.col-lg-4 {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    grid-column: 2;
    grid-row: 1;
}

/* ---------------------------------------------------------
   08. ARTICLE CONTENT
--------------------------------------------------------- */

.article-content {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #30343b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-content.font-size-sm {
    font-size: 16px;
}

.article-content.font-size-lg {
    font-size: 20px;
}

.article-content.font-size-xl {
    font-size: 22px;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content h2 {
    margin: 34px 0 16px;
    color: #1c2026;
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h3 {
    margin: 28px 0 13px;
    color: #242831;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
}

.article-content h4 {
    margin: 22px 0 12px;
    font-size: 19px;
    font-weight: 700;
}

.article-content ul,
.article-content ol {
    padding-left: 26px;
    margin: 0 0 24px;
}

.article-content li {
    margin-bottom: 9px;
}

.article-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid #e31b23;
    border-radius: 0 7px 7px 0;
    background: #fff4f4;
    color: #444a53;
    font-size: 19px;
    font-style: italic;
    line-height: 1.7;
}

.article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 7px;
}

.article-content iframe,
.article-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 22px 0;
    border: 0;
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid #e0e3e8;
}

.article-content a {
    color: #d91d25;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #a70e16;
}

/* Lead */

.article-lead {
    padding-bottom: 20px;
    margin-bottom: 25px !important;
    border-bottom: 1px solid #e7e9ed;
    color: #4b515b;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.65;
}

/* ---------------------------------------------------------
   09. TAGS
--------------------------------------------------------- */

.article-tags {
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid #e7e9ed;
    border-bottom: 1px solid #e7e9ed;
    color: #333842;
}

.article-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 5px 4px 0;
    border: 1px solid #e6e8ec;
    border-radius: 30px;
    background: #f6f7f9;
    color: #4e5662;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s ease;
}

.article-tag:hover {
    border-color: #e31b23;
    background: #e31b23;
    color: #fff;
}

/* ---------------------------------------------------------
   10. SHARE BUTTONS
--------------------------------------------------------- */

.article-share-section {
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #e8eaf0;
    border-radius: 9px;
    background: #fafbfc;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #e0e4e9;
    border-radius: 6px;
    background: #fff;
    color: #343a44;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.share-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-twitter {
    color: #111;
    border-color: #111;
}

.share-twitter:hover {
    background: #111;
    color: #fff;
}

.share-whatsapp {
    color: #20b95b;
    border-color: #20b95b;
}

.share-whatsapp:hover {
    background: #20b95b;
    color: #fff;
}

.share-linkedin {
    color: #0a66c2;
    border-color: #0a66c2;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.share-copy:hover {
    border-color: #e31b23;
    background: #fff3f3;
    color: #e31b23;
}

/* ---------------------------------------------------------
   11. AUTHOR BIO
--------------------------------------------------------- */

.author-bio-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    margin: 30px 0;
    border: 1px solid #e7e9ed;
    border-radius: 9px;
    background: #f8f9fb;
}

.author-bio-photo,
.author-bio-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-photo-placeholder {
    background: #173b72;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.author-bio-text {
    min-width: 0;
    color: #525965;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   12. SIDEBAR
--------------------------------------------------------- */

.article-sidebar {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
    position: relative;
    top: auto;
}

.article-sidebar > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 22px;
}

/* Disable sticky behavior that can cause overlap */

.article-sidebar.sticky-top {
    position: static !important;
    top: auto !important;
}

/* Share card */

.sidebar-share-card {
    width: 100%;
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.sidebar-share-card h6 {
    margin-bottom: 14px;
    color: #22262d;
    font-size: 15px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   13. SIDEBAR RELATED NEWS
--------------------------------------------------------- */

.article-related-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eceef1;
    text-decoration: none;
}

.article-related-mini img {
    display: block;
    width: 105px;
    min-width: 105px;
    height: 72px;
    flex: 0 0 105px;
    border-radius: 5px;
    object-fit: cover;
}

.article-related-mini > div {
    flex: 1;
    min-width: 0;
}

.article-related-mini h4 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #252a32;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-related-mini:hover h4 {
    color: #e31b23;
}

/* ---------------------------------------------------------
   14. RELATED ARTICLES
--------------------------------------------------------- */

.related-articles {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 26px;
    margin: 40px 0 30px;
    border-top: 1px solid #e6e8ed;
    clear: both;
    position: relative;
    isolation: isolate;
}

.related-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.related-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #e31b23;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.related-section-title {
    margin: 0;
    color: #17191d;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
}

.related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #e31b23;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.related-view-all:hover {
    color: #ae1018;
}

/* Related grid */

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

/* Related card */

.related-card {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e7e9ed;
    border-radius: 9px;
    background: #fff;
    color: #20242b;
    transition: transform .25s ease, box-shadow .25s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

.related-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

/* Image */

.related-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 185px;
    flex: 0 0 185px;
    overflow: hidden;
    background: #f0f1f3;
}

.related-card-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 !important;
    border: 0;
    border-radius: 0 !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.04);
}

/* Category */

.related-category {
    position: absolute;
    bottom: 11px;
    left: 11px;
    max-width: calc(100% - 22px);
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 4px;
    background: #e31b23;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Placeholder */

.related-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ba1aa;
    font-size: 34px;
}

/* Card body */

.related-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 15px;
}

.related-card-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #22262d;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card:hover .related-card-title {
    color: #e31b23;
}

.related-card-summary {
    display: -webkit-box;
    margin: 0 0 13px;
    overflow: hidden;
    color: #727985;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Meta */

.related-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 11px;
    margin-top: auto;
    border-top: 1px solid #eff0f2;
    color: #858b95;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.related-card-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.related-read-more {
    color: #e31b23;
    font-weight: 700;
}

/* ---------------------------------------------------------
   15. COMMENTS
--------------------------------------------------------- */

.comments-section {
    display: block;
    width: 100%;
    margin: 35px 0;
    clear: both;
}

.comments-section .card {
    border: 1px solid #e5e8ed;
    border-radius: 9px;
}

/* ---------------------------------------------------------
   16. DARK MODE
--------------------------------------------------------- */

body.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .article-page,
body.dark-mode .article-header {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .article-title,
body.dark-mode .related-section-title,
body.dark-mode .related-card-title,
body.dark-mode .sidebar-share-card h6 {
    color: #f1f5f9;
}

body.dark-mode .article-content {
    color: #cbd5e1;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content h3 {
    color: #f1f5f9;
}

body.dark-mode .related-card,
body.dark-mode .sidebar-share-card,
body.dark-mode .author-bio-box {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .related-card-meta,
body.dark-mode .related-card-summary,
body.dark-mode .article-subtitle {
    color: #aab5c5;
}

body.dark-mode .article-lead {
    color: #d1d9e5;
    border-color: #334155;
}

body.dark-mode .article-content blockquote {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark-mode .related-card-meta {
    border-color: #334155;
}

/* ---------------------------------------------------------
   17. LARGE DESKTOP
--------------------------------------------------------- */

@media (min-width: 1400px) {
    .article-page .container {
        max-width: 1320px;
    }

    .article-body-wrapper > .container > .row {
        grid-template-columns: minmax(0, 1fr) 340px;
        column-gap: 40px;
    }

    .article-title {
        font-size: 48px;
    }
}

/* ---------------------------------------------------------
   18. TABLET
--------------------------------------------------------- */

@media (max-width: 991.98px) {

    .article-body-wrapper > .container > .row {
        display: flex !important;
        flex-direction: column;
        gap: 25px;
    }

    .article-body-wrapper > .container > .row > .col-lg-8,
    .article-body-wrapper > .container > .row > .col-lg-4,
    .article-body-wrapper > .container > .row > aside.col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .article-sidebar {
        margin-top: 15px;
    }

    .article-header .row > .col-lg-8 {
        max-width: 100%;
    }

    .article-featured-image .col-lg-10 {
        max-width: 100%;
    }

    .article-title {
        font-size: 36px;
    }

    .article-featured-image figure img {
        max-height: 460px;
    }
}

/* ---------------------------------------------------------
   19. MOBILE
--------------------------------------------------------- */

@media (max-width: 767.98px) {

    .article-header {
        padding: 20px 0 14px;
    }

    .article-header > .container,
    .article-featured-image > .container,
    .article-body-wrapper > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-title {
        font-size: 29px;
        line-height: 1.23;
        letter-spacing: -.4px;
    }

    .article-subtitle {
        font-size: 16px;
        line-height: 1.55;
    }

    .article-meta {
        gap: 7px;
        font-size: 11px;
    }

    .article-featured-image {
        margin-bottom: 22px;
    }

    .article-featured-image figure img {
        max-height: 340px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .article-content h2 {
        font-size: 25px;
    }

    .article-content h3 {
        font-size: 21px;
    }

    .article-lead {
        font-size: 18px;
        line-height: 1.65;
    }

    .article-content blockquote {
        padding: 16px;
        font-size: 17px;
    }

    .article-share-section {
        padding: 15px;
    }

    .share-btn {
        min-width: 38px;
        padding: 9px 11px;
    }

    .author-bio-box {
        gap: 13px;
        padding: 16px;
    }

    .author-bio-photo,
    .author-bio-photo-placeholder {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .related-articles {
        padding-top: 20px;
        margin-top: 30px;
    }

    .related-section-title {
        font-size: 23px;
    }

    .related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .related-card-link {
        flex-direction: row;
        min-height: 125px;
    }

    .related-card-image {
        width: 38%;
        min-width: 38%;
        height: auto;
        min-height: 125px;
        flex: 0 0 38%;
    }

    .related-card-body {
        padding: 12px;
    }

    .related-card-title {
        min-height: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    .related-card-summary {
        font-size: 11px;
    }

    .related-read-more {
        display: none !important;
    }
}

/* ---------------------------------------------------------
   20. SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 420px) {

    .article-title {
        font-size: 26px;
    }

    .article-meta {
        font-size: 10px;
    }

    .related-section-title {
        font-size: 21px;
    }

    .related-card-link {
        min-height: 110px;
    }

    .related-card-image {
        min-height: 110px;
    }

    .related-card-body {
        padding: 10px;
    }

    .related-card-title {
        font-size: 13px;
    }

    .related-card-meta {
        font-size: 9px;
    }
}

/* ==========================================================
   NEWSTODAY — PREMIUM EDITORIAL UI UPGRADE
   Append this stylesheet at the END of public-article.css
   ========================================================== */

/* 01. PREMIUM DESIGN TOKENS
---------------------------------------------------------- */

:root {
    --nt-primary: #e31b23;
    --nt-primary-dark: #b9141b;
    --nt-ink: #17191d;
    --nt-muted: #727985;
    --nt-border: #e9ebef;
    --nt-surface: #ffffff;
    --nt-soft: #f7f8fa;
    --nt-radius: 12px;
    --nt-shadow-sm: 0 3px 14px rgba(20, 25, 35, .045);
    --nt-shadow-md: 0 12px 35px rgba(20, 25, 35, .09);
    --nt-transition: .3s cubic-bezier(.2, .7, .2, 1);
}

/* 02. SMOOTH PAGE EXPERIENCE
---------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

.article-page {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.article-page ::selection {
    background: rgba(227, 27, 35, .16);
    color: var(--nt-ink);
}

/* 03. PREMIUM ARTICLE HEADER
---------------------------------------------------------- */

.article-header {
    padding-top: 35px;
    padding-bottom: 25px;
}

.article-title {
    max-width: 950px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.13;
    letter-spacing: -1.5px;
    font-weight: 800;
    color: #15171b;
}

.article-subtitle {
    max-width: 850px;
    font-size: 19px;
    line-height: 1.75;
    color: #69717d;
}

.article-category-badge {
    padding: 7px 13px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ef2630, #c9111b);
    box-shadow: 0 4px 12px rgba(227, 27, 35, .18);
    letter-spacing: .8px;
}

.article-category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(227, 27, 35, .23);
}

/* 04. AUTHOR META — CLEAN EDITORIAL STYLE
---------------------------------------------------------- */

.article-meta {
    padding: 15px 0;
    border-top: 1px solid var(--nt-border);
    border-bottom: 1px solid var(--nt-border);
    gap: 12px;
}

.author-avatar-sm {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--nt-border);
}

.author-link {
    transition: color var(--nt-transition);
}

.author-link:hover {
    color: var(--nt-primary);
}

/* 05. READING TOOLBAR
---------------------------------------------------------- */

.reading-controls {
    gap: 10px;
    border-top: 0;
    padding-top: 15px;
}

.reading-ctrl-btn {
    min-width: 39px;
    min-height: 38px;
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--nt-shadow-sm);
    transition: all var(--nt-transition);
}

.reading-ctrl-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--nt-shadow-md);
}

/* 06. FEATURED IMAGE — PREMIUM FRAME
---------------------------------------------------------- */

.article-featured-image figure {
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(15, 20, 30, .10);
    background: #f1f3f6;
}

.article-featured-image figure img {
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.article-featured-image figure:hover img {
    transform: scale(1.015);
}

.article-image-caption {
    padding: 12px 16px;
    font-size: 12px;
    background: #fafbfc;
}

/* 07. ARTICLE READING TYPOGRAPHY
---------------------------------------------------------- */

.article-content {
    font-size: 18px;
    line-height: 1.95;
    letter-spacing: .05px;
    color: #343941;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    position: relative;
    padding-bottom: 12px;
    margin-top: 45px;
    margin-bottom: 20px;
    font-size: 30px;
    letter-spacing: -.5px;
}

.article-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 5px;
    background: var(--nt-primary);
}

.article-content h3 {
    margin-top: 35px;
    font-size: 24px;
}

.article-content blockquote {
    position: relative;
    padding: 26px 30px;
    border: 0;
    border-left: 4px solid var(--nt-primary);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(110deg, #fff4f4, #fffafa);
    box-shadow: var(--nt-shadow-sm);
    font-size: 20px;
    line-height: 1.75;
}

.article-content blockquote::before {
    content: "“";
    position: absolute;
    top: -8px;
    right: 18px;
    color: rgba(227, 27, 35, .12);
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    pointer-events: none;
}

/* 08. SIDEBAR WIDGETS
---------------------------------------------------------- */

.article-sidebar > * {
    margin-bottom: 25px;
}

.article-sidebar .sidebar-share-card {
    padding: 20px;
    border: 1px solid var(--nt-border);
    border-radius: 12px;
    box-shadow: var(--nt-shadow-sm);
    transition: box-shadow var(--nt-transition);
}

.article-sidebar .sidebar-share-card:hover {
    box-shadow: var(--nt-shadow-md);
}

.article-sidebar h3,
.article-sidebar h4,
.article-sidebar h5 {
    letter-spacing: -.25px;
}

/* 09. SIDEBAR RELATED NEWS
---------------------------------------------------------- */

.article-related-mini {
    padding: 14px 0;
    gap: 14px;
    border-bottom: 1px solid #eff0f3;
    transition: background var(--nt-transition);
}

.article-related-mini img {
    width: 112px;
    min-width: 112px;
    height: 78px;
    flex-basis: 112px;
    border-radius: 8px;
    transition: transform var(--nt-transition);
}

.article-related-mini:hover img {
    transform: scale(1.04);
}

.article-related-mini h4 {
    font-size: 13px;
    line-height: 1.55;
    transition: color var(--nt-transition);
}

/* 10. RELATED ARTICLES — FEATURE CARD DESIGN
---------------------------------------------------------- */

.related-articles {
    padding-top: 35px;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
}

.related-section-header {
    position: relative;
    margin-bottom: 24px;
}

.related-section-title {
    font-size: 30px;
    letter-spacing: -.8px;
}

.related-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
}

.related-view-all {
    padding: 9px 14px;
    border: 1px solid rgba(227, 27, 35, .18);
    border-radius: 7px;
    background: #fff7f7;
    transition: all var(--nt-transition);
}

.related-view-all:hover {
    background: var(--nt-primary);
    color: #fff;
}

/* Grid */

.related-grid {
    gap: 20px;
}

/* Card */

.related-card {
    position: relative;
    border: 1px solid #e9ebef;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(20, 25, 35, .025);
    transition:
        transform .35s cubic-bezier(.2, .7, .2, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: #f0c4c6;
    box-shadow: 0 18px 38px rgba(20, 25, 35, .10);
}

.related-card-image {
    height: 205px;
    flex-basis: 205px;
    overflow: hidden;
    background: #eceef2;
}

.related-card-image img {
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.related-card:hover .related-card-image img {
    transform: scale(1.07);
}

.related-category {
    bottom: 13px;
    left: 13px;
    padding: 6px 10px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
    letter-spacing: .4px;
}

.related-card-body {
    padding: 19px;
}

.related-card-title {
    min-height: 48px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -.3px;
    transition: color var(--nt-transition);
}

.related-card-summary {
    font-size: 13px;
    line-height: 1.75;
    color: #727985;
}

.related-card-meta {
    padding-top: 14px;
    font-size: 11px;
}

/* 11. SHARE BUTTONS
---------------------------------------------------------- */

.article-share-section {
    padding: 23px;
    border: 1px solid #e9ebef;
    border-radius: 13px;
    background: linear-gradient(145deg, #fafbfc, #fff);
}

.share-btn {
    border-radius: 8px;
    transition: all var(--nt-transition);
}

.share-btn:active {
    transform: scale(.97);
}

/* 12. TAGS
---------------------------------------------------------- */

.article-tag {
    padding: 8px 14px;
    border-radius: 30px;
    background: #f7f8fa;
    transition: all var(--nt-transition);
}

.article-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(227, 27, 35, .15);
}

/* 13. AUTHOR BIO
---------------------------------------------------------- */

.author-bio-box {
    padding: 25px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f8f9fb, #fff);
    box-shadow: var(--nt-shadow-sm);
}

.author-bio-photo,
.author-bio-photo-placeholder {
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e9ebef;
}

/* 14. SUBTLE ENTRANCE ANIMATION
---------------------------------------------------------- */

@keyframes ntFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-header,
.article-featured-image,
.article-body-wrapper {
    animation: ntFadeUp .65s ease both;
}

.article-featured-image {
    animation-delay: .08s;
}

.article-body-wrapper {
    animation-delay: .14s;
}

/* 15. RESPONSIVE ENHANCEMENTS
---------------------------------------------------------- */

@media (max-width: 991.98px) {
    .article-title {
        font-size: 38px;
    }

    .related-grid {
        gap: 16px;
    }

    .related-card-image {
        height: 190px;
        flex-basis: 190px;
    }
}

@media (max-width: 767.98px) {
    .article-header {
        padding-top: 22px;
    }

    .article-title {
        font-size: 30px;
        letter-spacing: -.7px;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .article-content h2 {
        font-size: 25px;
        margin-top: 34px;
    }

    .article-content blockquote {
        padding: 20px;
        font-size: 17px;
    }

    .related-articles {
        margin-top: 35px;
        padding-top: 25px;
    }

    .related-section-title {
        font-size: 25px;
    }

    .related-grid {
        gap: 14px;
    }

    .related-card {
        border-radius: 11px;
    }

    .related-card-link {
        min-height: 130px;
    }

    .related-card-image {
        min-height: 130px;
        flex-basis: 38%;
    }

    .related-card-body {
        padding: 13px;
    }

    .related-card-title {
        font-size: 14px;
        line-height: 1.45;
    }

    .related-card-summary {
        font-size: 11px;
    }

    .article-share-section {
        padding: 16px;
    }
}

/* 16. ACCESSIBILITY
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .article-page *,
    .article-page *::before,
    .article-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================
   FIX: ARTICLE FEATURED IMAGE OVERFLOW
   ========================================== */

/* Main article container */
.article-page,
.article-main,
.article-body-wrapper,
.article-featured-image {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Featured image wrapper */
.article-featured-image {
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 0 24px !important;
    border-radius: 12px;
}

/* Figure reset */
.article-featured-image figure {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 12px;
}

/* Main image — most important fix */
.article-featured-image img,
.article-featured-image figure img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    min-width: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 12px;
}

/* Image caption */
.article-featured-image figcaption,
.article-image-caption {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Main content and sidebar layout */
.article-layout,
.article-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    align-items: start;
}

/* Prevent children from expanding grid */
.article-layout > *,
.article-content-layout > * {
    min-width: 0;
    max-width: 100%;
}

/* Sidebar images */
.article-sidebar img {
    max-width: 100%;
}

/* Prevent horizontal scrolling */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .article-layout,
    .article-content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-featured-image img,
    .article-featured-image figure img {
        max-height: 440px !important;
    }
}

@media (max-width: 576px) {
    .article-featured-image img,
    .article-featured-image figure img {
        max-height: 280px !important;
        border-radius: 9px;
    }

    .article-featured-image {
        margin-bottom: 18px !important;
    }
}

/* =====================================================
   CATEGORY NEWS PAGE — PREMIUM MOBILE DESIGN
===================================================== */

@media (max-width: 700px) {

    /* Main page */
    .category-page {
        padding: 18px 0 35px !important;
        background: #fff;
        overflow: hidden;
    }

    .category-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Breadcrumb */
    .category-page .breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 5px;
        margin-bottom: 18px !important;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
    }

    .category-page .breadcrumb-item {
        color: #777e8b;
    }

    .category-page .breadcrumb-item a {
        color: #e31e32;
        text-decoration: none;
        font-weight: 600;
    }

    .category-page .breadcrumb-item.active {
        color: #303440;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Category heading */
    .category-header {
        position: relative;
        padding: 0 0 17px !important;
        margin-bottom: 18px !important;
        border-bottom: 1px solid #eceef2 !important;
    }

    .category-header h1 {
        position: relative;
        font-size: 25px;
        line-height: 1.2;
        font-weight: 850;
        letter-spacing: -.7px;
        color: #171923;
        margin-bottom: 9px !important;
    }

    .category-header h1::before {
        content: "";
        display: inline-block;
        width: 5px;
        height: 24px;
        background: #e31e32;
        border-radius: 5px;
        margin-right: 9px;
        vertical-align: -3px;
    }

    .category-header p {
        color: #777e8b !important;
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
        max-width: 95%;
    }

    /* News grid */
    .category-page .row.g-4 {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .category-page .row.g-4 > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Individual news card */
    .category-page .news-card-home {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: center;
        gap: 13px;
        width: 100%;
        min-height: 0;
        height: auto !important;
        padding: 15px 0;
        border: 0;
        border-bottom: 1px solid #eceef2;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: hidden;
    }

    .category-page .news-card-home:first-child {
        padding-top: 0;
    }

    .category-page .news-card-image-link {
        display: block;
        width: 116px;
        height: 105px;
        min-height: 105px;
        border-radius: 10px;
        overflow: hidden;
        background: #f1f2f5;
    }

    .category-page .news-card-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease;
    }

    .category-page .news-card-home:active .news-card-image {
        transform: scale(1.04);
    }

    /* Card content */
    .category-page .news-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        height: auto !important;
        padding: 0;
        overflow: hidden;
    }

    .category-page .news-card-title {
        font-size: 14px;
        line-height: 1.42;
        font-weight: 750;
        letter-spacing: -.2px;
        margin: 0 0 7px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-page .news-card-title a {
        color: #171923;
        text-decoration: none;
    }

    .category-page .news-card-title a:active {
        color: #e31e32;
    }

    .category-page .news-card-summary {
        color: #777e8b !important;
        font-size: 11px !important;
        line-height: 1.5;
        margin: 0 0 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-page .news-card-meta {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 0 !important;
        color: #8a909b;
        font-size: 10px;
        font-weight: 500;
    }

    .category-page .news-card-meta::before {
        content: "◷";
        font-size: 13px;
    }

    /* Empty state */
    .category-page .card {
        border: 1px solid #eceef2;
        border-radius: 14px;
        box-shadow: none;
    }

    .category-page .card-body {
        padding: 35px 18px !important;
    }

    /* Pagination */
    .category-page .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .category-page .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 37px;
        min-height: 37px;
        padding: 7px 11px;
        border: 1px solid #e9eaf0;
        border-radius: 8px !important;
        color: #303440;
        font-size: 12px;
        font-weight: 650;
        background: #fff;
    }

    .category-page .page-item.active .page-link {
        background: #e31e32;
        border-color: #e31e32;
        color: #fff;
    }

    .category-page .page-link:focus {
        box-shadow: none;
    }
}

/* Small mobile phones */
@media (max-width: 380px) {

    .category-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .category-page .news-card-home {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
    }

    .category-page .news-card-image-link {
        width: 100px;
        height: 94px;
        min-height: 94px;
    }

    .category-page .news-card-title {
        font-size: 13px;
    }

    .category-page .news-card-summary {
        font-size: 10px !important;
    }

    .category-header h1 {
        font-size: 23px;
    }
}

/* =====================================================
   RELATED ARTICLES — MOBILE SWIPE CAROUSEL
===================================================== */

@media (max-width: 700px) {

    .related-articles {
        position: relative;
        margin-top: 32px !important;
        padding-top: 22px;
        border-top: 1px solid #eceef2;
        overflow: hidden;
    }

    /* Heading */
    .related-articles h3 {
        position: relative;
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 20px;
        line-height: 1.3;
        font-weight: 850;
        letter-spacing: -.55px;
        color: #171923;
        margin-bottom: 17px !important;
    }

    .related-articles h3::before {
        content: "";
        display: block;
        width: 5px;
        height: 22px;
        border-radius: 5px;
        background: #e31e32;
        flex-shrink: 0;
    }

    /* Horizontal scrolling container */
    .related-articles .row {
        display: flex;
        flex-wrap: nowrap;
        gap: 13px;
        width: calc(100% + 15px);
        margin: 0;
        padding: 0 15px 14px 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .related-articles .row::-webkit-scrollbar {
        display: none;
    }

    /* Each related article */
    .related-articles .row > [class*="col-"] {
        flex: 0 0 245px;
        width: 245px;
        max-width: 245px;
        padding: 0;
        margin: 0;
        scroll-snap-align: start;
    }

    /* Related card */
    .related-articles .related-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        gap: 0 !important;
        overflow: hidden;
        border: 1px solid #eceef2;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 4px 16px rgba(20,25,40,.055);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .related-articles .related-card:active {
        transform: scale(.98);
        box-shadow: 0 2px 8px rgba(20,25,40,.08);
    }

    /* Thumbnail */
    .related-articles .related-thumb {
        display: block;
        width: 100%;
        height: 145px;
        min-height: 145px;
        object-fit: cover;
        border-radius: 0;
        background: #f1f2f5;
    }

    /* Content area */
    .related-articles .related-card > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 13px 14px 15px;
        min-width: 0;
    }

    /* Headline */
    .related-articles .related-card h6 {
        font-size: 14px;
        line-height: 1.45;
        font-weight: 750;
        letter-spacing: -.2px;
        color: #171923 !important;
        margin: 0 0 10px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Category and date */
    .related-articles .related-card small {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: auto;
        color: #858b96 !important;
        font-size: 10px;
        line-height: 1.4;
    }

    .related-articles .related-card small span {
        color: #d0d2d8;
    }

    /* Remove default link styling */
    .related-articles .related-card:hover {
        text-decoration: none;
    }

    .related-articles .related-card:hover h6 {
        color: #e31e32 !important;
    }
}

/* Extra small phones */
@media (max-width: 380px) {

    .related-articles .row > [class*="col-"] {
        flex-basis: 220px;
        width: 220px;
        max-width: 220px;
    }

    .related-articles .related-thumb {
        height: 130px;
        min-height: 130px;
    }

    .related-articles .related-card h6 {
        font-size: 13px;
    }
}
/* ==========================================================
   END — PREMIUM EDITORIAL UI
   ========================================================== */
/* ---------------------------------------------------------
   END OF STYLESHEET
--------------------------------------------------------- */