/* style/about.css */
/* 
  All CSS class names must use BEM naming rules: .page-about__element-name
  Styles are scoped to .page-about.
  No descendant selectors (e.g., .page-about .hero-section).
  No global selectors (body, html, *).
  No !important unless specifically required (e.g., mobile image/button responsiveness, FAQ max-height).
  Body background is #0A0A0A (dark) from shared.css, so text color should be light.
*/

/* General page styling */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main: Light text for dark background */
  background-color: transparent; /* Body background is handled by shared.css var(--site-bg) which is #0A0A0A */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Blend with brand colors */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  color: #0A0A0A; /* Dark text on light gold gradient for contrast */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-about__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #333333; /* Darker text on light gold gradient for contrast */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #FFF6D6; /* Light text for dark backgrounds */
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF6D6; /* Light text for dark backgrounds */
}

/* Dark background sections */
.page-about__dark-section {
  background-color: #0A0A0A; /* Background: #0A0A0A */
  padding: 80px 0;
  color: #FFF6D6; /* Text Main: #FFF6D6 */
}

.page-about__dark-bg {
  background-color: #0A0A0A; /* Background: #0A0A0A */
  color: #FFF6D6; /* Text Main: #FFF6D6 */
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #FFF6D6; /* Light background for contrast */
  color: #0A0A0A; /* Dark text for light background */
  padding: 80px 0;
}

.page-about__text-main {
  color: #FFF6D6; /* Text Main: #FFF6D6 */
}

/* Cards */
.page-about__card {
  background-color: #111111; /* Card BG: #111111 */
  border: 1px solid #3A2A12; /* Border: #3A2A12 */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Ensure light text on dark card background */
  height: 100%; /* Ensure equal height in grids */
  box-sizing: border-box;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Primary color for titles */
}

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

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

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

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

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

.page-about__feature-icon {
  width: 200px; /* Min size 200x200 */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Example style */
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background for icon */
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary color */
}

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

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

.page-about__value-item {
  text-align: center;
  padding: 25px;
  border-radius: 8px;
  background-color: #111111; /* Card BG: #111111 */
  border: 1px solid #3A2A12; /* Border: #3A2A12 */
  height: 100%;
  box-sizing: border-box;
}

.page-about__value-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Primary color */
}

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

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

.page-about__team-member {
  text-align: center;
  background-color: #111111; /* Card BG: #111111 */
  border: 1px solid #3A2A12; /* Border: #3A2A12 */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  box-sizing: border-box;
}

.page-about__team-photo {
  width: 300px; /* Min size 200x200 */
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #FFD36B; /* Glow: #FFD36B */
}

.page-about__team-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #F2C14E; /* Primary color */
}

.page-about__team-role {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main: #FFF6D6 */
  margin-bottom: 15px;
}

.page-about__team-bio {
  font-size: 0.95rem;
  color: rgba(255, 246, 214, 0.8); /* Slightly transparent for secondary text */
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #0A0A0A; /* Background: #0A0A0A */
}

.page-about__cta-content {
  max-width: 900px;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* For mobile responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff; /* White text on gold button */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  color: #FFD36B; /* Auxiliary color on hover */
  border-color: #FFD36B;
  transform: translateY(-2px);
}

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

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

.page-about__faq-item {
  background-color: #111111; /* Card BG: #111111 */
  border: 1px solid #3A2A12; /* Border: #3A2A12 */
  border-radius: 8px;
  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 25px;
  cursor: pointer;
  background-color: rgba(242, 193, 78, 0.05); /* Subtle background for question */
  color: #F2C14E; /* Primary color for question text */
  font-weight: 600;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  margin: 0;
  color: inherit; /* Inherit color from question */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Auxiliary color for toggle */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or '−' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main: #FFF6D6 */
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for content */
  padding: 15px 25px 25px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
  color: inherit; /* Inherit color from answer container */
}

/* Global image styles (except exceptions) */
.page-about img:not(.page-about__category-icon):not(.page-about__partner-logo) {
  min-width: 200px;
  min-height: 200px;
}

/* Image styles that must not use filter */
.page-about img {
  filter: none; /* Ensure no filter is applied */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__values-grid,
  .page-about__team-grid {
    gap: 20px;
  }
}

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

  /* Fixed header spacing for mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Use smaller offset for mobile if needed, ensure !important */
    flex-direction: column; /* Ensure image above content */
  }

  .page-about__hero-content {
    order: 2; /* Move content below image */
  }

  .page-about__hero-image-container {
    order: 1; /* Move image above content */
    margin-bottom: 20px;
  }

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

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 15px;
  }

  .page-about__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-container,
  .page-about__team-member,
  .page-about__feature-item,
  .page-about__value-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__feature-icon,
  .page-about__team-photo {
    width: 150px; /* Adjust for mobile if 200px is too large */
    height: 150px;
    min-width: unset;
    min-height: unset;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}