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

/* Base styles for the page content, ensuring contrast with body background */
.page-index-core-business {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Explicitly set for content area if body is var(--bg-color) */
}

/* Hero Section */
.page-index-core-business__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Fallback */
}

.page-index-core-business__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-index-core-business__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-core-business__hero-content {
  max-width: 900px;
  color: #ffffff;
  position: relative; /* Ensure content is above any background layers */
  z-index: 2; /* Ensure content is visible */
}

.page-index-core-business__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register and Login font color for main title */
  max-width: 100%; /* Prevent overflow */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-index-core-business__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-index-core-business__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-index-core-business__btn-primary,
.page-index-core-business__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-index-core-business__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index-core-business__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* General Content Sections */
.page-index-core-business__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-core-business__intro-section,
.page-index-core-business__benefits-section,
.page-index-core-business__faq-section {
  padding: 80px 0;
}

.page-index-core-business__games-section,
.page-index-core-business__get-started-section {
  padding: 80px 0;
}

.page-index-core-business__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-core-business__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-index-core-business__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Inherit from parent section for contrast */
}

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

/* Game Grid Section */
.page-index-core-business__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-business__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-index-core-business__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-core-business__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Use a bright color for titles on dark background */
  padding: 0 15px;
}

.page-index-core-business__card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index-core-business__btn-link {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-business__btn-link:hover {
  background-color: #a00606;
}

/* Benefits Section */
.page-index-core-business__benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-business__benefit-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-business__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index-core-business__benefit-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-index-core-business__benefit-description {
  font-size: 0.95em;
  color: #555555;
}

/* Get Started Section */
.page-index-core-business__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-core-business__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-index-core-business__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #C30808;
  color: #FFFF00;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-index-core-business__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-index-core-business__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-index-core-business__cta-buttons--center {
  margin-top: 50px;
}

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

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

.page-index-core-business__faq-item summary {
  list-style: none;
}

.page-index-core-business__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-core-business__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7ed; /* Lighter green for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-index-core-business__faq-question:hover {
  background-color: #dcf2e0;
}

.page-index-core-business__faq-qtext {
  flex-grow: 1;
}

.page-index-core-business__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-index-core-business__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  background-color: #fdfdfd;
  border-top: 1px solid #e0e0e0;
}

.page-index-core-business__faq-item[open] .page-index-core-business__faq-toggle {
  content: '−';
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-business__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

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

  .page-index-core-business__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-index-core-business__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-index-core-business__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-index-core-business__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index-core-business__btn-primary,
  .page-index-core-business__btn-secondary,
  .page-index-core-business a[class*="button"],
  .page-index-core-business a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-core-business__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
  }

  .page-index-core-business__container {
    padding: 0 15px;
  }

  .page-index-core-business__intro-section,
  .page-index-core-business__benefits-section,
  .page-index-core-business__faq-section,
  .page-index-core-business__games-section,
  .page-index-core-business__get-started-section {
    padding: 50px 0;
  }

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

  .page-index-core-business__text-block {
    font-size: 0.95em;
  }

  .page-index-core-business img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-core-business__hero-image-wrapper,
  .page-index-core-business__game-card,
  .page-index-core-business__benefit-item,
  .page-index-core-business__step-item,
  .page-index-core-business__faq-item,
  .page-index-core-business__cta-buttons,
  .page-index-core-business__game-grid,
  .page-index-core-business__benefit-grid,
  .page-index-core-business__steps-grid,
  .page-index-core-business__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-index-core-business__game-card .page-index-core-business__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-index-core-business__game-card {
    padding-left: 0;
    padding-right: 0;
  }

  .page-index-core-business__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-index-core-business__faq-answer {
    padding: 15px;
  }
}