/* style/index-core-advantages.css */

/* Base styles for the page content */
.page-index-core-advantages {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default page background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Dark background sections */
.page-index-core-advantages__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

/* Light background sections */
.page-index-core-advantages__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

/* Container for content */
.page-index-core-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index-core-advantages__flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Hero Section */
.page-index-core-advantages__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 40px;
  min-height: 600px;
  background-color: #017439; /* Main brand color */
  color: #ffffff;
}

.page-index-core-advantages__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-index-core-advantages__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-index-core-advantages__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-core-advantages__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index-core-advantages__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

.page-index-core-advantages__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Titles and Descriptions */
.page-index-core-advantages__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Brand color for titles on light background */
}

.page-index-core-advantages__dark-bg .page-index-core-advantages__section-title {
  color: #ffffff; /* White for titles on dark background */
}

.page-index-core-advantages__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-index-core-advantages__dark-bg .page-index-core-advantages__section-description {
  color: #f0f0f0;
}

/* Buttons */
.page-index-core-advantages__btn-primary,
.page-index-core-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index-core-advantages__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-index-core-advantages__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

.page-index-core-advantages__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-index-core-advantages__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Register/Login color */
}

.page-index-core-advantages__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Advantages Grid */
.page-index-core-advantages__advantages-grid,
.page-index-core-advantages__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-advantages__advantage-card,
.page-index-core-advantages__game-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-index-core-advantages__advantage-card:hover,
.page-index-core-advantages__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index-core-advantages__card-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-index-core-advantages__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
  line-height: 1.3;
}

.page-index-core-advantages__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-index-core-advantages__card-title a:hover {
  text-decoration: underline;
}

.page-index-core-advantages__card-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

/* Download CTA Section */
.page-index-core-advantages__download-cta-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.page-index-core-advantages__download-cta-section .page-index-core-advantages__container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 0;
}

.page-index-core-advantages__qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.page-index-core-advantages__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-index-core-advantages__qr-code-text {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
}

.page-index-core-advantages__text-content {
  max-width: 600px;
  text-align: center;
}

/* Video Section */
.page-index-core-advantages__video-section {
  padding: 60px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-index-core-advantages__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.page-index-core-advantages__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

/* Support Section */
.page-index-core-advantages__support-section {
  padding: 60px 20px;
}

/* Innovation Section */
.page-index-core-advantages__innovation-section {
  padding: 60px 20px;
}

.page-index-core-advantages__innovation-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-index-core-advantages__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-core-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-index-core-advantages__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #017439;
}

.page-index-core-advantages__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-index-core-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
}

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

.page-index-core-advantages__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-index-core-advantages__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Final CTA Section */
.page-index-core-advantages__cta-final-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

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

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

  .page-index-core-advantages__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-index-core-advantages__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-index-core-advantages__hero-cta-buttons {
    justify-content: center;
  }

  .page-index-core-advantages__download-cta-section .page-index-core-advantages__container {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-index-core-advantages {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-index-core-advantages__section-description {
    font-size: 0.95em;
  }

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

  .page-index-core-advantages__btn-primary,
  .page-index-core-advantages__btn-secondary,
  .page-index-core-advantages a[class*="button"],
  .page-index-core-advantages 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-advantages__hero-image,
  .page-index-core-advantages__card-image,
  .page-index-core-advantages__qr-code,
  .page-index-core-advantages__video,
  .page-index-core-advantages__innovation-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-core-advantages__container,
  .page-index-core-advantages__hero-section,
  .page-index-core-advantages__advantages-section,
  .page-index-core-advantages__download-cta-section,
  .page-index-core-advantages__game-showcase-section,
  .page-index-core-advantages__video-section,
  .page-index-core-advantages__support-section,
  .page-index-core-advantages__innovation-section,
  .page-index-core-advantages__faq-section,
  .page-index-core-advantages__cta-final-section,
  .page-index-core-advantages__video-wrapper,
  .page-index-core-advantages__cta-buttons,
  .page-index-core-advantages__button-group,
  .page-index-core-advantages__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index-core-advantages__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed, or ensure it's handled by main container */
  }

  .page-index-core-advantages__hero-section {
    padding: 40px 15px;
  }

  .page-index-core-advantages__qr-code-wrapper {
    padding: 0;
  }

  .page-index-core-advantages__advantages-grid,
  .page-index-core-advantages__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-core-advantages__advantage-card,
  .page-index-core-advantages__game-card {
    padding: 20px;
  }

  .page-index-core-advantages__faq-question {
    padding: 15px;
  }

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

  .page-index-core-advantages__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }
}