/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body handles actual background */
}

/* --- Section Layouts --- */
.page-about__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-about__section-title {
  font-size: 3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #26A9E0; /* Brand primary color for titles */
  line-height: 1.2;
}

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

/* Dark background sections */
.page-about__dark-section,
.page-about__dark-bg {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color on dark body */
  color: #ffffff;
}
.page-about__dark-section .page-about__section-title,
.page-about__dark-bg .page-about__section-title {
  color: #ffffff;
}

/* Light background sections (for contrast) */
.page-about__light-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark body */
  color: #ffffff;
}
.page-about__light-bg .page-about__section-title {
  color: #26A9E0;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 80px 0; /* Small top padding, no var(--header-offset) */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

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

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

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1, using clamp for size control */
  font-weight: 800;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.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: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping for buttons */
  word-wrap: break-word; /* Allow text wrapping for buttons */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-about__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
  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 Grid Layouts --- */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__content-grid > .page-about__text-block,
.page-about__content-grid > .page-about__image-block {
  flex: 1;
  min-width: 300px; /* Minimum width before wrapping */
}

.page-about__content-grid.reverse-on-mobile {
  flex-direction: row-reverse; /* Default desktop layout */
}

.page-about__image-block {
  text-align: center;
}

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

.page-about__grid-3-cols,
.page-about__grid-2-cols {
  display: grid;
  gap: 30px;
}

.page-about__grid-3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* --- Cards --- */
.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-about__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* --- Value List --- */
.page-about__value-list {
  list-style: none;
  padding: 0;
}

.page-about__value-list li {
  margin-bottom: 30px;
}

.page-about__value-list li:last-child {
  margin-bottom: 0;
}

.page-about__value-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for <summary> */
}

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

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

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

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

/* For details tag, the content is shown/hidden by browser, no need for max-height trick */
.page-about__faq-item[open] .page-about__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

/* --- CTA Section at Bottom --- */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 60px 0;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__hero-section {
    min-height: auto;
    padding-bottom: 60px;
  }
  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 40px;
  }
  .page-about__content-grid.reverse-on-mobile {
    flex-direction: column; /* Reset to column for mobile */
  }

  .page-about__grid-3-cols,
  .page-about__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page-about__card {
    padding: 25px;
  }
  .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__value-title {
    font-size: 1.4em;
  }

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

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__content-grid,
  .page-about__grid-3-cols,
  .page-about__grid-2-cols,
  .page-about__faq-list,
  .page-about__cta-section,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific padding for hero section top */
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure text blocks within grids also adapt */
  .page-about__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure flex-wrap for buttons */
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-about__intro-text {
    font-size: 0.95em;
  }
  .page-about__card-title {
    font-size: 1.2em;
  }
  .page-about__value-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}