/* style/index.css */

/* General page styling */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content background will be transparent to show body bg */
}

/* Section general styling */
.page-index__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__dark-section {
  background-color: #1a1a1a; /* Explicit dark background for sections to ensure contrast */
  color: #ffffff;
}

/* Hero Section */
.page-index__hero-section {
  text-align: center;
  padding-top: 40px; /* Reduced as video section already handles header offset */
  padding-bottom: 60px;
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('[GALLERY:hero_bg:1920x1080:555 win,homepage,hero_background,dynamic_games]');
  background-size: cover;
  background-position: center;
}

.page-index__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  color: #FFFF00; /* Highlight H1 with custom font color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__cta-button--register,
.page-index__cta-button--login {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
}

.page-index__cta-button--register:hover,
.page-index__cta-button--login:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--promo,
.page-index__cta-button--learn-more,
.page-index__cta-button--view-all,
.page-index__cta-button--download,
.page-index__cta-button--small {
  background: var(--primary-color, #017439);
  color: var(--secondary-color, #FFFFFF);
}

.page-index__cta-button--promo:hover,
.page-index__cta-button--learn-more:hover,
.page-index__cta-button--view-all:hover,
.page-index__cta-button--download:hover,
.page-index__cta-button--small:hover {
  background: #005f2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--small {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: auto; /* Push to bottom in flex column */
}

/* Video 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-color: #000000; /* Dark background for video section */
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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.4);
  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 transparency */
  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: #C30808; /* Using Login/Register button color for Play Now */
  color: #FFFF00; /* Using Login/Register font color for Play Now */
  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: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 60px 20px;
  background-color: #0d0d0d;
  color: #ffffff;
  text-align: center;
}

.page-index__why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__why-choose-title {
  font-size: 36px;
  color: var(--primary-color, #017439);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__why-choose-intro {
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-index__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__why-choose-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__why-choose-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.page-index__why-choose-item-title {
  font-size: 22px;
  color: var(--secondary-color, #FFFFFF);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__why-choose-item p {
  font-size: 16px;
  color: #cccccc;
}

/* Games Showcase Section */
.page-index__games-showcase-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-index__games-showcase-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__games-showcase-title {
  font-size: 36px;
  color: var(--primary-color, #017439);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__games-showcase-intro {
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-index__game-category-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}