/* style/about.css */

/* General styles for .page-about to ensure text color on dark body background */
.page-about {
  color: #ffffff; /* Light text on dark body background #0a0a0a */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Section specific styles */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0; /* Adjust padding for desktop */
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__lead-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-faq {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-about__btn-faq {
  background-color: #EA7C07; /* Login color for FAQ button */
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-about__btn-faq:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0; /* Brand color for section titles */
}

.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background matching body */
  color: #ffffff; /* Light text */
}

.page-about__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with body */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #0a0a0a; /* Ensure consistency with body background */
  color: #ffffff;
}

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

.page-about__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for cards */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%; /* Ensure cards have equal height */
  color: #ffffff; /* Light text on card background */
}

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

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly different background for value items */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.page-about__value-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__why-choose-us-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.page-about__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__image-text-block--left .page-about__image-wrapper {
  order: 0;
}

.page-about__image-text-block--right .page-about__image-wrapper {
  order: 1;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__text-content {
  flex: 1;
  color: #f0f0f0;
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__history-section {
  text-align: center;
}

.page-about__description {
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #26A9E0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 0;
}

.page-about__timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
}

.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::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #26A9E0;
  border: 3px solid #ffffff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

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

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

.page-about__timeline-year {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.page-about__timeline-event {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #ffffff;
}

.page-about__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-about__faq-answer p {
  margin-bottom: 15px;
}

.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 0;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-about__image-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-about__image-text-block--right .page-about__image-wrapper {
    order: 0;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding: 30px 0;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  /* Force responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive containers for images */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Force responsive buttons */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-faq,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to button text if it wraps */
    padding-right: 15px;
  }

  /* Button groups mobile adaptation */
  .page-about__cta-group {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-us-section,
  .page-about__history-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__content-grid,
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }

  .page-about__image-text-block {
    gap: 20px;
  }

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

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 10px;
    text-align: left !important;
  }

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

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

  .page-about__timeline-item:nth-child(odd)::after {
    right: auto;
  }

  .page-about__faq-question {
    font-size: 1.05rem;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  .page-about__lead-text {
    font-size: 1rem;
  }
  .page-about__sub-title {
    font-size: 1.5rem;
  }
}