/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css body, for consistency */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

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

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

.page-about__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-image: url('[GALLERY:hero_about:1920x1080:cockfighting,stadium,crowd,lights,excitement]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

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

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-about__btn-primary--cta {
  margin-top: 30px;
}

/* Intro Section */
.page-about__intro-section {
  background-color: #1a1a2e;
  padding: 60px 0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__why-choose-us .page-about__section-title {
  color: #ffffff;
}

.page-about__why-choose-us .page-about__section-title::after {
  background-color: #ffffff;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

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

.page-about__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Services Section */
.page-about__services-section {
  background-color: #1a1a2e;
  padding: 60px 0;
}

.page-about__service-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__service-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__service-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__service-item p {
  color: #f0f0f0;
  font-size: 1.05em;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__commitment-section .page-about__section-title {
  color: #ffffff;
}

.page-about__commitment-section .page-about__section-title::after {
  background-color: #ffffff;
}

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

.page-about__commitment-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__commitment-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-about__commitment-heading {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__commitment-card p {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

/* CTA Section */
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-about__cta-section .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-section .page-about__section-title::after {
  background-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 50vh;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__btn-primary {
    padding: 12px 25px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__features-grid, .page-about__commitment-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-card, .page-about__commitment-card {
    padding: 25px;
  }
  .page-about__service-item {
    padding: 25px;
  }
  .page-about__service-heading {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer p {
    padding: 10px 0;
  }

  /* Responsive Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__content-area,
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__why-choose-us,
  .page-about__services-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  /* Specific button container handling for mobile */
  .page-about__cta-section .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary {
    font-size: 1em;
    padding: 10px 20px;
  }
}

/* Color Contrast Fixes */
.page-about__dark-bg {
  background: #017439;
  color: #ffffff;
}

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

/* Ensure text on hero image is readable */
.page-about__hero-title,
.page-about__hero-description {
  color: #ffffff;
}

/* Ensure text on dark sections is readable */
.page-about__dark-section p,
.page-about__dark-section h3 {
  color: #f0f0f0;
}

/* Body background is dark, so default text color should be light */
.page-about p, .page-about li, .page-about__text-block {
    color: #f0f0f0;
}
.page-about h2, .page-about h3 {
    color: #ffffff;
}

/* Specific overrides for card backgrounds if needed for contrast */
.page-about__feature-card,
.page-about__commitment-card,
.page-about__service-item,
.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for better contrast on dark body */
  color: #f0f0f0;
}

.page-about__faq-question {
  background-color: #017439;
  color: #ffffff;
}

.page-about__faq-answer {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}