/* style/about.css */

/* Base styles for the page content, ensuring proper text color for dark body background */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header offset for desktop */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

/* Section titles */
.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Section descriptions */
.page-about__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: #1a1a1a; /* Dark background for hero */
  overflow: hidden;
  padding-bottom: 60px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

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

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

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.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;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-about__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* About Intro Section */
.page-about__about-intro {
  padding: 80px 0;
  background: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__about-intro .page-about__section-title,
.page-about__about-intro .page-about__section-description {
  color: #333333; /* Dark text for light background */
}

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

.page-about__content-block {
  flex: 1;
}

.page-about__content-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Why Choose Section */
.page-about__why-choose {
  padding: 80px 0;
  background: #121212; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.page-about__feature-card p {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Video Section */
.page-about__video-section {
  padding: 80px 0;
  background: #1a1a1a; /* Dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%; /* Ensure video is responsive */
  height: auto; /* Ensure video is responsive */
  display: block; /* Ensure video is responsive */
}

.page-about__video-caption {
    margin-top: 20px;
    font-size: 1em;
    color: #cccccc;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
  background: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__responsible-gaming .page-about__section-title,
.page-about__responsible-gaming .page-about__section-description {
  color: #333333; /* Dark text for light background */
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background: #121212; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #26A9E0; /* Brand color for question background */
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1d8ac7;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
  text-align: center;
}

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-description {
  color: #333333; /* Dark text for light background */
}

.page-about__cta-content {
  max-width: 800px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__grid-layout {
    flex-direction: column;
  }
  .page-about__hero-image-wrapper {
    opacity: 0.15; /* Reduce opacity on smaller screens */
  }
}

@media (max-width: 768px) {
  /* Mobile header offset */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* General content padding */
  .page-about__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Buttons responsive */
  .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: 12px 20px;
  }
  
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 0.95em;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
}