/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07;
  --text-color: #333333;
  --light-bg: #FFFFFF;
  --dark-bg-text: #FFFFFF;
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 20px;
  margin-bottom: 20px;
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top margin, body handles header offset */
  background: linear-gradient(135deg, var(--primary-color), #4db9f3);
  color: var(--dark-bg-text);
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-bg-text);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: var(--dark-bg-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-about__cta-button:hover {
  background: #d46c06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-about__section-title--light {
  color: var(--dark-bg-text);
}

.page-about__dark-section {
  background: var(--primary-color);
  color: var(--dark-bg-text);
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

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

.page-about__why-choose-us .page-about__section-title {
  color: var(--primary-color);
}

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

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

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-about__commitment-section {
  background: #f9f9f9;
}

.page-about__sub-title {
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__sub-title:first-of-type {
  margin-top: 0;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
}
.page-about__faq-answer p {
  margin-bottom: 0;
}

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__image-block {
    margin-top: 30px;
  }
  .page-about__image-block img {
    max-width: 80%;
    margin: 0 auto;
  }
  .page-about__text-block {
    text-align: center;
  }
  .page-about__sub-title {
    text-align: center;
  }
  .page-about__hero-image {
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-about__description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
  .page-about__cta-button {
    font-size: 16px;
    padding: 12px 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image img {
    border-radius: 4px;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 20px;
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-about__text-block p {
    font-size: 1rem;
  }
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__feature-title {
    font-size: 1.3rem;
  }
  .page-about__sub-title {
    font-size: 1.4rem;
  }
  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 15px; }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Force full width for images and buttons */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container,
  .page-about__section,
  .page-about__feature-card,
  .page-about__hero-container,
  .page-about__content-flex,
  .page-about__text-block,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}