/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for main content areas */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-about__hero-section,
.page-about__introduction-section,
.page-about__history-section,
.page-about__values-section,
.page-about__team-section,
.page-about__products-section,
.page-about__commitment-section,
.page-about__why-choose-us-section,
.page-about__faq-section,
.page-about__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Specific background and text colors based on body background */
.page-about__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for better text readability on top if needed, but text is below */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 40px; /* Spacing below the image */
  padding: 0 20px;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-about__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Headings */
.page-about__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-about__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Text Blocks */
.page-about__text-block {
  text-align: left;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Default text color for light-bg sections */
}

.page-about__light-bg .page-about__text-block p {
  color: #f0f0f0; /* Ensure light text on light-bg (which is still dark) */
}

/* Image Blocks */
.page-about__image-block {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow on small screens */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

.page-about__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Grid Layouts */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__content-grid--reverse .page-about__image-block {
  order: 2;
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 1;
}

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

/* Card Styling */
.page-about__value-card,
.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #f0f0f0;
  height: 100%; /* Ensure cards have equal height */
}

.page-about__value-card .page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
  min-width: 200px; /* Minimum image size */
}

.page-about__card-title,
.page-about__product-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-about__product-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-about__value-card p,
.page-about__product-card p {
  font-size: 1rem;
  color: #cccccc;
}

/* Why Choose Us List */
.page-about__why-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__why-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #f0f0f0;
}

.page-about__why-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-about__why-item p {
  font-size: 0.95rem;
  color: #cccccc;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #26A9E0; /* Question text color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details summary in Webkit */
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.5;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #cccccc;
}

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__content-grid--reverse .page-about__image-block {
    order: 1; /* Reset order for smaller screens */
  }

  .page-about__content-grid--reverse .page-about__text-block {
    order: 2; /* Reset order for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__team-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section,
  .page-about__conclusion-section {
    padding: 40px 0;
  }

  .page-about__hero-content {
    margin-top: 20px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-about__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-about__image-block,
  .page-about__hero-image-wrapper,
  .page-about__value-card,
  .page-about__product-card,
  .page-about__why-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__value-card .page-about__card-image {
    min-width: unset; /* Remove min-width for mobile cards */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
}

/* Color contrast fixes based on #0a0a0a body background */
/* All text is already light on dark backgrounds. No specific 'contrast-fix' classes needed if base colors are set correctly. */
/* The "light-bg" sections are actually a slightly lighter dark, so text should still be light. */
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__section-description,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg .page-about__product-title a,
.page-about__light-bg .page-about__why-title {
  color: #26A9E0; /* Keep brand color for titles */
}

.page-about__light-bg .page-about__value-card,
.page-about__light-bg .page-about__product-card,
.page-about__light-bg .page-about__why-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
}

.page-about__light-bg .page-about__value-card p,
.page-about__light-bg .page-about__product-card p,
.page-about__light-bg .page-about__why-item p {
  color: #cccccc; /* Light text on slightly darker background */
}

.page-about__light-bg .page-about__text-block p {
  color: #f0f0f0; /* Light text on slightly darker background */
}

/* Login button color from custom palette */
.page-about__btn-primary.login-btn {
  background-color: #EA7C07;
  border-color: #EA7C07;
  color: #ffffff;
}
.page-about__btn-primary.login-btn:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}