/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
}

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

.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: #26A9E0;
  border-radius: 2px;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 120px 20px 80px; /* Adjusted padding-top to ensure content is not hidden by header */
  text-align: center;
  overflow: hidden;
  background-color: #0a0a0a; /* Ensure hero has a dark background if not covered by shared.css */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
}

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

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

.page-about__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.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.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Main brand color */
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about__content-block a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensures max-width works correctly */
  margin: 0 auto; /* Center image */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand main color */
  color: #ffffff;
}

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

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

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on brand color */
  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: #ffffff;
}

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

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

.page-about__card p {
  color: #f0f0f0;
}

.page-about__card a {
  color: #ffffff;
  text-decoration: underline;
}

/* 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(250px, 1fr));
  gap: 30px;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-about__value-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0; /* Main brand color for emphasis */
}

.page-about__value-item p {
  color: #f0f0f0;
}

.page-about__value-item a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-about__team-member {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
}

.page-about__team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #26A9E0;
  display: block; /* Ensures centering */
  margin-left: auto;
  margin-right: auto;
}

.page-about__team-name {
  font-size: 1.6em;
  margin-bottom: 5px;
  color: #ffffff;
}

.page-about__team-role {
  font-size: 1.1em;
  color: #26A9E0; /* Brand color */
  margin-bottom: 15px;
}

.page-about__team-bio {
  color: #f0f0f0;
}

.page-about__team-member a {
  color: #26A9E0;
  text-decoration: none;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  text-align: center;
  color: #ffffff;
}

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

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

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__cta-description a {
  color: #26A9E0;
  text-decoration: none;
}

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

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

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X (minus) */
}

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

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

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* General Link Styling for content */
.page-about p a,
.page-about li a {
  color: #26A9E0; /* Brand color for inline links */
  text-decoration: none;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta {
    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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__team-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 60px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    margin-bottom: 40px;
  }
  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  /* All image containers */
  .page-about__image-wrapper,
  .page-about__team-member {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ specific mobile adjustments */
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question-title {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Content area images */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
}