/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-about__section-title {
  font-size: clamp(2em, 2.5vw, 2.8em); /* H1 constraint - use clamp */
  color: #017439; /* Brand color for titles */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: clamp(1.5em, 2vw, 2em);
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for readability on dark backgrounds */
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative; /* Ensure content flows below image */
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* H1 constraint - use clamp */
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__intro-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Content sections with image blocks */
.page-about__history-mission .page-about__container,
.page-about__security .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__history-mission .page-about__content-area,
.page-about__security .page-about__content-area {
  flex: 1;
  min-width: 300px;
}

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

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

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for card on dark section */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Why Choose Us Features */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
  border-radius: 10px;
}

.page-about__feature-icon {
  width: 100%;
  max-width: 200px; /* Adjust icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Responsibility List */
.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__responsibility-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.05em;
}

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

.page-about__member-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__member-photo {
  width: 100%;
  max-width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #017439;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 5px;
  font-weight: bold;
}

.page-about__member-role {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95em;
  color: #cccccc;
}

/* Contact Section */
.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__contact-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.05em;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-about__faq-question:hover {
  background-color: #005f2c;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Conclusion Section */
.page-about__conclusion .page-about__section-title {
  color: #017439;
}

.page-about__conclusion p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__history-mission .page-about__container,
  .page-about__security .page-about__container {
    flex-direction: column;
  }
  .page-about__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__hero-content {
    padding: 30px 15px;
  }

  .page-about__main-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__section-title {
    font-size: 1.8em;
  }

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

  .page-about p,
  .page-about li {
    font-size: 15px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__feature-icon,
  .page-about__member-photo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-about__card,
  .page-about__feature-item,
  .page-about__member-card,
  .page-about__responsibility-list li,
  .page-about__contact-list li,
  .page-about__faq-item {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

  .page-about__faq-toggle {
    font-size: 1.2em;
  }
}