/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1);
}

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

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

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

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

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

/* General Headings and Paragraphs */
.page-about__heading {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

.page-about__light-bg .page-about__heading {
  color: #017439;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-about__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Mission and Core Values Section */
.page-about__mission-vision .page-about__heading {
  color: #ffffff;
}

.page-about__value-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__value-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__light-bg .page-about__value-item {
  background: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__value-item:hover {
  transform: translateY(-5px);
}

.page-about__value-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__light-bg .page-about__value-title {
  color: #017439;
}

.page-about__value-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__light-bg .page-about__value-description {
  color: #555555;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__heading {
  color: #017439;
}

.page-about__why-choose-us .page-about__paragraph {
  color: #333333;
}

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

.page-about__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__link-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-about__link-text:hover {
  color: #005f2c;
  text-decoration: underline;
}

/* Social Responsibility Section */
.page-about__social-responsibility .page-about__heading {
  color: #ffffff;
}

.page-about__social-responsibility .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__responsibility-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__responsibility-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__responsibility-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Future Vision Section */
.page-about__future-vision .page-about__heading {
  color: #ffffff;
}

.page-about__future-vision .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__vision-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__vision-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__vision-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__vision-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-text {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 25px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

  .page-about__heading {
    font-size: 2em;
  }
}

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

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

  .page-about__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    padding: 10px 15px;
  }

  .page-about__heading {
    font-size: 1.8em;
  }

  .page-about__value-list,
  .page-about__features-grid,
  .page-about__responsibility-list,
  .page-about__vision-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-item,
  .page-about__feature-card,
  .page-about__responsibility-item,
  .page-about__vision-item {
    padding: 20px;
  }

  .page-about__feature-title,
  .page-about__value-title,
  .page-about__responsibility-title,
  .page-about__vision-title {
    font-size: 1.3em;
  }

  .page-about__cta-text {
    font-size: 1.2em;
  }

  /* Mobile responsive images */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  /* Ensure buttons are responsive */
  .page-about__cta-button,
  .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;
  }
  
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }

  .page-about__heading {
    font-size: 1.5em;
  }
}