@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --bg-main: #f0f4f8; 
    --card-bg: #ffffff;
    --text-dark: #1e272e;
    --text-muted: #64748b;
    --blue-primary: #0984e3;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.04);
    --shadow-md: 0 12px 35px rgba(9, 132, 227, 0.08);
    --shadow-hover: 0 15px 40px rgba(9, 132, 227, 0.15);
    --radius-lg: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 0%, rgba(116, 185, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(9, 132, 227, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HEADER ================= */
.header-wrapper {
    padding-top: 30px;
    margin-bottom: 40px; 
    position: relative;
    z-index: 1000;
}

.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Logo trần trực tiếp trên Header */
.header-logo-link {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo-link:hover .header-logo-img {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
}

/* Đồng hồ Realtime */
.realtime-clock {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    background: rgba(241, 245, 249, 0.8);
    padding: 8px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.realtime-clock svg {
    color: var(--blue-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Nút MXH nhỏ gọn trên Header */
.header-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.8);
}

.header-social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.header-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.status-badge {
    background: #f8fafc;
    color: var(--blue-primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.status-badge:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.status-badge .pulse {
    width: 10px;
    height: 10px;
    background-color: #00d2d3;
    border-radius: 50%;
    animation: pulse-green 1.5s infinite;
}

/* ================= BENTO GRID (INDEX) ================= */
main {
    flex: 1;
    padding: 10px 0 30px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto auto; 
    gap: 30px; 
}

.bento-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255,255,255,0.9);
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* --- Ô 1: LÁ THƯ --- */
.item-main {
    grid-column: 1 / 2;
    grid-row: 1 / 4; 
    padding: 45px;
    background: #fff7ed; 
    border: 2px solid #ffedd5;
    position: relative;
    box-shadow: inset 0 0 20px rgba(251, 146, 60, 0.05), var(--shadow-md);
}

.item-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: repeating-linear-gradient(-45deg, #ff7675, #ff7675 10px, #fff 10px, #fff 20px, #74b9ff 20px, #74b9ff 30px, #fff 30px, #fff 40px);
}

.letter-stamp {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 80px;
    height: 80px;
    border: 2px solid #e11d48; 
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-15deg);
    opacity: 0.55; 
    padding: 4px;
    box-shadow: inset 0 0 0 1px #e11d48; 
}

.stamp-text-top { font-size: 8px; margin-bottom: 1px; letter-spacing: 1px; }
.stamp-text-mid { border-top: 1px solid #e11d48; border-bottom: 1px solid #e11d48; padding: 1px 4px; font-size: 11px; letter-spacing: 1px; font-weight: 900; }
.stamp-text-bot { font-size: 8px; margin-top: 1px; letter-spacing: 1px; }

.item-main h1 {
    font-size: 26px;
    font-weight: 900;
    color: #cd1f1f;
    margin-bottom: 25px;
    margin-top: 15px;
    border-bottom: 2px dashed #fed7aa;
    padding-bottom: 10px;
    line-height: 1.4;
}

.letter-content { font-size: 16px; color: #4a4a4a; line-height: 1.8; }
.letter-content p { margin-bottom: 15px; text-align: justify; }
.letter-footer { margin-top: 35px; text-align: right; font-style: italic; font-weight: 700; color: #d35400; border-top: 1px dashed #fed7aa; padding-top: 15px; }

/* --- Ô 2: ẢNH COVER SLIDER --- */
.item-cover {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    height: 220px;
    position: relative;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 3.8s ease;
    transform: scale(1);
}

.slide.active { opacity: 1; transform: scale(1.06); z-index: 1; }

/* --- Ô 3: LIÊN HỆ ADMIN --- */
.item-contact {
    grid-column: 2 / 3;
    grid-row: 2 / 3; 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); 
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.admin-flex img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.admin-flex h3 { font-size: 19px; font-weight: 800; color: #ffffff; }
.admin-flex span { font-size: 13px; color: #38bdf8; font-weight: 700; }

.btn-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Khoảng cách giữa logo và chữ */
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Class logo gắn trong nút */
.btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    background: #ffffff; /* Lót nền trắng nhỏ để logo luôn nổi trên mọi nền */
    border-radius: 50%;
    padding: 2px;
}

/* Gradient Zalo */
.btn-zalo {
    background: linear-gradient(135deg, #0088ff 0%, #005ce6 100%);
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.4);
}
.btn-zalo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.6);
}

/* Gradient Facebook */
.btn-fb {
    background: linear-gradient(135deg, #3b5998 0%, #1877f2 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}
.btn-fb:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
}

/* --- Ô 4: TIỆN ÍCH TRẠNG THÁI --- */
.item-status-widget {
    grid-column: 2 / 3;
    grid-row: 3 / 4; 
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-list { display: flex; flex-direction: column; gap: 14px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed #cbd5e1; }
.status-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.status-tag { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 8px; }
.tag-maintenance { background: #fff1f2; color: #f43f5e; }
.tag-upcoming { background: #eff6ff; color: #3b82f6; }


/* ================= FOOTER REDESIGN BENTO LAYOUT ================= */
.footer-wrapper { 
    margin-top: 40px; 
    padding-bottom: 40px; 
}

.site-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255,255,255,0.9);
    color: var(--text-dark);
    position: relative;
}

/* Lưới Bento chia tỷ lệ 1.6fr và 1fr */
.footer-grid { 
    display: grid; 
    grid-template-columns: 1.6fr 1fr; 
    gap: 40px; 
    margin-bottom: 35px; 
}

.foot-title-wrap { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 18px; 
}

.foot-icon { 
    width: 36px; 
    height: 36px; 
    background: #e0f2fe; 
    color: var(--blue-primary); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.foot-title { 
    font-size: 19px; 
    font-weight: 900; 
    color: var(--text-dark); 
    letter-spacing: -0.3px;
}

/* Style cột trái rộng rãi */
.footer-brand-col .foot-desc { 
    font-size: 15px; 
    color: var(--text-muted); 
    line-height: 1.8; 
    text-align: justify;
}

.foot-note {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    padding: 4px 12px;
    border-radius: 8px;
}

/* Style khối thẻ Admin bên phải */
.footer-admin-card {
    background: #fafafa;
    padding: 25px;
    border-radius: 20px;
    border: 1px dashed #e2e8f0;
}

.footer-list { 
    list-style: none; 
}

.footer-list li { 
    margin-bottom: 12px; 
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 8px;
}

.footer-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.list-label {
    color: var(--text-muted);
    font-weight: 600;
}

.footer-list strong { 
    color: var(--text-dark); 
}

.footer-list .highlight-blue {
    color: var(--blue-primary);
    font-weight: 800;
}

/* Thiết kế Copyright dạng Badge nổi */
.copyright-wrap {
    text-align: center;
    padding-top: 25px;
    border-top: 2px dashed #f1f2f6;
    display: flex;
    justify-content: center;
}

.copyright-badge {
    background: #f1f5f9;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.copyright-badge span {
    color: var(--blue-primary);
}

/* Hiệu ứng tim đập nhẹ nhàng */
.heart-pulse { 
    color: #ff7675; 
    margin: 0 4px; 
    display: inline-block;
    animation: heartBeat 1.2s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 800px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .foot-title-wrap { justify-content: center; }
    .footer-brand-col .foot-desc { text-align: center; }
    .foot-note { display: block; margin: 15px auto 0 auto; width: max-content; }
    .site-footer { padding: 35px 20px; }
}

/* ================= ANIMATIONS & RESPONSIVE ================= */
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 210, 211, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 211, 0); }
}

@media (max-width: 800px) {
    .site-header { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .header-right { width: 100%; justify-content: center; flex-wrap: wrap; }
    .realtime-clock { width: 100%; justify-content: center; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .item-main, .item-cover, .item-contact, .item-status-widget { grid-column: 1 / 2; grid-row: auto; }
    .item-main { padding: 30px; }
    .item-main h1 { font-size: 24px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .foot-title-wrap { justify-content: center; }
    .footer-grid p, .footer-list { text-align: center; }
    .footer-list a:hover { transform: translateY(-2px); }
    .site-footer { padding: 35px 25px; }
}