/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  background: #26A9E0; /* Primary brand color */
  color: #FFFFFF; /* White text for primary background */
  overflow: hidden;
}

.page-about__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px; /* Display width */
  height: 675px; /* Display height */
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Primary brand color */
}

.page-about__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-about__about-section, .page-about__why-choose, .page-about__responsible-gaming, .page-about__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-about__mission-values, .page-about__team-section, .page-about__cta-section, .page-about__video-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF; /* White text */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__intro-text {
  color: #FFFFFF;
}

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

.page-about__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-about__text-block p {
  margin-bottom: 1em;
}

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

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
}

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

.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: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-about__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000000;
  border-radius: 8px;
  margin: 50px auto 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #FFFFFF;
}

.page-about__member-name {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: #FFFFFF;
}

.page-about__member-role {
  font-size: 1em;
  opacity: 0.8;
  color: #FFFFFF;
}

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

.page-about__faq-item {
  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: 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #26A9E0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

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

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

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

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

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

.page-about__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid:nth-child(even) {
    flex-direction: column;
  }
  .page-about__image-content {
    max-width: 100%;
  }
  .page-about__hero-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile content is not hidden */
  }
  .page-about__hero-section {
    padding: 60px 0;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__image-content,
  .page-about__feature-icon,
  .page-about__team-photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .page-about__responsible-gaming,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__video-wrapper {
    margin: 30px auto 0 auto;
  }
  .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,
  .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-direction: column !important;
    gap: 10px;
    overflow: hidden !important;
  }
  .page-about__video-section .page-about__container,
  .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;
  }
}