﻿
/* =========================================
   THIEN LONG TANG PHONG - NEWS DETAIL
   ========================================= */
.news-detail-page {
    --nd-text: #edf2ff;
    --nd-muted: #aab7d2;
    --nd-gold: #e9bd72;
    --nd-line: rgba(180, 194, 229, .17);
    --nd-panel: #0e182d;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    padding: 34px 24px 90px;
    color: var(--nd-text);
    background-image: linear-gradient( 180deg, rgba(255, 240, 211, .12) 0%, rgba(255, 239, 211, .08) 300px, rgba(7, 13, 29, .12) 100% ), url('/images/news/news-background.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.news-detail-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* BREADCRUMB */

.news-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 28px;
    color: #69533a;
    font-size: 12px;
    font-weight: 700;
}

    .news-detail-breadcrumb a {
        color: #334765;
        text-decoration: none;
        transition: color .2s ease;
    }

        .news-detail-breadcrumb a:hover {
            color: #a56825;
        }

    .news-detail-breadcrumb > span {
        opacity: .7;
    }

    .news-detail-breadcrumb .news-detail-breadcrumb-current {
        color: #76532f;
    }

/* ARTICLE */

.news-detail {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: radial-gradient( ellipse at 50% 0%, rgba(54, 69, 117, .24), transparent 48% ), linear-gradient(145deg, #14213a, #0b1426 75%);
    box-shadow: 0 24px 70px rgba(35, 25, 15, .2), 0 4px 18px rgba(0, 0, 0, .12);
}

/* HEADER */

.news-detail-header {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 42px 34px;
    text-align: center;
}

.news-detail-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(233, 189, 114, .38);
    border-radius: 999px;
    color: #f4d39a;
    background: rgba(233, 189, 114, .09);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.news-detail-title {
    margin: 0;
    color: #f4f6ff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
    text-wrap: balance;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .24);
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    color: var(--nd-muted);
    font-size: 12px;
    line-height: 1.8;
}

.news-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.news-detail-meta-icon {
    color: var(--nd-gold);
    font-size: 17px;
}

.news-detail-meta-separator {
    color: var(--nd-gold);
    opacity: .7;
}


/* FEATURE IMAGE - KHÔNG CẮT ẢNH */
.news-detail-thumbnail {
    position: relative;
    width: calc(100% - 64px);
    margin: 0 32px 36px;
    overflow: hidden;
    border: 1px solid rgba(233, 189, 114, .22);
    border-radius: 16px;
    background: #101a30;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

    .news-detail-thumbnail img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 680px;
        object-fit: contain;
        object-position: center;
        margin: 0 auto;
    }

/* TABLET */
@media (max-width: 768px) {
    .news-detail-thumbnail {
        width: calc(100% - 32px);
        margin: 0 16px 28px;
        border-radius: 12px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .news-detail-thumbnail {
        width: calc(100% - 24px);
        margin: 0 12px 24px;
    }

        .news-detail-thumbnail img {
            max-height: 420px;
        }
}


/* ARTICLE CONTENT */

.news-detail-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 28px 42px;
    color: #d9e1f1;
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    word-break: normal;
}

    .news-detail-content > :first-child {
        margin-top: 0;
    }

    .news-detail-content p {
        margin: 0 0 20px;
    }

    .news-detail-content h2 {
        margin: 42px 0 18px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--nd-line);
        color: #f3d19a;
        font-size: 27px;
        line-height: 1.4;
        font-weight: 850;
    }

    .news-detail-content h3 {
        margin: 32px 0 14px;
        color: #f0d7ad;
        font-size: 21px;
        line-height: 1.45;
        font-weight: 800;
    }

    .news-detail-content h4 {
        margin: 26px 0 12px;
        color: #edf2ff;
        font-size: 18px;
        font-weight: 800;
    }

    .news-detail-content strong,
    .news-detail-content b {
        color: #fff0cf;
        font-weight: 800;
    }

    .news-detail-content a {
        color: #f0c77f;
        text-decoration: underline;
        text-decoration-color: rgba(240, 199, 127, .4);
        text-underline-offset: 4px;
        transition: color .2s ease;
    }

        .news-detail-content a:hover {
            color: #ffe4ad;
        }

    .news-detail-content ul,
    .news-detail-content ol {
        margin: 0 0 24px;
        padding-left: 26px;
    }

    .news-detail-content li {
        margin-bottom: 8px;
        padding-left: 4px;
    }

        .news-detail-content li::marker {
            color: var(--nd-gold);
        }

    .news-detail-content blockquote {
        margin: 28px 0;
        padding: 20px 24px;
        border-left: 3px solid var(--nd-gold);
        border-radius: 0 12px 12px 0;
        color: #d4dcef;
        background: rgba(233, 189, 114, .07);
    }

    .news-detail-content hr {
        height: 1px;
        margin: 32px 0;
        border: 0;
        background: var(--nd-line);
    }

    .news-detail-content img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 28px auto;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 12px;
    }

    .news-detail-content figure {
        max-width: 100%;
        margin: 28px auto;
    }

    .news-detail-content figcaption {
        margin-top: 10px;
        color: var(--nd-muted);
        font-size: 12px;
        text-align: center;
    }

    .news-detail-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-collapse: collapse;
        margin: 24px 0;
        color: #dce5f6;
    }

    .news-detail-content th,
    .news-detail-content td {
        padding: 12px 14px;
        border: 1px solid var(--nd-line);
        text-align: left;
    }

    .news-detail-content th {
        color: #f3d19a;
        background: rgba(233, 189, 114, .08);
    }

    .news-detail-content pre {
        overflow-x: auto;
        padding: 18px;
        border: 1px solid var(--nd-line);
        border-radius: 12px;
        background: #080f1e;
    }

    .news-detail-content code {
        font-size: .9em;
    }

/* FOOTER ACTION */

.news-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px 32px;
    border-top: 1px solid var(--nd-line);
    background: rgba(4, 10, 22, .2);
}

.news-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid rgba(233, 189, 114, .3);
    border-radius: 10px;
    color: #f3d19a;
    background: rgba(233, 189, 114, .07);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

    .news-detail-back:hover {
        transform: translateY(-2px);
        border-color: rgba(233, 189, 114, .65);
        color: #fff0cf;
        background: rgba(233, 189, 114, .14);
    }

    .news-detail-back span {
        font-size: 17px;
    }

.news-detail-brand {
    color: #7585a8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

/* TABLET */

@media (max-width: 768px) {
    .news-detail-page {
        padding: 26px 16px 60px;
        background-attachment: scroll;
    }

    .news-detail-breadcrumb {
        margin-bottom: 20px;
    }

    .news-detail {
        border-radius: 17px;
    }

    .news-detail-header {
        padding: 34px 22px 28px;
    }

    .news-detail-title {
        font-size: clamp(27px, 6vw, 36px);
    }

    .news-detail-thumbnail {
        width: calc(100% - 32px);
        margin: 0 16px 28px;
        border-radius: 12px;
    }

    .news-detail-content {
        padding: 0 22px 32px;
        font-size: 15px;
        line-height: 1.85;
    }

        .news-detail-content h2 {
            margin-top: 32px;
            font-size: 23px;
        }

        .news-detail-content h3 {
            margin-top: 26px;
            font-size: 19px;
        }

    .news-detail-footer {
        padding: 20px 22px;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .news-detail-page {
        padding: 20px 12px 44px;
    }

    .news-detail-header {
        padding: 28px 17px 24px;
    }

    .news-detail-category {
        margin-bottom: 17px;
    }

    .news-detail-title {
        font-size: 27px;
    }

    .news-detail-meta {
        gap: 5px 9px;
        font-size: 11px;
    }

    .news-detail-thumbnail {
        width: calc(100% - 24px);
        margin: 0 12px 24px;
    }

    .news-detail-content {
        padding: 0 17px 28px;
        font-size: 14px;
    }

        .news-detail-content h2 {
            font-size: 21px;
        }

        .news-detail-content h3 {
            font-size: 18px;
        }

    .news-detail-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .news-detail-breadcrumb a,
    .news-detail-content a,
    .news-detail-back {
        transition: none;
    }

        .news-detail-back:hover {
            transform: none;
        }
}


