/* 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: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #E44D26;
  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: #E44D26;
  border-radius: 2px;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  color: #333333;
}

.page-about__mission-section .page-about__section-title {
  color: #333333;
}

.page-about__mission-section .page-about__section-title::after {
  background-color: #333333;
}

.page-about__mission-section .page-about__paragraph {
  color: #333333;
}

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

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

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

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
  background-color: #333333;
}

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

.page-about__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-about__advantage-item .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__advantages-image {
  display: block;
  margin: 60px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-about__video-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px;
  border-radius: 10px;
}

.page-about__video-wrapper video,
.page-about__video-wrapper .page-about__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-about__video-wrapper .page-about__video-link {
  display: block;
  cursor: pointer;
}

.page-about__video-caption {
  text-align: center;
  font-style: italic;
  color: #cccccc;
  margin-top: 20px;
}

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

.page-about__team-section .page-about__section-title {
  color: #333333;
}

.page-about__team-section .page-about__section-title::after {
  background-color: #333333;
}

.page-about__team-section .page-about__paragraph {
  color: #333333;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #E44D26;
  text-align: center;
}

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

.page-about__responsible-gaming-section .page-about__section-title::after {
  background-color: #ffffff;
}

.page-about__responsible-gaming-section .page-about__paragraph {
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-about__faq-section .page-about__section-title::after {
  background-color: #333333;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

.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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

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

.page-about__faq-answer .page-about__paragraph {
  color: #555555;
  font-size: 1em;
  margin-bottom: 0;
}

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

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

/* Responsive Styles */
@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: 2em;
  }
  .page-about__mission-content {
    flex-direction: column;
    text-align: center;
  }
  .page-about__mission-image {
    flex: none;
    max-width: 600px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__mission-image {
    max-width: 100%;
  }
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-about__video-wrapper video,
  .page-about__video-wrapper .page-about__video-link {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__team-image,
  .page-about__advantages-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__advantage-title {
    font-size: 1.3em;
  }
}

/* Color Contrast Specifics */
.page-about__dark-bg {
  background-color: #333333; /* Auxiliary brand color, dark */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff; /* Default light background */
  color: #333333;
}

.page-about__mission-section .page-about__paragraph {
  color: #333333;
}

.page-about__faq-section .page-about__paragraph {
  color: #555555;
}