/* style/index-game-types.css */

/* Base styles for the page content, assuming a light body background from shared.css */
.page-index-game-types {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not set */
}

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

.page-index-game-types__section-title {
  font-size: clamp(28px, 3.5vw, 42px); /* H1 size handled by hero, H2s use clamp */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-index-game-types__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-game-types__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index-game-types__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

/* HERO Section */
.page-index-game-types__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(38, 169, 224, 0.1), #ffffff);
}

.page-index-game-types__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-index-game-types__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-game-types__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-index-game-types__main-title {
  font-size: clamp(36px, 5vw, 56px); /* Use clamp for H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-index-game-types__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-index-game-types__btn-primary,
.page-index-game-types__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-index-game-types__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-game-types__btn-primary:hover {
  background-color: #1a7bb2;
  border-color: #1a7bb2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-index-game-types__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-game-types__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a7bb2;
  border-color: #1a7bb2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.2);
}

/* Section Specific Styles */
.page-index-game-types__overview-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-index-game-types__game-types-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-index-game-types__game-types-section .page-index-game-types__section-title,
.page-index-game-types__game-types-section .page-index-game-types__text-block {
  color: #ffffff;
}

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

.page-index-game-types__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-game-types__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-game-types__card-title {
  font-size: 24px;
  font-weight: 700;
  padding: 20px 20px 10px;
  color: #26A9E0;
}

.page-index-game-types__card-text {
  font-size: 16px;
  padding: 0 20px 15px;
  text-align: left;
  flex-grow: 1;
}

.page-index-game-types__feature-list {
  list-style: none;
  padding: 0 20px 15px;
  margin: 0;
}

.page-index-game-types__feature-item {
  font-size: 16px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-index-game-types__feature-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: 700;
}

.page-index-game-types__game-card .page-index-game-types__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-index-game-types__promotions-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-index-game-types__security-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-index-game-types__security-section .page-index-game-types__section-title,
.page-index-game-types__security-section .page-index-game-types__text-block {
  color: #ffffff;
}

.page-index-game-types__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

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

.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-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  outline: none;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-index-game-types__faq-item summary::marker {
  display: none;
}

.page-index-game-types__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-index-game-types__faq-item[open] summary {
  background-color: #f0f0f0;
  color: #26A9E0;
}

.page-index-game-types__faq-qtext {
  flex-grow: 1;
}

.page-index-game-types__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-index-game-types__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  border-top: 1px solid #e0e0e0;
}

.page-index-game-types__cta-final-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-index-game-types__cta-final-section .page-index-game-types__section-title,
.page-index-game-types__cta-final-section .page-index-game-types__text-block {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-game-types__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-index-game-types__container {
    padding: 0 15px;
  }

  .page-index-game-types__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-index-game-types__text-block {
    font-size: 16px;
  }

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

  .page-index-game-types__main-title {
    font-size: 32px;
  }

  .page-index-game-types__description {
    font-size: 18px;
    margin-bottom: 20px;
  }

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

  .page-index-game-types__btn-primary,
  .page-index-game-types__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images responsiveness */
  .page-index-game-types img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-game-types__hero-image-wrapper,
  .page-index-game-types__overview-section,
  .page-index-game-types__game-types-section,
  .page-index-game-types__promotions-section,
  .page-index-game-types__security-section,
  .page-index-game-types__faq-section,
  .page-index-game-types__cta-final-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__game-card {
    margin-bottom: 20px;
  }

  .page-index-game-types__card-image {
    height: 200px; /* Adjust height for mobile cards */
  }

  .page-index-game-types__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-index-game-types__faq-answer {
    padding: 10px 20px 15px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-game-types__main-title {
    font-size: 28px;
  }

  .page-index-game-types__section-title {
    font-size: 22px;
  }

  .page-index-game-types__card-title {
    font-size: 20px;
  }
}