/* style/about.css */

:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --background-dark: #1A202C;
  --background-light: #ffffff;
  --border-color: #e0e0e0;
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: var(--background-dark);
  color: var(--text-light);
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-about__btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--background-dark);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-about__btn-primary:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  font-size: 1em;
}

.page-about__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-about__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: var(--secondary-color);
}

.page-about__dark-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-about__dark-section .page-about__sub-title {
  color: var(--text-light);
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-about__value-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__value-description {
  font-size: 1em;
  color: var(--text-light);
}

.page-about__timeline {
  position: relative;
  padding: 20px 0;
  margin: 40px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 20px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--background-light);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -16px;
}

.page-about__timeline-year {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-about__timeline-description {
  font-size: 1.1em;
  margin-top: 10px;
  color: var(--text-dark);
}

.page-about__why-choose-section .page-about__image-content {
  margin-top: 60px;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1em;
  color: var(--text-light);
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--primary-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add spacing for stacked buttons */
  }

  .page-about__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-about__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__sub-title {
    font-size: 1.3em;
  }

  .page-about__paragraph {
    font-size: 1em;
  }

  .page-about__image-content {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__values-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 15px;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 8px;
  }

  .page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(even)::after {
    left: 8px;
  }

  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
}

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

  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__sub-title {
    font-size: 1.2em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}