/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css body, but for safety in case of override */
}

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

.page-about__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 80px;
  text-align: center;
  background-color: #26A9E0; /* Primary brand color for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

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

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

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-about__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__vision-mission-section,
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__vision-mission-section .page-about__container,
.page-about__responsible-gaming-section .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__vision-mission-section .page-about__image-block,
.page-about__responsible-gaming-section .page-about__image-block {
  flex: 1;
}

.page-about__vision-mission-section .page-about__text-block,
.page-about__responsible-gaming-section .page-about__text-block {
  flex: 1;
}

.page-about__vision-mission-section .page-about__text-block h2,
.page-about__responsible-gaming-section .page-about__text-block h2 {
  text-align: left;
  color: #26A9E0;
}

.page-about__vision-mission-section .page-about__text-block p,
.page-about__responsible-gaming-section .page-about__text-block p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__vision-mission-section img,
.page-about__responsible-gaming-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-about__why-choose-section,
.page-about__team-section,
.page-about__video-section,
.page-about__cta-bottom-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__feature-card,
.page-about__team-member {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for white background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__feature-card img,
.page-about__team-member img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title,
.page-about__member-name {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0;
  font-weight: bold;
}

.page-about__member-role {
  font-style: italic;
  color: #555555;
}

.page-about__cta-buttons {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-about__milestones-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__milestones-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.page-about__milestones-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #26A9E0;
  transform: translateX(-50%);
}

.page-about__milestone-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.page-about__milestone-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__milestone-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__milestone-item::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #26A9E0;
  border: 2px solid #ffffff;
  z-index: 1;
}

.page-about__milestone-item:nth-child(odd)::before {
  right: -6px;
}

.page-about__milestone-item:nth-child(even)::before {
  left: -6px;
}

.page-about__milestone-year {
  font-size: 1.8em;
  color: #EA7C07;
  margin-bottom: 10px;
}

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

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

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

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

.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  color: #ffffff;
  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;
  background-color: #26A9E0; /* Primary brand color for question */
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

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

.page-about__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-bottom-section .page-about__btn-primary {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
  }
  .page-about__vision-mission-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container {
    flex-direction: column;
  }
  .page-about__responsible-gaming-section .page-about__container {
    flex-direction: column-reverse;
  }
  .page-about__milestone-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding: 20px 20px 20px 60px;
  }
  .page-about__milestones-timeline::before {
    left: 20px;
  }
  .page-about__milestone-item::before {
    left: 14px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
    min-height: 300px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    margin-left: 0;
    margin-bottom: 15px;
    padding: 12px 20px;
    max-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__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__video-wrapper {
    margin: 30px auto;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  .page-about__vision-mission-section,
  .page-about__responsible-gaming-section,
  .page-about__why-choose-section,
  .page-about__team-section,
  .page-about__milestones-section,
  .page-about__video-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 50px 0;
  }
  .page-about img,
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}