/* style/about.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-register-text: #FFFF00;
  --button-login-text: #FFFF00;
  --background-color-page: #FFFFFF;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default to dark text on light background */
  background-color: var(--background-color-page);
}

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

.page-about__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more at bottom */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-about__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-color-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-about__section {
  padding: 60px 20px;
}

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

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

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

/* Mission & Vision Flex Group */
.page-about__flex-group {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-about__flex-group .page-about__card {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__flex-group .page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-about__dark-bg .page-about__card-title {
  color: var(--primary-color); /* Ensure card titles are dark on light card background */
}

.page-about__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-dark);
}

/* Strengths Grid Layout */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__strength-item {
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

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

.page-about__strength-item .page-about__card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Commitment Grid Layout */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__commitment-grid .page-about__card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-about__commitment-grid .page-about__card-title {
  color: var(--primary-color);
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background-color: var(--button-register-bg); /* Custom color for register */
  color: var(--button-register-text); /* Custom color for register text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background-color: #a30606; /* Slightly darker red on hover */
  transform: translateY(-2px);
}

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

.page-about__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  list-style: none; /* Remove default marker */
}

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

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

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-about__description {
    font-size: 1.1rem;
  }

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

  .page-about__flex-group .page-about__card,
  .page-about__grid-layout .page-about__strength-item,
  .page-about__commitment-grid .page-about__card {
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 10px 15px 40px;
  }

  .page-about__main-title {
    font-size: 2.2rem; /* Specific smaller size for mobile */
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

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

  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__text-block {
    font-size: 0.95rem;
  }

  .page-about__image-content,
  .page-about__hero-image,
  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  .page-about__flex-group {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__flex-group .page-about__card,
  .page-about__grid-layout .page-about__strength-item,
  .page-about__commitment-grid .page-about__card {
    min-width: unset;
    width: 100%;
    padding: 20px;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  /* Ensure no horizontal scroll for elements that contain images/videos/buttons */
  .page-about__hero-section,
  .page-about__introduction,
  .page-about__mission-vision,
  .page-about__strengths,
  .page-about__commitment,
  .page-about__team,
  .page-about__conclusion,
  .page-about__faq {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
}