/* ==========================================================================
   JX2 VIP Theme - Kiếm Hiệp Hiện Đại, Tối Ưu Hiệu Suất, 100% Local Assets
   ========================================================================== */

@font-face {
    font-family: 'Be Vietnam Pro';
    src: local('Be Vietnam Pro Regular'), local('BeVietnamPro-Regular'), url('/assets/fonts/400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    src: local('Be Vietnam Pro SemiBold'), local('BeVietnamPro-SemiBold'), url('/assets/fonts/600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    src: local('Be Vietnam Pro Bold'), local('BeVietnamPro-Bold'), url('/assets/fonts/700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    src: local('Be Vietnam Pro ExtraBold'), local('BeVietnamPro-ExtraBold'), url('/assets/fonts/800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    src: local('Be Vietnam Pro Black'), local('BeVietnamPro-Black'), url('/assets/fonts/900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
    --bg-dark: #0c2d23;
    --jade: #2c8164;
    --jade-dark: #123d32;
    --gold: #d5af5e;
    --gold-light: #f7d994;
    --ink: #25312d;
    --text-light: #f5fff9;
    --text-gold: #ffe0a1;
    --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --school-panel: url('/assets/images/bg-option.62a589fc4df174df.webp');
    --school-accent: #c99749;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(248, 255, 253, 0.96);
    border-bottom: 1px solid rgba(35, 103, 78, 0.14);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-brand img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.desktop-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: #273934;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #2c8164;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #2c8164;
    transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-header-action {
    background: url('/assets/images/btn-phone.889b5a18668bbbda.webp') center/100% 100% no-repeat;
    color: #214c40;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: transform 0.15s, filter 0.15s;
}

.btn-header-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-header-action.secondary {
    background: url('/assets/images/bg-item-menu.e4454c13024c8d3e.webp') center/100% 100% no-repeat;
    color: #fff;
    text-shadow: 0 1px 3px #143e35;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background: #142820;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-ember-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 32, 31, 0.3) 0%, rgba(12, 45, 35, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 960px;
    padding: 0 20px;
    margin-top: 40px;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
}

.hero-logo {
    width: 480px;
    max-width: 92vw;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.85)) drop-shadow(0 0 25px rgba(247, 217, 148, 0.25));
    animation: float 4.5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-slogan {
    color: var(--gold-light);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 15px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
}

.hero-actions-bar {
    margin-top: 35px;
    display: inline-flex;
    background: url('/assets/images/hero-actions.webp') center/100% 100% no-repeat;
    padding: 10px 14px;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-action-btn {
    position: relative;
    overflow: hidden;
    background: url('/assets/images/bg-item-menu.e4454c13024c8d3e.webp') center/100% 100% no-repeat;
    color: #f5fff9;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    padding: 12px 24px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px #143e35;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.hero-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 6px 18px rgba(213, 175, 94, 0.25);
}

.hero-action-btn.primary {
    background: url('/assets/images/btn-phone.889b5a18668bbbda.webp') center/100% 100% no-repeat;
    color: #214c40;
    text-shadow: none;
}

.hero-action-btn small {
    font-size: 9px;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 2px;
}

.hero-trailer-btn {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 4;
    background: url('/assets/images/bg-item-menu.e4454c13024c8d3e.webp') center/100% 100% no-repeat;
    color: #fff5d9;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ==========================================================================
   NEWS & BANNER BAND SECTION
   ========================================================================== */
.news-section {
    position: relative;
    background: url('/assets/images/bg-news.webp') top center/cover no-repeat;
    padding: 90px 20px 80px;
    min-height: 750px;
}

.section-inner {
    max-width: 1230px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    color: #222b28;
    margin-bottom: 40px;
}

.section-title span {
    color: #a33a20;
}

.news-panel {
    background: url('/assets/images/news-panel.webp') center/100% 100% no-repeat;
    display: grid;
    grid-template-columns: 44% 56%;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(25, 66, 54, 0.25);
    border-radius: 6px;
    min-height: 400px;
}

.banner-column {
    position: relative;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
}

.banner-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-column {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.news-tabs {
    display: flex;
    border-bottom: 2px solid #75b99c;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    background: url('/assets/images/btn-phone.889b5a18668bbbda.webp') center/100% 100% no-repeat;
    color: #292d2c;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 3px 3px 0 0;
    transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
    background: url('/assets/images/bg-item-menu.e4454c13024c8d3e.webp') center/100% 100% no-repeat;
    color: #fff;
}

.news-list {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    padding-right: 10px;
}

.news-item {
    border-bottom: 1px solid rgba(23, 56, 45, 0.18);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-item-link {
    color: #17382d;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.news-item-link:hover {
    color: #9b3f25;
}

.badge-pinned {
    background: #9b3f25;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
}

.news-time {
    color: #1a634e;
    font-size: 13px;
    font-weight: 700;
}

.news-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.quick-link-item {
    background: url('/assets/images/bg-item-menu.e4454c13024c8d3e.webp') center/100% 100% no-repeat;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s, filter 0.15s;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

/* ==========================================================================
   7 MÔN PHÁI SECTION
   ========================================================================== */
.schools-section {
    position: relative;
    background: url('/assets/images/bg-schools.webp') top center/cover no-repeat;
    padding: 100px 20px 80px;
    min-height: 800px;
}

.schools-section .section-title {
    color: #f4f4db;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.school-display {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.school-art {
    position: relative;
    text-align: center;
    perspective: 1000px;
    padding: 20px;
}

/* Vòng khí kình hào quang dịu nhẹ, phong thái kiếm hiệp hoài cổ */
.school-art-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(25px);
    opacity: 0.45;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.school-art-frame {
    position: relative;
    z-index: 2;
    display: inline-block;
    border: 1px solid rgba(229, 190, 107, 0.65);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.8), 0 0 15px rgba(213, 175, 94, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Canvas hạt khí kình & kiếm khí bay lượn trực tiếp trên ảnh nhân vật */
.school-aura-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Khung tranh môn phái hỗ trợ Dual-Layer Crossfade 60fps mượt mà */
.school-art-frame {
    position: relative;
    z-index: 2;
    display: inline-block;
    border: 1px solid rgba(229, 190, 107, 0.65);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.8), 0 0 15px rgba(213, 175, 94, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.school-img-layers {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.school-art-img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    will-change: opacity, transform;
}

/* Lớp ảnh hiện tại */
.school-art-img.layer-current {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.07s ease-out, transform 0.07s ease-out;
}

/* Lớp ảnh tiếp theo chuẩn bị crossfade đè lên */
.school-art-img.layer-next {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.008);
    transition: opacity 0.07s ease-out, transform 0.07s ease-out;
}

.school-details {
    position: relative;
    background: url('/assets/images/bg-new.d87e101b2079388f.webp') center/100% 100% no-repeat;
    padding: 35px 32px;
    color: #112820;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 6px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.school-details h3 {
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 2px solid #c99749;
    padding-bottom: 10px;
    margin-bottom: 18px;
    color: #17392d;
}

.school-info-row {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.65;
}

.school-info-row strong {
    color: #183c2e;
    font-weight: 800;
}

/* KHU VỰC VÕ CÔNG CHẤN PHÁI CHUẨN JX2 */
.school-skills-preview {
    margin: 15px 0 10px;
    padding: 12px 14px;
    background: rgba(18, 52, 42, 0.08);
    border: 1px dashed rgba(201, 151, 73, 0.4);
    border-radius: 4px;
}

.skills-preview-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #183c2e;
    margin-bottom: 8px;
}

.skills-preview-title em {
    font-size: 12px;
    font-weight: normal;
    color: #8c6a2c;
    font-style: italic;
}

.skills-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jx2-skill-badge {
    position: relative;
    background: linear-gradient(135deg, #1b4538, #102a22);
    color: #f7d994;
    border: 1px solid #c99749;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.jx2-skill-badge:hover {
    background: linear-gradient(135deg, #255f4e, #183c2e);
    color: #fff;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(201, 151, 73, 0.4);
}

.skill-badge-icon {
    color: #e47234;
    font-size: 12px;
}

/* TOOLTIP CHUẨN GIAO DIỆN JX2 */
.jx2-skill-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 290px;
    background: #0f1614;
    border: 2px solid #b8860b;
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.85), inset 0 0 15px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.jx2-skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #b8860b transparent transparent transparent;
}

.jx2-skill-badge:hover .jx2-skill-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.jx2-skill-tooltip .tt-header {
    border-bottom: 1px solid rgba(247, 217, 148, 0.3);
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.jx2-skill-tooltip .tt-name {
    color: #f7d994;
    font-size: 15px;
    font-weight: 800;
}

.jx2-skill-tooltip .tt-type {
    color: #5ebaff;
    font-size: 11px;
    font-weight: 600;
}

.jx2-skill-tooltip .tt-props {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a0b3aa;
    margin-bottom: 8px;
}

.jx2-skill-tooltip .tt-props strong {
    color: #ffd700;
}

.jx2-skill-tooltip .tt-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #e6ede9;
    text-align: justify;
}

#schoolDesc {
    line-height: 1.8;
    color: #1a4234;
    font-size: 14.5px;
    text-align: justify;
}

.schools-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 35px;
    background: url('/assets/images/bg-option.62a589fc4df174df.webp') center/100% 100% no-repeat;
    padding: 14px 20px;
    align-items: center;
}

.school-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 6px;
    transition: all 0.25s ease;
    text-align: center;
}

.school-icon-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.school-icon-wrap .icon-idle {
    opacity: 1;
}

.school-icon-wrap .icon-active {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.school-nav-title {
    color: #f3e7be;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.school-nav-btn:hover .school-icon-wrap img,
.school-nav-btn.active .school-icon-wrap img {
    transform: scale(1.08);
}

.school-nav-btn:hover .icon-idle,
.school-nav-btn.active .icon-idle {
    opacity: 0;
}

.school-nav-btn:hover .icon-active,
.school-nav-btn.active .icon-active {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(247, 217, 148, 0.7));
}

.school-nav-btn:hover .school-nav-title,
.school-nav-btn.active .school-nav-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(247, 217, 148, 0.9), 0 0 20px rgba(213, 175, 94, 0.6);
}

.school-nav-btn:hover, .school-nav-btn.active {
    background: rgba(213, 175, 94, 0.15);
    transform: translateY(-3px);
}

/* ==========================================================================
   HOẠT ĐỘNG NỔI BẬT SECTION
   ========================================================================== */
.activities-section {
    position: relative;
    background: url('/assets/images/bg-activities.webp') top center/cover no-repeat;
    padding: 100px 20px 80px;
    min-height: 800px;
}

.activities-carousel {
    position: relative;
    margin-top: 40px;
}

.activity-slide {
    position: relative;
    aspect-ratio: 1177 / 558;
    background: url('/assets/images/activity-frame.webp') center/100% 100% no-repeat;
    padding: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0,0,0,0.3);
}

.activity-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    top: 12px;
    background: linear-gradient(90deg, rgba(11, 31, 26, 0.88) 0%, rgba(11, 31, 26, 0.6) 45%, transparent 100%);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-shadow: 0 2px 10px #000;
}

.activity-tag {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.activity-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.activity-desc {
    max-width: 650px;
    font-size: 15px;
    line-height: 1.7;
    color: #f0f7f3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.activity-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 151px;
    cursor: pointer;
    z-index: 10;
}

.activity-nav-arrow.prev {
    background: url('/assets/images/prev-activity.webp') center/contain no-repeat;
    left: -48px;
}

.activity-nav-arrow.next {
    background: url('/assets/images/next-activity.webp') center/contain no-repeat;
    right: -48px;
}

.activity-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot-btn {
    width: 24px;
    height: 24px;
    background: url('/assets/images/dot.webp') center/contain no-repeat;
    cursor: pointer;
}

.dot-btn.active {
    background-image: url('/assets/images/dot-active.webp');
}

/* ==========================================================================
   FLOATING DOCK & BACK TO TOP
   ========================================================================== */
.floating-dock {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: url('/assets/images/floating-panel.webp') center/100% 100% no-repeat;
    width: 148px;
    padding: 50px 14px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    transition: transform 0.3s ease;
}

.floating-dock.collapsed {
    transform: translate(140px, -50%);
}

.floating-toggle-btn {
    position: absolute;
    left: -28px;
    top: 70px;
    width: 30px;
    height: 60px;
    background: #277b62;
    border: 1px solid rgba(239, 207, 137, 0.7);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.floating-link {
    background: url('/assets/images/bg-item-menu.e4454c13024c8d3e.webp') center/100% 100% no-repeat;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 10px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-link:hover {
    filter: brightness(1.15);
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #327b5e, #174d3d);
    border: 2px solid #d5af5e;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.back-to-top-btn span {
    transform: rotate(-45deg);
}

.back-to-top-btn:hover {
    transform: rotate(45deg) scale(1.1);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
    background: linear-gradient(rgba(11, 37, 29, 0.95), rgba(7, 25, 20, 0.98)), url('/assets/images/hero.webp') center/cover;
    border-top: 5px solid #b4893c;
    padding: 60px 20px 40px;
    color: #dce9e2;
    text-align: center;
}

.footer-logo {
    width: 220px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
}

.footer-tagline {
    color: var(--gold-light);
    font-size: 16px;
    margin-bottom: 25px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.footer-nav a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-copyright {
    color: #739388;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   MODALS (ĐĂNG KÝ, NẠP XU, BÀI VIẾT, TRAILER)
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 15, 12, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    background: #0f2f25;
    border: 2px solid #d5af5e;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #1f5f4c;
    border: 1px solid #d5af5e;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-title {
    color: var(--gold-light);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(213, 175, 94, 0.3);
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #dce9e2;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: rgba(6, 25, 19, 0.9);
    border: 1px solid #3c7d66;
    border-radius: 4px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(213, 175, 94, 0.3);
}

.btn-submit-form {
    width: 100%;
    background: url('/assets/images/btn-phone.889b5a18668bbbda.webp') center/100% 100% no-repeat;
    color: #214c40;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 14px;
    border-radius: 4px;
    margin-top: 10px;
    transition: filter 0.15s;
}

.btn-submit-form:hover {
    filter: brightness(1.15);
}

.form-alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

.form-alert.success {
    background: rgba(46, 125, 50, 0.25);
    border: 1px solid #4caf50;
    color: #a5d6a7;
    display: block;
}

.form-alert.error {
    background: rgba(198, 40, 40, 0.25);
    border: 1px solid #e57373;
    color: #ef9a9a;
    display: block;
}

/* ==========================================================================
   HOÀN THIỆN GIAO DIỆN MOBILE & TABLET (RESPONSIVE STYLES)
   ========================================================================== */
@media (max-width: 900px) {
    .site-header {
        padding: 0 20px;
    }
    .desktop-nav { display: none; }
    .news-panel { 
        grid-template-columns: 1fr;
        padding: 16px 14px 20px;
        background: rgba(14, 46, 37, 0.95);
        border: 1px solid rgba(213, 175, 94, 0.4);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    .banner-column { display: none; }
    .school-display { 
        grid-template-columns: 1fr; 
        gap: 24px;
    }
    .school-art {
        padding: 0;
    }
    .school-art-aura {
        width: 280px;
        height: 280px;
    }
    .school-art img {
        max-height: 320px;
        max-width: 100%;
    }
    .schools-nav { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 6px;
        padding: 10px 8px;
    }
    .school-icon-wrap {
        width: 48px;
        height: 48px;
    }
    .school-nav-title {
        font-size: 11.5px;
    }
    .floating-dock { display: none; }
    .news-quick-links { grid-template-columns: repeat(2, 1fr); }
    
    .leaderboard-container {
        padding: 0 10px;
    }
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .activity-overlay {
        padding: 20px 24px;
    }
    .activity-title {
        font-size: 24px;
    }
    .activity-nav-arrow {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 60px;
        padding: 0 12px;
    }
    .header-brand img {
        height: 40px;
    }
    .btn-header-action {
        font-size: 11px;
        padding: 6px 12px;
    }
    .hero-section {
        min-height: 520px;
        height: auto;
        padding: 75px 15px 40px;
    }
    .hero-logo {
        width: 280px;
        max-width: 85vw;
    }
    .hero-slogan {
        font-size: 13px;
        letter-spacing: 0.08em;
    }
    .hero-actions-bar {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 8px;
    }
    .hero-action-btn {
        width: 100%;
        min-width: unset;
        padding: 10px 14px;
    }
    .hero-trailer-btn {
        position: static;
        margin: 15px auto 0;
        display: inline-flex;
        font-size: 12px;
        padding: 8px 14px;
    }
    .news-section {
        padding: 45px 12px 35px;
        overflow-x: hidden;
    }
    .news-section .section-inner {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .news-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        grid-template-columns: 100%;
        padding: 12px 10px 16px;
        background: rgba(14, 46, 37, 0.95);
        border: 1px solid rgba(213, 175, 94, 0.4);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        overflow: hidden;
    }
    .news-column {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    .news-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    .tab-btn {
        font-size: 11.5px;
        padding: 7px 2px;
        text-align: center;
        white-space: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
    .news-item {
        padding: 9px 0;
        border-bottom: 1px solid rgba(213, 175, 94, 0.2);
    }
    .news-item-link {
        color: #ecf7f0;
        font-size: 13px;
        max-width: 72%;
    }
    .news-item-link:hover {
        color: #ffd700;
    }
    .news-time {
        font-size: 11.5px;
        color: #f7d994;
    }
    .news-quick-links {
        width: 100%;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 15px;
    }
    .quick-link-item {
        font-size: 12px;
        padding: 10px 4px;
        white-space: nowrap;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    .schools-section {
        padding: 50px 10px 40px;
    }
    .school-art {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* ==========================================================================
   BẢNG VÀNG VINH DANH (LEADERBOARD SECTION)
   ========================================================================== */
.leaderboard-section {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(20, 60, 48, 0.95), rgba(7, 24, 18, 0.98)), url('/assets/images/bg-activities.webp') center/cover no-repeat;
    padding: 85px 20px 80px;
    border-top: 2px solid rgba(213, 175, 94, 0.35);
    border-bottom: 2px solid rgba(213, 175, 94, 0.35);
}

.leaderboard-section .section-subtitle {
    text-align: center;
    color: #a3c9bd;
    font-size: 15px;
    margin-top: -15px;
    margin-bottom: 35px;
    letter-spacing: 0.05em;
}

.leaderboard-container {
    max-width: 980px;
    margin: 0 auto;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.lb-tab-btn {
    background: linear-gradient(135deg, rgba(17, 48, 38, 0.9), rgba(10, 30, 24, 0.95));
    border: 1px solid rgba(213, 175, 94, 0.4);
    color: #d2e4dc;
    padding: 11px 26px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lb-tab-btn:hover {
    border-color: #ffd700;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(213, 175, 94, 0.25);
}

.lb-tab-btn.active {
    background: linear-gradient(135deg, #c99749, #9e6f28);
    border-color: #ffe0a1;
    color: #112820;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(201, 151, 73, 0.5);
}

.leaderboard-card {
    background: rgba(11, 35, 28, 0.88);
    border: 1px solid rgba(213, 175, 94, 0.45);
    border-radius: 8px;
    padding: 22px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.55), inset 0 0 20px rgba(0,0,0,0.4);
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2ede8;
}

.leaderboard-table th {
    background: rgba(20, 58, 46, 0.65);
    color: #f7d994;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(213, 175, 94, 0.4);
    text-align: left;
}

.leaderboard-table td {
    padding: 13px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(213, 175, 94, 0.12);
    vertical-align: middle;
}

.leaderboard-table tbody tr {
    transition: background-color 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(213, 175, 94, 0.08);
}

.leaderboard-table .rank-badge {
    text-align: center;
}

.leaderboard-table .rank-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    color: #b0c4bc;
}

.leaderboard-table .rank-badge .rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff9900);
    color: #1a1500;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    font-size: 14px;
}

.leaderboard-table .rank-badge .rank-2 {
    background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
    color: #111;
    box-shadow: 0 0 10px rgba(224, 224, 224, 0.5);
}

.leaderboard-table .rank-badge .rank-3 {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.leaderboard-table .char-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
}

.ancient-magic-array {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: filter 0.5s ease, opacity 0.5s ease;
    opacity: 0.88;
    filter: drop-shadow(0 0 18px rgba(229, 190, 107, 0.4));
}

.array-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
}

/* Tầng ngoài: Khắc phù văn bát quái xoay chậm theo chiều kim đồng hồ */
.array-ring.ring-outer {
    border: 2px dashed rgba(229, 190, 107, 0.45);
    box-shadow: 0 0 25px rgba(213, 175, 94, 0.25), inset 0 0 25px rgba(213, 175, 94, 0.15);
    animation: rotateClockwise 40s linear infinite;
}

.array-ring.ring-outer::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(247, 217, 148, 0.2);
}

/* Tầng giữa: Vòng năng lượng bát giác xoay ngược chiều */
.array-ring.ring-middle {
    width: 78%;
    height: 78%;
    top: 11%;
    left: 11%;
    border: 1.5px solid rgba(229, 190, 107, 0.55);
    border-left-color: transparent;
    border-right-color: transparent;
    animation: rotateCounterClockwise 25s linear infinite;
}

/* Tầng trong: Tâm trận đồ phát quang thần bí */
.array-ring.ring-inner {
    width: 52%;
    height: 52%;
    top: 24%;
    left: 24%;
    border: 2px dotted rgba(247, 217, 148, 0.6);
    background: radial-gradient(circle, rgba(213, 175, 94, 0.15) 0%, transparent 70%);
    animation: rotateClockwise 15s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Tia Kiếm Quang Xé Rách Không Gian (Instant Lightning Slash) */
.sword-slash-line {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Rãnh nứt không gian: Lõi đen hư không, viền điện quang xanh trắng và kiếm khí hoàng kim */
    background: linear-gradient(
        135deg,
        transparent 43%,
        rgba(0, 240, 255, 0.45) 47.5%,
        rgba(255, 255, 255, 1) 49%,
        rgba(3, 7, 18, 1) 50%,
        rgba(255, 255, 255, 1) 51%,
        rgba(247, 217, 148, 0.95) 52.5%,
        transparent 57%
    );
    transform: rotate(28deg) translateY(-140%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    mix-blend-mode: screen;
}

.sword-slash-line.slash-active {
    animation: swordSlashAnim 0.08s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes swordSlashAnim {
    0% {
        transform: rotate(28deg) translateY(-140%) scaleY(0.5);
        opacity: 0;
        filter: drop-shadow(0 0 15px #00f0ff) drop-shadow(0 0 30px #ffffff);
    }
    15% {
        opacity: 1;
        transform: rotate(28deg) translateY(-20%) scaleY(2.2);
        filter: drop-shadow(0 0 35px #00f0ff) drop-shadow(0 0 60px #f7d994) drop-shadow(0 0 25px #ffffff);
    }
    45% {
        opacity: 1;
        transform: rotate(28deg) translateY(20%) scaleY(2.6);
        filter: drop-shadow(0 0 50px #00ffff) drop-shadow(0 0 90px #ffffff);
    }
    75% {
        opacity: 0.9;
        transform: rotate(28deg) translateY(70%) scaleY(1.6);
        filter: drop-shadow(0 0 30px #f7d994);
    }
    100% {
        transform: rotate(28deg) translateY(140%) scaleY(0.5);
        opacity: 0;
        filter: drop-shadow(0 0 10px #ffffff);
    }
}

/* Rung chấn kình lực tức thì cùng nhát chém */
.school-art-frame.impact-shake {
    animation: impactShakeAnim 0.08s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes impactShakeAnim {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-4px, 2px) scale(1.015); }
    40% { transform: translate(3px, -2px) scale(1.01); }
    60% { transform: translate(-2px, -1px) scale(1.005); }
    80% { transform: translate(1px, 1px) scale(1); }
}


/* Ánh Sáng Quét Kim Loại Trên Logo & Huy Hiệu */
.hero-logo, .badge-gold, .site-header .header-brand img {
    position: relative;
    transition: filter 0.3s ease;
}

.badge-gold {
    background: linear-gradient(135deg, #f7d994, #c99749);
    position: relative;
    overflow: hidden;
}

.badge-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    animation: goldShine 3.5s infinite;
}

@keyframes goldShine {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}


/* Lớp Nền Phù Văn / Chữ Vạn / Bát Quái Môn Phái Mờ Ẩn Sang Trọng */
.school-watermark {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 260px;
    height: 260px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.school-watermark svg {
    width: 100%;
    height: 100%;
    fill: #183c2e;
}

.school-details > *:not(.school-watermark) {
    position: relative;
    z-index: 2;
}
