/* style/index-about-fb88.css */
.page-index-about-fb88 {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
}

.page-index-about-fb88__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  text-align: center;
  overflow: hidden;
}

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

.page-index-about-fb88__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-index-about-fb88__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index-about-fb88__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-index-about-fb88__hero-buttons,
.page-index-about-fb88__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-about-fb88__btn-primary,
.page-index-about-fb88__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-index-about-fb88__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-about-fb88__btn-primary:hover {
  background: #1e87b8;
  border-color: #1e87b8;
}

.page-index-about-fb88__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-about-fb88__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b8;
  border-color: #1e87b8;
}

.page-index-about-fb88__btn-inline {
  margin-top: 20px;
}

.page-index-about-fb88__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-about-fb88__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index-about-fb88__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-index-about-fb88__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-about-fb88__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
}

/* Color contrast management */
.page-index-about-fb88__dark-bg {
  background: var(--dark-bg-1); /* Assuming --dark-bg-1 is a dark color */
  color: #ffffff;
}

.page-index-about-fb88__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-index-about-fb88__intro-video-section {
  background: #1a1a1a;
  color: #ffffff;
}

.page-index-about-fb88__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-index-about-fb88__video {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.page-index-about-fb88__video-caption {
  font-size: 0.95em;
  color: #cccccc;
  margin-top: 10px;
}

.page-index-about-fb88__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.page-index-about-fb88__image-text-block:nth-of-type(odd) {
  flex-direction: row;
}

.page-index-about-fb88__image-text-block:nth-of-type(even) {
  flex-direction: row-reverse;
}

.page-index-about-fb88__image-left,
.page-index-about-fb88__image-right {
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  width: 600px; /* Base width for desktop */
  height: 450px; /* Base height for desktop */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-index-about-fb88__features-section {
  background: #1a1a1a;
  color: #ffffff;
}

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

.page-index-about-fb88__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 350px;
}

.page-index-about-fb88__feature-icon {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index-about-fb88__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index-about-fb88__feature-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: center;
}

.page-index-about-fb88__features-cta {
  margin-top: 50px;
}

.page-index-about-fb88__promotions-section {
  background: #1a1a1a;
  color: #ffffff;
}

.page-index-about-fb88__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-about-fb88__promotion-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-index-about-fb88__promotion-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

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

.page-index-about-fb88__responsible-gaming-section {
  text-align: left;
}

.page-index-about-fb88__faq-section {
  background: #1a1a1a;
  color: #ffffff;
}

.page-index-about-fb88__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-about-fb88__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-index-about-fb88__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-index-about-fb88__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

.page-index-about-fb88__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  text-align: left;
}

.page-index-about-fb88__faq-item.active .page-index-about-fb88__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

.page-index-about-fb88__cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

  .page-index-about-fb88__section-title {
    font-size: 2.2em;
  }

  .page-index-about-fb88__sub-title {
    font-size: 1.6em;
  }

  .page-index-about-fb88__image-text-block {
    flex-direction: column !important;
    text-align: center;
  }

  .page-index-about-fb88__image-left,
  .page-index-about-fb88__image-right {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 20px auto;
  }
}

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

  .page-index-about-fb88__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index-about-fb88__hero-title {
    font-size: 2.2em;
  }

  .page-index-about-fb88__hero-description {
    font-size: 1em;
  }

  .page-index-about-fb88__section {
    padding: 40px 15px;
  }

  .page-index-about-fb88__section-title {
    font-size: 1.8em;
  }

  .page-index-about-fb88__sub-title {
    font-size: 1.4em;
  }

  /* Mobile image responsiveness */
  .page-index-about-fb88 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Content area image CSS dimensions lower bound */
  .page-index-about-fb88__image-left,
  .page-index-about-fb88__image-right,
  .page-index-about-fb88__feature-icon {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjust if aspect ratio is different */
    object-fit: contain;
  }

  /* Ensure all containers for images, videos, buttons are responsive */
  .page-index-about-fb88__section,
  .page-index-about-fb88__container,
  .page-index-about-fb88__video-wrapper,
  .page-index-about-fb88__cta-buttons,
  .page-index-about-fb88__features-grid,
  .page-index-about-fb88__feature-card,
  .page-index-about-fb88__promotion-list,
  .page-index-about-fb88__promotion-item,
  .page-index-about-fb88__faq-list,
  .page-index-about-fb88__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile video responsiveness */
  .page-index-about-fb88 video,
  .page-index-about-fb88__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-about-fb88__intro-video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .page-index-about-fb88__btn-primary,
  .page-index-about-fb88__btn-secondary,
  .page-index-about-fb88 a[class*="button"],
  .page-index-about-fb88 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-about-fb88__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index-about-fb88__image-text-block:nth-of-type(odd),
  .page-index-about-fb88__image-text-block:nth-of-type(even) {
    flex-direction: column;
  }

  .page-index-about-fb88__feature-card {
    min-height: auto;
  }
}

/* Specific color for login button if needed, but not present in this page */
/* .page-index-about-fb88__login-button { background: #EA7C07; color: #FFFFFF; } */