/* style/about.css */

/* Base styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-about__section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 18px;
  color: #f0f0f0;
}

.page-about__intro-text--light {
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles header offset, this is for internal spacing */
  overflow: hidden;
  text-align: center;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding-top: 50px; /* Space from top of hero section */
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__description {
  font-size: clamp(16px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-buttons--centered {
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-about__btn-primary:hover {
  background-color: #d16b00;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Content wrappers for text and image */
.page-about__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Section specific styles */
.page-about__introduction-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__introduction-section .page-about__text-block p {
  color: #f0f0f0;
}

.page-about__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #1a1a2e;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-card .page-about__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__feature-card p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Commitment Section */
.page-about__commitment-section .page-about__text-block p {
  color: #f0f0f0;
}

/* Development Section */
.page-about__development-section {
  background-color: #1a1a2e;
}

.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #26A9E0;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 0;
  padding-right: 40px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 40px;
  padding-right: 0;
  text-align: left;
}

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #26A9E0;
  border: 3px solid #ffffff;
  top: 26px;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -8px;
}

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

.page-about__timeline-year {
  font-size: 24px;
  font-weight: 700;
  color: #EA7C07;
  margin-bottom: 5px;
}

.page-about__timeline-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-about__closing-text {
  text-align: center;
  margin-top: 50px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-about__closing-text--light {
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #1a1a2e;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* For <details> summary */
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficient height for most answers */
  transition: max-height 0.5s ease-in;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-wrapper {
    flex-direction: column;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on mobile */
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 15px;
  }
  .page-about__timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 40px;
    padding-right: 15px;
    text-align: left;
  }
  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 8px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__description {
    font-size: 18px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__hero-content {
    padding-top: 30px;
  }
  .page-about__text-block p {
    font-size: 16px;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__feature-card .page-about__card-title {
    font-size: 20px;
  }
  .page-about__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    font-size: 15px;
    padding: 0 20px 15px 20px;
  }

  /* Mobile responsive for images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__content-wrapper,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__faq-list,
  .page-about__timeline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons--centered {
    flex-direction: column;
  }
}