/* style/index.css */
/* 🚨 Body padding-top handled by shared.css, avoid duplication here. */
.page-index {
  color: var(--Text-Main, #F2FFF6); /* Default text color for the page */
  background: var(--Background, #08160F); /* Default background color for the page */
}

/* 🚨 Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 Shared body handles header offset. This is a decorative top padding. */
  padding-top: 10px; /* As per HOMEPAGE_ONLY requirement */
  padding-bottom: 40px; /* Adjusted for better spacing */
  background: var(--Background, #08160F); /* Ensure background is consistent */
}

.page-index__video-container {
  position: relative;
  width: 100%; /* 🚨 Required for desktop to prevent shrinking */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* Ensure consistency with video wrapper */
  overflow: hidden; /* Ensure shadow and transform apply correctly */
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click event */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay */
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8); /* Using a standard blue for visibility */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 🚨 Promo Dark Section (GifCode Tabs + Blog Section Title) */
.page-index__promo-dark {
  background: var(--Card-B-G, #11271B); /* Custom background color */
  padding: 40px 20px;
  color: var(--Text-Main, #F2FFF6); /* Light text on dark background */
}

.page-index__gifcode-tabs {
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__gifcode-title {
  color: var(--Gold, #F2C14E); /* Using Gold for title as per prompt */
  text-align: center;
  text-transform: uppercase;
  font-size: 2em;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-index__gifcode-tab-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 16px 0 40px;
}

.page-index__gifcode-tab-nav li {
  margin: 0;
}

.page-index__gifcode-tab-nav a {
  color: var(--Text-Secondary, #A7D9B8); /* Secondary text color for inactive tabs */
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.1em;
}

.page-index__gifcode-tab-nav a.is-active {
  color: var(--primary-color, #11A84E); /* Primary color for active tab */
  border-bottom-color: var(--primary-color, #11A84E);
}

.page-index__gifcode-panel {
  display: none;
}

.page-index__gifcode-panel.is-active {
  display: block;
}

.page-index__gifcode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto;
}

.page-index__gifcode-col {
  flex: 1 1 calc(50% - 6px); /* Desktop 2 columns */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-index__gifcode-img {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__gifcode-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__gifcode-img img {
  display: block;
  width: 100%;
  aspect-ratio: 370 / 127; /* Fixed aspect ratio as per HOMEPAGE_ONLY */
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: 4px;
}

.page-index__gifcode-img:hover img {
  transform: scale(1.03);
}

.page-index__blog-section-title {
  color: var(--primary-color, #11A84E); /* Primary color for title */
  text-align: center;
  margin: 50px 0 30px;
  font-size: 1.8rem;
  font-weight: bold;
}

/* 🚨 Blog Slider Section */
.page-index__blog-slider {
  padding: 40px 0 60px;
  background: var(--Background, #08160F); /* Background for this section */
  color: var(--Text-Main, #F2FFF6); /* Light text on dark background */
}

.page-index__blog-slider-wrap {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-index__blog-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none;
}

.page-index__post-item {
  flex: 0 0 calc((100% - 64px) / 5); /* Desktop: 5 cards visible, 4 gaps of 16px */
  scroll-snap-align: start;
  min-width: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__post-box {
  position: relative;
  background: var(--Card-B-G, #11271B); /* Dark background for post box */
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-index__post-image {
  flex-shrink: 0;
}

.page-index__post-cover {
  position: relative;
  padding-top: 120px; /* 🚨 Fixed height as per HOMEPAGE_ONLY */
  overflow: hidden;
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__post-cover-link:hover img {
  transform: scale(1.05);
}

.page-index__post-text {
  padding: 15px;
  text-align: center;
  color: var(--Text-Main, #F2FFF6); /* Light text on dark background */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-index__post-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: bold;
}

.page-index__post-title a {
  color: var(--primary-color, #11A84E); /* Primary color for title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__post-title a:hover {
  color: var(--Gold, #F2C14E); /* Gold on hover */
}

.page-index__post-divider {
  width: 40px;
  height: 2px;
  background: var(--Divider, #1E3A2A); /* Custom divider color */
  margin: 8px auto;
}

.page-index__post-excerpt {
  color: var(--Text-Secondary, #A7D9B8); /* Secondary text color for excerpt */
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.page-index__post-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--Background, #08160F); /* Background color for date badge */
  color: var(--Text-Main, #F2FFF6); /* Light text on dark background */
  border: 2px solid var(--primary-color, #11A84E);
  padding: 4px 8px;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 4px;
}