/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Inherit from body or default to white */
}

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

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

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

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

.page-about__text-block p {
  margin-bottom: 1em;
  font-size: 1.1em;
  line-height: 1.7;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center; /* Center content horizontally */
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 40px; /* Add some padding below the content */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure a background for the section */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit height for large images */
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-about__hero-content {
  width: 100%; /* Take full width within its container */
  max-width: 1000px; /* Limit content width */
  padding: 40px 20px;
  text-align: center;
  background: #FFFFFF; /* Solid white background for content */
  z-index: 2; /* Bring content slightly forward */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-top: 20px; /* Explicit positive margin to separate from image */
}

.page-about__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* clamp for H1 as per rule */
  color: #26A9E0;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* CTA Buttons */
.page-about__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

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

.page-about__btn-primary:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc2;
  border-color: #1a8cc2;
}

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

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

.page-about__text-block {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Dark Section for contrast */
.page-about__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__section-description,
.page-about__dark-section .page-about__text-block p {
  color: #FFFFFF; /* Force white text for dark background */
}

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

.page-about__product-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for product images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-about__product-card p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-about__product-card .page-about__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
  width: calc(100% - 30px); /* Adjust width for padding */
}

.page-about__text-center {
  text-align: center;
}

.page-about__description-lg {
  font-size: 1.3em;
  color: #333333;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}