/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* inherited from body, which is dark */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

/* 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);
  background-color: #0a0a0a; /* Ensure section has dark background */
}

.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.4);
}

.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.3);
}

.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 */
  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; /* Specific color for Play Now */
  color: #FFFF00; /* Specific 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.2);
  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.3);
}

/* H1 Title + CTA Section */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
}

.page-index__main-title {
  font-size: 52px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-index__title-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  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.2);
  border: none;
  cursor: pointer;
}

.page-index__cta-button--register {
  background: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
}

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

.page-index__cta-button--login {
  background: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
}

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

/* Intro Section */
.page-index__intro-section {
  padding: 60px 20px;
  text-align: center;
}

.page-index__intro-section p {
  font-size: 18px;
  max-width: 900px;
  margin: 20px auto;
  color: #f0f0f0;
}

/* Game Categories Section */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #ffffff;
  padding-bottom: 20px;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-card-title {
  font-size: 24px;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-index__game-card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card-title a:hover {
  color: #00a04a;
}

.page-index__game-card p {
  font-size: 16px;
  padding: 0 15px;
  color: #f0f0f0;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__promotions-section p {
  font-size: 18px;
  max-width: 900px;
  margin: 20px auto;
  color: #f0f0f0;
}

.page-index__promotions-section a {
  color: #017439;
  text-decoration: underline;
}

.page-index__promotions-section a:hover {
  color: #00a04a;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
}

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

.page-index__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-index__advantage-title {
  font-size: 26px;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__advantage-item p {
  font-size: 16px;
  color: #f0f0f0;
}

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

.page-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
  font-size: 16px;
}

.page-index__faq-answer p {
  margin-top: 10px;
}

/* Brand Section */
.page-index__brand-section {
  padding: 80px 20px;
}

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

.page-index__brand-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-index__brand-item-title {
  font-size: 26px;
  color: #017439;
  margin-bottom: 15px;
}

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

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
}

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

.page-index__blog-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-index__blog-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__blog-content {
  padding: 20px;
}

.page-index__blog-item-title {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-item-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-item-title a:hover {
  color: #00a04a;
}

.page-index__blog-item-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #aaaaaa;
  display: block;
}

/* Common Dark Background sections for light text */
.page-index__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 44px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__game-categories, .page-index__advantages-grid, .page-index__blog-list, .page-index__brand-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; 
  }
  
  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-index__main-title {
    font-size: 36px;
  }

  .page-index__title-description {
    font-size: 18px;
  }

  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__intro-section p, .page-index__promotions-section p, .page-index__advantage-item p, .page-index__brand-item p, .page-index__blog-item-excerpt {
    font-size: 15px;
  }

  .page-index__game-card-title, .page-index__advantage-title, .page-index__brand-item-title {
    font-size: 22px;
  }

  .page-index__blog-item-title {
    font-size: 18px;
  }
  
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__video-section,
  .page-index__intro-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__why-choose-us-section,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 30px;
  }
  .page-index__title-description {
    font-size: 16px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__play-now-button {
    font-size: 15px !important;
    padding: 10px 25px !important;
  }
  .page-index__video-click-hint {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}