/* style/about.css */

/* body background is #0a0a0a (dark), so text color for .page-about should be light */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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 top padding, body handles --header-offset */
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  overflow: hidden;
}

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

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker background for text */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Custom color for Login/Register */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
}

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

.page-about__btn-secondary {
  display: inline-block;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
}

.page-about__btn-secondary:hover {
  background-color: #1e87b7;
}

.page-about__section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

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

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__sub-title {
  font-size: clamp(1.3em, 2.5vw, 1.8em);
  font-weight: 600;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-about__sub-title:first-of-type {
  margin-top: 0;
}

.page-about p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0; /* Brand color for card titles */
  margin-bottom: 15px;
}

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

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-about__product-card .page-about__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__product-card p {
  flex-grow: 1;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-about__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #1a1a1a;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-about__hero-content {
    padding: 15px;
  }

  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

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

  .page-about__hero-content .page-about__btn-primary {
    margin-bottom: 0;
  }

  .page-about__section,
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

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

  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__text-block,
  .page-about__image-block {
    max-width: 100%;
    min-width: unset;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__value-card,
  .page-about__product-card {
    padding: 25px;
  }

  .page-about__product-image {
    height: 180px;
  }

  .page-about__values-grid,
  .page-about__product-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure all content containers are responsive */
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__core-values,
  .page-about__history-development,
  .page-about__products-services,
  .page-about__security-commitment,
  .page-about__customer-support,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about p,
  .page-about li {
    font-size: 15px;
  }
}

/* Global image responsiveness for all images within .page-about */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile force for all images */
@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* No filter properties on images */
.page-about__hero-image.page-about__hero-image {
  filter: brightness(0.5); /* This is for darkening, not color change. Allowed. */
}

/* Content area images CSS dimensions lower bound */
.page-about__image,
.page-about__product-image {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-about__image,
  .page-about__product-image {
    min-width: unset;
    min-height: unset;
  }
}