﻿/* =========================================
   THIEN LONG TANG PHONG - NEWS PAGE
   ========================================= */
.news-page {
    --news-bg: #0a1122;
    --news-panel: #111c33;
    --news-line: rgba(153, 170, 224, .16);
    --news-text: #edf2ff;
    --news-muted: #9aa9ca;
    --news-purple: #a78bfa;
    --news-blue: #7dd3fc;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 56px 32px 90px;
    color: var(--news-text);
}


/* HEADER - TĂNG ĐỘ TƯƠNG PHẢN VỚI BACKGROUND */
.news-header {
    position: relative;
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

/* Badge TIN TỨC */
.news-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(120, 77, 30, .28);
    border-radius: 999px;
    color: #75431c;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 4px 14px rgba(91, 51, 20, .08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

/* Tiêu đề chính */
.news-header h1 {
    margin: 0;
    color: #17294a;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -.035em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 3px 10px rgba(73, 47, 25, .12);
}

/* Mô tả bên dưới */
.news-header p {
    max-width: 620px;
    margin: 16px auto 0;
    color: #59452f;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .6);
}


/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* CARD */

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 18px;
    background: linear-gradient(155deg, #14213b, #0e172b 80%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        border-color: rgba(167, 139, 250, .48);
        box-shadow: 0 20px 42px rgba(0, 0, 0, .23);
    }

/* IMAGE */

.news-card-image-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.news-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101a30;
}

    .news-card-image::after {
        position: absolute;
        inset: 45% 0 0;
        content: "";
        pointer-events: none;
        background: linear-gradient(to bottom, transparent, rgba(7, 13, 29, .28));
    }


    .news-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: transform .3s ease;
    }



.news-card:hover .news-card-image img {
    transform: none;
}


.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 40%, rgba(124, 93, 220, .25), transparent 55%), linear-gradient(135deg, #172642, #0b1325);
    color: #b6a5ef;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .2em;
}

/* BODY */

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--news-blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
}

.news-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--news-text);
    font-size: 19px;
    line-height: 1.5;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

    .news-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color .2s ease;
    }

        .news-card-title a:hover {
            color: #c4b5fd;
        }

.news-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 13px 0 22px;
    color: var(--news-muted);
    font-size: 13px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 10px 14px;
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: 10px;
    color: #d6c7ff;
    background: rgba(111, 78, 190, .1);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: gap .2s ease, background .2s ease, border-color .2s ease;
}

    .news-card-readmore span {
        font-size: 16px;
        line-height: 1;
    }

    .news-card-readmore:hover {
        gap: 14px;
        border-color: rgba(167, 139, 250, .55);
        color: #fff;
        background: rgba(111, 78, 190, .22);
    }

/* EMPTY STATE */

.news-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 70px 24px;
    border: 1px solid var(--news-line);
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 0%, rgba(111, 78, 190, .16), transparent 65%), #101a30;
    text-align: center;
}

.news-empty-icon {
    margin-bottom: 18px;
    font-size: 42px;
}

.news-empty h2 {
    margin: 0;
    color: var(--news-text);
    font-size: 24px;
    font-weight: 850;
}

.news-empty p {
    margin: 12px 0 0;
    color: var(--news-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* TABLET */

@media (max-width: 1050px) {
    .news-page {
        padding-right: 24px;
        padding-left: 24px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .news-page {
        padding: 36px 15px 58px;
    }

    .news-header {
        margin-bottom: 30px;
    }

        .news-header h1 {
            font-size: 32px;
        }

        .news-header p {
            margin-top: 12px;
            font-size: 13px;
        }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .news-card {
        border-radius: 15px;
    }

    .news-card-body {
        padding: 19px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .news-card-description {
        margin-bottom: 18px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card-image img,
    .news-card-title a,
    .news-card-readmore {
        transition: none;
    }

        .news-card:hover {
            transform: none;
        }
}


/* BACKGROUND TRANG NEWS */
.news-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 56px max(32px, calc((100% - 1376px) / 2)) 90px;
    background-image:  url('/images/news/news-background.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 700px) {
    .news-page {
        padding: 36px 15px 58px;
        background-attachment: scroll;
    }
}


