/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for potential dark body background */
}

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

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

.page-about__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

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

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

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

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

/* General Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

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

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* History and Development Section */
.page-about__history-development {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__history-development .page-about__section-title {
  color: #26A9E0;
}

/* Mission and Vision Section */
.page-about__mission-vision {
  background-color: #ffffff;
  color: #333333;
}

.page-about__mission-vision .page-about__section-title {
  color: #26A9E0;
}

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.page-about__card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-about__card p {
  color: #555555;
}

/* Core Values Section */
.page-about__core-values {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.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.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 0; /* Icons typically don't have border-radius */
}

.page-about__value-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__value-item p {
  color: #f0f0f0;
}

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

.page-about__why-choose-us .page-about__section-title {
  color: #26A9E0;
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-about__feature-item {
  margin-bottom: 25px;
}

.page-about__feature-item:last-child {
  margin-bottom: 0;
}

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

.page-about__feature-item p {
  color: #f0f0f0;
}

/* Our Commitments Section */
.page-about__our-commitments {
  background-color: #ffffff;
  color: #333333;
}

.page-about__our-commitments .page-about__section-title {
  color: #26A9E0;
}

.page-about__commitments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.page-about__card--commitment {
  background: #f8f8f8;
  color: #333333;
}

.page-about__card--commitment .page-about__card-title {
  color: #26A9E0;
}

.page-about__card--commitment p {
  color: #555555;
}

.page-about__image-block--commitment {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

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

.page-about__faq-item[open] {
  background: rgba(255, 255, 255, 0.25);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-about__cta-final {
  background-color: #ffffff;
  color: #333333;
}

.page-about__cta-final .page-about__section-title {
  color: #26A9E0;
}

.page-about__cta-final .page-about__description {
  color: #555555;
}

.page-about__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .page-about__commitments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__hero-content {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    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__container {
    padding: 0 15px;
  }
  .page-about__text-block p,
  .page-about__feature-item p,
  .page-about__value-item p,
  .page-about__card p,
  .page-about__faq-answer p {
    font-size: 0.95em;
  }
  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }
  .page-about__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* Mobile image and container responsiveness */
  .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__hero-image-wrapper,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__cta-buttons,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .page-about__history-development .page-about__container,
  .page-about__mission-vision .page-about__container,
  .page-about__core-values .page-about__container,
  .page-about__why-choose-us .page-about__container,
  .page-about__our-commitments .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-final .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Adjustments for specific sections if needed */
.page-about__dark-bg {
  color: #ffffff; /* Deep background, light text */
}

.page-about__light-bg {
  color: #333333; /* Light background, dark text */
}