/* style/index.css */
:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* White */
    --text-color-dark-bg: #ffffff; /* Text on dark backgrounds */
    --text-color-light-bg: #333333; /* Text on light backgrounds */
    --card-bg-dark-theme: #2a2a3e; /* Slightly lighter background for cards in dark theme */
    --button-register-bg: #C30808; /* Specific color for register/login buttons */
    --button-register-text: #FFFF00; /* Specific font color for register/login buttons */
}

.page-index {
    color: var(--text-color-dark-bg); /* Default text color for page content on dark body */
    background-color: transparent; /* Body background is handled by shared.css */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

/* --- Global Responsive Styles for Images, Videos, Buttons within .page-index --- */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
}

.page-index video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
}

.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__play-now-button,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; /* For better text wrapping and alignment */
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Container for responsive elements */
.page-index__section,
.page-index__container,
.page-index__wrapper,
.page-index__card,
.page-index__video-container,
.page-index__video-wrapper,
.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container,
.page-index__game-grid,
.page-index__brand-content,
.page-index__blog-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll */
}

/* --- Section Styling --- */
.page-index__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #1a1a2e, #0f0f1c); /* Subtle gradient for hero */
}

.page-index__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a2e; /* Same as body for seamless transition */
}

.page-index__game-showcase-section {
    padding: 80px 20px;
    background-color: var(--card-bg-dark-theme); /* Darker section for game showcase */
}

.page-index__faq-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Revert to body background */
}

.page-index__brand-section {
    padding: 80px 20px;
    background-color: var(--card-bg-dark-theme); /* Darker section for brand */
}

.page-index__blog-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Revert to body background */
}

/* --- Container max-width --- */
.page-index__video-container,
.page-index__title-container,
.page-index__game-showcase-container,
.page-index__faq-container,
.page-index__brand-container,
.page-index__blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for desktop */
}

/* --- Titles --- */
.page-index__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color); /* White text on dark background */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-index__title-description,
.page-index__game-showcase-description,
.page-index__faq-intro-text,
.page-index__brand-intro,
.page-index__blog-intro {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__game-showcase-title,
.page-index__faq-main-title,
.page-index__brand-title,
.page-index__blog-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-align: center;
}

/* --- CTA Buttons (General) --- */
.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index__cta-button {
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--register {
    background-color: var(--button-register-bg); /* #C30808 */
    color: var(--button-register-text); /* #FFFF00 */
    border: 2px solid var(--button-register-text);
}

.page-index__cta-button--register:hover {
    background-color: #a80707; /* Darkened #C30808 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-index__cta-button--play {
    background-color: var(--primary-color); /* #017439 */
    color: var(--secondary-color); /* #FFFFFF */
    border: 2px solid var(--secondary-color);
}

.page-index__cta-button--play:hover {
    background-color: #00602f; /* Darkened #017439 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* --- Video Section Specific --- */
.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;
}

.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 blocking click event 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: rgba(1, 116, 57, 0.8); /* Using primary color with opacity */
  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: var(--primary-color);
  color: var(--secondary-color);
  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: #00602f; /* Darkened #017439 */
  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);
}

/* --- Game Showcase Section --- */
.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__game-card {
    background-color: var(--card-bg-dark-theme);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}