/* ==========================================================================
   GIA PHẢ DÒNG HỌ (GPDH SAAS) — PHASE 2 TENANT FRONTEND STYLESHEET
   Tương thích 100% biến CSS động :root từ tblconfig.theme_settings
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'Philosopher', sans-serif);
    font-size: var(--font-size-base, 16px);
    color: var(--color-text, #333333);
    background-color: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   TRIAL BANNER (KHI DÒNG HỌ ĐANG DÙNG THỬ 7 NGÀY)
   ========================================================================== */
.tenant-trial-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99990;
    background: linear-gradient(135deg, #0f172a 0%, var(--color-main, #046c52) 100%);
    color: #ffffff;
    border: 1px solid var(--color-gold, #D1A659);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 32px);
}

.tenant-trial-bar a {
    background: var(--color-gold, #D1A659);
    color: #ffffff;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.tenant-trial-bar a:hover {
    opacity: 0.9;
}

/* ==========================================================================
   WATERMARK / PARCHMENT HERITAGE BACKGROUND
   ========================================================================== */
.bg-watermark {
    background-color: var(--color-bg-light, #F9F8F6);
    background-image:
        linear-gradient(180deg, rgba(249, 248, 246, 0.88) 0%, rgba(249, 248, 246, 0.94) 100%),
        var(--bg-chinh-url, radial-gradient(circle at 20% 20%, rgba(209, 166, 89, 0.14) 0%, transparent 55%));
    background-size: cover;
    background-position: center;
}

body.bg-full-watermark {
    background-color: var(--color-bg-light, #F9F8F6);
    background-image:
        linear-gradient(180deg, rgba(249, 248, 246, 0.28) 0%, rgba(249, 248, 246, 0.28) 100%),
        var(--bg-chinh-url, radial-gradient(circle at 20% 20%, rgba(209, 166, 89, 0.14) 0%, transparent 55%));
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

body.bg-full-watermark .section-pad,
body.bg-full-watermark .section-pad.bg-light,
body.bg-full-watermark .bg-light,
body.bg-full-watermark .news-section,
body.bg-full-watermark .detail-section,
body.bg-full-watermark .gallery-section,
body.bg-full-watermark .video-section,
body.bg-full-watermark .info-page-wrapper,
body.bg-full-watermark .news-page-wrapper,
body.bg-full-watermark .detail-page-wrapper,
body.bg-full-watermark .album-page-wrapper,
body.bg-full-watermark .album-detail-wrapper,
body.bg-full-watermark .video-page-wrapper,
body.bg-full-watermark .video-detail-wrapper {
    background: transparent !important;
}

body.bg-full-watermark #fullScreenZone {
    min-height: calc(100vh - 220px);
    background: transparent !important;
}

#fullScreenZone:fullscreen,
#fullScreenZone:-webkit-full-screen {
    background-color: var(--color-bg-light, #F9F8F6) !important;
    background-image:
        linear-gradient(180deg, rgba(249, 248, 246, 0.28) 0%, rgba(249, 248, 246, 0.28) 100%),
        var(--bg-chinh-url, radial-gradient(circle at 20% 20%, rgba(209, 166, 89, 0.14) 0%, transparent 55%)) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    min-height: 100vh !important;
    width: 100vw !important;
    overflow: auto !important;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100005;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0) 100%);
}

#mainHeader.header-scrolled {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-main, #046c52) 88%, #0f172a 12%) 0%,
        rgba(15, 23, 42, 0.96) 100%
    ) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
    border-bottom: 2px solid var(--color-gold, #D1A659);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    flex-shrink: 0;
}

.logo img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.logo-emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-gold, #D1A659);
    background: rgba(4, 108, 82, 0.9);
    color: var(--color-gold, #D1A659);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-wrapper {
    display: flex;
    align-items: center;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 24px 15px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.main-menu > li > a:hover,
.main-menu > li:hover > a,
.main-menu > li > a.nav-active {
    color: var(--color-gold, #D1A659) !important;
    text-shadow: 0 0 8px rgba(209, 166, 89, 0.4);
}

.main-menu li a i.fa-angle-down {
    margin-left: 6px;
    font-size: 0.78em;
    color: var(--color-gold, #D1A659);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu li:hover > a i.fa-angle-down {
    transform: rotate(180deg);
}

.btn-search-icon {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-search-icon:hover {
    color: var(--color-gold, #D1A659);
    transform: scale(1.1);
}

.btn-admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(209, 166, 89, 0.22);
    border: 1px solid var(--color-gold, #D1A659);
    color: #fef3c7 !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-admin-chip:hover {
    background: var(--color-gold, #D1A659);
    color: #ffffff !important;
}

/* Dropdown Menu */
.main-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 235px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--color-gold, #D1A659);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
}

.main-menu li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #1e293b !important;
    font-size: 15px;
    font-weight: 500;
    text-shadow: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.main-menu .dropdown-menu li a i {
    color: #94a3b8;
    font-size: 11px;
    transition: all 0.2s ease;
}

.main-menu .dropdown-menu li a:hover {
    background-color: var(--color-bg-light, #F9F8F6);
    color: var(--color-gold, #D1A659) !important;
    padding-left: 24px;
}

.main-menu .dropdown-menu li a:hover i {
    color: var(--color-gold, #D1A659);
}

.mobile-toggle {
    display: none;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(209, 166, 89, 0.65);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 99998;
}

.mobile-overlay.active {
    display: block;
}

.mobile-search-btn {
    display: none;
}

/* ==========================================================================
   FULLSCREEN SEARCH MODAL
   ========================================================================== */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(9, 24, 18, 0.94);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 28px;
    right: 32px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-close:hover {
    background: var(--color-gold, #D1A659);
    border-color: var(--color-gold, #D1A659);
}

.search-form {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.search-form h3 {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    color: var(--color-gold, #D1A659);
    font-size: 30px;
    margin: 0 0 24px 0;
    letter-spacing: 0.5px;
}

.search-input-wrap {
    display: flex;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 16px;
    font-family: var(--font-body, 'Philosopher', sans-serif);
    color: #1e293b;
}

.search-input-wrap button {
    background: var(--color-main, #046c52);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0 28px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s;
}

.search-input-wrap button:hover {
    background: var(--color-gold, #D1A659);
}

/* ==========================================================================
   HERO SLIDER (TRANG CHỦ)
   ========================================================================== */
.hero-wrap {
    position: relative;
    width: 100%;
    height: 82vh;
    min-height: 540px;
    max-height: 760px;
    overflow: hidden;
    background: #0e1e18;
}

.hero-slider,
.hero-slider .slick-list,
.hero-slider .slick-track {
    height: 100%;
}

.hero-slide-item {
    position: relative;
    width: 100%;
    height: 82vh;
    min-height: 540px;
    max-height: 760px;
    background-size: cover;
    background-position: center;
    background-color: #142a21;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 20, 16, 0.82) 0%,
        rgba(8, 20, 16, 0.55) 52%,
        rgba(8, 20, 16, 0.25) 100%
    );
}

.hero-content-fixed {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.hero-content-box {
    max-width: 650px;
    color: #ffffff;
    pointer-events: auto;
    padding-top: 40px;
}

.hero-accent {
    font-family: var(--font-accent, 'Italianno', cursive);
    font-size: clamp(44px, 5vw, 66px);
    color: var(--color-gold, #D1A659);
    line-height: 1.05;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-title {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px 0;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 28px 0;
    padding-left: 16px;
    border-left: 3px solid var(--color-gold, #D1A659);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-gold, #D1A659) 0%, #b78637 100%);
    color: #ffffff !important;
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(209, 166, 89, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(209, 166, 89, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 2px solid var(--color-main, #046c52);
    color: var(--color-main, #046c52);
    border-radius: 999px;
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: var(--color-main, #046c52);
    color: #ffffff;
}

/* ==========================================================================
   PAGE BANNER (ĐỒNG BỘ TOÀN BỘ CÁC TRANG CON)
   ========================================================================== */
.page-banner {
    position: relative;
    padding: 130px 0 46px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-main, #046c52);
    border-bottom: 3px solid var(--color-gold, #D1A659);
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 42, 33, 0.70);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-main, #046c52) 68%, transparent) 0%,
        rgba(8, 22, 20, 0.74) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 10;
    text-align: left;
}

.page-banner h1.banner-title,
.page-banner h1 {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold, #D1A659) !important;
    margin: 0 0 12px 0;
    letter-spacing: 0.8px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

.page-banner .banner-breadcrumb,
.page-banner .breadcrumb {
    margin: 0;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.page-banner .banner-breadcrumb a,
.page-banner .breadcrumb a {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.page-banner .banner-breadcrumb a:hover,
.page-banner .breadcrumb a:hover {
    color: var(--color-gold, #D1A659) !important;
}

.page-banner .banner-breadcrumb span,
.page-banner .breadcrumb span {
    color: rgba(255, 255, 255, 0.88);
}

.page-banner .banner-breadcrumb i,
.page-banner .breadcrumb i {
    color: var(--color-gold, #D1A659);
    font-size: 12px;
}

/* ==========================================================================
   GENEALOGY POPUP Z-INDEX & STACKING CONTEXT FIX (DỌC / NGANG / THEO ĐỜI)
   ========================================================================== */
.v-tree li.is-popup-active,
.v-tree ul.is-popup-active,
.v-tree .v-node-box.is-popup-active,
.h-tree li.is-popup-active,
.h-tree ul.is-popup-active,
.h-tree .h-node-box.is-popup-active,
.table-matrix tr.is-popup-active,
.table-matrix td.is-popup-active,
.person-action-target.is-popup-active,
.person-wrap.is-popup-active,
.v-tree li:has(.menu-open),
.v-tree .v-node-box:has(.menu-open),
.h-tree li:has(.menu-open),
.h-tree .h-node-box:has(.menu-open),
.table-matrix tr:has(.menu-open),
.table-matrix td:has(.menu-open) {
    position: relative !important;
    z-index: 99999 !important;
}

/* ==========================================================================
   SECTIONS & TITLES
   ========================================================================== */
.section-pad {
    padding: 68px 0;
}

.sec-title-box {
    text-align: center;
    margin-bottom: 42px;
}

.sec-accent {
    font-family: var(--font-accent, 'Italianno', cursive);
    font-size: 40px;
    color: var(--color-gold, #D1A659);
    line-height: 1;
    margin-bottom: 4px;
}

.sec-title {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-main, #046c52);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.sec-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 3px;
    background: var(--color-gold, #D1A659);
    border-radius: 3px;
}

/* ==========================================================================
   ABOUT & STATS BAR
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: 44px;
    align-items: center;
}

.about-text {
    font-size: var(--font-size-base, 16px);
    line-height: 1.85;
    color: var(--color-text, #334155);
    text-align: justify;
}

.about-text p {
    margin: 0 0 14px 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-img {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
}

.about-img img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.about-img-placeholder {
    width: 100%;
    padding: 72px 30px;
    border-radius: 14px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg-light, #F9F8F6) 0%, #ede7da 100%);
    border: 1px dashed rgba(209, 166, 89, 0.55);
    color: var(--color-main, #046c52);
}

.about-img-placeholder i {
    font-size: 54px;
    color: var(--color-gold, #D1A659);
    margin-bottom: 12px;
    display: block;
}

.about-img-placeholder strong {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 20px;
}

.stats-wrap {
    margin-top: 46px;
    background: linear-gradient(135deg, var(--color-main, #046c52) 0%, #024635 100%);
    border-radius: 14px;
    padding: 34px 24px;
    box-shadow: 0 14px 32px rgba(4, 108, 82, 0.22);
    border: 1px solid rgba(209, 166, 89, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat-item {
    position: relative;
    padding: 8px 12px;
}

.stat-item h3 {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-gold, #D1A659);
    margin: 0 0 4px 0;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ---------- Rich-Text Editor Output (YouTube 16:9, Tables, Blockquote, HR) ---------- */
.gpdh-video-embed {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 18px auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.gpdh-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-text table,
.article-content table,
.info-body table,
.detail-body table,
table.gpdh-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

.about-text th,
.about-text td,
.article-content th,
.article-content td,
.info-body th,
.info-body td,
.detail-body th,
.detail-body td,
table.gpdh-table th,
table.gpdh-table td {
    border: 1px solid #d7d2c6;
    padding: 9px 12px;
    text-align: left;
}

.about-text th,
.article-content th,
.info-body th,
.detail-body th,
table.gpdh-table th {
    background: #f5f2ea;
    color: var(--color-main, #046c52);
    font-weight: 700;
}

.about-text blockquote,
.article-content blockquote,
.info-body blockquote,
.detail-body blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--color-gold, #D1A659);
    background: #faf7f0;
    color: #3f4b56;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.about-text hr,
.article-content hr,
.info-body hr,
.detail-body hr {
    border: 0;
    border-top: 1px solid #dfd9cc;
    margin: 20px 0;
}

/* ==========================================================================
   NEWS SLIDER (TRANG CHỦ)
   ========================================================================== */
.news-slider .slick-slide {
    padding: 10px 12px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #ece8df;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

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

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

.news-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-info .news-title {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card:hover .news-info .news-title {
    color: var(--color-main, #046c52);
}

.news-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-slider .slick-dots {
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 22px 0 0 0;
}

.news-slider .slick-dots li button {
    font-size: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s;
}

.news-slider .slick-dots li.slick-active button {
    width: 26px;
    border-radius: 999px;
    background: var(--color-main, #046c52);
}

/* ==========================================================================
   FAMILY EVENTS TABS (NGÀY GIỖ ÂM LỊCH & SINH NHẬT)
   ========================================================================== */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--color-main, #046c52);
    color: #ffffff;
    border-color: var(--color-main, #046c52);
    box-shadow: 0 6px 16px rgba(4, 108, 82, 0.24);
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e0d5;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.event-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold, #D1A659);
}

.ev-date {
    width: 78px;
    min-width: 78px;
    padding: 10px 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-main, #046c52) 0%, #034b38 100%);
    color: #ffffff;
    text-align: center;
    border-bottom: 3px solid var(--color-gold, #D1A659);
}

.ev-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-gold, #D1A659);
    font-variant-numeric: tabular-nums;
}

.ev-month {
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.9);
}

.ev-info h4 {
    margin: 0 0 6px 0;
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 17px;
    color: #1e293b;
}

.ev-info h4 a:hover {
    color: var(--color-main, #046c52);
}

.ev-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ev-info p i {
    color: var(--color-gold, #D1A659);
}

/* ==========================================================================
   GALLERY GRID (TRANG CHỦ: HÌNH ẢNH & VIDEO)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.gallery-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111827;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 32px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 3;
}

.gallery-card:hover .gallery-icon {
    transform: translate(-50%, -50%) scale(1.15);
    color: var(--color-gold, #D1A659);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.84) 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: 2;
}

.gallery-title {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================================================
   SHARE TOOLKIT BAR (COPY LINK, ZALO, FACEBOOK / MESSENGER)
   ========================================================================== */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.share-bar-label {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-bar-label i {
    color: var(--color-main, #046c52);
}

.share-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-body, 'Philosopher', sans-serif);
}

.btn-share-copy {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-share-copy:hover,
.btn-share-copy.is-copied {
    background: var(--color-main, #046c52);
    color: #ffffff;
    border-color: var(--color-main, #046c52);
}

.btn-share-zalo {
    background: #0068ff;
    color: #ffffff !important;
}

.btn-share-zalo:hover {
    background: #0052cc;
}

.btn-share-fb {
    background: #1877f2;
    color: #ffffff !important;
}

.btn-share-fb:hover {
    background: #145dbf;
}

/* ==========================================================================
   STANDALONE VIDEO DETAIL PAGE (/video/{id}/{slug}.html)
   ========================================================================== */
.video-player-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    margin-bottom: 22px;
}

.video-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.related-video-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    align-items: flex-start;
    text-decoration: none;
}

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

.related-video-thumb {
    position: relative;
    flex: 0 0 104px;
    height: 62px;
    border-radius: 6px;
    overflow: hidden;
    background: #000000;
}

.related-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 18px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.related-video-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.related-video-item:hover .related-video-title {
    color: var(--color-main, #046c52);
}

/* ==========================================================================
   PERSON PROFILE CARD (AJAX FANCYBOX & STANDALONE)
   ========================================================================== */
.person-detail-card {
    max-width: 780px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-body, 'Philosopher', sans-serif);
    color: #1e293b;
}

.person-detail-header {
    background: linear-gradient(135deg, var(--color-main, #046c52) 0%, #0b241d 100%);
    color: #ffffff;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 3px solid var(--color-gold, #D1A659);
}

.person-avatar-box {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid var(--color-gold, #D1A659);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--color-gold, #D1A659);
}

.person-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-detail-body {
    padding: 24px 28px;
}

.person-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-bottom: 20px;
}

.person-meta-row {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
    font-size: 14px;
}

.person-meta-label {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
}

.person-meta-value {
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
}

.person-bio-box {
    background: #faf9f6;
    border: 1px solid #ece7dc;
    border-radius: 8px;
    padding: 16px 20px;
    line-height: 1.75;
    font-size: 15px;
}

/* ==========================================================================
   FOOTER ĐỒNG BỘ HOA VĂN BGTREN & OVERLAY
   ========================================================================== */
.footer {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--color-main, #046c52);
    color: #e2e8f0;
    padding: 58px 0 0;
    border-top: 4px solid var(--color-gold, #D1A659);
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-main, #046c52) 92%, #061812 8%) 0%,
        rgba(3, 62, 46, 0.94) 100%
    );
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 1.2fr;
    gap: 36px;
    padding-bottom: 42px;
}

.foot-logo {
    max-width: 150px;
    max-height: 130px;
    object-fit: contain;
}

.foot-title {
    font-family: var(--font-heading, 'Philosopher', sans-serif);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold, #D1A659);
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    position: relative;
}

.foot-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--color-gold, #D1A659);
}

.foot-contact,
.foot-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foot-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #f1f5f9;
}

.foot-contact li i {
    color: var(--color-gold, #D1A659);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.foot-links li {
    margin-bottom: 9px;
}

.foot-links li a {
    color: #e2e8f0;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, transform 0.2s;
}

.foot-links li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    color: var(--color-gold, #D1A659);
    font-size: 12px;
}

.foot-links li a:hover {
    color: var(--color-gold, #D1A659);
    transform: translateX(4px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.copyright b {
    color: var(--color-gold, #D1A659);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-toggle {
        display: inline-flex;
    }

    .btn-search-icon {
        display: none;
    }

    .mobile-search-btn {
        display: block;
    }

    .menu-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #0b241d 0%, #0f172a 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 82px 0 30px;
        transition: right 0.3s ease;
        z-index: 100000;
        overflow-y: auto;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.4);
    }

    .menu-wrapper.active {
        right: 0;
    }

    .main-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .main-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-menu > li > a {
        width: 100%;
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 15px;
    }

    .main-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.06);
        padding: 4px 0;
    }

    .main-menu .dropdown-menu.open {
        display: block;
    }

    .main-menu .dropdown-menu li a {
        color: #e2e8f0 !important;
        padding: 10px 28px;
    }

    .btn-admin-chip {
        margin: 14px 20px 0;
        justify-content: center;
    }

    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .gallery-grid,
    .person-meta-grid {
        grid-template-columns: 1fr;
    }

    .person-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .section-pad {
        padding: 48px 0;
    }

    .page-banner {
        padding: 108px 0 34px;
    }

    .share-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    .tenant-trial-bar,
    .share-bar,
    #mainHeader,
    .search-modal,
    .page-banner,
    .info-sidebar,
    .detail-footer,
    .footer {
        display: none !important;
    }
}
