/* style/about.css */

/* General styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for content area if body is white */
}

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

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

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

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

.page-about__main-title {
  font-size: 2.8em; /* Adjusted to be large but not fixed huge */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.1);
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.15em;
}

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

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

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

/* Our Story Section */
.page-about__our-story-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.page-about__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

/* Mission & Vision Section (Dark background) */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand main color for dark section */
  color: #ffffff; /* White text for dark background */
}

.page-about__mission-vision-section .page-about__section-title {
  color: #ffffff; /* White title for dark background */
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* White text for cards */
}

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

.page-about__card p {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.7;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-about__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-about__feature-icon {
  width: 120px; /* Display size, actual image will be larger */
  height: 120px; 
  object-fit: contain; 
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum content image size */
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 0.95em;
  color: #555555;
}

/* CTA Section (Dark background) */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand main color */
  color: #ffffff;
  text-align: center;
}

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-description {
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em); /* Use clamp for H1 */
    margin-bottom: 15px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 20px;
  }

  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__our-story-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__cta-section {
    padding: 60px 0;
  }

  /* All images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive */
  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure feature icons are not small on mobile */
  .page-about__feature-icon {
      width: 100% !important; /* Take full width of its container for responsive sizing */
      height: auto !important;
      max-width: 250px !important; /* Cap its max display size */
      min-width: 200px !important; /* Enforce minimum content image size */
      min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__btn-large {
    padding: 15px 30px;
    font-size: 1em;
  }
}