/* =========================================
   FILE: style.css (FULL FIX - VIBE TẾT VÀNG)
   ========================================= */

/* --- 0. KHAI BÁO FONT UTM AVO --- */
/* Lưu ý: Phải có file UTM-Avo-Bold.ttf trong thư mục fonts/ mới chạy được font này */
@font-face {
    font-family: 'UTM Avo';
    src: url('fonts/UTM-Avo-Bold.ttf') format('truetype'); 
    font-weight: bold;
    font-style: normal;
}

/* --- 1. CẤU HÌNH CHUNG --- */
:root {
    --xtn-red: #D72638;       /* Đỏ Xuân */
    --xtn-yellow: #FFC600;    /* Vàng Mai */
    --xtn-green: #009E60;     /* Xanh Tình Nguyện */
    --cream: #FFFDF7;         /* Nền kem */
    --footer-blue: #00305b;   /* Xanh đậm UEL */
    --text-dark: #2c3e50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--cream); color: var(--text-dark); overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* --- 2. NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(255,255,255,0.98);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-logo { height: 50px; object-fit: contain; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.9rem; 
    transition: 0.3s; text-transform: uppercase;
}
.nav-links a:hover { color: var(--xtn-red); }
.btn-login {
    border: 2px solid var(--xtn-red); padding: 8px 20px; border-radius: 20px; 
    color: var(--xtn-red) !important;
}
.btn-login:hover { background: var(--xtn-red); color: white !important; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- 3. HERO SECTION (VIBE VÀNG - CHỮ ĐỎ) --- */
.hero-section {
    height: 100vh; margin-top: 0;
    /* Ảnh nền */
    background: url('https://images.unsplash.com/photo-1548625361-9a91743d9623?q=80&w=2070') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; color: var(--xtn-red);
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient Vàng rực rỡ */
    background: linear-gradient(to bottom, rgba(255, 198, 0, 0.95), rgba(255, 245, 200, 0.9));
}

.hero-content { position: relative; z-index: 2; padding: 20px; width: 100%; max-width: 800px; }

.decor-icon { font-size: 3.5rem; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }

.sub-title {
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-dark); margin-bottom: 5px;
}

.main-title { 
    /* Ưu tiên UTM Avo, nếu lỗi font thì dùng Montserrat */
    font-family: 'UTM Avo', 'Montserrat', sans-serif; 
    font-size: 3.8rem; 
    color: var(--text-dark); /* Màu đen cho chữ XUÂN TÌNH NGUYỆN */
    text-transform: uppercase;
    line-height: 1.1;
    margin: 15px 0;
    text-shadow: 2px 2px 0px #fff; /* Viền trắng nhẹ */
}

.highlight-text { 
    color: var(--text-dark); 
    font-size: 4.5rem; 
    display: block; 
    margin-top: 10px;
}

.slogan { 
    font-size: 1.3rem; font-style: italic; 
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 30px; 
}

/* COUNTDOWN (VIBE VÀNG) */
.countdown-wrapper { margin: 30px 0; }
.countdown-label { color: var(--text-dark); font-weight: bold; text-transform: uppercase; }

.timer { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.time-box { 
    /* Nền trong suốt viền đen/đỏ */
    background: rgba(255,255,255,0.5); 
    padding: 10px; border-radius: 8px; 
    border: 1px solid var(--text-dark);
    min-width: 80px; backdrop-filter: blur(5px);
}
.time-box span { font-size: 2rem; font-weight: 800; display: block; color: var(--text-dark); font-family: 'UTM Avo', sans-serif; }
.time-box small { font-size: 0.7rem; text-transform: uppercase; color: var(--text-dark); font-weight: bold; }

/* NÚT BẤM HERO */
.btn-cta {
    display: inline-block; padding: 15px 45px;
    background: var(--xtn-red); /* Nền Đỏ */
    color: var(--xtn-yellow);   /* Chữ Vàng */
    border-radius: 50px; font-weight: 800; text-decoration: none; text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(215, 38, 56, 0.4); 
    transition: 0.3s; border: 2px solid white;
}
.btn-cta:hover { 
    transform: scale(1.05); 
    background: white; color: var(--xtn-red); 
    border-color: var(--xtn-red);
}

/* --- 4. SECTIONS CHUNG --- */
.section-container { padding: 80px 10%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { 
    font-family: 'Merriweather', serif; font-size: 2.5rem; color: var(--xtn-red); 
    display: inline-block; border-bottom: 3px solid var(--xtn-yellow); padding-bottom: 5px;
}
.bg-pattern { background-color: #fff5f5; background-image: radial-gradient(#ffdbdb 1px, transparent 1px); background-size: 20px 20px; }

/* --- 5. GALLERY (MASONRY) --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); height: 250px;}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 10px;
    background: rgba(0,0,0,0.7); color: white; font-size: 0.9rem;
    transform: translateY(100%); transition: 0.3s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* --- 6. LEADERS (BCH) --- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.leader-card {
    background: white; width: 280px; padding: 30px; border-radius: 15px; text-align: center;
    border-bottom: 5px solid var(--xtn-red); box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.leader-card:hover { transform: translateY(-10px); }
.leader-img { 
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px;
    border: 3px solid var(--xtn-yellow); 
}
.leader-name { color: var(--xtn-red); font-size: 1.2rem; margin-bottom: 5px; }
.leader-role { color: var(--xtn-green); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.leader-quote { font-style: italic; color: #777; font-size: 0.9rem; margin-top: 10px; }

/* --- 7. CONFESSIONS --- */
.btn-write {
    background: var(--xtn-green); color: white; border: none; padding: 10px 20px;
    border-radius: 20px; cursor: pointer; margin-top: 15px; font-weight: bold;
}
.confession-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.note {
    width: 260px; padding: 20px; min-height: 200px;
    font-family: 'Courier New', monospace; font-size: 0.95rem;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1); position: relative;
}
.note::before { /* Cái ghim */
    content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 15px; height: 15px; background: rgba(0,0,0,0.2); border-radius: 50%;
}
.note:nth-child(odd) { transform: rotate(-2deg); }
.note:nth-child(even) { transform: rotate(2deg); }
.note.yellow { background: #fff9c4; }
.note.red { background: #ffcdd2; }
.note.green { background: #c8e6c9; }
.note-content { margin-bottom: 15px; line-height: 1.5; }
.note-sender { font-weight: bold; text-align: right; font-size: 0.85rem; color: #555; position: absolute; bottom: 20px; right: 20px;}

/* --- 8. FOOTER (CHUẨN UEL) --- */
.footer-official { background-color: var(--footer-blue); color: white; padding: 40px 5% 10px; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-col { flex: 1; min-width: 250px; }
.logos-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.org-logo { height: 50px; }
.symbol-logo { height: 60px; }
.footer-col h4 { margin-bottom: 15px; border-bottom: 2px solid var(--xtn-yellow); display: inline-block; padding-bottom: 5px; }
.social-icons a { color: white; font-size: 1.2rem; margin-right: 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--xtn-yellow); }
.stats-list { list-style: none; }
.footer-bottom-bar { height: 5px; background: linear-gradient(to right, var(--xtn-red), var(--xtn-yellow), var(--xtn-green)); margin-top: 30px; border-radius: 2px;}

/* --- 9. MODAL & UTILS --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: white; margin: 10% auto; padding: 30px; border-radius: 15px; width: 90%; max-width: 500px; position: relative; border-top: 5px solid var(--xtn-red); }
.close-modal { float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.btn-submit { width: 100%; padding: 10px; background: var(--xtn-red); color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 1rem; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.loading-spinner { text-align: center; color: #999; padding: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .main-title { font-size: 2.5rem; }
    .highlight-text { font-size: 3rem; }
    .hero-section { padding-top: 60px; }
}