:root {
    --tts-black: #211a17;
    --tts-red: #a10f14;
    --tts-gold: #b67b24;
    --tts-gold-light: #d9aa4b;
    --tts-brown: #7b5224;
    --tts-cream: #fbf8f3;
    --tts-gray: #706a66;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #1f1f1f;
}


/* HEADER */

.header {
    height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 60px;

    background: white;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}


.logo {
    display: flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;
}


.logo img {
    height: 58px;
    width: auto;
}


.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text strong {
    font-size: 26px;
    color: #a10f14;
    font-weight: 800;
    letter-spacing: 0;
}

.logo-text span {
    font-size: 26px;
    color: #b67b24;
    font-weight: 700;
    letter-spacing: 0;
}


.menu {
    display: flex;

    gap: 30px;
}


.menu a {
    color: #222222;

    text-decoration: none;

    font-size: 15px;

    font-weight: 500;
}


.menu a:hover {
    color: #8b1111;
}


.contact-button {
    background: #8b1111;

    color: white;

    padding: 14px 22px;

    text-decoration: none;

    border-radius: 4px;
}


/* HERO */

.hero {
    min-height: 650px;

    display: flex;

    align-items: center;

    padding: 80px 60px;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.25)
        ),
        url("./images/hero-tts.png");

    background-size: cover;

    background-position: center;
}


.hero-content {
    max-width: 750px;

    color: white;
}


.hero-small-title {
    font-size: 15px;

    letter-spacing: 2px;

    font-weight: 700;
}


.hero h1 {
    font-size: 56px;

    line-height: 1.15;

    margin: 20px 0;
}


.hero-description {
    font-size: 19px;

    line-height: 1.7;

    max-width: 650px;
}


.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 35px;
}


.primary-button,
.secondary-button {
    padding: 15px 25px;

    text-decoration: none;

    border-radius: 4px;

    font-weight: 600;
}


.primary-button {
    background: #8b1111;

    color: white;
}


.secondary-button {
    border: 1px solid white;

    color: white;
}
/* =========================
   SERVICES
========================= */

.services {
    padding: 100px 60px;

    background: var(--tts-cream);
}


/* TIÊU ĐỀ SECTION */

.services-heading {
    max-width: 950px;

    margin: 0 auto 65px;

    text-align: center;
}


.section-badge {
    display: inline-block;

    padding: 10px 28px;

    margin: 0 0 25px;

    border: 1px solid rgba(182, 123, 36, 0.35);

    border-radius: 30px;

    background: rgba(217, 170, 75, 0.08);

    color: var(--tts-gold);

    font-size: 16px;

    font-weight: 700;
}


.services-heading h2 {
    margin: 0 0 22px;

    font-size: 48px;

    line-height: 1.2;

    color: var(--tts-black);
}


.services-heading h2 span {
    color: var(--tts-gold);
}


.services-description {
    max-width: 780px;

    margin: 0 auto;

    color: var(--tts-gray);

    font-size: 18px;

    line-height: 1.7;
}


/* LƯỚI CARD */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}


/* CARD */

.service-card {
    position: relative;

    min-height: 290px;

    padding: 35px 38px;

    background: #ffffff;

    border:
        1px solid
        rgba(182, 123, 36, 0.20);

    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}


/* ĐƯỜNG VÀNG TRÊN CARD */



/* ICON + TIÊU ĐỀ */

.service-title {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 22px;
}


/* VÒNG TRÒN ICON */

.service-icon {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(217, 170, 75, 0.11);

    color: var(--tts-gold);
}


/* HÌNH SVG */

.service-icon svg {
    width: 28px;
    height: 28px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* TÊN LĨNH VỰC */

.service-card h3 {
    margin: 0;

    color: var(--tts-black);

    font-size: 23px;

    line-height: 1.3;
}


/* NỘI DUNG */

.service-card > p {
    margin: 0;

    color: var(--tts-gray);

    font-size: 16px;

    line-height: 1.75;
}
.service-card {
    position: relative;

    min-height: 290px;

    padding: 35px 38px;

    background: #ffffff;

    border: 1px solid rgba(182, 123, 36, 0.20);

    border-top: 5px solid transparent;

    transition: 0.3s;
}

/* LINK */

.service-card > a {
    display: inline-block;

    margin-top: 24px;

    color: var(--tts-red);

    text-decoration: none;

    font-weight: 700;

    transition: color 0.25s;
}


/* HOVER */


.service-card:hover {
    transform: translateY(-7px);

    border-color: rgba(182, 123, 36, 0.35);

    border-top-color: var(--tts-gold-light);

    box-shadow:
        0 18px 38px
        rgba(33, 26, 23, 0.12);
}



.service-card:hover .service-icon {
    background:
        rgba(217, 170, 75, 0.18);
}


.service-card > a:hover {
    color: var(--tts-gold);
}

.top-bar {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;

    background: #111c2d;
    color: #c8c8c8;

    font-size: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


.top-bar-right a {
    color: #d9b65f;

    text-decoration: none;

    font-weight: 600;
}


.language-button {
    background: none;

    border: none;

    color: white;

    font-size: 14px;

    cursor: pointer;
}
/* =========================
   LANGUAGE
========================= */

.language {
    position: relative;
}


.language-button {
    display: flex;
    align-items: center;
    gap: 6px;

    background: transparent;
    border: none;

    color: white;

    font-size: 14px;

    cursor: pointer;

    padding: 8px 10px;
}


.language-menu {
    display: none;

    position: absolute;

    top: 40px;
    right: 0;

    min-width: 150px;

    background: white;

    border-radius: 6px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    z-index: 1000;
}


.language-menu.show {
    display: block;
}


.language-menu a {
    display: block;

    padding: 12px 16px;

    color: #222;

    text-decoration: none;

    font-weight: 400;
}
.language-menu a:hover {
    background: #f3f3f3;

    color: #991111;
}
html {
    scroll-behavior: smooth;
}
/* =========================
   TRANG LĨNH VỰC PHÁP LÝ
========================= */


/* HERO TRANG LĨNH VỰC */

.practice-hero {
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 80px 60px;

    color: var(--tts-cream);

    background-size: cover;
    background-position: center;
}


.practice-hero-content {
    max-width: 800px;
}


/* NHÃN "LĨNH VỰC HOẠT ĐỘNG" */

.practice-hero .section-label {
    display: inline-block;

    padding: 9px 22px;

    margin: 0 0 20px;

    border: 1px solid rgba(217, 170, 75, 0.45);

    border-radius: 30px;

    background: rgba(217, 170, 75, 0.10);

    color: var(--tts-gold-light);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


/* TIÊU ĐỀ HERO */

.practice-hero h1 {
    margin: 0 0 22px;

    font-size: 52px;

    line-height: 1.15;

    color: #fffaf2;
}


/* MÔ TẢ HERO */

.practice-hero-content > p:last-child {
    max-width: 700px;

    margin: 0;

    font-size: 18px;

    line-height: 1.7;

    color: rgba(255, 250, 242, 0.88);
}


/* ẢNH NỀN RIÊNG TRANG ĐẤT ĐAI */

.land-hero {
    background:
        linear-gradient(
            90deg,
            rgba(33, 26, 23, 0.88),
            rgba(123, 82, 36, 0.68),
            rgba(33, 26, 23, 0.25)
        ),
        url("./images/dat-dai-hero.png");

    background-size: cover;

    background-position: center;
}


/* =========================
   CÁC NHÓM DỊCH VỤ ĐẤT ĐAI
========================= */

.practice-services {
    padding: 90px 60px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    background: var(--tts-cream);
}


/* TỪNG Ô DỊCH VỤ */

.practice-group {
    position: relative;

    padding: 38px;

    background: #ffffff;

    border: 1px solid rgba(182, 123, 36, 0.20);

    border-top: 4px solid transparent;

    transition: 0.3s;
}


/* TIÊU ĐỀ TỪNG Ô */

.practice-group h2 {
    margin: 0 0 25px;

    font-size: 25px;

    line-height: 1.3;

    color: var(--tts-black);

    transition: 0.3s;
}


/* DANH SÁCH */

.practice-group ul {
    margin: 0;

    padding-left: 22px;
}


.practice-group li {
    margin-bottom: 16px;

    padding-left: 4px;

    color: var(--tts-gray);

    font-size: 16px;

    line-height: 1.65;
}


/* DẤU CHẤM MÀU VÀNG */

.practice-group li::marker {
    color: var(--tts-gold);
}


/* HIỆU ỨNG KHI RÊ CHUỘT */

.practice-group:hover {
    transform: translateY(-6px);

    border-color: rgba(182, 123, 36, 0.38);

    border-top-color: var(--tts-gold-light);

    box-shadow:
        0 18px 38px
        rgba(33, 26, 23, 0.10);
}


.practice-group:hover h2 {
    color: var(--tts-gold);
}
.section-badge {
    display: inline-block;

    padding: 10px 28px;

    margin: 0 0 25px;

    border: 1px solid rgba(182, 123, 36, 0.4);

    border-radius: 30px;

    background: rgba(217, 170, 75, 0.08);

    color: var(--tts-brown);

    font-size: 16px;

    font-weight: 700;
}
.services-heading h2 {
    margin: 0 0 20px;

    font-size: 48px;

    line-height: 1.2;

    color: var(--tts-black);
}
.services-heading h2 span {
    color: var(--tts-gold);
}
.services-heading > p:last-child {
    max-width: 780px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.7;

    color: var(--tts-gray);
}
.service-link {
    display: inline-block;

    margin-top: 24px;

    color: var(--tts-red);

    text-decoration: none;

    font-weight: 700;

    transition: 0.25s;
}

.service-link:hover {
    color: var(--tts-gold);
}
/* =========================
   CTA TƯ VẤN CUỐI TRANG
========================= */

.practice-cta {
    padding: 90px 60px;

    background:
        linear-gradient(
            135deg,
            var(--tts-black),
            var(--tts-brown)
        );

    text-align: center;
}


.practice-cta-content {
    max-width: 900px;

    margin: 0 auto;
}


.practice-cta-label {
    margin: 0 0 20px;

    color: var(--tts-gold-light);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;
}


.practice-cta h2 {
    margin: 0;

    color: #fffaf2;

    font-size: 44px;

    line-height: 1.2;
}


.practice-cta h2 span {
    color: var(--tts-gold-light);
}


.practice-cta-description {
    max-width: 700px;

    margin: 25px auto 0;

    color: rgba(255, 250, 242, 0.80);

    font-size: 18px;

    line-height: 1.7;
}


.practice-cta-buttons {
    display: flex;

    justify-content: center;

    gap: 16px;

    margin-top: 35px;
}


.cta-zalo,
.cta-phone {
    display: inline-block;

    padding: 15px 28px;

    border-radius: 4px;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s;
}


/* NÚT ZALO */

.cta-zalo {
    background: var(--tts-red);

    color: white;

    border: 1px solid var(--tts-red);
}


.cta-zalo:hover {
    background: #851015;

    border-color: #851015;

    transform: translateY(-2px);
}


/* NÚT GỌI */

.cta-phone {
    background: transparent;

    color: var(--tts-gold-light);

    border: 1px solid var(--tts-gold-light);
}


.cta-phone:hover {
    background: var(--tts-gold-light);

    color: var(--tts-black);

    transform: translateY(-2px);
}
/* =========================
   FOOTER - PHONG CÁCH KEM SÁNG
========================= */

.footer {
    background: var(--tts-cream);

    color: var(--tts-gray);

    padding: 70px 60px 0;

    border-top: 1px solid rgba(182, 123, 36, 0.18);
}


.footer-container {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1.2fr 1fr;

    gap: 55px;

    max-width: 1400px;

    margin: 0 auto;

    padding-bottom: 55px;
}


/* LOGO */

.footer-logo {
    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;
}


.footer-logo img {
    height: 58px;

    width: auto;
}


.footer-logo-text {
    display: flex;

    align-items: center;

    gap: 8px;
}


.footer-logo-text strong {
    font-size: 24px;

    color: var(--tts-red);

    font-weight: 800;
}


.footer-logo-text span {
    font-size: 24px;

    font-weight: 700;

    color: var(--tts-gold);
}


/* GIỚI THIỆU */

.footer-brand > p {
    max-width: 390px;

    margin-top: 25px;

    color: var(--tts-gray);

    font-size: 15px;

    line-height: 1.8;
}


/* CÁC CỘT */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 13px;
}


.footer-column h3 {
    margin: 0 0 10px;

    color: var(--tts-black);

    font-size: 18px;

    font-weight: 700;
}


.footer-column a {
    color: var(--tts-gray);

    text-decoration: none;

    font-size: 15px;

    transition: 0.25s;
}


.footer-column a:hover {
    color: var(--tts-red);
}


.footer-column p {
    margin: 0;

    color: var(--tts-gray);

    font-size: 15px;

    line-height: 1.7;
}


/* ZALO */

.footer-column .footer-zalo {
    margin-top: 8px;

    color: var(--tts-gold);

    font-weight: 700;
}


.footer-column .footer-zalo:hover {
    color: var(--tts-red);
}


/* DÒNG CUỐI */

.footer-bottom {
    max-width: 1400px;

    margin: 0 auto;

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid
        rgba(182, 123, 36, 0.22);

    color: var(--tts-gray);

    font-size: 13px;
}


.footer-bottom p {
    margin: 0;
}


.footer-bottom div {
    display: flex;

    gap: 25px;
}


.footer-bottom a {
    color: var(--tts-gray);

    text-decoration: none;

    transition: 0.25s;
}


.footer-bottom a:hover {
    color: var(--tts-gold);
}
/* =========================
   RESPONSIVE - TABLET
========================= */
/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;

    background: transparent;

    border: none;

    color: var(--tts-black);

    font-size: 32px;

    cursor: pointer;

    padding: 5px;
}
/* Giữ các mục điều hướng dễ đọc khi menu có thêm công cụ tính án phí. */
@media (min-width: 901px) and (max-width: 1280px) {
    .header {
        height: auto;
        padding: 18px 24px;
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .header > .menu {
        order: 1;
        flex-basis: 100%;
        flex-wrap: wrap;
        gap: 15px 22px;
    }

    .header > .menu a {
        white-space: nowrap;
    }

    .header > .contact-button {
        margin-left: auto;
    }
}

@media (max-width: 900px) {

    /* TOP BAR */

    .top-bar {
        height: auto;

        padding: 12px 24px;

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }


    .top-bar-right {
        flex-wrap: wrap;

        gap: 15px;
    }


    /* HEADER */

    .header {
        height: auto;

        padding: 18px 24px;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .menu {
        width: 100%;

        flex-wrap: wrap;

        gap: 15px 22px;
    }


    .contact-button {
        align-self: flex-start;
    }


    /* HERO TRANG CHỦ */

    .hero {
        min-height: 580px;

        padding: 70px 30px;
    }


    .hero h1 {
        font-size: 44px;
    }


    /* LĨNH VỰC HOẠT ĐỘNG */

    .services {
        padding: 80px 30px;
    }


    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* TRANG ĐẤT ĐAI */

    .practice-hero {
        padding: 70px 30px;
    }


    .practice-services {
        padding: 70px 30px;

        grid-template-columns: 1fr;
    }


    /* CTA */

    .practice-cta {
        padding: 70px 30px;
    }


    /* FOOTER */

    .footer {
        padding: 60px 30px 0;
    }


    .footer-container {
        grid-template-columns: repeat(2, 1fr);

        gap: 45px;
    }

}
/* =========================
   RESPONSIVE - ĐIỆN THOẠI
========================= */

@media (max-width: 600px) {
.header {
        position: relative;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        padding: 15px 20px;
    }


    /* HIỆN NÚT HAMBURGER */

    .menu-toggle {
        display: block;
    }


    /* ẨN MENU BÌNH THƯỜNG */

    .menu {
        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        padding: 20px;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        background: #ffffff;

        border-top:
            1px solid
            rgba(182, 123, 36, 0.15);

        box-shadow:
            0 12px 25px
            rgba(33, 26, 23, 0.10);

        z-index: 1000;
    }


    /* KHI JS THÊM CLASS "show" */

    .menu.show {
        display: flex;
    }


    .menu a {
        width: 100%;

        padding: 13px 0;

        border-bottom:
            1px solid
            rgba(182, 123, 36, 0.10);
    }


    /* ẨN NÚT LIÊN HỆ RIÊNG TRÊN HEADER MOBILE */

    .header > .contact-button {
        display: none;
    }
    /* LOGO */

    .logo img {
        height: 50px;
    }


    .logo-text strong,
    .logo-text span {
        font-size: 21px;
    }


    /* MENU */

    .menu {
        flex-direction: column;

        gap: 12px;
    }


    /* HERO */

    .hero {
        min-height: 520px;

        padding: 60px 20px;
    }


    .hero h1 {
        font-size: 36px;
    }


    .hero-description {
        font-size: 17px;
    }


    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }


    /* SERVICES */

    .services {
        padding: 65px 20px;
    }


    .services-heading h2 {
        font-size: 36px;
    }


    .services-grid {
        grid-template-columns: 1fr;
    }


    /* TRANG LĨNH VỰC */

    .practice-hero {
        min-height: 360px;

        padding: 60px 20px;
    }


    .practice-hero h1 {
        font-size: 38px;
    }


    .practice-services {
        padding: 60px 20px;
    }


    .practice-group {
        padding: 28px;
    }


    /* CTA */

    .practice-cta {
        padding: 60px 20px;
    }


    .practice-cta h2 {
        font-size: 34px;
    }


    .practice-cta-buttons {
        flex-direction: column;

        align-items: center;
    }


    /* FOOTER */

    .footer {
        padding: 55px 20px 0;
    }


    .footer-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .footer-bottom {
        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .footer-bottom div {
        flex-direction: column;

        gap: 10px;
    }

}
/* =========================
   HERO TRANG DÂN SỰ
========================= */

.civil-hero {
    background:
        linear-gradient(
            90deg,
            rgba(33, 26, 23, 0.88),
            rgba(123, 82, 36, 0.68),
            rgba(33, 26, 23, 0.25)
        ),
        url("./images/dan-su-hero.png");

    background-size: cover;

    background-position: center;
}
/* =========================
   HERO HÔN NHÂN & GIA ĐÌNH
========================= */

.family-hero {
    background:
        linear-gradient(
            90deg,
            rgba(33, 26, 23, 0.88),
            rgba(123, 82, 36, 0.66),
            rgba(33, 26, 23, 0.20)
        ),
        url("./images/hon-nhan-gia-dinh-hero.png");

    background-size: cover;

    background-position: center;
}
/* =========================
   HERO HÌNH SỰ
========================= */

.criminal-hero {
    background:
        linear-gradient(
            90deg,
            rgba(33, 26, 23, 0.90),
            rgba(123, 82, 36, 0.68),
            rgba(33, 26, 23, 0.20)
        ),
        url("./images/hinh-su-hero.png");

    background-size: cover;

    background-position: center;
}


/* =========================
   HERO DOANH NGHIỆP
========================= */

.corporate-hero {
    background:
        linear-gradient(
            90deg,
            rgba(33, 26, 23, 0.90),
            rgba(123, 82, 36, 0.66),
            rgba(33, 26, 23, 0.20)
        ),
        url("./images/doanh-nghiep-hero.png");

    background-size: cover;
    background-position: center;
}
/* =========================
   HERO KINH DOANH THƯƠNG MẠI
========================= */

.commercial-hero {
    background:
        linear-gradient(
            90deg,
            rgba(33, 26, 23, 0.90),
            rgba(123, 82, 36, 0.66),
            rgba(33, 26, 23, 0.20)
        ),
        url("./images/kinh-doanh-thuong-mai-hero.png");

    background-size: cover;

    background-position: center;
}
/* =========================
   TRANG TÀI NGUYÊN
========================= */

.resource-hero {
    padding: 80px 60px;

    background:
        linear-gradient(
            135deg,
            var(--tts-black),
            var(--tts-brown)
        );

    color: white;
}


.resource-hero-content {
    max-width: 1000px;

    margin: 0 auto;
}


.resource-label {
    margin: 0 0 15px;

    color: var(--tts-gold-light);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.8px;
}


.resource-hero h1 {
    margin: 0 0 18px;

    font-size: 50px;

    line-height: 1.2;

    color: #ffffff;
}


.resource-hero-content > p:last-child {
    max-width: 850px;

    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================
   THƯ VIỆN BIỂU MẪU
========================= */

.resource-library {
    padding: 80px 60px;

    background: #ffffff;
}


.resource-container {
    max-width: 1000px;

    margin: 0 auto;
}


.resource-category {
    margin-bottom: 65px;
}


.resource-category-heading {
    margin-bottom: 20px;
}


.resource-category-heading h2 {
    margin: 0 0 8px;

    color: var(--tts-black);

    font-size: 28px;
}


.resource-category-heading p {
    margin: 0;

    color: var(--tts-gray);

    font-size: 15px;

    line-height: 1.6;
}


/* KHUNG DANH SÁCH */

.resource-list {
    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(182, 123, 36, 0.18);

    border-radius: 10px;
}


/* MỖI FILE */

.resource-item {
    display: grid;

    grid-template-columns:
        45px 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 20px 22px;

    color: inherit;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(33, 26, 23, 0.08);

    transition: 0.25s;
}


.resource-item:last-child {
    border-bottom: none;
}


.resource-item:hover {
    background: var(--tts-cream);
}


/* ICON */

.resource-file-icon {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(217, 170, 75, 0.12);

    color: var(--tts-gold);

    font-size: 20px;

    font-weight: 700;
}


/* TÊN FILE */

.resource-file-info h3 {
    margin: 0 0 5px;

    color: var(--tts-black);

    font-size: 17px;

    font-weight: 650;
}


.resource-file-info span {
    color: #999;

    font-size: 13px;
}


/* NÚT TẢI */

.resource-download {
    color: var(--tts-red);

    font-size: 14px;

    font-weight: 700;
}


.resource-item:hover .resource-download {
    color: var(--tts-gold);
}

/* TÌM KIẾM VÀ LỌC TÀI NGUYÊN */

.resource-container [hidden] {
    display: none;
}

.resource-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px) auto;
    align-items: start;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(182, 123, 36, 0.20);
    border-radius: 10px;
    background: var(--tts-cream);
}

.resource-filter-field {
    min-width: 0;
}

.resource-filter-field label {
    display: block;
    margin-bottom: 10px;
    color: var(--tts-brown);
    font-size: 15px;
    font-weight: 700;
}

.resource-filter-field input,
.resource-filter-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid rgba(182, 123, 36, 0.40);
    border-radius: 4px;
    background: #ffffff;
    color: var(--tts-black);
    font: inherit;
    font-size: 16px;
}

.resource-filter-field input::placeholder {
    color: var(--tts-gray);
}

.resource-filter-field p {
    margin: 10px 0 0;
    color: var(--tts-gray);
    font-size: 13px;
    line-height: 1.6;
}

.resource-reset {
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--tts-red);
    border-radius: 4px;
    background: var(--tts-red);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.resource-filters > .resource-reset {
    margin-top: 27px;
}

.resource-reset:hover:not(:disabled) {
    background: #851015;
}

.resource-reset:disabled {
    border-color: rgba(182, 123, 36, 0.30);
    background: transparent;
    color: var(--tts-gray);
    cursor: default;
}

.resource-filter-field input:focus-visible,
.resource-filter-field select:focus-visible,
.resource-reset:focus-visible {
    outline: 2px solid var(--tts-gold);
    outline-offset: 3px;
}

.resource-item:focus-visible {
    outline: 2px solid var(--tts-gold);
    outline-offset: -3px;
    background: var(--tts-cream);
}

.resource-results-count {
    margin: 22px 0 32px;
    color: var(--tts-gray);
    font-size: 15px;
    line-height: 1.6;
}

.resource-empty {
    padding: 36px 24px;
    border: 1px solid rgba(182, 123, 36, 0.20);
    border-radius: 10px;
    background: var(--tts-cream);
    text-align: center;
}

.resource-empty h2 {
    margin: 0 0 12px;
    color: var(--tts-brown);
    font-size: 24px;
}

.resource-empty p {
    margin: 0 0 20px;
    color: var(--tts-gray);
    line-height: 1.6;
}

.resource-file-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.resource-file-info h3 {
    line-height: 1.45;
}

.resource-file-info span {
    line-height: 1.6;
}

@media (max-width: 900px) {
    .resource-filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .resource-filters > .resource-reset {
        margin-top: 0;
        justify-self: start;
    }
}

@media (max-width: 600px) {

    .resource-hero {
        padding: 60px 20px;
    }

    .resource-hero h1 {
        font-size: 36px;
    }

    .resource-library {
        padding: 60px 20px;
    }

    .resource-item {
        grid-template-columns:
            40px 1fr;

        padding: 18px;
    }

    .resource-download {
        grid-column: 2;

        margin-top: 4px;
    }

    .resource-filters {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
        gap: 18px;
    }

    .resource-filters > .resource-reset {
        width: 100%;
    }

    .resource-empty {
        padding: 28px 20px;
    }

}

/* =========================
   TIN PHÁP LÝ LIÊN QUAN
========================= */

.related-news {
    padding: 90px 60px;
    background: #ffffff;
}

.home-news {
    background: #ffffff;
}

.related-news-heading {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.related-news-heading h2 {
    margin: 0 0 18px;
    color: var(--tts-black);
    font-size: 42px;
    line-height: 1.2;
}

.related-news-heading h2 span {
    color: var(--tts-gold);
}

.related-news-heading > p:last-child {
    max-width: 700px;
    margin: 0 auto;
    color: var(--tts-gray);
    font-size: 17px;
    line-height: 1.7;
}

.related-news-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.related-news-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(182, 123, 36, 0.18);
    transition: 0.3s;
}

.related-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(33, 26, 23, 0.10);
}

.related-news-card > a {
    display: block;
    overflow: hidden;
}

.related-news-card img {
    width: 100%;
    height: 230px;
    display: block;
    object-fit: cover;
    transition: 0.4s;
}

.related-news-card:hover img {
    transform: scale(1.04);
}

.related-news-content {
    padding: 25px;
}

.related-news-category {
    margin: 0 0 12px;
    color: var(--tts-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.related-news-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.45;
}

.related-news-content h3 a {
    color: var(--tts-black);
    text-decoration: none;
    transition: 0.25s;
}

.related-news-content h3 a:hover {
    color: var(--tts-red);
}

.related-news-date {
    margin: 0 0 12px;
    color: var(--tts-brown);
    font-size: 13px;
    line-height: 1.5;
}

.related-news-content > p:last-child {
    margin: 0;
    color: var(--tts-gray);
    font-size: 15px;
    line-height: 1.7;
}

.news-page {
    background: var(--tts-cream);
}

.news-breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 60px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--tts-gray);
    font-size: 14px;
    line-height: 1.6;
}

.news-breadcrumb a {
    color: var(--tts-brown);
    text-decoration: none;
}

.news-breadcrumb a:hover {
    color: var(--tts-red);
}

.news-article {
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px 60px 85px;
}

.news-article-header {
    max-width: 860px;
    margin: 0 auto 35px;
}

.news-article-category {
    margin: 0 0 10px;
    color: var(--tts-gold);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.news-article-date {
    margin: 0 0 18px;
    color: var(--tts-gray);
    font-size: 14px;
}

.news-article-header h1 {
    margin: 0 0 20px;
    color: var(--tts-black);
    font-size: 46px;
    line-height: 1.2;
}

.news-article-excerpt {
    margin: 0;
    color: var(--tts-gray);
    font-size: 19px;
    line-height: 1.7;
}

.news-article-thumbnail {
    width: 100%;
    max-height: 560px;
    display: block;
    margin: 0 auto 45px;
    object-fit: cover;
}

.news-article-body {
    max-width: 860px;
    margin: 0 auto;
    color: var(--tts-black);
    font-size: 18px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.news-article-body p {
    margin: 0 0 22px;
}

.news-article-body h2 {
    margin: 42px 0 18px;
    color: var(--tts-black);
    font-size: 30px;
    line-height: 1.35;
}

.news-article-body h3 {
    margin: 32px 0 14px;
    color: var(--tts-brown);
    font-size: 23px;
    line-height: 1.4;
}

.news-article-body ul,
.news-article-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.news-article-body li {
    margin: 0 0 9px;
    padding-left: 4px;
}

.news-article-body a {
    color: var(--tts-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-article-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--tts-gold);
    background: #ffffff;
    color: var(--tts-brown);
}

.news-article-body table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 16px;
}

.news-article-body th,
.news-article-body td {
    padding: 10px 12px;
    border: 1px solid rgba(123, 82, 36, 0.24);
    text-align: left;
}

.news-article-body th {
    background: #f4ead8;
}

.news-article-related {
    border-top: 1px solid rgba(182, 123, 36, 0.14);
}

.news-empty-state {
    max-width: 900px;
    margin: 24px auto 0;
    color: var(--tts-gray);
    text-align: center;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .related-news {
        padding: 70px 30px;
    }

    .related-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-article {
        padding: 40px 30px 70px;
    }

    .news-breadcrumb {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 600px) {
    .related-news {
        padding: 60px 20px;
    }

    .related-news-heading h2 {
        font-size: 34px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .related-news-card img {
        height: 210px;
    }

    .news-breadcrumb {
        padding: 24px 20px 0;
        gap: 7px;
        font-size: 13px;
    }

    .news-article {
        padding: 35px 20px 60px;
    }

    .news-article-header h1 {
        font-size: 34px;
    }

    .news-article-excerpt {
        font-size: 17px;
    }

    .news-article-thumbnail {
        margin-bottom: 32px;
    }

    .news-article-body {
        font-size: 16px;
    }

    .news-article-body h2 {
        font-size: 25px;
    }

    .news-article-body h3 {
        font-size: 20px;
    }

    .news-article-body table {
        display: block;
        overflow-x: auto;
    }
}
