/* style/about.css */

/* Variables */
:root {
  --page-about-primary-color: #017439;
  --page-about-secondary-color: #FFFFFF;
  --page-about-text-dark: #333333;
  --page-about-text-light: #FFFFFF;
  --page-about-btn-register: #C30808;
  --page-about-btn-login: #C30808;
  --page-about-btn-font-color: #FFFF00;
  --page-about-bg-light: #FFFFFF;
}

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

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

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
  margin-bottom: 30px;
}

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

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

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-about-text-light);
}

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

.page-about__content-area,
.page-about__feature-section,
.page-about__team-section,
.page-about__cta-section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

.page-about__paragraph:last-of-type {
  margin-bottom: 0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-about-text-light);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-about-text-light);
}

.page-about__feature-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--page-about-text-light);
}

.page-about__team-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: var(--page-about-btn-register);
  color: var(--page-about-btn-font-color);
  border: 2px solid var(--page-about-btn-register);
}

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* General image rules to prevent small icons */
.page-about img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-image {
    height: 500px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__description {
    font-size: 1em;
  }
}

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

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    height: 300px;
    min-width: 100% !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-about__content-area,
  .page-about__feature-section,
  .page-about__team-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-about__paragraph {
    font-size: 0.9em;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__feature-icon {
    max-width: 150px;
  }

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

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

  /* Mobile image and container adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__container,
  .page-about__hero-section,
  .page-about__content-area,
  .page-about__feature-section,
  .page-about__team-section,
  .page-about__cta-section,
  .page-about__features-grid,
  .page-about__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}