/* style/index-game-highlights.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
}

.page-index-game-highlights {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
}

.page-index-game-highlights__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index-game-highlights__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index-game-highlights__hero-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 */
  text-align: center;
  overflow: hidden;
}

.page-index-game-highlights__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-index-game-highlights__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-index-game-highlights__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-index-game-highlights__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-game-highlights__hero-description {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-index-game-highlights__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-game-highlights__btn-primary,
.page-index-game-highlights__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-game-highlights__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-index-game-highlights__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-index-game-highlights__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index-game-highlights__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-index-game-highlights__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-game-highlights__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index-game-highlights__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit;
}

.page-index-game-highlights__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-index-game-highlights__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark sections, dark text on light sections */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-light); /* Default for dark-bg sections */
}

.page-index-game-highlights__featured-games .page-index-game-highlights__game-card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-index-game-highlights__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}

.page-index-game-highlights__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

.page-index-game-highlights__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-game-highlights__card-title a:hover {
  text-decoration: underline;
}

.page-index-game-highlights__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: inherit;
}

.page-index-game-highlights__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-index-game-highlights__card-button:hover {
  background-color: #1e87c2;
}

.page-index-game-highlights__benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-game-highlights__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.page-index-game-highlights__benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: block;
  margin-left: 0;
  margin-right: auto;
}

.page-index-game-highlights__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index-game-highlights__benefit-text {
  font-size: 1rem;
}

.page-index-game-highlights__guide-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-index-game-highlights__guide-item {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
}

.page-index-game-highlights__guide-item strong {
  color: var(--primary-color);
}

.page-index-game-highlights__register-cta .page-index-game-highlights__section-title,
.page-index-game-highlights__register-cta .page-index-game-highlights__section-description {
  color: var(--text-light);
}

.page-index-game-highlights__cta-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-game-highlights__cta-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-index-game-highlights__cta-text-group {
  max-width: 600px;
}

.page-index-game-highlights__cta-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index-game-highlights__cta-paragraph {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-index-game-highlights__cta-buttons--inline {
  justify-content: flex-start;
}

.page-index-game-highlights__faq-section .page-index-game-highlights__section-title,
.page-index-game-highlights__faq-section .page-index-game-highlights__section-description {
  color: var(--text-dark);
}

.page-index-game-highlights__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-index-game-highlights__faq-item {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index-game-highlights__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
}

.page-index-game-highlights__faq-item summary {
  list-style: none;
}

.page-index-game-highlights__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-game-highlights__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-index-game-highlights__faq-item[open] .page-index-game-highlights__faq-toggle {
  transform: rotate(45deg);
}

.page-index-game-highlights__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.page-index-game-highlights__faq-answer p {
  margin-bottom: 0;
}

.page-index-game-highlights__conclusion .page-index-game-highlights__section-title,
.page-index-game-highlights__conclusion .page-index-game-highlights__section-description {
  color: var(--text-light);
}

.page-index-game-highlights .highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-game-highlights__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-index-game-highlights__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-index-game-highlights {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-game-highlights__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-game-highlights__hero-content {
    padding: 15px;
  }

  .page-index-game-highlights__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-index-game-highlights__hero-description {
    font-size: 1rem;
  }

  .page-index-game-highlights__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-highlights__btn-primary,
  .page-index-game-highlights__btn-secondary,
  .page-index-game-highlights a[class*="button"],
  .page-index-game-highlights a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-highlights__section {
    padding: 40px 15px;
  }

  .page-index-game-highlights__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index-game-highlights__section-title {
    font-size: 1.8rem;
  }

  .page-index-game-highlights__section-description {
    font-size: 1rem;
  }

  .page-index-game-highlights__game-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-game-highlights__game-card {
    padding: 20px;
  }

  .page-index-game-highlights__card-image {
    height: 180px;
  }

  .page-index-game-highlights__card-title {
    font-size: 1.3rem;
  }

  .page-index-game-highlights__card-text {
    font-size: 0.95rem;
  }

  .page-index-game-highlights__benefit-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-game-highlights__benefit-item {
    padding: 20px;
  }

  .page-index-game-highlights__cta-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-index-game-highlights__cta-image {
    max-width: 100%;
    height: auto;
  }

  .page-index-game-highlights__cta-subtitle {
    font-size: 1.5rem;
  }

  .page-index-game-highlights__cta-paragraph {
    font-size: 1rem;
  }

  .page-index-game-highlights__cta-buttons--inline {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index-game-highlights__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-index-game-highlights__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
  }

  /* Ensure all images are responsive */
  .page-index-game-highlights img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-game-highlights__section,
  .page-index-game-highlights__card,
  .page-index-game-highlights__container,
  .page-index-game-highlights__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-game-highlights__hero-section .page-index-game-highlights__container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-index-game-highlights__game-cards,
  .page-index-game-highlights__benefit-list,
  .page-index-game-highlights__guide-list,
  .page-index-game-highlights__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-index-game-highlights__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .page-index-game-highlights__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-index-game-highlights__section-title {
    font-size: 1.5rem;
  }
  .page-index-game-highlights__hero-description {
    font-size: 0.95rem;
  }
  .page-index-game-highlights__card-title {
    font-size: 1.2rem;
  }
}