/* style/fortuneox.css */

/* Base styles for the page */
.page-fortuneox {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom background color */
}

/* Section styling */
.page-fortuneox__hero-section,
.page-fortuneox__introduction-section,
.page-fortuneox__how-to-play-section,
.page-fortuneox__bonuses-section,
.page-fortuneox__security-section,
.page-fortuneox__mobile-section,
.page-fortuneox__payments-section,
.page-fortuneox__support-section,
.page-fortuneox__conclusion-section,
.page-fortuneox__faq-section {
  padding: 40px 0;
  text-align: center;
  position: relative;
}

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

/* Hero Section */
.page-fortuneox__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column; /* Stacks image wrapper and content block vertically */
  align-items: center;
  justify-content: center;
  min-height: auto; /* Allow height to be determined by content */
  overflow: hidden;
  position: relative;
  background-color: #E53935; /* Use main brand color as background for the section */
}

.page-fortuneox__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit image height for better balance */
  overflow: hidden;
}

.page-fortuneox__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  min-height: 200px; /* Ensure minimum size */
  max-height: 500px; /* Match wrapper max-height */
}

.page-fortuneox__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background-color: #ffffff; /* Solid background for text content */
  border-radius: 10px;
  color: #333333;
  margin-top: 20px; /* Space between image and text content */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-fortuneox__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #E53935; /* Main brand color for title */
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-fortuneox__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333;
}

/* Section Titles */
.page-fortuneox__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #E53935; /* Main brand color */
  font-weight: bold;
}

.page-fortuneox__section-title--white {
  color: #ffffff;
}

.page-fortuneox__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #E53935; /* Main brand color */
  font-weight: bold;
}

/* Text Blocks */
.page-fortuneox__text-block {
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05em;
  color: #333333;
}

.page-fortuneox__text-block--white {
  color: #ffffff;
}

/* Images */
.page-fortuneox__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-fortuneox__image--center {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-fortuneox__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive behavior */
  max-width: 100%;
  box-sizing: border-box;
}

.page-fortuneox__btn-primary,
.page-fortuneox__btn-secondary,
.page-fortuneox__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-fortuneox__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-fortuneox__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fortuneox__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-fortuneox__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-fortuneox__btn-link {
  color: #E53935;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
  font-size: 1em;
}

.page-fortuneox__btn-link:hover {
  color: #FF5A4F;
}

/* Background colors for sections */
.page-fortuneox__light-bg {
  background-color: #F5F7FA; /* Custom background color */
  color: #333333;
}

.page-fortuneox__dark-bg {
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
}

/* FAQ Section */
.page-fortuneox__faq-list {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortuneox__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
  color: #333333;
}

.page-fortuneox__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: #E53935; /* Question text color */
}

.page-fortuneox__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-fortuneox__faq-qtext {
  flex-grow: 1;
}

.page-fortuneox__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FF5A4F; /* Accent color for toggle */
}

.page-fortuneox__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  border-top: 1px solid #E0E0E0; /* Border color */
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-answer {
  /* No max-height transition needed for <details> tag */
}

/* Keyword highlighting (optional, for visual emphasis) */
.page-fortuneox__keyword,
.page-fortuneox__online-gambling,
.page-fortuneox__secure-platform,
.page-fortuneox__win-big,
.page-fortuneox__brazil-gambling,
.page-fortuneox__slot-games,
.page-fortuneox__online-casino,
.page-fortuneox__sports-betting,
.page-fortuneox__live-casino,
.page-fortuneox__register-new-account,
.page-fortuneox__login-game,
.page-fortuneox__deposit-top-up,
.page-fortuneox__download-app,
.page-fortuneox__participate-promotions,
.page-fortuneox__contact-customer-service {
  font-weight: bold;
  color: #E53935; /* Emphasize keywords with brand color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-fortuneox {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fortuneox__container,
  .page-fortuneox__hero-section,
  .page-fortuneox__introduction-section,
  .page-fortuneox__how-to-play-section,
.page-fortuneox__bonuses-section,
.page-fortuneox__security-section,
.page-fortuneox__mobile-section,
.page-fortuneox__payments-section,
.page-fortuneox__support-section,
.page-fortuneox__conclusion-section,
.page-fortuneox__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-fortuneox__hero-section {
    min-height: auto;
  }

  .page-fortuneox__hero-image-wrapper {
    max-height: 300px;
  }
  .page-fortuneox__hero-image {
    max-height: 300px;
  }

  .page-fortuneox__hero-content {
    padding: 20px 15px;
    margin-top: 10px;
  }

  .page-fortuneox__main-title {
    font-size: 1.8em;
  }

  .page-fortuneox__hero-description {
    font-size: 1em;
  }

  .page-fortuneox__section-title {
    font-size: 2em;
  }

  .page-fortuneox__sub-title {
    font-size: 1.5em;
  }

  /* Images */
  .page-fortuneox__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Buttons */
  .page-fortuneox__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Handled by section padding */
    padding-right: 0; /* Handled by section padding */
  }

  .page-fortuneox__btn-primary,
  .page-fortuneox__btn-secondary,
  .page-fortuneox a[class*="button"],
  .page-fortuneox a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fortuneox__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-fortuneox__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Ensure video sections also have correct mobile padding (if any) */
  .page-fortuneox__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fortuneox__video-container,
  .page-fortuneox__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}