/* =========================================================
 * Section: Tự Do Club (Thành viên)
 * ========================================================= */

.tv-club {
  background:
    var(--tv-home-bg) center / cover fixed no-repeat,
    #660000;
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 120px) 0;
  display: flex;
  flex-direction: column; /* Stack club content and carousel */
  align-items: center;
  justify-content: center;
}

.tv-club__container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  text-align: center;
}

/* Typography */
.tv-club__subtitle {
  color: #FFA827;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
}

.tv-club__title {
  color: #ffffff;
  font-family: inherit; /* Revert to theme's default Vietnamese-supported font */
  font-size: clamp(28px, 5vw, 56px); /* Reduced size slightly to fit in 2 lines */
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Soft, elegant shadow instead of harsh stroke */
}

.tv-club__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Button */
.tv-club__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border: 2px solid #FFA827;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tv-club__btn:hover {
  background: #FFA827;
  color: #1a1a1a;
}

/* Floating Logos Wrapper */
.tv-club__logos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.tv-club__logo {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
  animation: tvFloat 6s ease-in-out infinite;
}

/* Individual Logo Positions */
.tv-club__logo--1 {
  left: 5%;
  top: 25%;
  transform: translateY(-50%);
  width: clamp(150px, 20vw, 250px);
  animation-delay: 0s;
}

.tv-club__logo--2 {
  left: 28%;
  top: 10%;
  width: clamp(80px, 12vw, 150px);
  animation-delay: -2s;
}

.tv-club__logo--3 {
  right: 5%;
  top: 25%;
  transform: translateY(-50%);
  width: clamp(100px, 15vw, 180px);
  animation-delay: -4s;
}

/* Keyframes for Floating Effect */
@keyframes tvFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(0, -15px) rotate(3deg); }
  66% { transform: translate(0, 10px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@media (max-width: 900px) {
  /* On smaller screens, make logos less intrusive */
  .tv-club__logo {
    opacity: 0.2;
  }
}

/* =========================================================
 * Banners Marquee (Chạy liên tục)
 * ========================================================= */
.tv-club__marquee-wrap {
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  display: flex;
  padding: 10px 0; /* Cho khoảng thở cho bóng đổ */
}

.tv-club__marquee-track {
  display: flex;
  gap: 20px;
  /* Width must contain 2 identical sets of items.
     Animation will shift by exactly 50% (one set). */
  width: max-content;
  animation: tvMarquee 25s linear infinite;
}

.tv-club__marquee-track:hover {
  animation-play-state: paused;
}

.tv-club__marquee-item {
  flex-shrink: 0;
  display: block;
  width: clamp(320px, 50vw, 600px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tv-club__marquee-item:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(0,0,0,0.5);
}

.tv-club__marquee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes tvMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); } /* -50% của tổng track, trừ đi nửa gap */
}
