/* 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: var(--black-color); /* Inherit from shared.css, assumed dark */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Ensure hero section has some height */
}

.page-about__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-faq {
  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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__btn-faq {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-about__btn-faq:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

/* General Section Styling */
.page-about__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-about__sub-title,
.page-about__card-title,
.page-about__feature-title,
.page-about__timeline-title,
.page-about__member-name,
.page-about__point-title,
.page-about__faq-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-about__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Background colors for contrast */
.page-about__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text for contrast */
}

.page-about__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for contrast */
}

/* Mission Vision Section */
.page-about__mission-vision-section {
  padding: 60px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-about__grid-item {
  text-align: center;
}

.page-about__grid-item .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* History Section */
.page-about__history-section {
  padding: 60px 0;
}

.page-about__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
}

.page-about__timeline-item:nth-child(odd) {
  left: -25%;
}

.page-about__timeline-item:nth-child(even) {
  left: 25%;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #EA7C07;
  border: 2px solid #FFFFFF;
  z-index: 1;
}

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

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

/* Values Section */
.page-about__values-section {
  padding: 60px 0;
}

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

.page-about__card {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 60px 0;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

/* Team Section */
.page-about__team-section {
  padding: 60px 0;
}

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

.page-about__team-member {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__team-photo {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #26A9E0;
}

.page-about__member-role {
  font-style: italic;
  color: #555555;
  margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 60px 0;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-about__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__list-item strong {
  color: #EA7C07;
}

/* Future Section */
.page-about__future-section {
  padding: 60px 0;
}

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

.page-about__point-item {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__point-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

.page-about__faq-answer .page-about__text-block {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__timeline::before {
    left: 50%;
  }

  .page-about__timeline-item {
    width: 45%;
    text-align: left;
    padding-left: 40px; /* Adjust padding for desktop view */
  }

  .page-about__timeline-item:nth-child(odd) {
    transform: translateX(-100%);
    left: 50%;
  }

  .page-about__timeline-item:nth-child(even) {
    transform: translateX(0%);
    left: 50%;
    padding-left: 60px;
  }

  .page-about__timeline-item:nth-child(odd)::before {
    right: -28px;
    left: auto;
  }

  .page-about__timeline-item:nth-child(even)::before {
    left: -28px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 20px 15px;
  }

  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__sub-title,
  .page-about__card-title,
  .page-about__feature-title,
  .page-about__timeline-title,
  .page-about__member-name,
  .page-about__point-title,
  .page-about__faq-title {
    font-size: 1.3em;
  }

  .page-about__description,
  .page-about__text-block,
  .page-about__list-item {
    font-size: 0.95em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-faq {
    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__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__timeline-item,
  .page-about__feature-item,
  .page-about__team-member,
  .page-about__point-item,
  .page-about__faq-item {
    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__timeline::before {
    left: 20px; /* Adjust for mobile */
    transform: translateX(0);
  }

  .page-about__timeline-item {
    left: 0;
    width: 100%;
    padding-left: 40px; /* Keep space for dot */
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 20px;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Ensure all content area images are at least 200px */
.page-about__grid-item .page-about__image,
.page-about__feature-icon,
.page-about__team-photo,
.page-about__point-icon {
  min-width: 200px;
  min-height: 200px;
}