/* style/about.css */

/* --- General Styling for page-about --- */
.page-about {
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--background-color); /* Deep Green */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section {
  padding: 80px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__description-text,
.page-about p,
.page-about li {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit height for hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-about__btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-about__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--deep-green);
}

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

.page-about__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

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

.page-about__image {
  flex: 1;
  min-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block; /* Ensure image behaves as a block element */
}

.page-about__image--left {
  margin-right: 20px;
}

.page-about__image--right {
  margin-left: 20px;
}

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

/* --- Core Values Grid --- */
.page-about__core-values .page-about__section-title {
  margin-bottom: 60px;
}

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

.page-about__value-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-about__advantage-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__item-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

/* --- Commitment Grid --- */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__commitment-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Contact Us Section --- */
.page-about__contact-us {
  padding-bottom: 80px;
}

.page-about__contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
}

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

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

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    max-height: 400px;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-about__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-about__image--left,
  .page-about__image--right {
    margin: 0;
  }

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

  .page-about__container,
  .page-about__hero-content,
  .page-about__content-grid,
  .page-about__advantages-list,
  .page-about__commitment-grid,
  .page-about__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__value-card,
  .page-about__advantage-item,
  .page-about__commitment-item {
    padding: 20px;
  }

  .page-about__contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

/* Ensure images in content areas are not too small */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__content-area img,
.page-about__mission-vision img,
.page-about__history img,
.page-about__why-choose-us img,
.page-about__future-vision img {
  min-width: 200px;
  min-height: 200px;
  /* Other styles will ensure responsive scaling */
}