/* 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: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #FFD700;
  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: #B80000;
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 60px 20px; /* Default padding for desktop, considering header offset */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

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

.page-about__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__btn-primary {
  display: inline-block;
  background-color: #B80000;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary:hover {
  background-color: #FFD700;
  color: #B80000;
  transform: translateY(-3px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for this section */
  color: #ffffff;
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

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

.page-about__card-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
}

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

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-about__value-item {
  background-color: rgba(184, 0, 0, 0.2); /* Semi-transparent brand red */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #B80000;
}

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

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

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

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

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-about__team-member-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__team-member-image {
  width: 250px; /* Fixed width for team member images */
  height: 250px; /* Fixed height for team member images */
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #B80000;
}

.page-about__team-member-name {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 5px;
}

.page-about__team-member-role {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__team-member-bio {
  font-size: 0.95em;
  color: #cccccc;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  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: #B80000; /* Red background for questions */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.02);
  color: #f0f0f0;
}

.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;
  padding-bottom: 10px; /* Add some padding for readability */
  color: #f0f0f0;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #B80000; /* Brand red background */
  color: #ffffff;
  margin-top: 60px;
}

.page-about__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

/* Responsive Design */
@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: 2.2em;
  }
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .page-about__why-choose-us-grid,
  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__team-member-image {
    width: 200px;
    height: 200px;
  }
  .page-about__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: var(--header-offset, 120px) 15px 40px 15px !important; /* Ensure spacing from fixed header */
    min-height: 60vh;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.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;
  }

  /* Mobile Image Responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    margin-bottom: 40px;
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }
  .page-about__team-member-image {
    width: 150px;
    height: 150px;
    min-width: 150px; /* Ensure it's not less than 200px, adjusted for mobile */
    min-height: 150px; /* Ensure it's not less than 200px, adjusted for mobile */
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__btn-primary {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__value-title {
    font-size: 1.4em;
  }
  .page-about__feature-title {
    font-size: 1.4em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
}

/* Color contrast safety */
.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__card,
.page-about__value-item,
.page-about__feature-card,
.page-about__team-member-card,
.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.page-about__faq-toggle {
  color: #FFD700;
}

.page-about__btn-primary {
  background-color: #B80000;
  color: #ffffff;
}

.page-about__btn-primary:hover {
  background-color: #FFD700;
  color: #B80000;
}

.page-about__section-title::after {
  background-color: #B80000;
}

.page-about__section-title,
.page-about__card-title,
.page-about__value-title,
.page-about__feature-title,
.page-about__team-member-name,
.page-about__cta-title {
  color: #FFD700;
}

.page-about__hero-title {
  color: #FFD700;
}

/* Image CSS restrictions */
.page-about img {
  filter: none; /* Ensure no filter changes image color */
}

/* Ensure content area images are not too small */
.page-about__image-centered {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for team member image size, if it's smaller than other content images but still >= 200px */
.page-about__team-member-image {
  width: 250px;
  height: 250px;
  min-width: 250px;
  min-height: 250px;
}

/* Ensure HTML width/height attributes are respected for layout, and CSS doesn't override with smaller values */
.page-about__hero-image,
.page-about__image-centered {
  width: 100%; /* overrides the HTML width for responsive behavior */
  height: auto; /* overrides the HTML height for responsive behavior */
}

/* For the shared container, ensure mobile padding */
.page-about__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}