/* style/about.css */

/* Base styles */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #1E90FF; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-about__card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 20px;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-about__card-title {
  font-size: 1.5em;
  color: #FFD700; /* Main color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

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

.page-about__btn-secondary:hover {
  background-color: #1E90FF;
  color: #ffffff;
}

.page-about__btn-link {
  background-color: transparent;
  color: #1E90FF;
  border: 1px solid #1E90FF;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  background-color: #1E90FF;
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background-color: #1E90FF; /* Fallback background */
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for hero title */
  font-weight: bold;
  line-height: 1.1;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Styling */
.page-about__intro-section,
.page-about__services-section,
.page-about__commitment-section,
.page-about__support-section,
.page-about__future-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__dark-bg {
  background-color: #1E90FF; /* Dark blue background */
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__paragraph {
  color: #ffffff;
}

.page-about__dark-bg .page-about__card-title {
  color: #FFD700;
}

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

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__paragraph {
  color: #333333;
}

/* Vision Mission */
.page-about__vision-mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Service Grid */
.page-about__service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__service-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-about__service-title {
  font-size: 1.8em;
  color: #1E90FF;
  margin-bottom: 15px;
}

/* Commitment Features */
.page-about__commitment-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Support Channels */
.page-about__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Future Vision Items */
.page-about__future-vision-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Image content */
.page-about__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 60px auto 20px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #1E90FF;
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue background for questions */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #e6f2ff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-question {
  background-color: #e6f2ff;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
  color: #1E90FF;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
  background-color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  background-color: #f0f8ff;
  padding: 60px 0;
}

.page-about__cta-section .page-about__section-title {
  color: #1E90FF;
}

.page-about__cta-section .page-about__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-about__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 80px 15px;
    min-height: 450px;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__intro-section,
  .page-about__services-section,
  .page-about__commitment-section,
  .page-about__support-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__image-content {
    margin: 40px auto 20px auto;
  }
  .page-about__faq-question {
    padding: 18px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 18px 20px;
  }

  /* 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
}