/* style/index-core-games-introduction.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
}

.page-index-core-games-introduction {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg);
  background-color: var(--background-color);
}

.page-index-core-games-introduction__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color);
}

.page-index-core-games-introduction__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index-core-games-introduction__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-index-core-games-introduction__hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-color-dark-bg);
  max-width: 900px;
  padding: 0 20px;
}

.page-index-core-games-introduction__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index-core-games-introduction__content-area,
.page-index-core-games-introduction__promotions-section,
.page-index-core-games-introduction__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--background-color);
  color: var(--text-color-light-bg);
}

.page-index-core-games-introduction__game-showcase,
.page-index-core-games-introduction__why-choose-us,
.page-index-core-games-introduction__cta-bottom {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-core-games-introduction__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-index-core-games-introduction__section-title--white {
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-index-core-games-introduction__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: var(--text-color-light-bg);
}

.page-index-core-games-introduction__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index-core-games-introduction__game-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-index-core-games-introduction__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index-core-games-introduction__game-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index-core-games-introduction__game-card-title a:hover {
  text-decoration: underline;
}

.page-index-core-games-introduction__game-card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-index-core-games-introduction__btn-primary {
  background-color: var(--register-button-color); /* Custom color for register */
  color: var(--register-login-font-color);
  border: 2px solid var(--register-button-color);
}

.page-index-core-games-introduction__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-index-core-games-introduction__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-index-core-games-introduction__game-card-content .page-index-core-games-introduction__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-index-core-games-introduction__game-card-content .page-index-core-games-introduction__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-index-core-games-introduction__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index-core-games-introduction__why-choose-us .page-index-core-games-introduction__feature-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-games-introduction__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index-core-games-introduction__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__feature-description {
  font-size: 1em;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__faq-list {
  margin-top: 30px;
}

.page-index-core-games-introduction__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.page-index-core-games-introduction__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-index-core-games-introduction__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-index-core-games-introduction__faq-item.active .page-index-core-games-introduction__faq-toggle {
  transform: rotate(45deg);
}

.page-index-core-games-introduction__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-color-light-bg);
}

.page-index-core-games-introduction__faq-item.active .page-index-core-games-introduction__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-index-core-games-introduction__faq-answer p {
  margin-bottom: 0;
  text-align: justify;
}

.page-index-core-games-introduction__cta-bottom {
  text-align: center;
  padding: 80px 20px;
}

.page-index-core-games-introduction__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

.page-index-core-games-introduction__cta-description a {
  color: var(--register-login-font-color);
  text-decoration: underline;
}

.page-index-core-games-introduction__cta-description a:hover {
  color: var(--secondary-color);
}

.page-index-core-games-introduction__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-index-core-games-introduction__floating-btn {
  display: block;
  width: 120px;
  padding: 12px 0;
  border-radius: 25px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
  color: var(--register-login-font-color);
}

.page-index-core-games-introduction__floating-btn--register {
  background-color: var(--register-button-color);
}

.page-index-core-games-introduction__floating-btn--register:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-index-core-games-introduction__floating-btn--login {
  background-color: var(--login-button-color);
}

.page-index-core-games-introduction__floating-btn--login:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-games-introduction__hero-title {
    font-size: 3em;
  }

  .page-index-core-games-introduction__section-title {
    font-size: 2em;
  }

  .page-index-core-games-introduction__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-index-core-games-introduction__hero-section {
    height: 500px;
  }

  .page-index-core-games-introduction__hero-title {
    font-size: 2.5em;
  }

  .page-index-core-games-introduction__hero-description {
    font-size: 1em;
  }

  .page-index-core-games-introduction__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-core-games-introduction__btn-primary,
  .page-index-core-games-introduction__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
  }

  .page-index-core-games-introduction__content-area,
  .page-index-core-games-introduction__promotions-section,
  .page-index-core-games-introduction__faq-section,
  .page-index-core-games-introduction__game-showcase,
  .page-index-core-games-introduction__why-choose-us,
  .page-index-core-games-introduction__cta-bottom {
    padding: 40px 15px;
  }

  .page-index-core-games-introduction__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-core-games-introduction__game-card-grid {
    grid-template-columns: 1fr;
  }

  .page-index-core-games-introduction__game-card-image {
    height: 200px;
  }

  .page-index-core-games-introduction__game-card-title {
    font-size: 1.5em;
  }

  .page-index-core-games-introduction__features-grid {
    grid-template-columns: 1fr;
  }

  .page-index-core-games-introduction__feature-item {
    padding: 20px;
  }

  .page-index-core-games-introduction__cta-title {
    font-size: 2em;
  }

  .page-index-core-games-introduction__cta-description {
    font-size: 1em;
  }

  .page-index-core-games-introduction__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-core-games-introduction__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-index-core-games-introduction__faq-answer {
    padding: 0 15px;
  }

  .page-index-core-games-introduction__faq-item.active .page-index-core-games-introduction__faq-answer {
    padding: 15px;
  }

  /* Ensure all images are responsive */
  .page-index-core-games-introduction img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-core-games-introduction__section,
  .page-index-core-games-introduction__card,
  .page-index-core-games-introduction__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-core-games-introduction__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsive on mobile */
  .page-index-core-games-introduction__cta-button,
  .page-index-core-games-introduction__btn-primary,
  .page-index-core-games-introduction__btn-secondary,
  .page-index-core-games-introduction a[class*="button"],
  .page-index-core-games-introduction 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-core-games-introduction__cta-buttons,
  .page-index-core-games-introduction__button-group,
  .page-index-core-games-introduction__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-index-core-games-introduction__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-index-core-games-introduction__floating-buttons {
    flex-direction: row;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 10px;
    justify-content: space-around;
  }

  .page-index-core-games-introduction__floating-btn {
    width: 48%; /* Roughly half, accounting for gap */
    padding: 10px 0;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-index-core-games-introduction__hero-title {
    font-size: 2em;
  }

  .page-index-core-games-introduction__section-title {
    font-size: 1.5em;
  }

  .page-index-core-games-introduction__cta-title {
    font-size: 1.8em;
  }

  .page-index-core-games-introduction__floating-btn {
    font-size: 0.8em;
    padding: 8px 0;
  }
}