/* 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: #121212; /* Matches shared.css body background */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__dark-bg {
  background-color: #1A1A1A;
  color: #ffffff;
}

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

/* Hero Section */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  padding-bottom: 80px;
  text-align: center;
  background-color: #1A1A1A;
  color: #ffffff;
}

.page-about__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

/* General Section Styling */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
  padding-top: 60px;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* Intro Section */
.page-about__intro-section {
  padding: 60px 0;
}

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

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

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

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

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #FFD700;
  border-radius: 50%;
  top: 28px;
  z-index: 1;
}

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

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

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

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

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

.page-about__card {
  background-color: #f8f8f8;
  color: #1A1A1A;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-about__value-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
}

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

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

.page-about__feature-item {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-about__feature-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
}

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

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
  padding: 60px 0;
  text-align: center;
}

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

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
}

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

.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;
  background-color: #f0f0f0;
  color: #333333;
  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: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
}

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

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

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

.page-about__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
    left: 0 !important;
    text-align: left !important;
  }
  .page-about__timeline-item::before {
    left: 9px !important;
  }
  .page-about__timeline-item:nth-child(odd)::before {
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__card-grid,
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__faq-list {
    padding: 0 15px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }
  
  /* Mobile responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive video */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for mobile */
  .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; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections if needed to avoid double padding */
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__history-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__responsible-gambling-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}