@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --primary-red: #c90000;
  --primary-red-hover: #a30000;
  --accent-yellow: #ffc107;
  --accent-yellow-hover: #ffb300;
  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 20px rgba(201, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.9);
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-yellow);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-yellow);
  color: #000;
}

.btn-accent:hover {
  background-color: var(--accent-yellow-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--bg-white);
}

/* ==========================================================================
   HEADER & NAVIGATION FIXED
   ========================================================================== */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 20px; /* Thêm khoảng cách giữa các khối */
  transition: var(--transition);
}

.logo-container a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  height: 45px; /* Thu nhỏ logo một chút để cân đối */
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-red);
  line-height: 1.3;
  white-space: nowrap; /* Bắt buộc text không bẻ dòng */
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center; /* Căn giữa menu */
}

.main-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0; /* Không cho khối này bị ép nhỏ */
}

.search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--primary-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-red);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  margin-top: 80px;
  height: calc(100vh - 80px);
  min-height: 500px;
  background: linear-gradient(rgba(201, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--bg-white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-yellow);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats {
  padding: 60px 0;
  background-color: var(--bg-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-img {
  height: 200px;
  background-color: #ddd; /* Fallback */
  position: relative;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-yellow);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.2rem;
  color: var(--primary-red);
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   ACTIVITIES SECTION
   ========================================================================== */
.activities {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.activity-card {
  position: relative;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(201, 0, 0, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.activity-card:hover img {
  transform: scale(1.1);
}

.activity-overlay h3 {
  color: var(--bg-white);
  font-size: 1.2rem;
}

/* ==========================================================================
   HALL OF FAME (Cập nhật giao diện thẻ đặc biệt)
   ========================================================================== */
.grid-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 35px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px 0; 
}

.honor-card { 
    flex: 1 1 250px; 
    max-width: 320px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-decoration: none; 
    border-radius: 20px; 
    padding: 40px 20px 30px; 
    text-align: center; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; 
    overflow: hidden; 
    min-height: 260px; 
    border: 2px solid rgba(255, 215, 0, 0.4); 
    cursor: pointer; 
}

.honor-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: -100%; 
    width: 50%; height: 100%; 
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); 
    transform: skewX(-25deg); 
    transition: all 0.7s ease; z-index: 10; 
}

.honor-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); 
    border-color: rgba(255, 215, 0, 1); 
}
.honor-card:hover::before { left: 200%; }
.honor-card:hover .card-logo { transform: scale(1.1) rotate(5deg); }

.card-bac { background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%); }
.card-doan { background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%); }
.card-hoi { background: linear-gradient(135deg, #00838f 0%, #00acc1 100%); }
.card-giaovien { background: linear-gradient(135deg, #4a148c 0%, #9c27b0 100%); }

.sunburst { 
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; 
    background: repeating-conic-gradient(rgba(255, 255, 255, 0.08) 0deg 15deg, transparent 15deg 30deg); 
    animation: rotateRay 30s linear infinite; z-index: 1; 
}
@keyframes rotateRay { 100% { transform: rotate(360deg); } }

.card-logo { width: 85px; height: 85px; margin-bottom: 20px; position: relative; z-index: 2; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4)); transition: transform 0.4s ease; }
.card-title { font-family: 'Be Vietnam Pro', sans-serif; font-size: 1.25rem; font-weight: 800; margin: 0; position: relative; z-index: 2; text-transform: uppercase; line-height: 1.4; background: linear-gradient(to bottom, #fffde7 0%, #ffd700 50%, #ff8f00 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.6)); }
.card-action { display: inline-block; margin-top: 15px; padding: 6px 20px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 30px; color: #fff; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; position: relative; z-index: 2; transition: all 0.3s ease; }
.honor-card:hover .card-action { background: #ffd700; color: #b71c1c; border-color: #ffd700; }

/* MODAL & LIGHTBOX STYLES */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 9999; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.modal-content { background-color: #fff; border-radius: 20px; width: 100%; max-width: 1000px; max-height: 90vh; padding: 30px; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.5); overflow-y: auto; animation: zoomIn 0.3s ease-out; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 30px; font-weight: bold; color: #aaa; cursor: pointer; transition: 0.2s;}
.close-btn:hover { color: #d32f2f; }
.modal-header { font-family: 'Be Vietnam Pro', sans-serif; text-align: center; color: #b71c1c; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.image-gallery img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s; cursor: zoom-in; }
.image-gallery img:hover { transform: scale(1.05); }

.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 10000; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 0 30px rgba(255,255,255,0.2); animation: zoomIn 0.3s ease; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; font-weight: bold; cursor: pointer; transition: 0.2s; }
.lightbox-close:hover { color: #ffd700; transform: scale(1.1); }
/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-red);
  color: var(--bg-white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-yellow);
  text-transform: uppercase;
}

.footer-col p, .footer-col ul li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-col ul a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .stats-grid, .fame-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.3s ease-in-out;
  }
  
  .main-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}