/* style/about.css */

/* Global styles for page-about scope */
.page-about {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark 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;
}

.page-about__section--mission,
.page-about__section--values,
.page-about__section--achievements,
.page-about__section--contact {
  background-color: #08160F; /* Consistent with body for light sections */
  color: #F2FFF6;
}

.page-about__dark-section {
  background-color: #11271B; /* Card BG for dark sections */
  color: #F2FFF6; /* Main text color for dark background */
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about h3 {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
}

.page-about p {
  margin-bottom: 1em;
  color: #A7D9B8; /* Secondary text color */
}

.page-about strong {
  color: #F2FFF6;
}

.page-about__link {
  color: #2AD16F; /* Button gradient start color */
  text-decoration: underline;
}

.page-about__link:hover {
  color: #57E38D; /* Glow color */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #57E38D;
  border-color: #57E38D;
  transform: translateY(-2px);
}

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr; /* Default order for desktop */
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 2;
}

.page-about__content-grid--reverse .page-about__image-block {
  order: 1;
}

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

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

/* Values/Achievements Grid */
.page-about__values-grid,
.page-about__achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__card {
  background-color: #11271B; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push title to top, content distributed */
  min-height: 220px; /* Ensure cards have a minimum height */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-about__card-title {
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
}

.page-about__card p {
  color: #A7D9B8; /* Secondary text color */
}

/* Contact List */
.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
}

.page-about__contact-list li strong {
  color: #F2FFF6; /* Main text color */
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__content-grid--reverse .page-about__text-block {
    order: unset; /* Reset order for mobile */
  }

  .page-about__content-grid--reverse .page-about__image-block {
    order: unset; /* Reset order for mobile */
  }

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

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
}

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

  .page-about__container {
    padding: 0 15px !important; /* Mobile padding for main container */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding here */
    padding-bottom: 30px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    padding: 15px !important; /* Uniform padding for buttons on mobile */
  }

  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All content-holding blocks should adapt to full width */
  .page-about__section,
  .page-about__card,
  .page-about__image-block,
  .page-about__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Specific elements that might need padding if not covered by container */
  .page-about__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__hero-image-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-about__card {
    min-height: unset; /* Allow height to adjust */
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about h3 {
    font-size: 1.3em;
  }
  .page-about p, .page-about__contact-list li {
    font-size: 0.95em;
  }
}