:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB; /* From custom palette */
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --white-color: #FFFFFF;
  --dark-text: #333333; /* For contrast */
  --light-text: #f0f0f0; /* For contrast */
}

/* Base styles for the page-about content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--page-bg); /* Use specified background color */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-about__section-title {
  font-size: 36px;
  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-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-about h1 { /* H1 specific rules for font size */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
}

.page-about h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--primary-color);
}

.page-about h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--primary-color);
}

.page-about h4 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--text-main);
}

.page-about p {
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-about ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about li {
  margin-bottom: 10px;
  color: var(--text-main);
}

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

.page-about__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--small {
  padding: 12px 30px;
  font-size: 16px;
  margin-top: 20px;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* body padding-top handles header offset, this is just for visual spacing */
  padding-top: 10px;
  background-color: var(--page-bg);
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-about__hero-content p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main);
}

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Use card-bg for this section */
}

.page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.page-about__content-wrapper .page-about__text-block {
  flex: 1;
  font-size: 17px;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-about__values-item {
  background: var(--page-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__values-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__values-heading {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__values-item p {
  font-size: 16px;
  color: var(--text-main);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark section */
  color: var(--white-color); /* Light text for dark background */
}

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

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

.page-about__why-choose-us .page-about__section-description {
  color: var(--light-text);
}

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

.page-about__feature-card {
  background: var(--card-bg); /* Light background for card */
  color: var(--text-main); /* Dark text for light card */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.page-about__feature-card p {
  font-size: 16px;
  color: var(--text-main);
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

.page-about__commitment-image {
  flex: 1;
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__commitment-content .page-about__text-block {
  flex: 1;
  font-size: 17px;
}

.page-about__commitment-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
}

.page-about__commitment-list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-main);
}

.page-about__commitment-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 12px; /* Increased border-radius for modern look */
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px; /* Increased font size */
  font-weight: 600;
  color: var(--text-main);
}
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: var(--page-bg); /* Use page-bg for hover */
}
.page-about__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 28px; /* Increased font size */
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for toggle */
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px; /* Increased size */
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px;
  background: var(--page-bg); /* Use page-bg for answer background */
  border-radius: 0 0 12px 12px; /* Match item border-radius */
  font-size: 16px;
  color: var(--text-main);
}

/* Contact CTA Section */
.page-about__contact-cta {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark section */
  color: var(--white-color); /* Light text */
  text-align: center;
}

.page-about__contact-cta .page-about__section-title {
  color: var(--white-color);
}

.page-about__contact-cta .page-about__section-title::after {
  background-color: var(--secondary-color);
}

.page-about__contact-cta .page-about__section-description {
  color: var(--light-text);
  margin-bottom: 40px;
}

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

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-button);
  color: var(--white-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-wrapper,
  .page-about__commitment-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-about__image-block,
  .page-about__commitment-image {
    margin-bottom: 30px;
  }

  .page-about__image-block img,
  .page-about__commitment-image {
    max-width: 100%;
  }

  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .page-about__sub-title {
    font-size: 24px;
  }

  .page-about h1 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .page-about h2 {
    font-size: clamp(20px, 5vw, 32px);
  }

  .page-about h3 {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .page-about h4 {
    font-size: clamp(16px, 4vw, 20px);
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* Keep small padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image img {
    border-radius: 8px;
  }

  .page-about__hero-content p {
    font-size: 16px;
  }
  
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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;
  }

  .page-about__intro-section,
  .page-about__why-choose-us,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__contact-cta {
    padding: 50px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__values-item {
    padding: 25px;
  }

  .page-about__feature-card {
    padding: 25px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 18px;
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 28px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="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; /* Ensure padding inside button */
    padding-right: 15px; /* Ensure padding inside button */
  }

  /* Mobile image specific styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__commitment-content,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}