/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color for section titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: #FFF6D6;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-about a {
  color: #FFD36B;
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Limit image width to maintain aspect ratio */
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-about__tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast on bright button */
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E;
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

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

.page-about__mission-vision-section .page-about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-about__mission-card,
.page-about__vision-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-about__card-title {
  font-size: 1.6rem;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  text-align: center;
}

.page-about__card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF6D6;
}

/* PAGCOR Significance Section */
.page-about__pagcor-significance-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 800px; /* Constrain for better text flow */
}

/* Fair Play Section */
.page-about__fair-play-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-about__feature-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 200px; /* Max height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-about__feature-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

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

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

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

.page-about__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E; /* Primary color */
  cursor: pointer;
  background: #111111;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

.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: #FFF6D6;
}

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

.page-about__faq-answer p {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A0A0A;
}

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

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 2rem;
  }

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

  .page-about__sub-title {
    font-size: 1.2rem;
  }

  .page-about__text-block,
  .page-about__card-text,
  .page-about__list-item,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }

  .page-about__hero-section {
    padding: 40px 15px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-about__mission-vision-section,
  .page-about__pagcor-significance-section,
  .page-about__fair-play-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 40px 0;
  }

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

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.4rem;
  }

  .page-about__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-full-width,
  .page-about__feature-card,
  .page-about__mission-card,
  .page-about__vision-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure contrast for brand colors on specific backgrounds */
.page-about__hero-content .page-about__main-title {
  color: #F2C14E; /* Primary color */
}

.page-about__section-title {
  color: #FFD36B; /* Auxiliary color */
}

.page-about__card-title {
  color: #FFD36B; /* Auxiliary color */
}

.page-about__faq-question {
  color: #F2C14E; /* Primary color */
}

.page-about__list-item strong {
  color: #FFD36B; /* Auxiliary color */
}