/* style/about.css */

/* Base styles for the About Us page, ensuring text contrast with dark body background */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but for safety in case of override */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  margin-top: 30px;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for subtitles */
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  color: #FFFFFF;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  max-width: 90%;
  margin: 0 auto 15px auto;
}

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

/* CTA Button Styles */
.page-about__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #1e87b8;
  transform: translateY(-2px);
}

/* Content Grid for text and image */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

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

.page-about__text-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__image--centered {
  margin: 40px auto 0 auto;
  max-width: 800px; /* Example max-width for a centered image */
  display: block;
}

/* Core Values Section */
.page-about__core-values-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-about__core-values-section .page-about__section-title,
.page-about__core-values-section .page-about__card-title {
  color: #FFFFFF; /* White titles on brand color background */
}

.page-about__core-values-section .page-about__paragraph {
  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.15); /* Semi-transparent white */
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-card .page-about__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-about__value-card .page-about__card-text {
  font-size: 15px;
  color: #f0f0f0;
}

/* Products & Services Section */
.page-about__products-services-section {
  background-color: #1a1a2e;
}

.page-about__products-services-section .page-about__section-title {
  color: #26A9E0;
}

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

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.08); /* Darker background for product cards */
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__product-card .page-about__card-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__product-card .page-about__card-text {
  font-size: 15px;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__card-link {
  display: inline-block;
  margin-top: 15px;
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__card-link:hover {
  color: #ff9933;
}

/* Light Background Section (for contrast) */
.page-about__light-bg {
  background-color: #f0f0f0;
  color: #333333; /* Dark text for light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
  color: #1a1a2e;
}

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

/* Dark Background Section (for contrast) */
.page-about__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
  color: #26A9E0;
}

.page-about__dark-bg .page-about__paragraph {
  color: #f0f0f0;
}

/* Contact & Support Section */
.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__contact-item {
  font-size: 17px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__contact-item strong {
  color: #26A9E0;
}

/* Conclusion Section */
.page-about__conclusion-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-about__conclusion-section .page-about__section-title {
  color: #FFFFFF;
}

.page-about__conclusion-section .page-about__paragraph {
  color: #f0f0f0;
}

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

  .page-about__content-grid {
    flex-direction: column;
    text-align: center;
  }

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

  .page-about__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 22px;
  }

  .page-about__hero-content {
    padding: 15px;
    margin-top: 15px;
  }

  .page-about__main-title {
    font-size: 28px;
  }

  .page-about__intro-text {
    font-size: 16px;
  }

  .page-about__cta-button {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__content-grid {
    gap: 20px;
  }

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

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__container,
  .page-about__section,
  .page-about__value-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; /* Ensure no overflow */
  }

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

  /* Adjust padding for sections in mobile */
  .page-about__section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-about__hero-content {
    width: calc(100% - 30px) !important; /* Adjust for container padding */
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 24px;
  }

  .page-about__intro-text {
    font-size: 15px;
  }

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