.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  overflow: hidden;
  color: #ffffff; /* Light text for dark background */
  background-color: #017439; /* Primary brand color as background */
}

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

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

.page-about__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for main title */
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom register/login color */
  color: #FFFF00; /* Custom register/login font color */
  border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-about__content-area,
.page-about__services-section,
.page-about__team-section,
.page-about__why-choose-section,
.page-about__cta-section {
  padding: 60px 0;
  color: #ffffff; /* Default text color for dark body bg */
}

.page-about__light-bg {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Highlight important titles */
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFFF00;
  text-align: center;
}

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

.page-about__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #C30808; /* Custom button color */
  color: #FFFF00; /* Custom button font color */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-link:hover {
  background-color: #a00606;
}

.page-about__security-content,
.page-about__team-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__security-content .page-about__image,
.page-about__team-content .page-about__image {
  flex: 1;
  margin: 0;
  max-width: 50%;
}

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

.page-about__image--left {
  order: 0;
}

.page-about__image--right {
  order: 1;
}

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

.page-about__center-content {
  text-align: center;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Card background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question */
  transition: background-color 0.3s ease;
  color: #FFFF00;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it expands */
  padding: 20px;
}

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 0;
  text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__intro-text {
    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: 1em;
  }

  .page-about__content-area,
  .page-about__values-section,
  .page-about__services-section,
  .page-about__security-section,
  .page-about__team-section,
  .page-about__commitment-section,
  .page-about__why-choose-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__sub-title {
    font-size: 1.4em;
  }

  .page-about__paragraph {
    font-size: 0.95em;
    line-height: 1.5;
  }

  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  
  .page-about__card-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-about__security-content,
  .page-about__team-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__security-content .page-about__image,
  .page-about__team-content .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    order: -1; /* Image first on mobile */
  }

  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.95em;
    padding: 10px 15px;
  }
  
  /* Ensure all img tags within .page-about are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/videos are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__values-grid,
  .page-about__services-grid,
  .page-about__why-choose-grid,
  .page-about__security-content,
  .page-about__team-content,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  /* Specific padding for content sections on mobile */
  .page-about__content-area .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__services-section .page-about__container,
  .page-about__security-section .page-about__container,
  .page-about__team-section .page-about__container,
  .page-about__commitment-section .page-about__container,
  .page-about__why-choose-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-section .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 15px;
  }
}