/* style/index-game-types.css */
.page-index-game-types {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-index-game-types__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-game-types__hero-content {
  z-index: 10;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-index-game-types__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and login font color */
}

.page-index-game-types__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-index-game-types__btn-primary,
.page-index-game-types__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-game-types__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register and login font color */
  border: 2px solid #C30808;
}

.page-index-game-types__btn-primary:hover {
  background-color: #a30707;
  transform: translateY(-2px);
}

.page-index-game-types__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register and login font color */
  border: 2px solid #FFFF00;
}

.page-index-game-types__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  transform: translateY(-2px);
}

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

.page-index-game-types__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Common Section Styles */
.page-index-game-types__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-index-game-types__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Game Categories Section */
.page-index-game-types__game-categories {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
}

.page-index-game-types__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-game-types__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-game-types__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-index-game-types__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index-game-types__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-index-game-types__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-game-types__card-title a:hover {
  color: #005f2f;
}

.page-index-game-types__card-text {
  font-size: 1em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-game-types__card-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-game-types__card-button:hover {
  background-color: #005f2f;
}

/* Why Choose Us Section */
.page-index-game-types__why-choose-us {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-index-game-types__why-choose-us .page-index-game-types__section-title {
  color: #FFFF00; /* Register and login font color */
}

.page-index-game-types__why-choose-us .page-index-game-types__section-description {
  color: #e0e0e0;
}

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

.page-index-game-types__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index-game-types__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-game-types__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.page-index-game-types__feature-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index-game-types__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Play Section */
.page-index-game-types__how-to-play {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index-game-types__how-to-play .page-index-game-types__section-title {
  color: #017439;
}

.page-index-game-types__how-to-play .page-index-game-types__section-description {
  color: #555555;
}

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

.page-index-game-types__step-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index-game-types__step-card:hover {
  transform: translateY(-5px);
}

.page-index-game-types__step-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-index-game-types__step-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
}

/* Video Section */
.page-index-game-types__video-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for video */
  color: #ffffff;
  text-align: center;
}

.page-index-game-types__video-section .page-index-game-types__section-title {
  color: #FFFF00; /* Register and login font color */
}

.page-index-game-types__video-section .page-index-game-types__section-description {
  color: #e0e0e0;
}

.page-index-game-types__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 960px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index-game-types__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-index-game-types__video-cta {
    margin-top: 30px;
}

/* Responsible Gambling Section */
.page-index-game-types__responsible-gambling {
  padding: 80px 0;
  background-color: #f0f8ff; /* Light background */
  text-align: center;
}

.page-index-game-types__responsible-gambling .page-index-game-types__section-title {
  color: #017439;
}

.page-index-game-types__responsible-gambling .page-index-game-types__section-description {
  color: #555555;
  margin-bottom: 30px;
}

.page-index-game-types__read-more-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-game-types__read-more-link:hover {
  background-color: #005f2f;
}

/* FAQ Section */
.page-index-game-types__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index-game-types__faq-section .page-index-game-types__section-title {
  color: #017439;
}

.page-index-game-types__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-index-game-types__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-game-types__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-index-game-types__faq-question:hover {
  background-color: #e5e5e5;
}

.page-index-game-types__faq-heading {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-index-game-types__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-index-game-types__faq-item.active .page-index-game-types__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '−' in JS, no rotation needed */
}

.page-index-game-types__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-index-game-types__faq-item.active .page-index-game-types__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0;
}

.page-index-game-types__faq-answer p {
  margin-bottom: 10px;
  color: #555555;
  text-align: left;
}

.page-index-game-types__faq-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-index-game-types__faq-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-game-types__main-title {
    font-size: 2.8em;
  }
  .page-index-game-types__section-title {
    font-size: 2em;
  }
  .page-index-game-types__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }
}

@media (max-width: 768px) {
  .page-index-game-types__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-index-game-types__main-title {
    font-size: 2.2em;
  }
  .page-index-game-types__description {
    font-size: 1em;
  }
  .page-index-game-types__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-game-types__btn-primary,
  .page-index-game-types__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }
  
  .page-index-game-types__section-title {
    font-size: 1.8em;
  }
  .page-index-game-types__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index-game-types__container {
    padding: 0 15px;
  }
  .page-index-game-types__game-categories,
  .page-index-game-types__why-choose-us,
  .page-index-game-types__how-to-play,
  .page-index-game-types__video-section,
  .page-index-game-types__responsible-gambling,
  .page-index-game-types__faq-section {
    padding: 50px 0;
  }
  
  .page-index-game-types__category-grid,
  .page-index-game-types__feature-grid,
  .page-index-game-types__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Images and Video responsiveness */
  .page-index-game-types img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-game-types__category-card,
  .page-index-game-types__feature-item,
  .page-index-game-types__step-card,
  .page-index-game-types__container,
  .page-index-game-types__video-wrapper,
  .page-index-game-types__cta-buttons,
  .page-index-game-types__video-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-index-game-types__video-wrapper {
    margin: 30px auto;
  }
  .page-index-game-types__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-game-types__faq-question {
    padding: 15px;
  }
  .page-index-game-types__faq-heading {
    font-size: 1.1em;
  }
  .page-index-game-types__faq-toggle {
    font-size: 1.5em;
  }
  .page-index-game-types__faq-answer {
    padding: 0 15px;
  }
  .page-index-game-types__faq-item.active .page-index-game-types__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-index-game-types__main-title {
    font-size: 1.8em;
  }
  .page-index-game-types__section-title {
    font-size: 1.5em;
  }
  .page-index-game-types__btn-primary,
  .page-index-game-types__btn-secondary {
    font-size: 1em;
  }
  .page-index-game-types__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-index-game-types__feature-title,
  .page-index-game-types__step-title {
    font-size: 1.5em;
  }
}

/* Contrast Fixes */
.page-index-game-types__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-index-game-types__light-bg {
  color: #333333; /* Light background with dark text */
}