/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might set body */
}

/* Ensure content areas are contained and centered */
.page-index__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* --- 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: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #f0f0f0; /* Light 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;
  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; /* Ensure video and overlay stay within bounds */
}

.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; /* Allows 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.5); /* Darker overlay for better contrast */
  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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(195, 8, 8, 0.8); /* Use register/login color for CTA hint */
  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; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 200px; /* Ensure button is substantial */
}

.page-index__play-now-button:hover {
  background: #a30606; /* Slightly darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* --- H1 Title + CTA Buttons Section --- */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color for H1 */
  line-height: 1.2;
}

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  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: 16px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  text-align: center;
}

.page-index__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-index__btn-secondary:hover {
  background: #005a2e; /* Darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Feature Section (Why Choose 888 Slot) --- */
.page-index__feature-section {
  padding: 80px 20px;
  background-color: #f9f9f9; /* Slightly off-white background */
  text-align: center;
}

.page-index__feature-title {
  font-size: 36px;
  color: #017439;
  margin-bottom: 20px;
}

.page-index__feature-description {
  font-size: 17px;
  color: #555555;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-index__feature-item-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color for dark section */
  color: #FFFFFF; /* White text on dark background */
  text-align: center;
}

.page-index__brand-title {
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-index__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__brand-item {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__brand-item h3 {
  font-size: 24px;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted color for subtitles */
}

.page-index__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-index__brand-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce minimum size */
}


/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
}

.page-index__faq-main-title {
  font-size: 36px;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}