/* style/about.css */

/* Base styles for the About page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css body, but good to be explicit for context */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
}

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0; /* Adjust for header offset */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Use accent color for H1 */
}

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

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background for contrast with hero */
}

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

.page-about__mission-text {
  flex: 1;
  min-width: 300px;
}

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

.page-about__mission-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__mission-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

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

.page-about__why-choose-us-section .page-about__section-description {
  color: #555555;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #555555;
}

.page-about__section-image-wrapper {
  text-align: center;
}

.page-about__section-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__history-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__history-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-about__history-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

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

.page-about__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__responsible-gaming-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
}

.page-about__responsible-gaming-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__responsible-gaming-list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-about__responsible-gaming-list li {
  margin-bottom: 10px;
}

.page-about__responsible-gaming-list a,
.page-about__responsible-gaming-text a {
  color: #FFFF00; /* Highlight links */
  text-decoration: underline;
}

.page-about__responsible-gaming-list a:hover,
.page-about__responsible-gaming-text a:hover {
  color: #e0e0e0;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__team-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__team-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-about__team-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for FAQ */
  color: #333333;
}

.page-about__faq-section .page-about__section-title {
  color: #017439;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.1em; /* Ensure H3 in FAQ question is not too large */
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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;
  color: #555555;
}

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

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

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

/* Image responsive adjustments */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-image-wrapper,
  .page-about__mission-image-wrapper,
  .page-about__responsible-gaming-image {
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__history-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__hero-title {
    font-size: 2.2em;
    text-align: center;
  }
  .page-about__hero-description {
    font-size: 1em;
    text-align: center;
  }
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  .page-about__hero-content {
    text-align: center;
  }
  .page-about__hero-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    margin-bottom: 30px;
  }

  .page-about__mission-content,
  .page-about__responsible-gaming-content {
    flex-direction: column;
  }
  .page-about__mission-image-wrapper,
  .page-about__responsible-gaming-image {
    order: -1; /* Image above text */
    margin-bottom: 30px;
    max-width: 100%;
  }
  .page-about__responsible-gaming-image {
    max-width: 100% !important;
  }

  /* Force responsive images, videos, buttons */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section, .page-about__card, .page-about__container, .page-about__video-section, .page-about__video-container, .page-about__video-wrapper, .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;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to the first section */
  }
  .page-about__cta-button, .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;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons > * {
    flex-basis: 100%; /* Make each button take full width */
  }
}

/* Specific color contrast rules */
.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-about__faq-question h3 {
  color: #333333;
}

.page-about__faq-answer {
  color: #555555;
}

.page-about__hero-section {
  color: #ffffff;
}

.page-about__hero-title {
  color: #FFFF00;
}

.page-about__hero-description {
  color: #f0f0f0;
}

.page-about__mission-section {
  color: #ffffff;
}

.page-about__mission-text p {
  color: #f0f0f0;
}

.page-about__history-section {
  color: #ffffff;
}

.page-about__history-content p {
  color: #f0f0f0;
}

.page-about__responsible-gaming-section {
  color: #ffffff;
}

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

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

.page-about__team-section {
  color: #ffffff;
}

.page-about__team-content p {
  color: #f0f0f0;
}

.page-about__cta-section {
  color: #ffffff;
}

.page-about__cta-description {
  color: #f0f0f0;
}