/* style/about.css */

/* Base styles for the about page content */
.page-about {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Image above text for desktop */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  background-color: #f5f5f5; /* Light background for the section */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  width: 100%; /* Important for flex item in desktop */
  padding: 0 20px;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  font-size: clamp(1.8em, 4vw, 2.8em); /* Responsive font size */
}

.page-about__hero-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%;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* General Section Styles */
.page-about__section {
  padding: 60px 20px;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

.page-about__text-block {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

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

.page-about__image-block {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
  text-align: center;
}

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

/* Dark Section for "Why Choose Us" */
.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color as background */
  color: #ffffff; /* White text for dark background */
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff; /* White title */
}

.page-about__dark-section .page-about__feature-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__feature-item p {
  color: #f0f0f0; /* Slightly off-white for body text */
}


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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for feature titles in light section */
}

/* Commitment Section specific button */
.page-about__btn-commitment {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-wrapper,
  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Stack image and text vertically */
  }

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

  .page-about__image-block {
    margin-top: 30px; /* Add space when stacked */
  }

  .page-about__features-image-block {
    order: -1; /* Move image above text in why-choose-us section on smaller screens */
    margin-bottom: 30px;
    margin-top: 0;
  }
}

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

  .page-about__hero-section {
    padding: 10px 15px 40px !important; /* Apply mobile padding */
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding-left: 0 !important; /* Reset padding for inner element */
    padding-right: 0 !important; /* Reset padding for inner element */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 300px !important; /* Max width for buttons to look good */
    padding: 12px 20px !important;
    font-size: 0.95em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section {
    padding: 40px 15px !important; /* Apply mobile padding */
  }

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

  .page-about__features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding-left: 15px !important; /* Apply mobile padding */
    padding-right: 15px !important; /* Apply mobile padding */
  }

  /* Image responsive rules for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos */
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Specific override for elements that already have padding or should not have it */
  .page-about__hero-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-about__feature-item {
    padding-left: 30px !important; /* Restore original padding for items */
    padding-right: 30px !important;
  }
}

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