/* style/about.css */

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for assumed light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure consistency with body background */
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit max width for buttons group */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Custom login/register color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* General Container for content sections */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  padding-top: 40px; /* Add some top padding to sections */
}

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-about__mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__mission-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__mission-image {
  width: 100%;
  max-width: 400px; /* Adjusted to be larger than 200px */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-about__mission-heading {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__mission-text {
  color: #555555;
}

/* Why Choose Us Section - Dark Background */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color as background */
  color: #FFFFFF; /* White text for dark background */
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #FFFFFF; /* White title for dark background */
}

.page-about__why-choose-us-section .page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__why-choose-us-section .page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for items */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__why-choose-us-section .page-about__feature-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-about__why-choose-us-section .page-about__feature-text {
  color: #f0f0f0;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-about__value-card {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-image {
  width: 100%;
  max-width: 400px; /* Adjusted to be larger than 200px */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-about__value-heading {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-text {
  color: #555555;
}

/* Contact CTA Section */
.page-about__contact-cta {
  padding: 80px 0;
  background-color: #e0f2f7; /* Lighter shade of primary for CTA background */
  text-align: center;
}

.page-about__contact-cta .page-about__section-title {
  color: #26A9E0;
}

.page-about__contact-cta .page-about__description {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

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

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers responsive for images/content */
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__values-section,
  .page-about__contact-cta,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__mission-item,
  .page-about__feature-item,
  .page-about__value-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

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

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
    padding-top: 20px;
  }

  .page-about__mission-grid,
  .page-about__why-choose-us-section .page-about__feature-list,
  .page-about__values-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

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

  /* No CSS filters for images */
  .page-about img {
    filter: none;
  }
}