/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Matches shared.css body background */
}

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

.page-about__dark-section {
  background-color: #0056B3; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #f8f9fa;
  color: #333333;
  padding: 80px 0;
}

.page-about__section-title {
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

.page-about__section-description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-about__hero-section {
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 80px;
}

.page-about__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for main title */
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #0056B3; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0056B3;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__section-title {
  color: #0056B3;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__text-block h3 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #0056B3;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__section-title,
.page-about__why-choose-us .page-about__section-description {
  color: #ffffff;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

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

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__section-title {
  color: #0056B3;
}

.page-about__responsible-gaming .page-about__text-block p {
  color: #333333;
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #0056B3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__faq-title {
  margin: 0;
  color: inherit;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 1.1em;
}

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

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

.page-about__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Contact CTA Section */
.page-about__contact-cta {
  text-align: center;
}

.page-about__contact-cta .page-about__section-title {
  color: #0056B3;
}

.page-about__contact-cta .page-about__section-description {
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__text-block h3 {
    font-size: 1.8em;
  }
  .page-about__grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__intro-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__section-description {
    font-size: 1em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-about__grid--reverse .page-about__image-wrapper {
    order: -1; /* Image first on mobile for reverse grid */
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 5px 0;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-about__image,
  .page-about__feature-icon {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__text-block h3 {
    font-size: 1.5em;
  }
  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }
}