/* style/index-latest-games.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --login-button-color: #EA7C07;
  --background-white: #FFFFFF;
  --black: #000000;
}

.page-index-latest-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
}

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

.page-index-latest-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-latest-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index-latest-games__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-index-latest-games__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index-latest-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  color: var(--text-light);
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
}

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

.page-index-latest-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-index-latest-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.page-index-latest-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-index-latest-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-index-latest-games__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-index-latest-games__btn-primary,
.page-index-latest-games__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, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-latest-games__btn-primary {
  background-color: var(--login-button-color);
  color: var(--secondary-color);
  border: 2px solid var(--login-button-color);
}

.page-index-latest-games__btn-primary:hover {
  background-color: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

.page-index-latest-games__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-index-latest-games__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit;
}

.page-index-latest-games__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-latest-games__image-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.page-index-latest-games__feature-card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-index-latest-games__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-latest-games__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index-latest-games__feature-description {
  font-size: 1em;
  line-height: 1.7;
}

.page-index-latest-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index-latest-games__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-index-latest-games__benefits-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-latest-games__benefits-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index-latest-games__benefits-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-latest-games__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-index-latest-games__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-index-latest-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-index-latest-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-index-latest-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-index-latest-games__faq-item.active .page-index-latest-games__faq-toggle {
  transform: rotate(45deg);
}

.page-index-latest-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-index-latest-games__faq-item.active .page-index-latest-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-index-latest-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

.page-index-latest-games__cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index-latest-games__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-latest-games__hero-title {
    font-size: 3em;
  }
  .page-index-latest-games__section-title {
    font-size: 2em;
  }
}

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

  .page-index-latest-games__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index-latest-games__hero-title {
    font-size: 2.2em;
  }

  .page-index-latest-games__hero-description {
    font-size: 1em;
  }

  .page-index-latest-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-latest-games__btn-primary,
  .page-index-latest-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index-latest-games__section {
    padding: 40px 0;
  }

  .page-index-latest-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-latest-games__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-index-latest-games__image-grid,
  .page-index-latest-games__features-grid,
  .page-index-latest-games__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-latest-games__feature-card,
  .page-index-latest-games__benefits-item {
    padding: 20px;
    text-align: center;
  }

  .page-index-latest-games__feature-image {
    height: 200px;
  }

  .page-index-latest-games__feature-title {
    font-size: 1.5em;
  }

  .page-index-latest-games__benefits-title {
    font-size: 1.4em;
  }

  .page-index-latest-games__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-index-latest-games__faq-answer {
    padding: 0 20px;
  }

  .page-index-latest-games__faq-item.active .page-index-latest-games__faq-answer {
    padding: 10px 20px;
  }

  .page-index-latest-games__cta-section {
    padding: 60px 0;
  }

  /* Mobile image responsiveness */
  .page-index-latest-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-latest-games__section,
  .page-index-latest-games__card,
  .page-index-latest-games__container,
  .page-index-latest-games__hero-image-wrapper,
  .page-index-latest-games__image-grid,
  .page-index-latest-games__features-grid,
  .page-index-latest-games__benefits-list,
  .page-index-latest-games__faq-list,
  .page-index-latest-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  .page-index-latest-games__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-index-latest-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-index-latest-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-latest-games__section-title {
    font-size: 1.6em;
  }
  .page-index-latest-games__feature-title {
    font-size: 1.3em;
  }
  .page-index-latest-games__benefits-title {
    font-size: 1.2em;
  }
}