/* style/about.css */

/* Base Styles for page-about, ensuring contrast with dark body background */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or set specific section backgrounds */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439 0%, #004d26 100%); /* Darker gradient for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%; /* Ensure container respects max-width */
}

.page-about__hero-content {
  flex: 1;
  padding-right: 40px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.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: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

.page-about__btn-secondary {
  background-color: #017439; /* Main brand color for secondary actions */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #004d26;
  border-color: #004d26;
  color: #ffffff;
}

.page-about__hero-image {
  flex: 1;
  text-align: right;
}

.page-about__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  filter: none; /* Explicitly ensure no filters are applied */
}

/* General Section Styles */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  color: #ffffff; /* Default for dark sections */
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff; /* Default for dark sections */
}

.page-about__text-block p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #f0f0f0; /* Lighter text for readability on dark backgrounds */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Body background color */
}

.page-about__grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__grid--two-cols > * {
  flex: 1;
}

.page-about__grid--three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  filter: none; /* Explicitly ensure no filters are applied */
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Body background color */
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-about__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure images don't have extra space below */
  filter: none; /* Explicitly ensure no filters are applied */
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439; /* Use brand color for card titles */
}

.page-about__card p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Body background color */
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
}

.page-about__feature-list li {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__feature-list li:last-child {
  margin-bottom: 0;
}

.page-about__list-item-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for list item titles */
  font-weight: bold;
}

.page-about__feature-list p {
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #017439, #004d26); /* Brand color gradient */
  color: #ffffff;
}

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Body background color */
}