/* style/about.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light background */
  background-color: var(--background-color);
}

.page-about__section-spacing {
  padding: 60px 0;
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  background-color: var(--background-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

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

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--text-black-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

/* CTA Buttons */
.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: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--text-black-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-about__section-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-about__mission-vision .page-about__text-block {
  max-width: 800px;
  text-align: justify;
}

.page-about__mission-vision .page-about__text-block p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

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

.page-about__image-content--center {
  margin: 40px auto 0 auto;
}

/* Why Choose Us Section */
.page-about__bg-light {
  background-color: var(--background-color);
}

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

.page-about__feature-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: var(--text-main-color);
}

/* Commitment Section */
.page-about__commitment .page-about__container {
  text-align: center;
}

.page-about__commitment .page-about__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: justify;
  color: var(--text-main-color);
}

.page-about__commitment .page-about__text-block p {
  margin-bottom: 15px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-about__faq-item {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-black-color);
  font-size: 1.1em;
  position: relative;
  user-select: none;
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-main-color);
  font-size: 1em;
  border-top: 1px solid var(--border-color);
}

/* Call to Action Section */
.page-about__cta-section .page-about__container {
  background: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 15px;
  padding: 50px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-description {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-about__cta-section .page-about__section-description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-section .page-about__btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid #ffffff;
}

.page-about__cta-section .page-about__btn-primary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-about__cta-section .page-about__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
}

.page-about__cta-section .page-about__image-content {
  position: absolute;
  bottom: -20px;
  right: -20px;
  max-width: 300px;
  opacity: 0.3;
  z-index: 0;
  filter: brightness(1.2);
}

/* Ensure all images are responsive by default */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Added for better image handling */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container,
  .page-about__hero-content,
  .page-about__cta-section .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__intro-text,
  .page-about__section-description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-about__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
  }

  .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 20px;
  }

  .page-about__cta-section .page-about__container {
    padding: 40px 20px;
  }

  .page-about__cta-section .page-about__image-content {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 30px;
    max-width: 150px;
    opacity: 0.2;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__mission-vision .page-about__container,
  .page-about__why-choose-us .page-about__container,
  .page-about__commitment .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-section .page-about__container {
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Content area image size limits */
  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Color contrast adjustments */
.page-about__dark-bg {
  color: #ffffff;
  background: var(--primary-color);
}

.page-about__light-bg {
  color: var(--text-main-color);
  background: var(--background-color);
}

.page-about__faq-item summary {
  color: var(--text-black-color);
}

.page-about__faq-answer {
  color: var(--text-main-color);
}

/* Ensure no filter is used on images */
.page-about img {
  filter: none;
}