/**
 * RELAND OVERRIDE CSS - Đất Xanh Miền Trung Brand
 * Override Reland theme colors, fonts, and UX improvements
 *
 * DXMT Brand Colors (from logo_dxmt.png):
 *   Navy Blue:  #1a5091
 *   Sky Blue:   #3fa9f5
 *   Orange:     #e8811c
 *
 * Reland defaults overridden:
 *   --tg-primary-color:  #BD9A68 → #1a5091 (navy blue)
 *   --tg-body-background: #FEFFFB → #ffffff (pure white)
 *   --tg-secondary-background: #F9FAF1 → #f5f7fa (neutral gray)
 *   --tg-heading-font-family: 'Vidaloka' serif → 'Montserrat' sans-serif
 *   --tg-white: #FBFBFB → #ffffff
 */

/* ==========================================================================
   1. COLOR & FONT SYSTEM OVERRIDE
   ========================================================================== */
:root {
    /* Brand colors */
    --tg-primary-color: #1a5091;
    --tg-body-background-color: #ffffff;
    --tg-secondary-background: #f5f7fa;
    --tg-gradient-color: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
    --tg-white: #ffffff;
    --dxmt-accent: #e8811c;
    --dxmt-sky: #3fa9f5;

    /* Alias for modules using legacy vars */
    --color-primary: #1a5091;
    --color-secondary: #e8811c;
    --brand-accent: #e8811c;

    /* Font families — override Vidaloka serif → Montserrat sans */
    --tg-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tg-heading-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font weight — Reland default is 400 (Vidaloka), we need 700 (Montserrat) */
    --tg-heading-font-weight: 700;

    /* Typography scale */
    --tg-body-font-size: 15px;
    --tg-body-line-height: 1.75;
}

body {
    font-family: var(--tg-body-font-family);
    background-color: var(--tg-body-background-color);
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}

/* Headings — dark color, no uppercase for Vietnamese readability */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tg-heading-font-family);
    font-weight: 700;
    color: #1e2a3a;
    text-transform: none;
}

/* Paragraph color consistency */
p {
    color: #555;
}

/* Links */
a {
    color: var(--tg-primary-color);
}

a:hover {
    color: var(--dxmt-accent);
}

/* ==========================================================================
   2. HEADER - Contrast, readability & visual hierarchy
   ========================================================================== */

/* --- Logo --- */
.menu-area .logo img {
    max-height: 50px;
    width: auto;
}

/* --- Smooth sticky transition --- */
.menu-area {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* --- Transparent header (homepage) --- */
.transparent-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.transparent-header .navbar-wrap ul li a,
.transparent-header .header-mail a,
.transparent-header .header-contact a {
    color: rgba(255,255,255,0.9);
}

.transparent-header .header-mail {
    font-size: 12px;
    opacity: 0.8;
}

.transparent-header .navbar-wrap > ul > li.active > a,
.transparent-header .navbar-wrap > ul > li:hover > a {
    color: var(--dxmt-accent);
}

.transparent-header .header-mail a:hover,
.transparent-header .header-contact a:hover {
    color: var(--dxmt-accent);
}

/* Phone CTA button on transparent header */
.transparent-header .header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--dxmt-accent, #e8811c);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.transparent-header .header-contact a:hover {
    background: #cf7118;
    box-shadow: 0 4px 16px rgba(232, 129, 28, 0.45);
    color: #fff !important;
}

.transparent-header .header-contact a::before {
    content: '\f095';
    font-family: 'FontAwesome';
    font-size: 11px;
}

/* --- Sticky (scrolled) header --- */
.sticky-menu {
    background: #fff !important;
    box-shadow: 0 2px 20px rgba(26, 80, 145, 0.1) !important;
    border-bottom: 2px solid var(--tg-primary-color, #1a5091);
}

.sticky-menu .navbar-wrap ul li a {
    color: #1e2a3a;
}

.sticky-menu .navbar-wrap > ul > li.active > a,
.sticky-menu .navbar-wrap > ul > li:hover > a {
    color: var(--tg-primary-color);
}

.sticky-menu .header-mail a,
.sticky-menu .header-contact a {
    color: var(--tg-primary-color);
}

/* Phone CTA on sticky */
.sticky-menu .header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--dxmt-accent, #e8811c);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.sticky-menu .header-contact a:hover {
    background: #cf7118;
    box-shadow: 0 4px 16px rgba(232, 129, 28, 0.4);
    color: #fff !important;
}

.sticky-menu .header-contact a::before {
    content: '\f095';
    font-family: 'FontAwesome';
    font-size: 11px;
}

/* Email with icon (all header states) */
.header-mail a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-decoration: none;
}

.header-mail a::before {
    content: '\f0e0';
    font-family: 'FontAwesome';
    font-size: 11px;
    opacity: 0.7;
}

/* --- Non-home pages — solid white header --- */
.menu-area:not(.transparent-header) {
    background: #fff;
    border-bottom: 3px solid var(--tg-primary-color, #1a5091);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.menu-area:not(.transparent-header) .navbar-wrap ul li a {
    color: #1e2a3a;
}

.menu-area:not(.transparent-header) .navbar-wrap > ul > li.active > a,
.menu-area:not(.transparent-header) .navbar-wrap > ul > li:hover > a {
    color: var(--tg-primary-color);
}

/* Nav active underline */
.menu-area:not(.transparent-header) .navbar-wrap > ul > li.active > a {
    position: relative;
}
.menu-area:not(.transparent-header) .navbar-wrap > ul > li.active > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dxmt-accent, #e8811c);
    border-radius: 2px;
}

.menu-area:not(.transparent-header) .header-mail a {
    color: #666;
    text-decoration: none;
}

/* Phone CTA on solid header */
.menu-area:not(.transparent-header) .header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--dxmt-accent, #e8811c);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.22s ease;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(232, 129, 28, 0.25);
}

.menu-area:not(.transparent-header) .header-contact a:hover {
    background: #cf7118;
    box-shadow: 0 6px 20px rgba(232, 129, 28, 0.4);
    transform: translateY(-1px);
    color: #fff !important;
}

.menu-area:not(.transparent-header) .header-contact a::before {
    content: '\f095';
    font-family: 'FontAwesome';
    font-size: 11px;
}

/* Navigation text — no uppercase for Vietnamese */
.navbar-wrap ul li a,
.navigation li a {
    text-transform: none;
    font-weight: 500;
}

/* Sub-menu dropdown */
.navbar-wrap ul li .sub-menu {
    background: #fff;
    border-top: 3px solid var(--tg-primary-color);
}

.navbar-wrap ul li .sub-menu li a {
    color: #333 !important;
    font-size: 13px;
}

.navbar-wrap ul li .sub-menu li a:hover,
.navbar-wrap ul li .sub-menu li.active > a {
    color: var(--tg-primary-color) !important;
}

/* Mobile menu */
.mobile-menu .menu-box {
    background: #fff;
}

.mobile-menu .navigation li a {
    color: #1e2a3a !important;
}

.mobile-menu .navigation li.active > a,
.mobile-menu .navigation li a:hover {
    color: var(--tg-primary-color) !important;
}

/* ==========================================================================
   3. SECTION TITLES - Consistent hierarchy, NO uppercase
   ========================================================================== */
.section-title .title {
    font-family: var(--tg-heading-font-family);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    color: #1e2a3a;
    text-transform: none;
}

.section-title .sub-title {
    font-family: var(--tg-body-font-family);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--tg-primary-color);
}

/* ==========================================================================
   4. BUTTONS - DXMT brand accent (orange for CTAs)
   ========================================================================== */

/* All buttons — no uppercase for Vietnamese text */
.btn {
    text-transform: none;
    font-family: var(--tg-heading-font-family);
    font-weight: 600;
}

/* Primary filled buttons → orange accent */
.btn:not(.transparent-btn) {
    background: var(--dxmt-accent);
    border-color: var(--dxmt-accent);
}

.btn:not(.transparent-btn):hover {
    background: #d0740f;
    border-color: #d0740f;
}

/* Transparent/outline buttons → navy blue */
.btn.transparent-btn {
    border-color: var(--tg-primary-color);
    color: var(--tg-primary-color);
}

.btn.transparent-btn:hover {
    background: var(--tg-primary-color);
    border-color: var(--tg-primary-color);
    color: #fff;
}

/* Slider CTA button - white text on orange */
.banner-content .btn {
    background: var(--dxmt-accent);
    border-color: var(--dxmt-accent);
    color: #fff;
}

.banner-content .btn:hover {
    background: #d0740f;
    border-color: #d0740f;
}

/* ==========================================================================
   5. SLIDER - Text contrast on images
   ========================================================================== */
.banner-content .title {
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    font-size: 48px;
    line-height: 1.4;
    color: #fff;
    text-transform: none;
}

.banner-content p {
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    font-size: 17px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   6. ABOUT SECTION - Readability
   ========================================================================== */
.about-area {
    background: #fff;
}

.about-content p {
    font-size: 16px;
    line-height: 1.85;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Counter items */
.counter-item {
    margin-bottom: 30px;
}

.counter-item h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--tg-primary-color);
    margin-bottom: 5px;
    font-family: var(--tg-heading-font-family);
}

.counter-item p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    font-weight: 500;
}

/* ==========================================================================
   7. FEATURES SECTION — FIX: z-index stacking context for icon circles
   ========================================================================== */

/* ==========================================================================
   SECTION ADJACENCY — triệt tiêu double-padding giữa các section cùng màu
   ========================================================================== */

/* About (pb-140) → Projects (pt-140): cùng trắng, xóa pt của Projects */
.about-area + .project-area {
    padding-top: 0;
}

/* Projects (pb-140) → Features (pt-140): khác màu nhưng cũng nên gọn lại,
   để border-top của features-area đúng sát với cuối projects */
.project-area + .features-area {
    padding-top: 80px;
}

/* Features (pb-140) → Honor (pt-140): features có bg riêng → giữ nguyên khoảng */

/* Honor → Team: cùng sáng, gọn lại */
.honor-section + .home-team-section {
    padding-top: 60px;
}

/* ==========================================================================
   Features: nền xanh navy nhạt — tạo nhịp màu trên trang trắng
   ========================================================================== */
/* Features: nền xanh navy nhạt — tạo nhịp màu trên trang trắng */
.features-area {
    background: #eef3fb;
    border-top: 1px solid rgba(26, 80, 145, 0.08);
    border-bottom: 1px solid rgba(26, 80, 145, 0.08);
}

/* Honor Board: nền trắng ấm nhẹ */
.honor-section {
    background: #fafafa;
}

/* Team: nền trắng thuần */
.home-team-section {
    background: #ffffff;
}

/* CREATE stacking context so ::before z-index:-1 stays INSIDE this element,
   not behind the body background. This is the ROOT CAUSE of invisible icons. */
.features-item {
    position: relative;
    z-index: 0;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 80, 145, 0.1);
}

/* Feature icon — circle with navy bg, white icon */
.feature-icon {
    position: relative;
    z-index: 1;
}

.feature-icon i {
    color: #fff;
    position: relative;
    z-index: 2;
}

.features-item .feature-content .title {
    font-size: 18px;
    font-weight: 700;
    color: #1e2a3a;
    text-transform: none;
}

.features-item .feature-content p {
    font-size: 14px;
    line-height: 1.75;
    color: #666;
}

/* Hover: title turns primary */
.features-item:hover .feature-content .title {
    color: var(--tg-primary-color);
}

/* ==========================================================================
   8. PROJECT CARDS
   ========================================================================== */
.project-area {
    background: #fff;
}

.project-item .project-thumb {
    overflow: hidden;
    border-radius: 8px;
}

.project-item .project-thumb img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-thumb img {
    transform: scale(1.05);
}

.project-item .project-content .title {
    text-transform: none;
}

.project-item .project-content .title a {
    color: #1e2a3a;
    font-size: 20px;
}

.project-item .project-content .title a:hover {
    color: var(--tg-primary-color);
}

.project-item .project-content span {
    color: #888;
    font-size: 14px;
}

/* ==========================================================================
   8a. HONOR BOARD — Slide vinh danh chiến binh xuất sắc
   ========================================================================== */
.honor-section {
    background: #fff;
}

/* Slider container */
.honor-slider {
    margin: 0 -15px;
}

.honor-slider .slick-list {
    padding: 10px 0 30px;
}

.honor-slide {
    padding: 0 15px;
}

/* Card */
.honor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.honor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 80, 145, 0.12);
}

/* Image */
.honor-card-img {
    position: relative;
    overflow: hidden;
    height: 280px; /* default / square */
}

/* Portrait 9:16 */
.honor-card-img.honor-img-portrait {
    height: 420px;
}

/* Square 1:1 */
.honor-card-img.honor-img-square {
    height: 280px;
}

.honor-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Badge */
.honor-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #e8811c, #f5a623);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--tg-heading-font-family);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(232, 129, 28, 0.35);
}

.honor-badge i {
    margin-right: 5px;
}

/* Body */
.honor-card-body {
    padding: 24px;
}

.honor-card-title {
    font-family: var(--tg-heading-font-family);
    font-size: 18px;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 8px;
    text-transform: none;
    line-height: 1.4;
}

.honor-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slick dots */
.honor-slider .slick-dots {
    bottom: -10px;
}

.honor-slider .slick-dots li button:before {
    font-size: 10px;
    color: var(--tg-primary-color);
}

.honor-slider .slick-dots li.slick-active button:before {
    color: var(--dxmt-accent);
}

/* Slick global: ẩn text, hiện icon qua ::before */
.slick-prev,
.slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    display: block;
}

.slick-prev:before,
.slick-next:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    line-height: 1;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
}

.slick-prev:before { content: '\f053'; } /* fa-chevron-left */
.slick-next:before { content: '\f054'; } /* fa-chevron-right */

/* Slick arrows */
.honor-slider .slick-prev,
.honor-slider .slick-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.honor-slider .slick-prev:hover,
.honor-slider .slick-next:hover {
    background: var(--tg-primary-color);
}

.honor-slider .slick-prev:hover:before,
.honor-slider .slick-next:hover:before {
    color: #fff;
}

.honor-slider .slick-prev:before,
.honor-slider .slick-next:before {
    color: var(--tg-primary-color);
    font-size: 18px;
}

.honor-slider .slick-prev {
    left: -22px;
}

.honor-slider .slick-next {
    right: -22px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .honor-card-img { height: 240px; }
    .honor-card-img.honor-img-portrait { height: 360px; }
    .honor-slider .slick-prev { left: -10px; }
    .honor-slider .slick-next { right: -10px; }
}

@media (max-width: 767.98px) {
    .honor-card-img { height: 220px; }
    .honor-card-img.honor-img-portrait { height: 320px; }
    .honor-slider .slick-prev,
    .honor-slider .slick-next { display: none !important; }
}

/* ==========================================================================
   8b. HOME TEAM SECTION — Unified member grid (leaders highlighted)
   ========================================================================== */
.home-team-section {
    background: var(--tg-secondary-background);
}

/* --- MEMBER CARDS --- */
.ht-member-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ht-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 80, 145, 0.1);
}

.ht-member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid #f0f4f9;
    transition: border-color 0.3s ease;
}

.ht-member-card:hover .ht-member-avatar {
    border-color: var(--tg-primary-color);
}

.ht-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ht-member-info {
    margin-bottom: 14px;
    flex: 1;
}

.ht-member-name {
    font-family: var(--tg-heading-font-family);
    font-size: 16px;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 4px;
    text-transform: none;
}

.ht-member-position {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.ht-member-contact {
    display: flex;
    gap: 8px;
}

.ht-member-contact a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f9;
    color: var(--tg-primary-color);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ht-member-contact a:hover {
    background: var(--tg-primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Leader variant — gold ring + position highlighted */
.ht-member-leader .ht-member-avatar {
    border: 3px solid var(--dxmt-accent);
    box-shadow: 0 0 0 3px rgba(232, 129, 28, 0.15);
}

.ht-member-leader .ht-member-position {
    color: var(--dxmt-accent);
    font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .ht-leader-img {
        height: 280px;
    }
}

@media (max-width: 767.98px) {
    .ht-leader-img {
        height: 250px;
    }
    .ht-leader-name {
        font-size: 18px;
    }
    .ht-member-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 479.98px) {
    .ht-leader-actions {
        flex-direction: column;
    }
    .ht-action-btn {
        justify-content: center;
    }
}

/* ==========================================================================
   9. TESTIMONIAL / AWARDS
   ========================================================================== */
.testimonial-area {
    background: var(--tg-secondary-background);
}

.testimonial-item .testimonial-thumb .icon {
    box-shadow: 0 4px 15px rgba(26, 80, 145, 0.25);
}

.testimonial-item .testimonial-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.testimonial-item .testimonial-content span {
    font-weight: 600;
    color: var(--tg-primary-color);
}

/* ==========================================================================
   10. BLOG CARDS
   ========================================================================== */
.blog-area {
    background: #fff;
}

.blog-item .blog-thumb {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.blog-item .blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-item .blog-content .title {
    font-size: 17px;
    line-height: 1.5;
    color: #1e2a3a;
    text-transform: none;
}

.blog-item .blog-content .title a {
    color: #1e2a3a;
}

.blog-item .blog-content .title a:hover {
    color: var(--tg-primary-color);
}

.blog-item .blog-meta ul li {
    font-size: 13px;
    color: #888;
}

.blog-item .blog-meta ul li a {
    color: var(--tg-primary-color);
}

/* ==========================================================================
   11. NEWSLETTER / CTA FORM — Match abt-cta style
   ========================================================================== */
.newsletter-inner {
    background: linear-gradient(135deg, #0d3868 0%, #1a5091 50%, #1e6cb5 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 60px 40px;
}

/* Decorative pattern overlay */
.newsletter-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

/* Content — centered like abt-cta */
.newsletter-content {
    position: relative;
    z-index: 1;
    margin-bottom: 35px;
}

.nl-sub-title {
    display: inline-block;
    color: var(--dxmt-accent);
    font-family: var(--tg-body-font-family);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.nl-title {
    color: #fff;
    font-family: var(--tg-heading-font-family);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    text-transform: none;
}

.nl-desc {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form — centered row */
.newsletter-form {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.nl-form-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nl-form-field {
    flex: 1;
    min-width: 180px;
}

.nl-form-field input {
    width: 100%;
    font-family: var(--tg-body-font-family);
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 8px;
    height: 52px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nl-form-field input:focus {
    background: rgba(255,255,255,0.16);
    border-color: var(--dxmt-accent);
    outline: none;
}

.nl-form-field input::placeholder {
    color: rgba(255,255,255,0.5);
}

.nl-form-submit button {
    font-family: var(--tg-heading-font-family);
    font-weight: 600;
    font-size: 15px;
    background: var(--dxmt-accent);
    border: 2px solid var(--dxmt-accent);
    color: #fff;
    height: 52px;
    padding: 0 30px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nl-form-submit button:hover {
    background: #d0740f;
    border-color: #d0740f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 129, 28, 0.4);
}

.nl-form-agree {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.nl-form-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--dxmt-accent);
    cursor: pointer;
}

.nl-form-agree label {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}

.nl-form-agree label span {
    color: var(--dxmt-accent);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 767.98px) {
    .newsletter-inner {
        padding: 40px 24px;
    }
    .nl-title {
        font-size: 22px;
    }
    .nl-form-row {
        flex-direction: column;
    }
    .nl-form-field {
        min-width: 100%;
    }
    .nl-form-submit {
        width: 100%;
    }
    .nl-form-submit button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   12. FOOTER — Dark overlay for readability on background image
   ========================================================================== */

/* Dark overlay so text is always readable on ANY background image */
.footer-area.footer-bg {
    position: relative;
}

.footer-area.footer-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.96) 100%);
    z-index: 0;
}

.footer-area.footer-bg > .container {
    position: relative;
    z-index: 1;
}

/* Footer titles */
.footer-area .fw-title {
    font-family: var(--tg-heading-font-family);
    font-size: 18px;
    color: #fff;
    text-transform: none;
    margin-bottom: 25px;
}

/* Footer logo */
.footer-area .footer-logo img {
    max-height: 55px;
    width: auto;
}

/* Footer text + links — high contrast on dark overlay */
.footer-area .footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.85;
}

.footer-area .footer-contact .list-wrap li a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-area .footer-contact .list-wrap li a:hover {
    color: var(--dxmt-accent);
}

.footer-area .footer-link .list-wrap li a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-area .footer-link .list-wrap li a:hover {
    color: var(--dxmt-accent);
}

/* Footer newsletter form — visible inputs on dark bg */
.footer-newsletter input[type="text"],
.footer-newsletter input[type="tel"] {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    height: 48px;
    padding: 10px 16px;
    font-size: 14px;
}

.footer-newsletter input[type="text"]:focus,
.footer-newsletter input[type="tel"]:focus {
    border-color: var(--dxmt-accent);
    background: rgba(255,255,255,0.12);
    outline: none;
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.45);
}

/* Footer submit button */
.footer-newsletter button[type="submit"] {
    background: var(--dxmt-accent);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    top: 0;
}

.footer-newsletter button[type="submit"]:hover {
    background: #d0740f;
    transform: translateY(-2px);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.footer-bottom .copyright-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom .copyright-text p span {
    color: rgba(255,255,255,0.8);
}

/* Footer social icons */
.footer-social .list-wrap li a {
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.footer-social .list-wrap li a:hover {
    background: var(--dxmt-accent);
    border-color: var(--dxmt-accent);
    color: #fff;
}

/* ==========================================================================
   13. SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--tg-primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #134075;
}

/* ==========================================================================
   14. LAZY LOAD
   ========================================================================== */
img.lazy,
video.lazy,
iframe.lazy {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img.lazy.loaded,
img.lazy[data-ll-status="loaded"],
img.lazy[data-ll-status="loading"][src],
video.lazy.loaded,
video.lazy[data-ll-status="loaded"],
iframe.lazy.loaded,
iframe.lazy[data-ll-status="loaded"] {
    opacity: 1;
}

.lazy[data-bg] {
    background-color: #f0f0f0;
    transition: background-image 0.4s ease-in-out;
}

img.lazy:not(.loaded):not([data-ll-status="loaded"]) {
    background: linear-gradient(110deg, #f0f0f0 8%, #fafafa 18%, #f0f0f0 33%);
    background-size: 200% 100%;
    animation: lazyShimmer 1.5s infinite linear;
}

@keyframes lazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   14b. VIDEO SECTION — Full-width, white tone
   ========================================================================== */
.home-video-section {
    background: #fff;
    padding: 80px 0 0;
}

.home-video-header {
    text-align: center;
    margin-bottom: 48px;
}

.home-video-header .sub-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dxmt-accent);
    margin-bottom: 12px;
}

.home-video-header .title {
    font-size: 32px;
    color: var(--tg-primary-color);
    margin: 0;
}

/* Full-width player — không bị container giới hạn */
.home-video-player {
    width: 100%;
    box-shadow: 0 -4px 40px rgba(26, 80, 145, .08);
}

/* 16:9 ratio wrapper */
.home-video-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.home-video-ratio iframe,
.home-video-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

@media (max-width: 767px) {
    .home-video-section { padding-top: 60px; }
    .home-video-header .title { font-size: 22px; }
}

/* ==========================================================================
   15. SCROLL-TO-TOP BUTTON
   ========================================================================== */
.scroll-top {
    background: var(--tg-primary-color);
}

.scroll-top:hover {
    background: var(--dxmt-accent);
}

/* ==========================================================================
   16. CATEGORY HEADER / BREADCRUMB PAGES
   ========================================================================== */
/* Override Reland link color inside category header */
.luxe-category-header a,
.luxe-category-header .luxe-breadcrumb a {
    color: rgba(255,255,255,0.75);
}
.luxe-category-header a:hover,
.luxe-category-header .luxe-breadcrumb a:hover {
    color: #fff;
}
/* Filter active/hover không bị override bởi global a:hover */
.luxe-filter-btn.active,
.luxe-filter-btn.active:hover {
    color: #fff !important;
}

/* ==========================================================================
   17. TEAM PAGE
   ========================================================================== */
.team-area .team-content .title {
    text-transform: none;
}

/* ==========================================================================
   18. RESPONSIVE
   Breakpoints:
     Tablet:       max-width 991.98px
     Mobile:       max-width 767.98px
     Small mobile: max-width 479.98px
   ========================================================================== */

/* =======================
   TABLET — 768px to 991px
   ======================= */
@media screen and (max-width: 991.98px) {

    /* Section padding: 140px → 90px */
    .section-py-140                { padding-top: 90px; padding-bottom: 90px; }
    .section-pt-140, .section-pt-135 { padding-top: 90px; }
    .section-pb-140                { padding-bottom: 90px; }
    .features-pb-80, .blog-pb-80   { padding-bottom: 60px; }

    /* Adjacent section overrides — tablet */
    .about-area + .project-area    { padding-top: 0; }
    .project-area + .features-area { padding-top: 60px; }
    .honor-section + .home-team-section { padding-top: 50px; }

    /* Typography */
    .section-title .title          { font-size: 28px; }
    .banner-content .title         { font-size: 36px; }
    .banner-content p              { font-size: 15px; }
    .newsletter-content .section-title .title { font-size: 24px; }

    /* Blog: kill position sticky on non-desktop so it doesn't overlap */
    .blog-area .section-title.position__sticky {
        position: static !important;
        margin-bottom: 30px;
    }

    /* Team avatar slightly smaller */
    .ht-member-avatar { width: 80px; height: 80px; }

    /* Project image height */
    .project-item .project-thumb img { height: 240px; }

    /* Honor card image */
    .honor-card-img { height: 240px; }
    .honor-slider .slick-prev { left: -10px; }
    .honor-slider .slick-next { right: -10px; }
}

/* =======================
   MOBILE — max 767px
   ======================= */
@media screen and (max-width: 767.98px) {

    /* Section padding: 140px → 60px */
    .section-py-140                { padding-top: 60px; padding-bottom: 60px; }
    .section-pt-140, .section-pt-135 { padding-top: 60px; }
    .section-pb-140                { padding-bottom: 60px; }
    .features-pb-80, .blog-pb-80   { padding-bottom: 48px; }

    /* Adjacent section overrides — mobile */
    .about-area + .project-area    { padding-top: 0; }
    .project-area + .features-area { padding-top: 48px; }
    .honor-section + .home-team-section { padding-top: 40px; }

    /* iOS zoom fix — inputs must be ≥ 16px to prevent auto-zoom */
    .footer-form-input,
    .contact-form-control,
    .project-contact-form .form-control,
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    textarea,
    select { font-size: 16px !important; }

    /* --- Typography --- */
    .section-title .title          { font-size: 24px; }
    .section-title .sub-title      { font-size: 12px; letter-spacing: 2px; }
    .banner-content .title         { font-size: 28px; }
    .banner-content p              { font-size: 14px; }

    /* Logo */
    .menu-area .logo img           { max-height: 40px; }

    /* --- About: counter stats (col-6 = 2-col, fine) --- */
    .counter-item h2               { font-size: 30px; }
    .counter-item p                { font-size: 12px; }

    /* --- FEATURES: compact 2-col card (col-6 grid)
         Hide paragraph to avoid cramped text. Icon + title only. --- */
    .features-item {
        text-align: center;
        padding: 20px 10px;
    }
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    .features-item .feature-content .title {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 0;
    }
    .features-item .feature-content p {
        display: none; /* re-shown at ≤479px with 1-col layout */
    }

    /* --- PROJECTS: reduce image height on 2-col --- */
    .project-item .project-thumb img { height: 180px; }
    .project-item .project-content .title a { font-size: 15px; }

    /* --- HONOR BOARD --- */
    .honor-card-img                { height: 200px; }
    .honor-slider .slick-prev,
    .honor-slider .slick-next      { display: none !important; }

    /* --- TEAM: compact card --- */
    .ht-member-avatar              { width: 72px; height: 72px; }
    .ht-member-name                { font-size: 14px; }
    .ht-member-position            { font-size: 12px; }
    .ht-member-contact a           { width: 32px; height: 32px; font-size: 13px; }

    /* --- BLOG SECTION ---
         Title (col-lg-4) stacks above posts (col-lg-8) at tablet already.
         Kill sticky so no overlap. */
    .blog-area .section-title.position__sticky {
        position: static !important;
        margin-bottom: 24px;
    }

    /* Blog items: force 1-per-row (override col-6)
       Then show as horizontal card: [thumb 110px] [text flex-1] */
    .blog-item-wrap .col-lg-6.col-md-6.col-sm-6.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .blog-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.07);
        margin-bottom: 14px;
    }
    .blog-item .blog-thumb {
        width: 110px;
        min-width: 110px;
        border-radius: 0;
    }
    .blog-item .blog-thumb img {
        width: 110px;
        height: 100px;
        border-radius: 0;
        object-fit: cover;
    }
    .blog-item .blog-content {
        flex: 1;
        padding: 12px 14px 12px 0;
    }
    .blog-item .blog-content .title {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .blog-item .blog-content .title a { font-size: inherit; }
    .blog-item .blog-meta ul li      { font-size: 12px; }

    /* --- NEWSLETTER: stack form inputs vertically --- */
    .newsletter-content .section-title .title { font-size: 20px; }
    .nl-form-row          { flex-direction: column; gap: 10px; }
    .nl-form-field        { min-width: unset; width: 100%; }
    .nl-form-submit button { width: 100%; justify-content: center; }
}

/* =======================
   SMALL MOBILE — max 479px
   ======================= */
@media screen and (max-width: 479.98px) {

    /* Section padding: 60px → 50px */
    .section-py-140                { padding-top: 50px; padding-bottom: 50px; }
    .section-pt-140, .section-pt-135 { padding-top: 50px; }
    .section-pb-140                { padding-bottom: 50px; }

    /* Typography */
    .section-title .title          { font-size: 22px; }
    .banner-content .title         { font-size: 24px; }
    .counter-item h2               { font-size: 26px; }

    /* --- FEATURES: switch to 1-col horizontal layout
         Override Bootstrap col-6 → full width
         Restore paragraph text (now readable at full width) --- */
    .features-area .col-lg-4.col-md-6.col-sm-6.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .features-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        text-align: left;
        padding: 16px 20px;
    }
    .feature-icon {
        margin: 0;
        flex-shrink: 0;
    }
    .features-item .feature-content .title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .features-item .feature-content p {
        display: block;  /* restore paragraph at 1-col */
        font-size: 13px;
        line-height: 1.6;
    }

    /* --- PROJECTS: switch to 1-col
         2-col project images at 240px wide × 180px tall is too portrait-like --- */
    .project-item-wrap .col-lg-6.col-md-6.col-sm-6.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .project-item .project-thumb img { height: 220px; }

    /* --- Newsletter inner padding --- */
    .newsletter-inner { padding: 40px 24px; }
}

/* =======================
   IMAGE PLACEHOLDER FALLBACK — global
   Applies when img.img-placeholder-fallback or SVG placeholder is shown
   ======================= */

/* Honor board: fixed-height card — contain SVG with light bg */
.honor-card-img img.img-placeholder-fallback,
.honor-card-img img[src*="placeholders"] {
    object-fit: contain;
    padding: 18%;
    background: linear-gradient(135deg, #e8f0f9 0%, #d0e2f5 100%);
}

/* Home team avatar (circle) — center SVG inside circle */
.ht-member-avatar img.img-placeholder-fallback,
.ht-member-avatar img[src*="placeholders"] {
    object-fit: contain;
    padding: 20%;
    background: #edf3fb;
}

/* doi-ngu page: leader card photo */
.leader-photo img.img-placeholder-fallback,
.leader-photo img[src*="placeholders"] {
    object-fit: contain;
    padding: 16%;
    background: linear-gradient(135deg, #e8f0f9 0%, #d0e2f5 100%);
}

/* doi-ngu page: member card photo */
.member-photo img.img-placeholder-fallback,
.member-photo img[src*="placeholders"] {
    object-fit: contain;
    padding: 18%;
    background: #edf3fb;
}

/* about page: leader card */
.abt-leader-img img.img-placeholder-fallback,
.abt-leader-img img[src*="placeholders"] {
    object-fit: contain;
    padding: 20%;
    background: linear-gradient(135deg, #e8f0f9 0%, #d0e2f5 100%);
}

/* Override Reland base: .separator có border-top gây ra đường kẻ ngang không mong muốn */
.separator {
    border-top: none;
}
