:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text: #333333;
  --light-text: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #26A9E0; /* Using brand color for dark sections */
  --login-color: #EA7C07;
  --black-color: #000000;
}

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text); /* Default text color for light body background */
  background: var(--secondary-color); /* Assuming body background from shared is light */
}

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

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

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.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-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-about__main-title {
  font-size: 48px;
  color: var(--light-text);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-about__hero-description {
  font-size: 20px;
  color: var(--light-text);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-about__hero-image {
  width: 100%;
  max-width: 1000px; /* Constrain image width */
  margin-top: 20px;
}

.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.2);
}

/* CTA Button Styles */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-small {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__cta-button,
.page-about__btn-primary {
  background: var(--login-color); /* Using login color for primary CTA */
  color: var(--light-text);
}

.page-about__cta-button:hover,
.page-about__btn-primary:hover {
  background: #D46F06; /* Darkened version of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-about__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-about__btn-small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 15px;
  background: var(--primary-color);
  color: var(--light-text);
  border-radius: 5px;
}

.page-about__btn-small:hover {
  background: #208DBF; /* Darkened version of #26A9E0 */
  transform: translateY(-1px);
}

.page-about__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-about__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Section specific styles */
.page-about__section--mission .page-about__section-title,
.page-about__section--why-choose .page-about__section-title,
.page-about__section--partners .page-about__section-title,
.page-about__section--contact .page-about__section-title {
  color: var(--primary-color);
}

.page-about__section--history,
.page-about__section--faq {
  background: var(--bg-dark); /* Using primary color for dark sections */
  color: var(--light-text);
}

.page-about__section--history .page-about__section-title,
.page-about__section--faq .page-about__section-title {
  color: var(--light-text);
}

.page-about__section--values {
  background: var(--bg-light);
}

/* Content Grid for text and image */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-about__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  font-size: 18px;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure images are not too small */
}

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

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

.page-about__feature-card {
  background: var(--secondary-color);
  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 #e0e0e0;
}

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

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

.page-about__feature-description {
  font-size: 16px;
  color: var(--dark-text);
  line-height: 1.7;
}

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

.page-about__value-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

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

.page-about__value-description {
  font-size: 16px;
  color: var(--dark-text);
  line-height: 1.7;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--dark-text);
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--dark-text); /* Ensure dark text on light question background */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' */
  color: var(--login-color); /* Highlight active toggle */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 60px 15px 40px;
  }

  .page-about__main-title {
    font-size: 40px;
  }

  .page-about__hero-description {
    font-size: 18px;
  }

  .page-about__section-title {
    font-size: 32px;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid:nth-child(even) {
    flex-direction: column; /* Reset order for smaller screens */
  }

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

  .page-about__feature-grid,
  .page-about__value-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-small {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-about__contact-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-about__btn-secondary {
    margin-left: 0; /* Override desktop margin */
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__paragraph {
    font-size: 16px;
    text-align: left;
  }

  .page-about__feature-grid,
  .page-about__value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__feature-title {
    font-size: 20px;
  }

  .page-about__value-title {
    font-size: 18px;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image specific rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-container,
  .page-about__content-grid,
  .page-about__feature-grid,
  .page-about__value-grid,
  .page-about__faq-list,
  .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__image-block {
    min-width: unset; /* Remove min-width for mobile */
  }
  .page-about__section.page-about__section--history .page-about__text-block,
  .page-about__section.page-about__section--partners .page-about__text-block {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__section.page-about__section--history,
  .page-about__section.page-about__section--why-choose,
  .page-about__section.page-about__section--values,
  .page-about__section.page-about__section--partners,
  .page-about__section.page-about__section--faq,
  .page-about__section.page-about__section--contact {
    padding-left: 0;
    padding-right: 0;
  }
}