/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Ensure consistency with body background */
}

.page-about__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #A7D9B8; /* Secondary text color */
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green for hero background */
  padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover to fill, but will be 'contain' on mobile */
  max-width: 1920px; /* Max width for the image */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 30px 20px 0;
  max-width: 900px;
  margin-top: -100px; /* Overlap with image slightly for visual flow */
  background-color: #0A4B2C; /* Deep Green for content background */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding-bottom: 30px;
}

.page-about__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.15em;
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* CTA Button */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #2E7A4E; /* Border color */
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Light glow background on hover */
  color: #F2FFF6;
  border-color: #57E38D;
}

/* Content Sections */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

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

.page-about__text-block {
  flex: 1;
  padding: 20px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Secondary text color */
}

.page-about__text-block p:last-child {
  margin-bottom: 0;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element for max-width/height auto */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-about__advantage-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-about__advantage-card:hover {
  transform: translateY(-5px);
}

.page-about__card-image {
  width: 100%;
  max-width: 400px; /* Max width for card images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-about__card-description {
  font-size: 1em;
  color: #A7D9B8;
}

/* Dark Section (for CTA at the end) */
.page-about__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 20px;
  border-radius: 15px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__dark-section .page-about__section-title {
  color: #F2FFF6;
}

.page-about__dark-section .page-about__description {
  color: #A7D9B8;
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure button group takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
    padding: 25px 15px 25px;
  }

  .page-about__section-title {
    font-size: 2em;
  }

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

  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Keep column for reverse on tablet too */
  }

  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }

  .page-about__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

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

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

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

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

  .page-about__description {
    font-size: 1em;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, override if any */
    padding-bottom: 30px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px; /* Adjust height for mobile */
  }

  .page-about__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-about__hero-content {
    margin-top: -60px; /* Less overlap on mobile */
    padding: 20px 15px 20px;
    border-radius: 8px;
  }

  .page-about__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* More aggressive clamp for mobile */
    margin-bottom: 10px;
  }

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

  /* Images and containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    min-width: 200px;
    min-height: 200px;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Content Sections */
  .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Ensure column stack for reverse on mobile */
  }

  .page-about__text-block {
    padding: 15px;
  }

  /* Advantages Grid */
  .page-about__advantages-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .page-about__advantage-card {
    padding: 20px;
  }

  /* Buttons and Button Groups */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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;
    margin-left: 0 !important; /* Remove margin for secondary button */
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .page-about__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Dark Section */
  .page-about__dark-section {
    padding: 40px 15px;
  }
}