/* =========================================================
 * Section: Đặc sắc (Features - Sticky Stacking)
 * ========================================================= */

.tv-features {
  position: relative;
  /* background-color: var(--tv-primary); -- we will use inline style or class */
  /* Remove top/bottom padding so sticky works smoothly over 100vh */
  padding: 0; 
}

.tv-features-wrapper {
  position: relative;
}

.tv-feature-block {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Add box shadow to separate layers when sliding */
  box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
  background-color: #FFA827; /* Theme yellow */
}

/* Ensure the first block doesn't have a shadow on top of itself if it's the first */
.tv-feature-block:first-child {
  box-shadow: none;
}

.tv-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  align-items: center;
}

@media (max-width: 900px) {
  .tv-feature-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 20px;
  }
  .tv-feature-title {
    font-size: 28px;
    margin: 0 0 15px;
  }
  .tv-feature-list li {
    font-size: 15px;
    margin-bottom: 10px;
  }
}

/* Left Column: Content */
.tv-feature-content {
  color: #1a1a1a;
}

.tv-feature-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin: 0 0 30px;
  text-transform: uppercase;
}

.tv-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tv-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.tv-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  flex-shrink: 0;
}

/* Right Column: Media (Video) */
.tv-feature-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tv-feature-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
  /* box-shadow removed or customized based on transparent video or solid */
}

/* If it's an image fallback */
.tv-feature-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .tv-feature-video, 
  .tv-feature-image {
    width: 100%;
    height: auto;
    max-height: 45vh; /* Giới hạn chiều cao trên mobile để không bị cắt mất bởi overflow: hidden */
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}
