/* style/about.css */

/* General page styling */
.page-about {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #F5F7FA; /* Page background color */
}

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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E53935; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-about__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333333; /* Main text color */
  text-align: justify;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size using clamp */
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-about__btn-link {
  background: transparent;
  color: #E53935;
  border: 1px solid #E53935;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
}

.page-about__btn-link:hover {
  background: #E53935;
  color: #ffffff;
}


/* Dark Background Section */
.page-about__dark-bg {
  background-color: #E53935; /* Main brand color */
  color: #ffffff; /* White text for contrast */
}

.page-about__dark-bg .page-about__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-about__dark-bg .page-about__text-block {
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* Light Background Section */
.page-about__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
}

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

.page-about__history-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: #333333;
}

.page-about__history-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__history-title {
  font-size: 24px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-about__history-description {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

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

.page-about__service-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

.page-about__service-image {
  width: 100%;
  height: 180px; /* Fixed height for service images */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__service-title {
  font-size: 22px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-about__service-title a {
  color: #E53935;
  text-decoration: none;
}

.page-about__service-title a:hover {
  text-decoration: underline;
}

.page-about__service-description {
  font-size: 15px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Commitment Section */
.page-about__commitment-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__commitment-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__commitment-text {
  flex: 1;
  color: #333333;
}

.page-about__commitment-text .page-about__btn-primary {
  margin-top: 20px;
}

/* Team Section */
.page-about__team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__team-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  color: #333333;
}

.page-about__team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #E53935;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-about__team-name {
  font-size: 22px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 5px;
}

.page-about__team-position {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__team-bio {
  font-size: 14px;
  color: #777777;
  line-height: 1.5;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-about__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

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

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

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

  .page-about__commitment-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__commitment-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__text-block {
    font-size: 15px;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-about__description {
    font-size: 16px;
  }

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

  /* Force responsive for images, videos, and containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__history-item,
  .page-about__service-card,
  .page-about__team-card,
  .page-about__feature-item,
  .page-about__hero-image-wrapper,
  .page-about__commitment-content,
  .page-about__commitment-image,
  .page-about__cta-buttons,
  .page-about__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-about__team-photo {
    width: 200px !important; /* Enforce min-size for mobile too */
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-image-wrapper {
    max-height: 250px;
  }

  .page-about__main-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .page-about__cta-buttons {
    flex-direction: column;
  }
}