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

/* Base styles for the page content, ensuring light text on dark body background */
.page-index-core-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-index-core-advantages__dark-bg {
  background-color: #121212; /* Ensure dark background for sections */
  color: #ffffff;
}

.page-index-core-advantages__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

/* Hero Section */
.page-index-core-advantages__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header-offset */
  min-height: 500px; /* Ensure hero section has a decent height */
  overflow: hidden;
}

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

.page-index-core-advantages__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-index-core-advantages__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-index-core-advantages__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Video Section */
.page-index-core-advantages__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header-offset */
  text-align: center;
}

.page-index-core-advantages__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index-core-advantages__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 20px;
  border-radius: 8px;
}

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

.page-index-core-advantages__video-caption {
  font-size: 0.9rem;
  color: #cccccc;
  margin-top: 15px;
}

/* Section Titles */
.page-index-core-advantages__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

/* Content Area */
.page-index-core-advantages__content-area {
  padding: 60px 20px;
  text-align: left;
}

.page-index-core-advantages__content-area p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #333333;
}

/* Features Section */
.page-index-core-advantages__features-section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-index-core-advantages__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-advantages__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-core-advantages__feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index-core-advantages__feature-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-index-core-advantages__game-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-advantages__game-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index-core-advantages__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index-core-advantages__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-index-core-advantages__game-card p {
  font-size: 0.95rem;
  color: #555555;
}

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

.page-index-core-advantages__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index-core-advantages__security-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.page-index-core-advantages__security-text {
  flex: 2;
  min-width: 300px;
}

.page-index-core-advantages__security-text p {
  font-size: 1.05rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index-core-advantages__promotions-section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-index-core-advantages__promo-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-core-advantages__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-core-advantages__promo-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index-core-advantages__promo-card p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-index-core-advantages__support-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index-core-advantages__support-text {
  flex: 2;
  min-width: 300px;
}

.page-index-core-advantages__support-text p {
  font-size: 1.05rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-index-core-advantages__support-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Experience Section & Responsible Gambling Section */
.page-index-core-advantages__experience-section,
.page-index-core-advantages__responsible-gambling-section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-core-advantages__experience-section p,
.page-index-core-advantages__responsible-gambling-section p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: inherit;
}

/* FAQ Section */
.page-index-core-advantages__faq-section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-core-advantages__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-index-core-advantages__faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-index-core-advantages__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eeeeee;
}

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

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

.page-index-core-advantages__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-index-core-advantages__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

.page-index-core-advantages__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

/* CTA Section */
.page-index-core-advantages__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-index-core-advantages__cta-text {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Buttons */
.page-index-core-advantages__btn-primary,
.page-index-core-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-index-core-advantages__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-index-core-advantages__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-core-advantages__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-index-core-advantages__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

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

  .page-index-core-advantages__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

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

  .page-index-core-advantages__video-section,
  .page-index-core-advantages__content-area,
  .page-index-core-advantages__features-section,
  .page-index-core-advantages__security-section,
  .page-index-core-advantages__promotions-section,
  .page-index-core-advantages__support-section,
  .page-index-core-advantages__experience-section,
  .page-index-core-advantages__responsible-gambling-section,
  .page-index-core-advantages__faq-section,
  .page-index-core-advantages__cta-section {
    padding: 30px 15px;
  }

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

  .page-index-core-advantages__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  /* Images responsive */
  .page-index-core-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers responsive */
  .page-index-core-advantages__hero-image-wrapper,
  .page-index-core-advantages__feature-item,
  .page-index-core-advantages__game-card,
  .page-index-core-advantages__promo-card,
  .page-index-core-advantages__security-content,
  .page-index-core-advantages__support-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video responsive */
  .page-index-core-advantages video,
  .page-index-core-advantages__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers responsive */
  .page-index-core-advantages__video-section,
  .page-index-core-advantages__video-container,
  .page-index-core-advantages__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-index-core-advantages__btn-primary:last-child,
  .page-index-core-advantages__btn-secondary:last-child {
    margin-bottom: 0;
  }

  /* Button containers responsive */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-index-core-advantages__security-content,
  .page-index-core-advantages__support-content {
    flex-direction: column; /* Stack content vertically */
  }

  .page-index-core-advantages__support-content {
    flex-direction: column-reverse; /* Maintain image below text for support */
  }

  .page-index-core-advantages__faq-item summary {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-index-core-advantages__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

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