/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background for the page content */
}

/* Ensure body padding-top is handled by shared.css or this section */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Container for consistent content width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted height for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden; /* Ensure hero content stays within bounds */
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-about__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF; /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for softer contrast */
}

/* Section Titles */
.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* General Text Blocks */
.page-about__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #333333;
}

/* Image styles */
.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  -webkit-filter: none; /* Ensure no filter is applied */
  filter: none; /* Ensure no filter is applied */
}

.page-about__image-wrapper {
  margin: 30px 0;
}

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

/* Dark Background Sections */
.page-about__dark-section {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__section-subtitle {
  color: #ffffff;
}

.page-about__dark-section p {
  color: #f0f0f0;
}

/* Light Background Sections */
.page-about__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333;
  padding: 60px 0;
}

/* Content Grid for Intro Section */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* History Section */
.page-about__history-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  padding-left: 30px;
  border-left: 2px solid #ffffff; /* Timeline line */
  margin-bottom: 40px;
}

.page-about__history-timeline::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #26A9E0;
    box-sizing: border-box;
}

.page-about__timeline-item {
  position: relative;
  padding-left: 20px;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 5px;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  border: 2px solid #26A9E0;
}

.page-about__timeline-year {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Why Choose Us Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light background */
}

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

.page-about__feature-icon {
  width: 80px; /* Feature icons are content display, not tiny decorative */
  height: 80px;
  margin-bottom: 20px;
  -webkit-filter: none; /* Ensure no filter is applied */
  filter: none; /* Ensure no filter is applied */
}

.page-about__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 0.95em;
  color: #555555;
}

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

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

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

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

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

.page-about__team-member {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__team-photo {
  width: 150px; /* Display size for team photos */
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #26A9E0;
  -webkit-filter: none; /* Ensure no filter is applied */
  filter: none; /* Ensure no filter is applied */
}

.page-about__member-name {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 0.95em;
  color: #555555;
}

.page-about__team-outro {
  text-align: center;
  font-style: italic;
  color: #555555;
  margin-top: 20px;
}

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

.page-about__faq-item {
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 10px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-weight: bold;
  color: #26A9E0;
  transition: color 0.3s ease;
}

.page-about__faq-question:hover {
  color: #1a7bb0; /* Darker shade on hover */
}

.page-about__faq-heading {
  font-size: 1.1em;
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or rotate to become minus) */
  content: "−"; /* Visually change to minus */
}

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

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

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

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
}

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

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

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box; /* Ensure padding and border are included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-about__features-grid,
  .page-about__commitment-grid,
  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 15px;
  }
  .page-about__hero-section {
    height: 450px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Remove horizontal margin for full width */
  }
  .page-about__cta-buttons {
      flex-direction: column !important; /* Stack buttons vertically */
      gap: 10px !important;
  }

  /* All images responsive for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content responsive for mobile */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__commitment-grid,
  .page-about__team-grid,
  .page-about__faq-list,
  .page-about__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for hero section on mobile if header offset is needed */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

  /* Video responsive rules - not applicable as no video is explicitly used in HTML, but kept for strictness */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    height: 400px;
  }
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
}

/* Ensure no filter for images */
.page-about img {
    -webkit-filter: none;
    filter: none;
}