/**
 * Thiên Long Bát Bộ - Portal Game Theme CSS
 * Design System dựa trên Source Reference TLBB (C:\Home_Web)
 * Container 960px, Palette #161939 / #0d1334 / #071f2d, Gold Accent, Typography Kiếm Hiệp
 */

:root {
    --tl-gold: #ffd943;
    --tl-gold-dark: #b88628;
    --tl-gold-light: #fff2c6;
    --tl-dark-bg: #161939;
    --tl-dark-cnt: #0d1334;
    --tl-dark-panel: #071f2d;
    --tl-dark-card: #0d1334;
    --tl-dark-card-hover: #131a47;
    --tl-dark-border: #1a2550;
    --tl-border-highlight: #4d6fa8;
    --tl-cyan: #84f5ff;
    --tl-red: #d32f2f;
    --tl-red-hover: #b71c1c;
    --tl-text-light: #90b3eb;
    --tl-text-main: #7799d1;
    --tl-text-muted: #5e79a8;
}

body.portal-body {
    background-color: var(--tl-dark-bg);
    color: var(--tl-text-main);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    background-image: url('../images/NEN-WEB.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: scroll;
    background-size: 1920px auto;
}

/* ==========================================================
   CONTAINER 960PX DESIGN SYSTEM
   ========================================================== */
.container.portal-container,
.portal-wrap-960 {
    max-width: 960px !important;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* ==========================================================
   TOP BAR & NAVIGATION
   ========================================================== */
.portal-navbar {
    background: rgba(13, 19, 52, 0.95) !important;
    border-bottom: 2px solid var(--tl-gold-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    z-index: 1030;
}

.portal-navbar .navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--tl-gold) !important;
    text-shadow: 0 0 10px rgba(255, 217, 67, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portal-navbar .navbar-brand img {
    max-height: 42px;
    margin-right: 8px;
}

.portal-navbar .navbar-brand i {
    color: var(--tl-gold);
    margin-right: 6px;
}

.portal-navbar .nav-link {
    color: #e2e1cc !important;
    font-weight: bold;
    font-size: 12px;
    padding: 0.5rem 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
    border-radius: 3px;
}

.portal-navbar .nav-link:hover,
.portal-navbar .nav-item.active .nav-link {
    color: var(--tl-gold) !important;
    background: rgba(255, 217, 67, 0.12);
}

.portal-navbar .btn-nav-download {
    background: linear-gradient(180deg, #d32f2f, #8b1818);
    color: #fff !important;
    font-weight: bold;
    border: 1px solid #ff5252;
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.6);
}

/* ==========================================================
   HERO / HEADER BANNER
   ========================================================== */
.portal-hero {
    position: relative;
    padding: 280px 0 35px; /* Tạo khoảng trống 280px bên dưới header để lộ trọn vẹn artwork nhân vật */
}

.portal-hero-banner {
    background: linear-gradient(180deg, rgba(13, 19, 52, 0.65) 0%, rgba(7, 31, 45, 0.78) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(77, 111, 168, 0.45);
    border-radius: 6px;
    padding: 28px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    position: relative;
}

.portal-hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--tl-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.portal-hero-subtitle {
    font-size: 12px;
    color: #e1ebfd;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 20px;
    line-height: 1.7;
}

.portal-btn-gold {
    background: linear-gradient(180deg, #ffd943, #d79d1a);
    color: #161939 !important;
    font-weight: bold;
    border: 1px solid #ffe885;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(255, 217, 67, 0.3);
    transition: all 0.2s ease;
    font-size: 12px;
}

.portal-btn-gold:hover {
    background: linear-gradient(180deg, #fff2a6, #ffd943);
    color: #0d1334 !important;
    box-shadow: 0 5px 15px rgba(255, 217, 67, 0.5);
}

.portal-btn-red {
    background: linear-gradient(180deg, #c62828, #8e1b1b);
    color: #fff !important;
    font-weight: bold;
    border: 1px solid #ef5350;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(198, 40, 40, 0.4);
    transition: all 0.2s ease;
    font-size: 12px;
}

.portal-btn-red:hover {
    background: linear-gradient(180deg, #e53935, #a31d1d);
    color: #fff !important;
}

/* ==========================================================
   CARDS & PANELS (SEMI-TRANSPARENT WITH ARTWORK VISIBILITY)
   ========================================================== */
.portal-card {
    background: rgba(13, 19, 52, 0.72) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(26, 37, 80, 0.85);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.portal-card:hover {
    border-color: rgba(77, 111, 168, 0.8);
    background: rgba(13, 19, 52, 0.8) !important;
}

.portal-card-header {
    background: linear-gradient(90deg, rgba(7, 31, 45, 0.85), rgba(13, 19, 52, 0.85));
    border-bottom: 1px solid rgba(26, 37, 80, 0.9);
    padding: 10px 14px;
    font-weight: bold;
    font-size: 13px;
    color: var(--tl-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-card-header i {
    margin-right: 6px;
    color: var(--tl-cyan);
}

.portal-card-body {
    padding: 14px;
    color: var(--tl-text-light);
}

/* ==========================================================
   USER WIDGET
   ========================================================== */
.portal-user-widget {
    background: linear-gradient(180deg, rgba(13, 19, 52, 0.75) 0%, rgba(7, 31, 45, 0.82) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(184, 134, 40, 0.6);
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.portal-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--tl-gold);
    box-shadow: 0 0 8px rgba(255, 217, 67, 0.4);
}

/* ==========================================================
   TABS & NEWS (REFERENCE BLOCK-TYPE-1)
   ========================================================== */
/* ==========================================================
   TABS & NEWS (REFERENCE C:\Home_Web THEME PANEL)
   ========================================================== */
.portal-news-tabs {
    background: linear-gradient(90deg, #09122c, #131c42);
    border-bottom: 2px solid #b88628;
}

.portal-news-tabs .nav-tabs {
    border-bottom: none;
}

.portal-news-tabs .nav-link {
    color: #9cb5db;
    font-weight: bold;
    font-size: 13px;
    border: none;
    border-radius: 0;
    padding: 10px 18px;
    transition: all 0.2s;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-news-tabs .nav-link:hover {
    color: var(--tl-gold);
    background: rgba(255, 217, 67, 0.08);
}

.portal-news-tabs .nav-link.active {
    color: #161939 !important;
    background: linear-gradient(180deg, #ffd943, #d79d1a) !important;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.portal-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 10px;
    border-bottom: 1px dashed rgba(77, 111, 168, 0.35);
    transition: all 0.2s;
    text-decoration: none !important;
}

.portal-news-item:hover {
    background: rgba(255, 217, 67, 0.08);
    padding-left: 14px;
}

.portal-news-item .post-title {
    color: #d1dcfa;
    font-weight: 500;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 520px;
    transition: color 0.2s;
}

.portal-news-item:hover .post-title {
    color: var(--tl-gold);
}

.portal-news-item .post-date {
    color: #7b94bf;
    font-size: 11px;
    min-width: 80px;
    text-align: right;
}

/* Category Badge Reference */
.badge-portal-cat {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
    border: 1px solid rgba(255, 217, 67, 0.3);
}

.badge-portal-news { background: rgba(33, 150, 243, 0.25); color: #64b5f6; border-color: #2196f3; }
.badge-portal-event { background: rgba(244, 67, 54, 0.25); color: #e57373; border-color: #f44336; }
.badge-portal-notice { background: rgba(255, 193, 7, 0.25); color: #ffd54f; border-color: #ffc107; }
.badge-portal-guide { background: rgba(76, 175, 80, 0.25); color: #81c784; border-color: #4caf50; }

/* Link Xem thêm */
.portal-xemthem {
    display: inline-block;
    color: #91a1ee;
    font-size: 11px;
    text-decoration: none;
    padding-left: 14px;
    position: relative;
    transition: color 0.2s;
}

.portal-xemthem:before {
    content: "»";
    position: absolute;
    left: 0;
    color: var(--tl-gold);
}

.portal-xemthem:hover {
    color: var(--tl-gold);
    text-decoration: underline;
}

/* ==========================================================
   SERVER STATUS & BADGES
   ========================================================== */
.server-status-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #00e676;
    box-shadow: 0 0 6px #00e676;
}

.status-maintenance {
    background-color: #ff5252;
    box-shadow: 0 0 6px #ff5252;
}

/* ==========================================================
   RANKING TABLES & BADGES (REFERENCE BLOCK-CAOTHU)
   ========================================================== */
.rank-badge-1, .num-1 {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #ffd700;
    color: #111;
    font-weight: bold;
    font-size: 11px;
}

.rank-badge-2, .num-2 {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #e0e0e0;
    color: #111;
    font-weight: bold;
    font-size: 11px;
}

.rank-badge-3, .num-3 {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #cd7f32;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
}

.portal-table {
    color: var(--tl-text-light);
    font-size: 11px;
    width: 100%;
}

.portal-table th {
    border-top: none;
    border-bottom: 1px solid var(--tl-border-highlight);
    color: var(--tl-gold);
    font-weight: bold;
    padding: 8px 6px;
    background: rgba(7, 31, 45, 0.6);
}

.portal-table td {
    border-bottom: 1px solid var(--tl-dark-border);
    padding: 7px 6px;
    vertical-align: middle;
}

.portal-table tbody tr:hover {
    background-color: rgba(255, 217, 67, 0.04);
}

/* ==========================================================
   BREADCRUMB & CONTENT DETAIL
   ========================================================== */
.portal-breadcrumb {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 15px;
    font-size: 11px;
}

.portal-breadcrumb a {
    color: var(--tl-text-main);
    text-decoration: none;
}

.portal-breadcrumb a:hover {
    color: var(--tl-gold);
}

.portal-breadcrumb .breadcrumb-item.active {
    color: var(--tl-gold);
}

.portal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--tl-text-muted);
}

/* ==========================================================
   TLBB MARTIAL ARTS CONTENT PANEL (REFERENCE C:\Home_Web THEME)
   Style: Parchment / Ivory Rice Paper (#fcf6ee), Ornate Gold/Brown Border (#d7cda9),
   Dark Charcoal Typography (#2d2a29), Centered Large Title, Full Background Visibility
   ========================================================== */
.tlbb-sublist-wrapper {
    max-width: 980px;
    margin: 40px auto 50px auto;
    position: relative;
    z-index: 10;
}

.tlbb-article-card {
    background-color: rgba(252, 246, 238, 0.96) !important;
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, #f7efe1 100%);
    border: 2px solid #d7cda9;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(184, 134, 40, 0.35);
    padding: 35px 45px;
    position: relative;
    color: #2e2825;
}

/* Subtle corner decor accents */
.tlbb-article-card::before,
.tlbb-article-card::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.tlbb-article-card::before {
    top: 6px;
    left: 6px;
    border-top: 2px solid #b88628;
    border-left: 2px solid #b88628;
}
.tlbb-article-card::after {
    bottom: 6px;
    right: 6px;
    border-bottom: 2px solid #b88628;
    border-right: 2px solid #b88628;
}

/* Breadcrumb in martial arts panel */
.tlbb-midbar-line {
    border-bottom: 1px dashed #d7cda9;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.tlbb-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.tlbb-breadcrumb .breadcrumb-item a {
    color: #8c7864;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tlbb-breadcrumb .breadcrumb-item a:hover {
    color: #a93e16;
}

.tlbb-breadcrumb .breadcrumb-item.active {
    color: #a93e16;
    font-weight: 600;
}

.tlbb-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #baa893;
    content: "›";
    font-size: 14px;
    padding: 0 8px;
}

/* Article Title: Centered, Bold, Traditional Red-Brown / Amber (#661e0a / #de640d) */
.tlbb-midbar-title {
    text-align: center;
    margin: 15px 0 15px 0;
}

.tlbb-midbar-title h1 {
    font-size: 28px;
    font-weight: 800;
    color: #661e0a;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
}

/* Meta: Category badge, date with dot icon, view count */
.tlbb-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #8d7b62;
    margin-top: 12px;
    margin-bottom: 20px;
}

.tlbb-article-cate {
    background: #661e0a;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.tlbb-article-cate:hover {
    background: #8b2b10;
}

.tlbb-article-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7a6a54;
    font-weight: 500;
}

.tlbb-dot-icon {
    width: 6px;
    height: 6px;
    display: inline-block;
}

.tlbb-article-views {
    color: #7a6a54;
}

.tlbb-admin-edit-link {
    font-size: 12px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px dashed #0d6efd;
    border-radius: 4px;
}

.tlbb-admin-edit-link:hover {
    background: #0d6efd;
    color: #fff !important;
}

/* Divider Line */
.tlbb-divider-line {
    width: 85%;
    margin: 0 auto 30px auto;
    border-bottom: 1px solid #d7cda9;
    position: relative;
}

.tlbb-divider-line::after {
    content: "◆";
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    background: #fbf5ed;
    padding: 0 10px;
    color: #b88628;
    font-size: 12px;
}

/* Summary Callout */
.tlbb-summary-callout {
    background: #f4ecdc;
    border-left: 4px solid #a93e16;
    padding: 14px 18px;
    font-style: italic;
    color: #55443a;
    font-size: 15px;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

/* Body / StaticMain Content */
.tlbb-article-body {
    position: relative;
}

.tlbb-static-main {
    font-size: 16px;
    line-height: 1.9;
    color: #2c2826;
    word-break: break-word;
}

.tlbb-static-main p {
    margin-bottom: 18px;
}

.tlbb-static-main h2,
.tlbb-static-main h3,
.tlbb-static-main h4 {
    color: #6a1e08;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
}

.tlbb-static-main h2 { font-size: 22px; border-bottom: 1px solid #e2d9be; padding-bottom: 6px; }
.tlbb-static-main h3 { font-size: 19px; }
.tlbb-static-main h4 { font-size: 17px; }

.tlbb-static-main ul,
.tlbb-static-main ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.tlbb-static-main li {
    margin-bottom: 6px;
}

.tlbb-static-main a {
    color: #2d548e;
    text-decoration: underline;
    font-weight: 600;
}

.tlbb-static-main a:hover {
    color: #b33917;
}

/* Responsive Images inside post body */
.tlbb-static-main img,
.post-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    border: 3px solid #efe8d8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}

.tlbb-static-main table {
    width: 100% !important;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d7cda9;
}

.tlbb-static-main table th,
.tlbb-static-main table td {
    padding: 10px 14px;
    border: 1px solid #d7cda9;
    font-size: 14px;
}

.tlbb-static-main table th {
    background: #661e0a;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.tlbb-static-main table tr:nth-child(even) td {
    background: #faf6f0;
}

/* Footer Actions */
.tlbb-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #d7cda9;
}

.tlbb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #efe6d5;
    color: #661e0a;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #cfc2a7;
    transition: all 0.2s ease;
}

.tlbb-back-btn:hover {
    background: #661e0a;
    color: #fff !important;
    border-color: #661e0a;
}

.tlbb-share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tlbb-share-label {
    font-size: 13px;
    color: #7a6a54;
    font-weight: 500;
}

.tlbb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.tlbb-share-fb {
    background: #1877f2;
    color: #fff !important;
}

.tlbb-share-fb:hover {
    background: #0f62cc;
}

.tlbb-share-copy {
    background: #e4dac7;
    color: #55443a;
    border: 1px solid #cfc2a7;
}

.tlbb-share-copy:hover {
    background: #d8cbb5;
    color: #222;
}

/* Related Posts Box (Parchment Styled) */
.tlbb-related-box {
    background: #f4ecdc;
    border: 1px solid #dcd1b5;
    border-radius: 6px;
    padding: 20px 24px;
}

.tlbb-related-title {
    font-size: 15px;
    font-weight: 800;
    color: #661e0a;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #d7cda9;
    padding-bottom: 8px;
}

.tlbb-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tlbb-related-list li {
    padding: 7px 0;
    border-bottom: 1px dotted #e2d9be;
}

.tlbb-related-list li:last-child {
    border-bottom: none;
}

.tlbb-related-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #3b332d;
    font-size: 14px;
    transition: all 0.2s;
}

.tlbb-related-list a:hover {
    color: #a93e16;
    padding-left: 5px;
}

.tlbb-related-list .rel-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.tlbb-related-list .rel-title i {
    color: #b88628;
    margin-right: 5px;
}

.tlbb-related-list .rel-date {
    font-size: 12px;
    color: #8c7864;
}

/* ==========================================================
   TLBB NEWS ARCHIVE & TABS (MARTIAL ARTS THEME)
   ========================================================== */
.tlbb-news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d7cda9;
    padding-bottom: 12px;
}

.tlbb-category-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.tlbb-category-tabs li a {
    display: block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #6a1e08;
    background: #eedec3;
    border: 1px solid #d7cda9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tlbb-category-tabs li.active a,
.tlbb-category-tabs li a:hover {
    background: #661e0a;
    color: #fff !important;
    border-color: #661e0a;
    box-shadow: 0 2px 6px rgba(102, 30, 10, 0.35);
}

.tlbb-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d7cda9;
    border-radius: 20px;
    overflow: hidden;
    padding: 2px 6px 2px 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tlbb-search-input {
    border: none;
    outline: none;
    font-size: 13px;
    color: #333;
    background: transparent;
    width: 160px;
}

.tlbb-search-input::placeholder {
    color: #999;
}

.tlbb-search-btn {
    border: none;
    background: #ed7c2b;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.tlbb-search-btn:hover {
    background: #de640d;
}

/* News List Item (Row layout inside Parchment) */
.tlbb-news-list {
    margin-top: 15px;
}

.tlbb-news-row {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px dotted #d7cda9;
    align-items: flex-start;
}

.tlbb-news-row:last-child {
    border-bottom: none;
}

.tlbb-news-thumb {
    flex: 0 0 180px;
    width: 180px;
}

.tlbb-news-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #e5dac2;
    transition: transform 0.2s, border-color 0.2s;
}

.tlbb-news-thumb img:hover {
    transform: scale(1.02);
    border-color: #ed7c2b;
}

.tlbb-news-info {
    flex: 1;
    min-width: 0;
}

.tlbb-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #8d7b62;
    margin-bottom: 6px;
}

.tlbb-news-badge {
    background: #eedec3;
    color: #661e0a;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.tlbb-news-badge.badge-danger { background: #d32f2f; color: #fff; }
.tlbb-news-badge.badge-warning { background: #f59e0b; color: #000; }
.tlbb-news-badge.badge-primary { background: #2563eb; color: #fff; }
.tlbb-news-badge.badge-info { background: #0284c7; color: #fff; }

.tlbb-news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tlbb-news-views {
    color: #8d7b62;
}

.tlbb-news-title {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

.tlbb-news-title a {
    color: #661e0a;
    text-decoration: none;
    transition: color 0.2s;
}

.tlbb-news-title a:hover {
    color: #ed7c2b;
}

.tlbb-pin-tag {
    background: #ffecb3;
    color: #995c00;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.tlbb-news-summary {
    font-size: 14px;
    color: #4a423d;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tlbb-readmore-link {
    font-size: 13px;
    font-weight: 700;
    color: #ed7c2b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tlbb-readmore-link:hover {
    color: #661e0a;
    text-decoration: underline;
}

/* Pagination inside parchment */
.tlbb-pagination-wrap {
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.tlbb-pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.tlbb-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: #efe6d5;
    border: 1px solid #d7cda9;
    border-radius: 4px;
    color: #661e0a;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.tlbb-pagination li.active a,
.tlbb-pagination li a:hover {
    background: #661e0a;
    color: #fff !important;
    border-color: #661e0a;
}

/* ==========================================================
   FOOTER (REFERENCE FOOTERWRAP)
   ========================================================== */
.portal-footer {
    background: #071f2d;
    border-top: 2px solid var(--tl-dark-border);
    color: var(--tl-text-muted);
    padding: 30px 0 20px;
    font-size: 11px;
    margin-top: 40px;
}

.portal-footer h5 {
    color: var(--tl-gold);
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.portal-footer a {
    color: var(--tl-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.portal-footer a:hover {
    color: var(--tl-gold);
}

/* ==========================================================
   PAGE CONTENT OFFSET FOR SUBPAGES (News, Post, Download)
   ========================================================== */
.portal-main-content {
    padding-top: 80px;
    padding-bottom: 30px;
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 991px) {
    .portal-hero {
        padding: 140px 0 25px;
    }
    .portal-main-content {
        padding-top: 60px;
    }
    .portal-hero-title {
        font-size: 1.8rem;
    }
    .portal-news-item .post-title {
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .tlbb-sublist-wrapper {
        margin: 20px auto 30px auto;
    }
    .tlbb-article-card {
        padding: 20px 16px;
    }
    .tlbb-midbar-title h1 {
        font-size: 20px;
    }
    .tlbb-static-main {
        font-size: 15px;
        line-height: 1.75;
    }
    .tlbb-divider-line {
        width: 100%;
        margin-bottom: 20px;
    }
    .tlbb-news-row {
        flex-direction: column;
        gap: 12px;
    }
    .tlbb-news-thumb {
        flex: 0 0 100%;
        width: 100%;
    }
    .tlbb-news-thumb img {
        height: 160px;
    }
    .tlbb-category-tabs {
        width: 100%;
    }
    .tlbb-search-form {
        width: 100%;
        margin-top: 10px;
    }
    .tlbb-search-input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .portal-hero {
        padding: 80px 0 15px;
    }
    .portal-main-content {
        padding-top: 40px;
    }
    .portal-hero-banner {
        padding: 20px 15px;
    }
    .portal-hero-title {
        font-size: 1.4rem;
    }
    .portal-news-item .post-title {
        max-width: 180px;
    }
}


/* ==========================================================
   TRANG CHỦ CỔ PHONG (2026-10) - chỉ áp dụng cho <body class="portal-body portal-home">
   (index.php đặt $portalBodyClass = 'portal-home'). Các trang con không bị ảnh hưởng.
   Tông màu: gỗ trầm / huyết dụ / kim tuyến / giấy dó; ảnh nền dùng tài nguyên sẵn có trong portal/images.
   ========================================================== */
body.portal-home {
    --h-ink: #1d1410;
    --h-ink-2: #2a1d16;
    --h-wood-line: #5a3d22;
    --h-maroon: #7a1a10;
    --h-red: #b3201a;
    --h-orange: #e2541c;
    --h-gold: #c99a46;
    --h-gold-hi: #ffd77a;
    --h-cream: #f3e3bf;
    --h-paper-text: #3a2a20;
    --h-paper-muted: #6b5238;
    --h-serif: "Noto Serif", "Times New Roman", Georgia, serif;
    font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--h-paper-text);
    background-color: #efe6d2;
    background-image: url('../images/bg-main-content.webp');
    background-position: center 420px;
    background-repeat: repeat-y;
    background-size: 2000px auto;
}

.portal-home .container.portal-container {
    max-width: 1140px !important;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- Thanh điều hướng (chỉ trang chủ) ---------- */
.portal-home .portal-navbar {
    background: linear-gradient(180deg, rgba(110, 20, 14, 0.94), rgba(56, 10, 8, 0.97)),
                url('../images/bg-footer.webp') center / cover !important;
    border-bottom: 2px solid var(--h-gold);
    box-shadow: 0 1px 0 #3a0c08, 0 8px 22px rgba(0, 0, 0, 0.45);
    padding: 0.3rem 1rem;
}

.portal-home .portal-navbar .navbar-brand span {
    display: none;
}

/* LOGO.png là canvas 1133x879, logo nằm ở vùng (417,23)-(720,265): cắt bằng margin âm + clip-path */
.portal-home .portal-navbar .navbar-brand img {
    width: 226.6px;
    max-width: none;
    max-height: none;
    margin: -4.6px -76.6px -122.8px -83.4px;
    clip-path: inset(4.6px 82.6px 122.8px 83.4px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.portal-home .portal-navbar .nav-link {
    font-family: var(--h-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--h-cream) !important;
    letter-spacing: 0.6px;
    border-radius: 0;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.portal-home .portal-navbar .nav-link i {
    font-size: 0.85em;
    margin-right: 3px;
    opacity: 0.8;
}

/* Desktop: bỏ icon ở menu chính cho gọn một dòng (mobile vẫn giữ icon) */
@media (min-width: 992px) {
    .portal-home .portal-navbar .mr-auto .nav-link > i {
        display: none;
    }
    .portal-home .portal-navbar .nav-link {
        padding: 0.5rem 0.62rem !important;
    }
}

.portal-home .portal-navbar .nav-link:hover,
.portal-home .portal-navbar .nav-item.active .nav-link {
    color: var(--h-gold-hi) !important;
    background: rgba(0, 0, 0, 0.22);
}

.portal-home .portal-navbar .btn {
    white-space: nowrap;
}

.portal-home .portal-navbar .text-warning {
    color: var(--h-gold-hi) !important;
}

.portal-home .portal-navbar .btn-nav-download {
    background: linear-gradient(180deg, #f0be5a, #b67a1c);
    border: 1px solid #ffe2a0;
    color: #2a1206 !important;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(240, 190, 90, 0.45);
}

.portal-home .portal-navbar .btn-nav-download:hover {
    background: linear-gradient(180deg, #ffd47a, #c98b26);
    color: #2a1206 !important;
}

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    min-height: 620px;
    padding-top: 28px;
    text-align: center;
    overflow: hidden;
    background: #2a1a12 url('../images/NEN-WEB.jpg') center 30% / cover no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(180deg, rgba(40, 10, 6, 0.55) 0%, rgba(40, 10, 6, 0) 26%),
        radial-gradient(ellipse 46% 42% at 50% 28%, rgba(25, 10, 5, 0.42), rgba(25, 10, 5, 0) 100%);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    background: linear-gradient(180deg, rgba(239, 230, 210, 0) 0%, rgba(239, 230, 210, 0.75) 60%, #efe6d2 100%);
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-logo {
    --s: 1;
    width: calc(303px * var(--s));
    height: calc(242px * var(--s));
    overflow: hidden;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.home-logo img {
    display: block;
    width: calc(1133px * var(--s));
    max-width: none;
    height: auto;
    margin: calc(-23px * var(--s)) 0 0 calc(-417px * var(--s));
}

.home-hero-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 4px 34px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff3d6;
    background: linear-gradient(90deg, rgba(142, 21, 14, 0) 0%, rgba(142, 21, 14, 0.92) 18%, rgba(142, 21, 14, 0.92) 82%, rgba(142, 21, 14, 0) 100%);
}

.home-hero-title {
    margin: 8px 0 2px;
    font-family: var(--h-serif);
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffe7a8;
    text-shadow: 0 2px 0 #5a1208, 0 0 14px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 0, 0, 0.5);
}

.home-hero-motto {
    margin: 0;
    font-family: "Dancing Script", var(--h-serif);
    font-size: 26px;
    font-weight: 700;
    color: #fff6dc;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ---------- Khung nội dung chính ---------- */
.home-stage {
    position: relative;
    z-index: 2;
    margin-top: -140px;
    padding-bottom: 10px;
}

.home-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.home-row > * {
    min-width: 0;
}

.home-row--top {
    grid-template-columns: 330px minmax(0, 1fr);
}

.home-row--main {
    grid-template-columns: minmax(0, 1fr) 330px;
}

/* ---------- Cụm nút Tải game / Đăng ký / Nạp thẻ ---------- */
.home-cta-main {
    position: relative;
    display: block;
    padding: 24px 16px 16px;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid #f0c060;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 210, 120, 0.35), rgba(255, 210, 120, 0) 55%),
        linear-gradient(160deg, #d8321f 0%, #9e1610 55%, #6a0c08 100%);
    box-shadow: 0 -2px 0 3px rgba(40, 10, 6, 0.55), 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: filter 0.2s ease;
}

.home-cta-main:hover {
    filter: brightness(1.1);
}

.home-cta-tag {
    position: absolute;
    top: -11px;
    right: 14px;
    padding: 2px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f4ffe8;
    background: linear-gradient(180deg, #45a852, #1f6b2a);
    border: 1px solid #bfe7a0;
    transform: rotate(-3deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.home-cta-label {
    display: block;
    font-family: var(--h-serif);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffe4a3;
    text-shadow: 0 3px 0 #4a0805, 0 0 18px rgba(255, 170, 70, 0.45);
}

.home-cta-label i {
    font-size: 0.7em;
    vertical-align: 3px;
}

.home-cta-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #f6d9a8;
}

.home-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid #f0c060;
    box-shadow: 0 2px 0 3px rgba(40, 10, 6, 0.55), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.home-cta-btn {
    display: block;
    padding: 11px 6px;
    text-align: center;
    font-family: var(--h-serif);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff3d6 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: filter 0.2s ease;
}

.home-cta-btn:hover {
    filter: brightness(1.18);
}

.home-cta-btn--dark {
    background: linear-gradient(180deg, #2b3a55, #111a2b);
    border-right: 1px solid #f0c060;
}

.home-cta-btn--red {
    background: linear-gradient(180deg, #e2541c, #a72a0c);
}

.home-server {
    margin-top: 16px;
    padding: 12px 16px 14px;
    color: #e8d8b4;
    background: rgba(29, 20, 16, 0.94);
    border: 1px solid var(--h-wood-line);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(240, 192, 96, 0.14), 0 10px 24px rgba(40, 20, 8, 0.3);
}

.home-server-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(201, 154, 70, 0.3);
}

.home-server-key {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #b39a72;
}

.home-server-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--h-gold-hi);
    text-align: right;
}

.home-server-ok {
    color: #84d18f;
}

.home-server-event {
    display: block;
    margin-top: 12px;
    padding: 8px;
    text-align: center;
    font-family: var(--h-serif);
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--h-gold-hi) !important;
    text-decoration: none !important;
    border: 1px solid var(--h-gold);
    background: linear-gradient(180deg, rgba(201, 154, 70, 0.2), rgba(201, 154, 70, 0.05));
    transition: background 0.2s ease, color 0.2s ease;
}

.home-server-event:hover {
    background: var(--h-gold);
    color: #2a1206 !important;
}

/* ---------- Slide banner ---------- */
.home-slider {
    padding: 8px 8px 4px;
    background: var(--h-ink);
    border: 1px solid var(--h-gold);
    box-shadow: 0 0 0 4px rgba(29, 20, 16, 0.85), 0 14px 30px rgba(0, 0, 0, 0.4);
}

.home-slider .carousel-item img {
    aspect-ratio: 1017 / 511;
    object-fit: cover;
}

.home-slider .home-slider-dots {
    bottom: 8px;
    margin-bottom: 0;
}

.home-slider .home-slider-dots li {
    width: 26px;
    height: 26px;
    margin: 0 4px;
    text-indent: 0;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--h-cream);
    background: #2a1a12;
    border: 2px solid var(--h-gold);
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.home-slider .home-slider-dots li.active {
    color: #fff;
    background: var(--h-red);
    border-color: var(--h-gold-hi);
}

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
    width: 56px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-slider:hover .carousel-control-prev,
.home-slider:hover .carousel-control-next,
.home-slider .carousel-control-prev:focus,
.home-slider .carousel-control-next:focus {
    opacity: 1;
}

.home-slider .carousel-control-prev i,
.home-slider .carousel-control-next i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--h-gold-hi);
    background: rgba(20, 10, 6, 0.65);
    border: 1px solid rgba(240, 192, 96, 0.7);
    border-radius: 50%;
}

.home-slider-motto {
    margin: 6px 0 2px;
    text-align: center;
    font-family: "Dancing Script", var(--h-serif);
    font-size: 21px;
    font-weight: 700;
    color: #e9cf94;
}

/* ---------- Khung chung ---------- */
.home-panel {
    position: relative;
    border-radius: 3px;
}

.home-panel--ink {
    color: #e2d3b3;
    background: linear-gradient(180deg, var(--h-ink-2) 0%, var(--h-ink) 100%);
    border: 1px solid var(--h-wood-line);
    box-shadow: 0 0 0 3px rgba(29, 20, 16, 0.18), 0 12px 28px rgba(40, 20, 8, 0.3);
}

.home-panel--paper {
    color: var(--h-paper-text);
    background:
        linear-gradient(180deg, rgba(252, 246, 232, 0.88), rgba(242, 230, 204, 0.94)),
        url('../images/bg-main-content.webp') center bottom / 900px auto;
    border: 1px solid #c9a868;
    box-shadow: inset 0 0 0 4px rgba(252, 246, 232, 0.9), inset 0 0 0 5px #d8bf86, 0 12px 28px rgba(60, 35, 10, 0.2);
}

.home-panel--paper::before,
.home-panel--paper::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.home-panel--paper::before {
    top: 9px;
    left: 9px;
    border-top: 2px solid #a8741f;
    border-left: 2px solid #a8741f;
}

.home-panel--paper::after {
    right: 9px;
    bottom: 9px;
    border-right: 2px solid #a8741f;
    border-bottom: 2px solid #a8741f;
}

.home-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: linear-gradient(90deg, rgba(110, 20, 14, 0.94), rgba(42, 29, 22, 0.92) 72%),
                url('../images/bg-footer.webp') left center / cover;
    border-bottom: 1px solid var(--h-gold);
}

.home-panel-title {
    margin: 0;
    font-family: var(--h-serif);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--h-cream);
}

.home-panel-title::before {
    content: "\2756";
    margin-right: 8px;
    font-size: 13px;
    color: var(--h-gold);
    vertical-align: 2px;
}

.home-panel-title span {
    color: var(--h-gold-hi);
}

.home-more {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f0c060 !important;
    text-decoration: none !important;
}

.home-more:hover {
    color: #fff !important;
}

.home-more i {
    margin-left: 3px;
    color: var(--h-orange);
}

.home-panel-body {
    padding: 14px 16px 16px;
}

.home-empty {
    padding: 22px 0;
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #9c876a;
}

/* ---------- Tin tức ---------- */
.home-tabs {
    flex-wrap: wrap;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(201, 154, 70, 0.35);
}

.home-tabs .nav-link {
    padding: 10px 13px;
    margin-bottom: -1px;
    font-family: var(--h-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c9b48c;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-tabs .nav-link:hover {
    color: var(--h-gold-hi);
}

.home-tabs .nav-link.active {
    color: var(--h-gold-hi);
    border-bottom-color: var(--h-orange);
    background: linear-gradient(180deg, rgba(226, 84, 28, 0), rgba(226, 84, 28, 0.14));
}

.home-feature {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(201, 154, 70, 0.3);
}

.home-feature-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--h-gold);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.home-feature-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-feature-thumb:hover img {
    transform: scale(1.05);
}

.home-feature .badge,
.home-news .badge {
    padding: 3px 6px;
    margin-right: 6px;
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 2px;
    vertical-align: 1px;
}

.home-feature-title {
    margin: 6px 0;
    font-family: var(--h-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.home-feature-title a {
    color: #ff8a3d;
    text-decoration: none;
}

.home-feature-title a:hover {
    color: var(--h-gold-hi);
}

.home-feature-summary {
    margin: 0 0 6px;
    font-size: 13px;
    color: #bfae8c;
}

.home-feature-date {
    font-size: 12px;
    color: #8f7d5f;
}

.portal-home .portal-news-item {
    gap: 12px;
    padding: 9px 4px;
    border-bottom: 1px dashed rgba(201, 154, 70, 0.22);
}

.portal-home .portal-news-item:hover {
    padding-left: 10px;
    background: rgba(255, 215, 122, 0.06);
}

.portal-home .portal-news-item .post-title {
    flex: 1;
    min-width: 0;
    max-width: none;
    font-size: 13.5px;
    color: #ecdcb8;
}

.portal-home .portal-news-item .post-title > i {
    margin-right: 6px;
    color: var(--h-orange);
}

.portal-home .portal-news-item:hover .post-title {
    color: var(--h-gold-hi);
}

.portal-home .portal-news-item .post-date {
    min-width: 46px;
    font-size: 12px;
    color: #9c876a;
}

/* ---------- Tài khoản / đăng nhập (giấy dó) ---------- */
.home-account {
    padding: 22px 22px 20px;
}

.home-paper-title,
.home-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--h-serif);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--h-maroon);
}

.home-paper-title::before,
.home-paper-title::after,
.home-section-title::before,
.home-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(185, 143, 76, 0), #b98f4c);
}

.home-paper-title::after,
.home-section-title::after {
    background: linear-gradient(90deg, #b98f4c, rgba(185, 143, 76, 0));
}

.home-login .form-group {
    margin-bottom: 12px;
}

.home-login label {
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--h-paper-muted);
}

.home-login .input-group-text {
    color: #7a5a30;
    background: #e9dbbb;
    border-color: #cdb27c;
    border-radius: 2px 0 0 2px;
}

.home-login .form-control {
    height: 40px;
    font-size: 14px;
    color: #2b1d14;
    background: #fffaf0;
    border-color: #cdb27c;
    border-radius: 0 2px 2px 0;
}

.home-login .form-control:focus {
    border-color: var(--h-red);
    box-shadow: 0 0 0 3px rgba(179, 32, 26, 0.15);
}

.home-login-opts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12.5px;
}

.home-login-opts label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.home-login-opts .form-check-input {
    cursor: pointer;
}

.home-login-opts a,
.home-account-logout {
    color: #a12a14 !important;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    font-family: var(--h-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.home-btn--red {
    color: #fff3d6 !important;
    background: linear-gradient(180deg, #c9301f, #8e150e);
    border-color: #6a0c08;
    box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.35), 0 3px 8px rgba(110, 20, 10, 0.3);
}

.home-btn--red:hover {
    color: #fff !important;
    background: linear-gradient(180deg, #dc3b26, #a2190f);
}

.home-btn--line {
    color: var(--h-maroon) !important;
    background: transparent;
    border-color: #b98f4c;
}

.home-btn--line:hover {
    color: #fff3d6 !important;
    background: var(--h-maroon);
    border-color: var(--h-maroon);
}

.home-btn--gold {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    color: #2a1206 !important;
    background: linear-gradient(180deg, #f2c86a, #c58f2c);
    border-color: #8a5c16;
}

.home-btn--gold:hover {
    filter: brightness(1.1);
}

.home-account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #cdb27c;
}

.home-account-name {
    margin: 0 0 2px;
    font-family: var(--h-serif);
    font-size: 18px;
    font-weight: 800;
    color: var(--h-maroon);
    word-break: break-word;
}

.home-account-rank {
    font-size: 12px;
    color: var(--h-paper-muted);
}

.home-account-stats {
    margin: 0 0 4px;
}

.home-account-stats > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dotted #d8c08e;
}

.home-account-stats dt {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--h-paper-muted);
}

.home-account-stats dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: #2b1d14;
}

.home-account-stats .home-account-coin {
    color: var(--h-red);
}

.home-account-logout {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

/* ---------- Môn phái ---------- */
.home-sects {
    padding: 24px 22px 20px;
}

.home-section-head {
    text-align: center;
    margin-bottom: 18px;
}

.home-section-title {
    margin-bottom: 4px;
    font-size: 23px;
}

.home-section-head p {
    margin: 0;
    font-size: 13px;
    color: var(--h-paper-muted);
}

.home-sect-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-sect {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 12px;
    text-align: center;
    color: inherit !important;
    text-decoration: none !important;
    background: rgba(255, 250, 238, 0.75);
    border: 1px solid #dcc79a;
    border-radius: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-sect:hover,
.home-sect:focus {
    transform: translateY(-3px);
    background: #fffaf0;
    border-color: var(--h-red);
    box-shadow: 0 8px 18px rgba(110, 40, 10, 0.18);
}

.home-sect-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #fff;
    background: var(--sect, #7a1a10);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fffaf0, 0 0 0 4px #c9a868, 0 4px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-sect-name {
    font-family: var(--h-serif);
    font-size: 15.5px;
    font-weight: 800;
    color: #3a1a10;
}

.home-sect-element {
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9a6a2a;
}

.home-sect-role {
    margin-top: 6px;
    min-height: 35px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--h-paper-muted);
}

.home-sect-link {
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--h-red);
}

.home-section-foot {
    margin-top: 18px;
    text-align: center;
}

.home-more--paper {
    display: inline-block;
    padding: 7px 18px;
    color: var(--h-maroon) !important;
    border: 1px solid #b98f4c;
}

.home-more--paper:hover {
    color: #fff3d6 !important;
    background: var(--h-maroon);
}

.home-more--paper i {
    color: inherit;
}

/* ---------- Cột phải: BXH + dịch vụ ---------- */
.home-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-rank .portal-server-select {
    margin-bottom: 12px;
    color: #ecdcb8;
    background-color: #120c09;
    border-color: var(--h-wood-line);
}

.home-rank .portal-server-select option {
    background: #120c09;
}

.home-pills {
    margin-bottom: 10px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--h-wood-line);
}

.home-pills .nav-link {
    padding: 6px;
    font-family: var(--h-serif);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c9b48c;
    border-radius: 0;
}

.home-pills .nav-link:hover {
    color: var(--h-gold-hi);
}

.home-pills .nav-link.active {
    color: #fff3d6;
    background: linear-gradient(180deg, #c9301f, #8e150e) !important;
}

.portal-home .portal-table {
    font-size: 13px;
    color: #e2d3b3;
}

.portal-home .portal-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #f0c060;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--h-gold);
}

.portal-home .portal-table td {
    padding: 7px 6px;
    border-top: 0;
    border-bottom: 1px dashed rgba(201, 154, 70, 0.2);
}

.portal-home .rank-name {
    font-weight: 600;
    color: #ecdcb8 !important;
}

.portal-home a.rank-name:hover {
    color: var(--h-gold-hi) !important;
}

.portal-home .rank-sect {
    font-size: 12px;
    color: #a8956f;
}

.portal-home .rank-level {
    font-weight: 700;
    color: var(--h-gold-hi);
}

.portal-home .rank-num {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-weight: 700;
    color: #a8956f;
}

.home-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.home-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 12px;
    text-align: center;
    text-decoration: none !important;
    background: linear-gradient(160deg, #c99a56 0%, #9a6a2e 100%);
    border: 1px solid #6e4a1c;
    border-radius: 3px;
    box-shadow: inset 0 0 0 2px rgba(255, 236, 190, 0.35), 0 6px 14px rgba(60, 30, 8, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.home-service:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.home-service i {
    margin-bottom: 6px;
    font-size: 22px;
    color: #fff3d6;
    text-shadow: 0 2px 0 rgba(80, 40, 10, 0.5);
}

.home-service strong {
    font-family: var(--h-serif);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff8e6;
    text-shadow: 0 1px 0 #5a3a12;
}

.home-service small {
    margin-top: 2px;
    font-size: 11.5px;
    color: #3a220a;
}

/* ---------- Lên đầu trang + footer (chỉ trang chủ) ---------- */
.home-totop-wrap {
    padding: 26px 0 30px;
    text-align: center;
}

.home-totop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-family: var(--h-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--h-cream) !important;
    text-decoration: none !important;
    background: var(--h-ink);
    border-radius: 46% 54% 50% 50% / 60% 55% 45% 40%;
    box-shadow: 0 0 0 4px rgba(29, 20, 16, 0.2);
    transition: color 0.2s ease;
}

.home-totop:hover {
    color: var(--h-gold-hi) !important;
}

.portal-home .portal-footer {
    margin-top: 0;
    font-size: 13px;
    color: #b8a27c;
    background: #140d09 url('../images/bg-footer.webp') center top / cover;
    border-top: 3px solid #6e1410;
    box-shadow: inset 0 1px 0 var(--h-gold);
}

.portal-home .portal-footer h5 {
    font-family: var(--h-serif);
    font-size: 14px;
    color: #f0c060;
}

.portal-home .portal-footer a {
    color: #d8c49c;
}

.portal-home .portal-footer a:hover {
    color: var(--h-gold-hi);
}

.portal-home .portal-footer .text-muted {
    color: #a8956f !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .home-sect-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: 520px;
    }
    .home-logo {
        --s: 0.78;
    }
    .home-hero-title {
        font-size: 28px;
    }
    .home-stage {
        margin-top: -150px;
    }
    .home-row--top,
    .home-row--main {
        grid-template-columns: minmax(0, 1fr);
    }
    .portal-home .portal-navbar .navbar-collapse {
        padding-bottom: 8px;
    }
}

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

@media (max-width: 575px) {
    body.portal-home {
        background-size: 1200px auto;
    }
    .home-hero {
        min-height: 400px;
        padding-top: 18px;
    }
    .home-logo {
        --s: 0.58;
    }
    .home-hero-title {
        font-size: 22px;
        letter-spacing: 1.5px;
    }
    .home-hero-motto {
        font-size: 21px;
    }
    .home-hero-ribbon {
        font-size: 11px;
        padding: 3px 24px;
    }
    .home-stage {
        margin-top: -110px;
    }
    .home-cta-label {
        font-size: 28px;
    }
    .home-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .home-tabs .nav-link {
        white-space: nowrap;
        padding: 10px 11px;
    }
    .home-panel-body {
        padding: 12px;
    }
    .home-sects,
    .home-account {
        padding: 20px 14px 16px;
    }
    .home-sect-grid {
        gap: 8px;
    }
    .home-section-title {
        font-size: 19px;
        letter-spacing: 1px;
    }
    .home-slider-motto {
        font-size: 17px;
    }
}
