/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default white body background */
  background-color: #ffffff;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding, body handles --header-offset */
  background-color: #f0f0f0; /* Light background for hero section */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__intro-text {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

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

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

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

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

.page-about__section {
  padding: 60px 20px;
  background-color: #ffffff;
}

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

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__card-title {
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__content-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: inherit; /* Inherit color from parent section */
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-about__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-about__feature-card p {
  color: #555555;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-about__product-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-about__dark-section .page-about__product-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-about__dark-section .page-about__product-card p {
  color: #f0f0f0;
}

.page-about__product-image {
  width: 100%;
  height: 250px; /* Fixed height for product images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__product-card .page-about__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-about__product-card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-about__cta-bottom {
  text-align: center;
  padding: 80px 20px;
}

.page-about__cta-bottom .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__cta-bottom p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__text-block, .page-about__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Mobile specific overrides for images, videos, buttons and their containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__cta-buttons,
  .page-about__container,
  .page-about__section,
  .page-about__feature-card,
  .page-about__product-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-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__product-image {
    height: 200px; /* Adjust height for mobile */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__hero-section,
  .page-about__section {
    padding: 40px 15px;
  }
}