/* style/about-us.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --border-color: #e0e0e0;
}

/* Base styles for the about-us page */
.page-about-us {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default background */
}

.page-about-us__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about-us__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about-us__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-about-us__section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-about-us__section-title--light {
  color: var(--text-light);
}

.page-about-us__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

.page-about-us__text-block--light {
  color: var(--text-light);
}

/* Hero Section */
.page-about-us__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  color: var(--text-light);
  text-align: center;
}

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

.page-about-us__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-about-us__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

.page-about-us__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-about-us__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--text-light);
}

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

.page-about-us__btn-primary,
.page-about-us__btn-secondary,
.page-about-us__link-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about-us__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-about-us__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-about-us__btn-primary--white {
  background-color: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
}

.page-about-us__btn-primary--white:hover {
  background-color: lighten(var(--primary-color), 40%);
  border-color: lighten(var(--primary-color), 40%);
}

.page-about-us__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-about-us__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-about-us__link-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  margin-top: 15px;
}

.page-about-us__link-button:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

/* History Section */
.page-about-us__history .page-about-us__container {
  color: var(--text-light);
}

.page-about-us__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about-us__content-grid .page-about-us__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image wrapper has a minimum width */
}

.page-about-us__content-grid .page-about-us__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about-us__content-grid .page-about-us__text-content {
  flex: 1;
}

/* Mission and Values Section */
.page-about-us__grid-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about-us__card {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-about-us__card-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-about-us__value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about-us__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-about-us__list-item::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Why Choose Section */
.page-about-us__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about-us__feature-card {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-about-us__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about-us__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Commitment Section */
.page-about-us__commitment-item {
  text-align: left;
  padding: 20px;
}

.page-about-us__commitment-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Future Section (reversed content grid) */
.page-about-us__future .page-about-us__content-grid {
  flex-direction: row-reverse; /* Image on right, text on left */
  color: var(--text-light);
}

/* FAQ Section */
.page-about-us__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-about-us__faq-item {
  background-color: var(--background-light);
  color: var(--text-dark);
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-about-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

.page-about-us__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-about-us__faq-item[open] .page-about-us__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-about-us__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about-us__faq-item[open] .page-about-us__faq-toggle {
  transform: rotate(45deg);
}

.page-about-us__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

/* Conclusion Section */
.page-about-us__conclusion .page-about-us__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about-us__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-about-us__section-title {
    font-size: 2rem;
  }
  .page-about-us__hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-about-us__section {
    padding: 40px 0;
  }
  .page-about-us__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-about-us__hero-description {
    font-size: 0.95rem;
  }
  .page-about-us__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about-us__btn-primary,
  .page-about-us__btn-secondary,
  .page-about-us__link-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about-us__content-grid,
  .page-about-us__future .page-about-us__content-grid {
    flex-direction: column;
  }
  .page-about-us__content-grid .page-about-us__text-content,
  .page-about-us__future .page-about-us__text-content {
    text-align: center;
  }
  .page-about-us__feature-card,
  .page-about-us__card {
    padding: 20px;
  }
  .page-about-us__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-about-us__hero-section {
    padding-bottom: 40px;
  }

  /* Mobile image responsiveness */
  .page-about-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about-us__section,
  .page-about-us__card,
  .page-about-us__container,
  .page-about-us__image-wrapper,
  .page-about-us__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content does not overflow */
  }

  /* Specific padding adjustment for hero content */
  .page-about-us__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video section top padding, relying on body for header offset */
  .page-about-us__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-about-us__section-title {
    font-size: 1.8rem;
  }
  .page-about-us__card-title,
  .page-about-us__commitment-title,
  .page-about-us__feature-title {
    font-size: 1.4rem;
  }
  .page-about-us__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-about-us__faq-answer {
    padding: 10px 20px;
  }
}