/* ===================================================================
   TRƯỜNG TRÍ TUỆ VIỆT - STYLES RIÊNG BIỆT CHO 13 TRANG CHUYÊN MỤC
   =================================================================== */

/* -------------------------------------------------------------
   1. TRANG CHỦ (index.html)
------------------------------------------------------------- */
.hero-slider {
  position: relative;
  min-height: 540px;
  background: linear-gradient(135deg, #0b1e47 0%, #1e3a8a 60%, #172554 100%);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  display: none;
  width: 100%;
  animation: fadeIn 0.6s ease;
}

.hero-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-float {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: absolute;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: float 4s ease-in-out infinite;
}

.hero-card-1 {
  bottom: 20px;
  left: -20px;
}

.hero-card-2 {
  top: 20px;
  right: -10px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent);
  width: 32px;
}

/* Thống kê nổi bật (Counter Section) */
.stats-section {
  background: white;
  margin-top: -3rem;
  position: relative;
  z-index: 20;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* -------------------------------------------------------------
   2. GIỚI THIỆU (gioi-thieu.html)
------------------------------------------------------------- */
.history-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

.timeline-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-light);
}

.timeline-year {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

/* Lãnh đạo ban giám hiệu */
.leader-card {
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.leader-avatar {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--primary-soft);
}

.leader-info {
  padding: 1.5rem;
}

.leader-role {
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.leader-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   3. CHƯƠNG TRÌNH HỌC TẬP (chuong-trinh-hoc.html)
------------------------------------------------------------- */
.program-feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.program-badge-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.program-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.program-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
  color: var(--text-main);
}

/* -------------------------------------------------------------
   4. HỌC SINH TIÊU BIỂU (hoc-sinh-tieu-bieu.html)
------------------------------------------------------------- */
.student-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.student-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.student-photo-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #f1f5f9;
}

.student-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.student-card:hover .student-photo {
  transform: scale(1.05);
}

.student-medal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hover);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.student-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.student-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.student-class {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.student-award {
  background: var(--accent-soft);
  color: #78350f;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* -------------------------------------------------------------
   5. KẾT QUẢ HỌC TẬP (ket-qua-hoc-tap.html)
------------------------------------------------------------- */
.lookup-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 720px;
  margin: -3rem auto 3rem auto;
  position: relative;
  z-index: 20;
}

.grade-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.grade-table th {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.grade-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
}

.grade-table tr:hover {
  background: #f8fafc;
}

.stat-bar-container {
  margin-bottom: 1.25rem;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-progress {
  height: 12px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* -------------------------------------------------------------
   6. TIN TỨC & SỰ KIỆN (tin-tuc.html)
------------------------------------------------------------- */
.news-featured-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 3rem;
}

.news-featured-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.news-featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------
   7. TUYỂN SINH (tuyen-sinh.html)
------------------------------------------------------------- */
.step-roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem auto;
}

/* -------------------------------------------------------------
   8. HÌNH ẢNH HOẠT ĐỘNG (hinh-anh.html)
------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .overlay-visible,
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* -------------------------------------------------------------
   9. THĂM DÒ Ý KIẾN (tham-do-y-kien.html)
------------------------------------------------------------- */
.poll-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.poll-option-label {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  gap: 0.75rem;
}

.poll-option-label:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
}

.poll-result-bar {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.poll-result-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.15);
  border-right: 3px solid var(--primary);
  transition: width 0.8s ease;
}

.poll-result-text {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* -------------------------------------------------------------
   10. TÌM KIẾM (tim-kiem.html)
------------------------------------------------------------- */
.search-hero-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 820px;
  margin: -2.5rem auto 2.5rem auto;
  position: relative;
  z-index: 20;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
}

.search-input-group input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
}

.search-input-group input:focus {
  border-color: var(--primary-light);
  outline: none;
}

.search-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.search-tag-badge {
  padding: 0.25rem 0.75rem;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.search-tag-badge:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.search-result-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* -------------------------------------------------------------
   11. QUẢNG CÁO & ƯU ĐÃI (quang-cao.html)
------------------------------------------------------------- */
.promo-banner-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.promo-countdown {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 75px;
}

.countdown-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-top: 0.25rem;
}

.ad-package-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.ad-package-card.highlight {
  border-color: var(--accent);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.ad-package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------
   12. TUYỂN DỤNG (tuyen-dung.html)
------------------------------------------------------------- */
.job-item-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  gap: 1.5rem;
}

.job-item-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------
   13. LIÊN HỆ (lien-he.html)
------------------------------------------------------------- */
.contact-info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Responsive Điều Chỉnh Cho Pages */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 2rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .news-featured-card {
    grid-template-columns: 1fr;
  }
  .step-roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .job-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 2rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .history-timeline::before {
    left: 10px;
  }
  .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 1px;
  }
  .step-roadmap {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
