/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87b3;
}

/* Section: Hero */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: calc(80px + var(--header-offset, 120px)); /* Ensure initial padding for header offset */
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-about__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

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

/* Section: About Us Intro */
.page-about__about-us-intro {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for light text */
}

.page-about__about-us-intro .page-about__section-title {
  color: #26A9E0;
  margin-bottom: 60px;
}

.page-about__about-us-intro .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__intro-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__intro-text {
  flex: 1;
}

.page-about__intro-image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-about__intro-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section: Why Choose Us */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background */
}

.page-about__why-choose-us .page-about__section-title {
  color: #ffffff;
}

.page-about__why-choose-us .page-about__section-subtitle {
  color: #cccccc;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(38, 169, 224, 0.2);
}

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

.page-about__card-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__card-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__image-collage-wrapper {
  text-align: center;
  min-width: 200px; /* Ensure minimum size */
}

.page-about__image-collage {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section: Responsible Gaming */
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
}

.page-about__responsible-gaming .page-about__section-title {
  color: #26A9E0;
  margin-bottom: 60px;
}

.page-about__responsible-gaming .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__text-content {
  flex: 1;
}

.page-about__video-wrapper {
  flex: 1;
  position: relative;
  padding-bottom: 28.125%; /* 16:9 aspect ratio (450/1600) */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure minimum size */
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Section: Technology & Innovation */
.page-about__tech-innovation {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background */
}

.page-about__tech-innovation .page-about__section-title {
  color: #ffffff;
}

.page-about__tech-innovation .page-about__paragraph {
  color: #cccccc;
}

.page-about__tech-grid {
  display: flex;
  flex-direction: row-reverse; /* Image on right */
  gap: 40px;
  align-items: center;
}

.page-about__tech-image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-about__tech-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__tech-text {
  flex: 1;
}

/* Section: Join Us CTA */
.page-about__join-us-cta {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
}

.page-about__join-us-cta .page-about__section-title {
  color: #26A9E0;
  margin-bottom: 30px;
}

.page-about__join-us-cta .page-about__paragraph {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-about__join-us-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__join-us-text {
  flex: 1;
}

.page-about__join-us-image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-about__join-us-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Section: FAQ */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background */
}

.page-about__faq-section .page-about__section-title {
  color: #ffffff;
  margin-bottom: 60px;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-about__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__faq-answer .page-about__paragraph {
  color: #cccccc;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__intro-grid,
  .page-about__content-flex,
  .page-about__tech-grid,
  .page-about__join-us-content {
    flex-direction: column;
  }
  .page-about__text-content,
  .page-about__intro-text,
  .page-about__tech-text,
  .page-about__join-us-text {
    order: 1;
  }
  .page-about__intro-image-wrapper,
  .page-about__video-wrapper,
  .page-about__tech-image-wrapper,
  .page-about__join-us-image-wrapper {
    order: 2;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile video responsiveness */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Standard 16:9 for mobile videos */
    height: auto !important;
    min-height: 200px !important;
  }
  .page-about__video-wrapper video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Mobile button responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about 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 !important;
    padding-right: 15px !important;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }
  .page-about__hero-content .page-about__btn-primary {
    margin-bottom: 0; /* Remove extra margin if only one button */
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__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;
  }
  .page-about__hero-content {
    padding: 0 15px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all content containers do not overflow */
  .page-about__hero-section,
  .page-about__about-us-intro,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__tech-innovation,
  .page-about__join-us-cta,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Dark background for sections, ensuring light text */
.page-about__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

/* Light background for sections, ensuring dark text (though body is dark, this is for specific elements) */
.page-about__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}