/* Full design – works on all pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff9f5;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================= 
  TRANG CHÍNH – HERO + NAVBAR 
================================ */
/* navigation menu */
.navbar {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 15px rgba(244, 120, 67, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid #f47843;
}

a {
  text-decoration: none;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 4rem;
  width: 4rem;
}
.logo p {
  font-size: 1.8rem;
  font-weight: bold;
  color: #f47843;
  text-shadow: 0 2px 4px rgba(244, 120, 67, 0.2);
}

/* nav menu */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-top: 1rem;
}
.nav-menu a {
  text-decoration: none;
  color: #444444;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #f47843;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* HERO 3D Text + Light effect */
.hero {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(244, 120, 67, 0.94) 0%,
    rgba(255, 107, 53, 0.9) 50%,
    rgba(217, 79, 30, 0.98) 100%
  );
  padding: 9rem 2rem;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Light effect from top */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* Logo + title */
.hero h1 {
  font-size: 4.2rem !important;
  font-weight: 900;
  margin: 0 0 0.8rem 0;
  letter-spacing: 2px;
  text-transform: uppercase;

  /* Text color: white + light orange shadow */
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 165, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.6),
    3px 3px 0 #d94f1e, -2px -2px 0 #ff9a6b, 0 0 60px rgba(244, 120, 67, 0.8);

  position: relative;
  z-index: 2;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 0;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  color: #fff9f5;
}

/* light effect help Text brighter */
@keyframes glowPulse {
  from {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 165, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.6),
      3px 3px 0 #d94f1e, -2px -2px 0 #ff9a6b, 0 0 60px rgba(244, 120, 67, 0.8);
  }
  to {
    text-shadow: 0 0 30px rgba(255, 255, 255, 1),
      0 0 60px rgba(255, 165, 0, 0.9), 0 6px 15px rgba(0, 0, 0, 0.7),
      4px 4px 0 #d94f1e, -3px -3px 0 #ff9a6b, 0 0 90px rgba(244, 120, 67, 1);
  }
}

/* grid layout for cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* ======================= 
    CARD STYLES
======================== */

/* card styles */
.card,
.post-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(244, 120, 67, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #ffe0d0;
  padding: 1.2rem 2rem;
  margin-bottom: 1.5rem;
}
.card:hover,
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(244, 120, 67, 0.2);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
}
.card h3,
.post-card h3 {
  color: #f47843;
}

/* Nút "Xem Chi Tiết →" trong card – đẹp lung linh */
.post-card a,
.card a,
.card-body a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.8rem;
  background: #f47843;
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(244, 120, 67, 0.35);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Hiệu ứng sóng khi hover */
.post-card a::before,
.card a::before,
.card-body a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.post-card a:hover::before,
.card a:hover::before,
.card-body a::before:hover {
  width: 300px;
  height: 300px;
}

/* Hiệu ứng khi hover */
.post-card a:hover,
.card a:hover,
.card-body a:hover {
  background: #d94f1e;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(244, 120, 67, 0.5);
}

/* Icon mũi tên */
.post-card a span,
.card a span,
.card-body a span {
  margin-left: 8px;
  transition: margin-left 0.3s;
}
.post-card a:hover span,
.card a:hover span,
.card-body a:hover span {
  margin-left: 14px;
}

/* Headings */
h1,
h2,
h3,
h4 {
  color: #d94f1e;
}
h2 {
  position: relative;
  padding-bottom: 0.5rem;
}
h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f47843, #ff6b35);
  border-radius: 2px;
}

/* ======================= 
    Song styles
======================== */
.songs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.songs-table th {
  background: #f47843;
  color: white;
  padding: 1rem;
  text-align: left;
}
.songs-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

/* pdf link */
.pdf-link {
  display: inline-block;
  background: #f47843;
  color: white !important;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem 0;
  box-shadow: 0 4px 15px rgba(244, 120, 67, 0.3);
  transition: all 0.3s;
  border: none;
}
.pdf-link:hover {
  background: #d94f1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 120, 67, 0.4);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(244, 120, 67, 0.2);
  background: #fff9f5; /* Nền trắng cam nhẹ */
  padding: 12px; /* Tạo viền trắng bên trong */
  transition: all 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 300px; /* Chiều cao cố định */
  object-fit: contain; /* ← DÙNG CONTAIN = KHÔNG MẤT NGƯỜI */
  object-position: center;
  background: white;
  border-radius: 16px;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item figcaption {
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.date {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(244, 120, 67, 0.9);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 60px;
  cursor: pointer;
}

html,
body {
  height: 100%;
  margin: 0;
}
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1; /* Nội dung sẽ tự giãn để đẩy footer xuống dưới */
}

.footer-push {
  flex: 1; /* Tạo khoảng trống đẩy footer xuống */
}

/* Footer style */
footer {
  background: linear-gradient(135deg, #2d1810 0%, #1a0f0a 100%);
  color: white;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 0 !important;
  width: 100%;
  flex-shrink: 0;
  border-top: 4px solid #f47843;
}
footer::before {
  content: "";
  display: block;
  height: 5px;
}

/* ======================= 
  TRANG CHI TIẾT BÀI HÁT 
======================== */

.advent-box {
  background: #fff9f5;
  border-left: 6px solid #f47843;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  box-shadow: 0 6px 20px rgba(244, 120, 67, 0.15);
}
.advent-box h3 {
  color: #d94f1e;
  margin-top: 0;
}
.advent-box ul {
  margin: 1rem 0;
  line-height: 1.8;
}

.btn-full-pdf:hover {
  transform: translateY(-6px) scale(1.05) !important;
  background: #fff9f5 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.btn-full-pdf:active {
  transform: translateY(-2px) !important;
}

.songs-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.song-item {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(244, 120, 67, 0.15);
  transition: all 0.3s;
  border: 1px solid #ffe0d0;
}
.song-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(244, 120, 67, 0.25);
}
.song-item h3 {
  color: #f47843;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 0.8rem;
  font-weight: 700;
}
.song-item h4 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: #333;
}
.song-item h4 span {
  font-size: 1.1rem;
  color: #d94f1e;
  font-weight: normal;
}
.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-youtube,
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-youtube {
  background: #ff0000;
  color: white;
}
.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-3px);
}
.btn-pdf {
  background: #f47843;
  color: white;
}
.btn-pdf:hover {
  background: #d94f1e;
  transform: translateY(-3px);
}

/* ============= HERO + NÚT FULL PDF HOÀN HẢO 2025 ============= */

/* NÚT SIÊU TO, SIÊU ĐẸP, CLICK CHẮC CHẮN */
.btn-mega-pdf {
  display: inline-block !important;
  background: white !important;
  color: #d94f1e !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  padding: 1.4rem 4rem !important;
  border-radius: 60px !important;
  text-decoration: none !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.4s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 100 !important;
}
.btn-mega-pdf:hover {
  transform: translateY(-8px) scale(1.08) !important;
  background: #fff9f5 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

/* ==================== TRANG LỜI HÁT – YOUTUBE GRID ==================== */
.songs-youtube-grid {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  /* 340px là kích thước lý tưởng cho 1 video YouTube thumbnail */
}

.yt-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(244, 120, 67, 0.15);
  transition: all 0.4s ease;
  border: 1px solid #ffe0d0;
}

.yt-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(244, 120, 67, 0.25);
}

.yt-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.yt-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yt-item:hover .yt-thumbnail img {
  transform: scale(1.08);
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 120, 67, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  opacity: 0;
  transition: opacity 0.4s;
}

.yt-item:hover .play-overlay {
  opacity: 1;
}

.yt-info {
  padding: 1rem 1.2rem;
}

.yt-info h3 {
  color: #d94f1e;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.yt-info .date {
  color: #888;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==================== FIX TIÊU ĐỀ & LỜI CA TRONG HERO – ĐẸP HOÀN HẢO TRÊN ĐIỆN THOẠI ==================== */

/* ==================
    RESPONSIVE 
==================== */

/* 1. Màn hình siêu lớn ≥ 1366px (Desktop 27", laptop 15-17") → 4 cột YouTube */
@media (min-width: 1366px) {
  .songs-youtube-grid {
    grid-template-columns: repeat(4, minmax(340px, 1fr));
    gap: 3rem;
    padding: 3rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* 2. iPad Pro ngang, tablet lớn, laptop 13-14" (1024px → 1366px) → ép đúng 3 cột đẹp */
@media (min-width: 1024px) and (max-width: 1366px) {
  .songs-youtube-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* 3. Tablet thường, iPad dọc (dưới 1024px) → 2 cột */
@media (max-width: 1024px) {
  .songs-youtube-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .slides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .hero .super-title {
    font-size: 3.6rem !important;
    line-height: 1.1 !important;
  }

  .hero .super-title span {
    font-size: 2rem !important;
    display: block;
    margin-top: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.95;
  }
}

/* 4. Điện thoại lớn & tablet nhỏ (dưới 768px) → 1 cột */
@media (max-width: 768px) {
  /* Navbar hamburger */
  .hamburger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu a {
    font-size: 1.3rem;
    padding: 0.5rem 2rem;
    display: block;
  }

  /* Hero nhỏ lại */
  .hero {
    padding: 5rem 1rem 4rem !important;
  }
  .hero h1 {
    font-size: 2.8rem !important;
  }
  .hero p {
    font-size: 1.2rem;
  }

  /* Tất cả grid về 1 cột */
  .grid,
  .gallery-grid,
  .songs-youtube-grid,
  .songs-list {
    grid-template-columns: 1fr !important;
    gap: 1.8rem;
    margin: 2rem 0;
  }

  .slide-card {
    flex-direction: column;
  }
  .slide-date {
    min-width: auto;
    padding: 1.2rem;
  }
  .links {
    flex-direction: column;
  }
  .btn-youtube,
  .btn-pdf,
  .btn-slide,
  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* 5. Điện thoại nhỏ hơn nữa (dưới 480px) */
@media (max-width: 480px) {
  .logo img {
    height: 3.2rem;
    width: 3.2rem;
  }
  .logo p {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.4rem !important;
  }
  .hero p {
    font-size: 1.1rem;
  }

  .songs-youtube-grid {
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
  }
  .yt-item {
    border-radius: 14px;
  }
}
