/* 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 background */
  background-color: var(--background-color, #FFFFFF); /* Ensure body background is respected */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for brand color background */
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  padding-bottom: 30px;
}

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

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
  color: #FFFFFF;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding in width */
}

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

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

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand color for secondary button text */
  border: 2px solid #FFFFFF;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: none; /* No filter for images */
}

/* General Section Styles */
.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

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

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

.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* No filter for images */
}

/* Section specific backgrounds and text colors for contrast */
.page-about__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text */
}

.page-about__dark-bg {
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF; /* White text */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__card-title,
.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__team-member-name {
  color: #FFFFFF; /* Ensure titles are white on dark background */
}

/* Grid Layouts */
.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

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

/* Cards */
.page-about__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for cards on light background */
}

.page-about__dark-bg .page-about__card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  box-shadow: none;
  color: #FFFFFF;
}

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

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No filter for images */
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-about__dark-bg .page-about__card-title {
  color: #FFFFFF; /* White for card titles on dark background */
}

.page-about__card-title a {
  color: inherit; /* Inherit color from parent */
  text-decoration: none;
}

.page-about__card-title a:hover {
  text-decoration: underline;
}

.page-about__card-text {
  font-size: 1em;
  color: #555555;
}

.page-about__dark-bg .page-about__card-text {
  color: #f0f0f0;
}

/* Responsibility List */
.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__list-item strong {
  color: #26A9E0;
}

.page-about__btn-center {
  margin: 30px auto 0 auto;
  display: block;
  width: fit-content;
}

/* Why Choose Section Features */
.page-about__feature-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #FFFFFF;
}

.page-about__dark-bg .page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-icon {
  width: 100px; /* Display size, actual image is 200x200 */
  height: 100px;
  object-fit: contain;
  margin: 0 auto 15px auto;
  filter: none; /* No filter for images */
}

.page-about__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-about__feature-text {
  font-size: 1em;
  opacity: 0.9;
  color: #f0f0f0;
}

.page-about__text-center {
  text-align: center;
}

/* Team and Culture Section */
.page-about__team-member-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  color: #333333;
}

.page-about__team-member-image {
  width: 150px; /* Display size, actual image is 400x400 */
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 4px solid #26A9E0;
  filter: none; /* No filter for images */
}

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

.page-about__team-member-role {
  font-size: 0.95em;
  color: #666666;
}

/* Contact Section */
.page-about__contact-info {
  margin-top: 30px;
  text-align: center;
}

.page-about__contact-item {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-about__contact-item a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-about__contact-item a:hover {
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #26A9E0; /* Brand color for FAQ question background */
  color: #FFFFFF; /* White text for FAQ question */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1e87bb; /* Slightly darker brand color on hover */
}

.page-about__faq-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 1em; /* Ensure title inside question is not too large */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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; /* Initial padding for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px; /* Padding for expanded state */
}

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

/* 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: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Buttons take full width */
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* No filter for images */
  }

  .page-about__card-image,
  .page-about__team-member-image,
  .page-about__feature-icon {
    max-width: 100% !important;
    height: auto !important; /* Maintain aspect ratio */
    width: auto !important; /* Allow width to adjust based on max-width */
    filter: none; /* No filter for images */
  }
  /* Specific sizes for icons/smaller images, ensuring min 200px but responsive display */
  .page-about__feature-icon {
    width: 100px !important; /* Display at a smaller size */
    height: 100px !important; /* Display at a smaller size */
    margin-left: auto;
    margin-right: auto;
  }
  .page-about__team-member-image {
    width: 120px !important;
    height: 120px !important;
  }

  /* Video responsiveness (if any, although not in HTML for this page) */
  .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;
  }

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

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

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

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