/* style/about.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-about {
  color: var(--text-main); /* Body background is dark, so text is light */
  background-color: var(--background-color);
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-about__hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 20px;
}

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

.page-about__hero-content {
  max-width: 800px;
}

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

.page-about__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Ensure white text on button gradient */
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 15px;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-about__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image-container {
  margin: 30px 0;
  text-align: center;
}

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

.page-about__features-grid,
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main); /* Ensure light text on dark card background */
}

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

.page-about__feature-title,
.page-about__item-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-about__feature-description,
.page-about__item-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: justify;
}

.page-about__team-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.page-about__team-description .page-about__text-block {
  max-width: 800px;
  text-align: center;
}

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

  .page-about__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

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

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for mobile */
  }

  .page-about__section {
    margin: 40px auto;
    padding: 0 15px; /* Ensure padding on mobile */
  }

  .page-about__section-title {
    font-size: 1.8em; /* Smaller on mobile */
    margin-bottom: 20px;
  }

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

  .page-about__features-grid,
  .page-about__commitment-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* General image and container responsive styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Long text area (general paragraphs) */
  .page-about__text-block {
    padding: 0;
  }
}

/* Contrast Fixes - Ensure light text on dark backgrounds */
.page-about__dark-bg {
  color: #ffffff; 
  background: var(--primary-color);
}

.page-about__light-bg {
  color: #333333; 
  background: #ffffff;
}

.page-about__medium-bg {
  color: #000000; 
  background: var(--secondary-color);
}

.page-about__content-area, .page-about__text-block {
  color: var(--text-secondary); /* Use secondary text color for main content */
}

.page-about p, .page-about li {
  color: var(--text-secondary);
}

.page-about__dark-section {
  background: var(--deep-green);
  color: var(--text-main);
}

.page-about__btn-primary {
  color: #ffffff; 
}

.page-about__btn-secondary {
  color: var(--primary-color); 
}

/* Emergency contrast fix (if needed) */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}