/* style/about.css */

/* Base styles for the page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background-color: #ffffff; /* Body background is white */
}

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

/* Section padding */
.page-about__hero-section,
.page-about__mission-section,
.page-about__why-choose-us-section,
.page-about__commitment-section,
.page-about__customer-support-section,
.page-about__faq-section,
.page-about__final-cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Specific section background colors */
.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-about__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__hero-title {
  font-size: 2.5em; /* Use relative units, avoid fixed large values */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #26A9E0;
}
.page-about__dark-section .page-about__hero-title {
  color: #ffffff;
}


.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}
.page-about__dark-section .page-about__hero-description {
  color: #f0f0f0;
}

/* General Titles */
.page-about__section-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 40px;
  color: #26A9E0;
}
.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

/* Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  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;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1f8ac2;
  border-color: #1f8ac2;
}

.page-about__faq-btn {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin-top: 20px;
}

.page-about__faq-btn:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* Grid Layout for content sections */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__grid-layout--reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* Reverse order for content and image */
}

.page-about__grid-layout--reverse > *:nth-child(even) {
  direction: ltr; /* Ensure text direction is correct */
}
.page-about__grid-layout--reverse > *:nth-child(odd) {
  direction: ltr; /* Ensure text direction is correct */
}

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


/* Images */
.page-about__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Why Choose Us Section */
.page-about__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__feature-card .page-about__feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__feature-card p {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-about__commitment-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #333333;
}
.page-about__dark-section .page-about__commitment-list li {
  color: #f0f0f0;
}

.page-about__commitment-list li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  position: relative;
  outline: none;
}
.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;
  width: 100%;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Final CTA Section */
.page-about__final-cta-section {
  padding: 80px 0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-layout,
  .page-about__grid-layout--reverse {
    grid-template-columns: 1fr;
    direction: ltr; /* Reset direction for smaller screens */
  }
  .page-about__grid-layout--reverse > * {
    direction: ltr;
  }
  .page-about__grid-layout .page-about__image-wrapper:first-child {
    order: 2; /* Move image below text on smaller screens if it was first */
  }
  .page-about__grid-layout--reverse .page-about__image-wrapper:first-child {
    order: 1; /* Keep image first if it was reversed */
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 60px !important;
  }

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

  /* All image containers responsive */
  .page-about__image-wrapper,
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* All buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__faq-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 !important;
    padding-right: 15px !important;
  }

  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.6em;
  }
  .page-about__section-title {
    font-size: 1.4em;
  }
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__customer-support-section,
  .page-about__faq-section,
  .page-about__final-cta-section {
    padding: 40px 0;
  }
}