/* =====================================================================
   News Details Page Styles
   Re-themed to the navy/gold design system (matches news-index.css).
   ===================================================================== */

/* =====================================================================
   Page container fallback: constrain + center the content like the
   rest of the site (uses the same --wrap token as the site's .wrap
   class), scoped to this page only, in case Bootstrap's own .container
   CSS isn't loaded/working here.
   ===================================================================== */
.blog-details-wrap > .container {
    max-width: var(--wrap, 1240px);
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
    width: 100%;
}

/* =====================================================================
   Two-column layout fallback (article + sidebar)
   Bootstrap's row/col-xl classes aren't reliably available on this page,
   so provide an equivalent CSS Grid layout directly.
   ===================================================================== */
.blog-details-wrap .row.gx-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 1200px) {
    .blog-details-wrap .row.gx-5 {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.blog-details-wrap .row.gx-5 > [class*="col-"] {
    min-width: 0;
}

/* Sidebar becomes sticky alongside the article on wide screens */
@media (min-width: 1200px) {
    .blog-details-wrap .row.gx-5 > .col-xl-4 {
        position: sticky;
        top: 24px;
    }
}

/* ===== News Article Card ===== */
.news-article-card {
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: var(--radius, 10px);
    box-shadow: 0 2px 20px rgba(20, 36, 63, 0.06);
    overflow: hidden;
    margin-bottom: 30px;
}

.theme-dark .news-article-card {
    background: var(--navy-800, #14243F);
    border-color: var(--navy-600, #24395C);
}

/* Hero Image */
.news-hero-img {
    position: relative;
    overflow: hidden;
    max-height: 480px;
}

    .news-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    .news-hero-img:hover img {
        transform: scale(1.03);
    }

.news-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 20px;
    background: linear-gradient(transparent, rgba(14, 27, 49, 0.85));
}

.news-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.news-badge-source {
    background: var(--navy-800, #14243F);
    color: var(--ink-050, #F4F7FB);
    border: 1px solid var(--gold-500, #D3A84C);
}

.news-badge-rss {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-badge-featured {
    background: var(--gold-500, #D3A84C);
    color: var(--navy-900, #0E1B31);
}

/* Article Body */
.news-article-body {
    padding: 30px;
}

/* Meta Strip */
.news-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #EDF1F7;
}

.theme-dark .news-meta-strip {
    border-bottom-color: var(--navy-600, #24395C);
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5C6E8A;
}

.theme-dark .news-meta-item {
    color: var(--ink-400, #93A4BE);
}

.news-meta-item i {
    color: var(--gold-500, #D3A84C);
    font-size: 16px;
}

.news-meta-item a {
    color: var(--navy-800, #14243F);
    font-weight: 600;
}

.theme-dark .news-meta-item a {
    color: var(--ink-050, #F4F7FB);
}

.news-meta-item a:hover {
    color: var(--gold-500, #D3A84C);
    text-decoration: underline;
}

.news-meta-sep {
    color: #ccc;
    margin: 0 2px;
}

/* Title */
.news-article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy-800, #14243F);
    margin-bottom: 22px;
}

.theme-dark .news-article-title {
    color: var(--ink-050, #F4F7FB);
}

/* ===== Action Bar ===== */
.news-action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* Listen Panel */
.news-listen-panel {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, var(--navy-900, #0E1B31) 0%, var(--navy-800, #14243F) 100%);
    border: 1px solid var(--navy-600, #24395C);
    border-radius: var(--radius-sm, 6px);
    padding: 14px 18px;
}

.news-listen-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-400, #E2BC66);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

    .news-listen-header i {
        font-size: 18px;
    }

.news-listen-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-listen-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.news-listen-play {
    background: var(--gold-500, #D3A84C);
    color: var(--navy-900, #0E1B31);
    box-shadow: 0 3px 12px rgba(211, 168, 76, 0.35);
}

    .news-listen-play:hover {
        background: var(--gold-400, #E2BC66);
        transform: scale(1.1);
        box-shadow: 0 4px 18px rgba(211, 168, 76, 0.45);
    }

.news-listen-stop {
    background: #C0605C;
    color: #fff;
}

    .news-listen-stop:hover {
        background: #A8433F;
    }

.news-listen-select {
    padding: 5px 28px 5px 10px;
    border: 1px solid var(--navy-600, #24395C);
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    color: var(--ink-050, #F4F7FB);
    background-color: var(--navy-700, #1B2E4E);
    max-width: 180px;
    cursor: pointer;
}

    .news-listen-select option {
        color: #14243F;
        background: #fff;
    }

.news-listen-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Audio Wave Animation */
.news-listen-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    padding: 0 6px;
}

    .news-listen-wave span {
        display: block;
        width: 4px;
        background: var(--gold-500, #D3A84C);
        border-radius: 2px;
        animation: waveAnim 0.8s ease-in-out infinite;
    }

        .news-listen-wave span:nth-child(1) {
            height: 10px;
            animation-delay: 0s;
        }

        .news-listen-wave span:nth-child(2) {
            height: 20px;
            animation-delay: 0.1s;
        }

        .news-listen-wave span:nth-child(3) {
            height: 28px;
            animation-delay: 0.2s;
        }

        .news-listen-wave span:nth-child(4) {
            height: 16px;
            animation-delay: 0.3s;
        }

        .news-listen-wave span:nth-child(5) {
            height: 12px;
            animation-delay: 0.4s;
        }

@keyframes waveAnim {
    0%, 100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

.news-listen-progress {
    height: 3px;
    background: var(--navy-600, #24395C);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.news-listen-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-500, #D3A84C);
    border-radius: 3px;
    transition: width 0.3s;
}

    .news-listen-progress-bar.animated {
        width: 100%;
        animation: progressPulse 2s ease-in-out infinite;
    }

@keyframes progressPulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.news-listen-status {
    font-size: 12px;
    color: var(--ink-400, #93A4BE);
    margin-top: 6px;
}

/* Share Panel */
.news-share-panel {
    min-width: 180px;
    background: #F6F8FC;
    border: 1px solid #E4E9F2;
    border-radius: var(--radius-sm, 6px);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
}

.theme-dark .news-share-panel {
    background: var(--navy-700, #1B2E4E);
    border-color: var(--navy-600, #24395C);
}

.news-share-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-800, #14243F);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.theme-dark .news-share-label {
    color: var(--ink-050, #F4F7FB);
}

.news-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm, 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--share-color, #5C6E8A);
    background: #fff;
    border: 1px solid #E4E9F2;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    padding: 0;
}

.theme-dark .news-share-btn {
    background: var(--navy-800, #14243F);
    border-color: var(--navy-600, #24395C);
}

.news-share-btn:hover {
    background: var(--share-color, #5C6E8A);
    color: #fff;
    border-color: var(--share-color, #5C6E8A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 36, 63, 0.18);
}

.news-share-icons-sm .news-share-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

/* ===== Content ===== */
.news-article-content {
    font-size: 17px;
    line-height: 1.9;
    color: #41536F;
}

.theme-dark .news-article-content {
    color: var(--ink-200, #C6D2E4);
}

.news-article-content p {
    margin-bottom: 1.4em;
    color: inherit;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm, 6px);
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(20, 36, 63, 0.1);
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: var(--navy-800, #14243F);
}

.theme-dark .news-article-content h2,
.theme-dark .news-article-content h3,
.theme-dark .news-article-content h4 {
    color: var(--ink-050, #F4F7FB);
}

.news-article-content blockquote {
    border-left: 4px solid var(--gold-500, #D3A84C);
    padding: 15px 20px;
    margin: 24px 0;
    background: #F6F8FC;
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    font-style: italic;
    color: #5C6E8A;
}

[dir="rtl"] .news-article-content blockquote {
    border-left: none;
    border-right: 4px solid var(--gold-500, #D3A84C);
    border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px);
}

.theme-dark .news-article-content blockquote {
    background: var(--navy-700, #1B2E4E);
    color: var(--ink-200, #C6D2E4);
}

.news-article-content a {
    color: var(--navy-800, #14243F);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold-500, #D3A84C);
}

.theme-dark .news-article-content a {
    color: var(--gold-400, #E2BC66);
}

/* ===== Source Box ===== */
.news-source-box {
    margin-top: 30px;
    background: #F6F8FC;
    border: 1px solid #E4E9F2;
    border-left: 4px solid var(--gold-500, #D3A84C);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    padding: 18px 22px;
}

[dir="rtl"] .news-source-box {
    border-left: 1px solid #E4E9F2;
    border-right: 4px solid var(--gold-500, #D3A84C);
    border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px);
}

.theme-dark .news-source-box {
    background: var(--navy-700, #1B2E4E);
    border-color: var(--navy-600, #24395C);
    border-left-color: var(--gold-500, #D3A84C);
}

.news-source-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-source-box-icon {
    width: 42px;
    height: 42px;
    background: var(--navy-800, #14243F);
    color: var(--gold-400, #E2BC66);
    border-radius: var(--radius-sm, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.news-source-box-info {
    flex: 1;
    min-width: 120px;
}

.news-source-box-label {
    display: block;
    font-size: 12px;
    color: #5C6E8A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-dark .news-source-box-label {
    color: var(--ink-400, #93A4BE);
}

.news-source-box-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-800, #14243F);
}

.theme-dark .news-source-box-name {
    color: var(--ink-050, #F4F7FB);
}

.news-source-box .btn {
    font-size: 14px;
    padding: 10px 20px;
    white-space: nowrap;
}

    /* Themed override for the shared .btn.style1 used here (was old blue theme) */
    .news-source-box .btn.style1 {
        background-color: var(--gold-500, #D3A84C);
        color: var(--navy-900, #0E1B31);
        border-radius: var(--radius-sm, 6px);
    }

        .news-source-box .btn.style1:after,
        .news-source-box .btn.style1:before {
            background: var(--gold-400, #E2BC66);
        }

        .news-source-box .btn.style1:hover {
            color: var(--navy-900, #0E1B31);
        }

.news-source-box-url {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E4E9F2;
    font-size: 13px;
    color: #8494AC;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.theme-dark .news-source-box-url {
    border-top-color: var(--navy-600, #24395C);
}

.news-source-box-url a {
    color: #8494AC;
    transition: color 0.3s;
}

    .news-source-box-url a:hover {
        color: var(--gold-500, #D3A84C);
    }

/* ===== Article Footer ===== */
.news-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #EDF1F7;
}

.theme-dark .news-article-footer {
    border-top-color: var(--navy-600, #24395C);
}

.news-footer-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .news-footer-share > span {
        font-size: 14px;
        color: #5C6E8A;
        font-weight: 500;
    }

.theme-dark .news-footer-share > span {
    color: var(--ink-400, #93A4BE);
}

.news-footer-nav .btn {
    font-size: 14px;
    padding: 10px 22px;
}

    /* Themed override for the shared .btn.style5 used here (was old blue theme) */
    .news-footer-nav .btn.style5 {
        background-color: transparent;
        border: 1px solid var(--navy-800, #14243F);
        color: var(--navy-800, #14243F);
        border-radius: var(--radius-sm, 6px);
    }

.theme-dark .news-footer-nav .btn.style5 {
    border-color: var(--gold-500, #D3A84C);
    color: var(--gold-400, #E2BC66);
}

.news-footer-nav .btn.style5:after,
.news-footer-nav .btn.style5:before {
    background: var(--navy-800, #14243F);
}

.news-footer-nav .btn.style5:hover {
    color: #fff;
    border-color: var(--navy-800, #14243F);
}

/* =====================================================================
   Sidebar (Related / Recent Articles + Categories)
   Overrides the legacy .sidebar-widget / .pp-post-item / .category-box
   components to the navy/gold theme.
   ===================================================================== */
.sidebar .sidebar-widget {
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: var(--radius, 10px);
    box-shadow: 0 2px 20px rgba(20, 36, 63, 0.06);
    padding: 22px;
    margin-bottom: 24px;
}

.theme-dark .sidebar .sidebar-widget {
    background: var(--navy-800, #14243F);
    border-color: var(--navy-600, #24395C);
}

.sidebar .sidebar-widget h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy-800, #14243F);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-500, #D3A84C);
    position: relative;
}

.theme-dark .sidebar .sidebar-widget h4 {
    color: var(--ink-050, #F4F7FB);
}

.pp-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EDF1F7;
}

.theme-dark .pp-post-item {
    border-bottom-color: var(--navy-600, #24395C);
}

.pp-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pp-post-item .pp-post-img {
    flex-shrink: 0;
    width: 80px;
    height: 70px;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
}

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

.pp-post-item:hover .pp-post-img img {
    transform: scale(1.08);
}

.pp-post-item .pp-post-info h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
}

    .pp-post-item .pp-post-info h6 a {
        color: var(--navy-800, #14243F);
        transition: color 0.2s ease;
    }

.theme-dark .pp-post-item .pp-post-info h6 a {
    color: var(--ink-050, #F4F7FB);
}

.pp-post-item:hover .pp-post-info h6 a {
    color: var(--gold-500, #D3A84C);
}

.pp-post-item .pp-post-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #8494AC;
}

.theme-dark .pp-post-item .pp-post-info span {
    color: var(--ink-400, #93A4BE);
}

.pp-post-item .pp-post-info span i {
    color: var(--gold-500, #D3A84C);
}

.category-box {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .category-box li {
        border-bottom: 1px solid #EDF1F7;
    }

.theme-dark .category-box li {
    border-bottom-color: var(--navy-600, #24395C);
}

.category-box li:last-child {
    border-bottom: none;
}

.category-box li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    color: #41536F;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

.theme-dark .category-box li a {
    color: var(--ink-200, #C6D2E4);
}

.category-box li a i {
    color: var(--gold-500, #D3A84C);
    font-size: 15px;
}

.category-box li a:hover {
    color: var(--gold-500, #D3A84C);
    padding-inline-start: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .news-article-body {
        padding: 20px 16px;
    }

    .news-article-title {
        font-size: 22px;
    }

    .news-action-bar {
        flex-direction: column;
    }

    .news-listen-panel {
        min-width: auto;
    }

    .news-meta-strip {
        gap: 12px;
    }

    .news-source-box-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar .sidebar-widget {
        padding: 18px;
    }
}
