/* ===========================================
        CÁC THÀNH PHẦN GIAO DIỆN XƯỞNG
   =========================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 120vh;
    background-color: var(--bg-dark);
    overflow: hidden;
    
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center bottom;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 60, 0.4);
    backdrop-filter: blur(1px);
    z-index: 3;
}

.slide-text {
    position: relative;
    z-index: 4;
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    letter-spacing: 2px;
    padding: 0 5%;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.8);
    animation: textPopUp 1s ease forwards;
}

@keyframes textPopUp {
    0% { transform: translateY(30px) scale(0.9); opacity: 0;}
    100% { transform: translateY(0) scale(1); opacity: 1;}
}

.news-ticker {
    display: flex;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    align-items: center;
    height: 45px;
    font-size: 15px;
    font-weight: bold;
    overflow: hidden;
    width: 90%;
    margin: 0 auto 40px auto;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    border-radius: 0 0 8px 8px;
}

.ticker-title {
    background-color: #900;
    padding: 0 20px;
    height: 100%;
    align-items: center;
    display: flex;
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-content {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: tickerScroll 20s linear infinite;
    color: var(--danger-red);
}

@keyframes tickerScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.stats-ribbon {
    position: relative;
    z-index: 10;
    display: flex;
    background-color: var(--white);
    box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
    margin-top: -80px;
    border-radius: 8px 8px 0 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.stat-box {
    flex: 1;
    padding: 30px 40px;
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.stat-box:last-child {
    border-right: none;
}

.stat-box h3 {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-blue);
}

.stat-box .number span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hightlight-green {color: var(--success-green) !important; font-weight: 500 !important;}
.status-ok { color: var(--text-main) !important; font-size: 1.8rem !important; font-weight: 700 !important;}

.personnel-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.person-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    max-width: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-card:hover {
    transform: translateY(-10px);
}

.person-avatar {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.person-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}
.person-info h4 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #2c3e50;
}

.person-info .role {
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 18px;
}
.status {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .person-avatar {
        width: 150px;
        height: 150px;

    }
}
.status-online { background-color: #e6f4ea; color: #1e8e3e; }
.status-offline { background-color: #fce8e6; color: #d93025; }

/* ------------------------------------------------------------------ */

.page-view {
    display: none;
    animation: fadeIN 0.4s ease-in-out;
    min-height: 70vh;
}

.page-view.active-view {
    display: block;
}

/* ------------------------------------------------------------------- */

#loading-screen {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 120px);
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 999;
    text-align: center;
    padding-top: 20vh;
}

#loading-screen.is-loading {
    display: block;
}

/* -------------------------------------------------------------------- */

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

/* --------------------------------------------------------------------- */

@keyframes fadeIN {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: none; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}