/* style/about.css */

/* Base styles */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #f0f8ff; /* Light background for hero */
  color: #333333;
  text-align: center;
}

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

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

.page-about__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal, but text is below */
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1; /* Ensure content is above image if any overlap occurs */
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

/* General Section Styles */
.page-about__section {
  padding: 80px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 40px;
}

.page-about__section-description {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

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

.page-about__text-block p {
  margin-bottom: 15px;
  color: #333333;
}

.page-about__image-block {
  flex: 1;
  min-width: 0;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-about__image--center {
  margin: 40px auto 0 auto;
  max-width: 800px;
}

/* Dark Section */
.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block p,
.page-about__dark-section .page-about__section-description {
  color: #ffffff;
}

/* Core Values Grid */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__value-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-about__value-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 0.95rem;
  color: #555555;
}

/* Features Grid (Why Choose) */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  transition: background-color 0.3s ease;
}

.page-about__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about__feature-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

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

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

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

  .page-about__image--center {
    max-width: 100%;
  }
}

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

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

  .page-about__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

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

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-about__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__content-wrapper,
  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__value-card,
  .page-about__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-about__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

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

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

/* Ensure no image filters */
.page-about img {
  filter: none !important;
}