.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
}

.page-index__video-container {
  position: relative;
  width: 100%; /* IMPORTANT: Ensures full width on desktop before max-width */
  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;
  overflow: hidden;
}

.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);
  background: #11271B; /* Card BG for loading state */
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Allows click on parent <a> */
}

.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.3);
  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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  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%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  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;
  min-width: 180px;
}

.page-index__play-now-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert 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) */
.page-index__promo-dark {
  background: #11271B; /* Card BG, but used as section background */
  padding: 40px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-index__gifcode-title {
  color: #F2C14E; /* Gold */
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  text-transform: uppercase;
}

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

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

.page-index__gifcode-tab-nav a {
  color: #A7D9B8; /* Text Secondary */
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-index__gifcode-tab-nav a.is-active,
.page-index__gifcode-tab-nav a:hover {
  color: #F2C14E; /* Gold */
  border-bottom-color: #F2C14E; /* Gold */
}

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

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

.page-index__gifcode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.page-index__gifcode-col {
  flex: 1 1 calc(50% - 10px); /* 2 columns with gap */
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0; /* Prevent overflow */
}

.page-index__gifcode-img {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #0A4B2C; /* Deep Green for placeholder/loading */
}

.page-index__gifcode-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__gifcode-img a {
  display: block;
}

.page-index__gifcode-img img {
  display: block;
  width: 100%;
  aspect-ratio: 370 / 127; /* Fixed aspect ratio for consistency */
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: 8px;
  min- /* Min height based on aspect ratio */
}

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

.page-index__blog-section-title {
  color: #F2C14E; /* Gold */
  text-align: center;
  margin: 60px 0 30px; /* Space from gifcode cards */
  font-size: 2em;
  font-weight: bold;
  text-transform: uppercase;
}

/* Blog Slider Section */
.page-index__blog-slider {
  padding: 40px 0 60px;
  background: #08160F; /* Background */
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch; /* iOS Safari */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.page-index__post-item {
  flex: 0 0 calc((100% - (4 * 20px)) / 5); /* 5 cards visible, 4 gaps */
  scroll-snap-align: start;
  min-width: 250px; /* Minimum width for small screens */
  background: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__post-box {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-index__post-image {
  position: relative;
  width: 100%;
}

.page-index__post-cover {
  position: relative;
  padding-top: 120px; /* Fixed height for cover image */
  overflow: hidden;
  background: #0A4B2C; /* Deep Green for placeholder/loading */
}

.page-index__post-cover-link {
  display: block;
  position: absolute;
  inset: 0;
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  min- /* Min height based on padding-top */
}

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

.page-index__post-text {
  padding: 15px;
  text-align: center;
  color: #F2FFF6; /* Text Main */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__post-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__post-title a {
  color: #57E38D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__post-title a:hover {
  color: #2AD16F; /* Button top gradient color */
}

.page-index__post-divider {
  width: 50px;
  height: 2px;
  background: #2E7A4E; /* Border */
  margin: 10px auto;
}