/* style/about.css */

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

/* Ensure the first content section has enough padding-top for fixed header */
.page-about__intro-section {
  padding-top: 120px; /* Desktop */
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  background: var(--dark-bg-1);
  color: #ffffff;
}

.page-about__dark-bg {
  background: var(--dark-bg-1);
  color: #ffffff; /* Light text for dark background */
}

.page-about__light-bg {
  background: #f9f9f9;
  color: #333333; /* Dark text for light background */
}

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

.page-about__main-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #CC0000; /* Primary color for section titles */
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for better readability on dark bg */
}

.page-about__intro-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Vision and Mission Section */
.page-about__vision-mission-section {
  padding: 80px 20px;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for card on dark background */
}

.page-about__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700; /* Auxiliary color for card titles */
}

.page-about__card-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 20px;
}

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

.page-about__feature-card {
  background: #ffffff; /* White background for features */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light background */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #CC0000; /* Primary color for feature titles */
}

.page-about__feature-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__btn-primary {
  display: inline-block;
  background: #CC0000;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #CC0000;
  margin-top: auto; /* Push button to bottom */
}

.page-about__btn-primary:hover {
  background: #a30000;
  transform: translateY(-2px);
}

/* Journey Section */
.page-about__journey-section {
  padding: 80px 20px;
}

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

.page-about__step-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-about__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #CC0000;
}

.page-about__step-text {
  font-size: 15px;
  color: #555555;
}

.page-about__journey-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Products Section */
.page-about__products-section {
  padding: 80px 20px;
}

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

.page-about__product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-about__product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #CC0000;
}

.page-about__product-text {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #CC0000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #CC0000;
  margin-top: auto; /* Push button to bottom */
}

.page-about__btn-secondary:hover {
  background: #CC0000;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 20px;
}

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

.page-about__commitment-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__commitment-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-about__commitment-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-about__commitment-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Contact Section */
.page-about__contact-section {
  padding: 80px 20px;
}

.page-about__contact-info {
  margin-top: 40px;
  text-align: center;
  font-size: 18px;
  color: #f0f0f0;
}

.page-about__contact-info p {
  margin-bottom: 15px;
}

.page-about__contact-link {
  color: #FFD700; /* Auxiliary color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__contact-link:hover {
  color: #CC0000;
  text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 20px;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* White background for FAQ item */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #CC0000; /* Primary color for FAQ question background */
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #ffffff; /* Light text for dark background */
}

.page-about__faq-question:hover {
  background: #a30000;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #333333; /* Dark text for light background */
  border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-about__faq-answer .page-about__btn-primary {
  margin-top: 10px;
}

/* Image wrapper for responsiveness */
.page-about__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

  .page-about__section-title {
    font-size: 32px;
  }

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

  .page-about__card-image {
    height: 220px;
  }

  .page-about__product-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-about__intro-section {
    padding-top: 100px; /* Mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__main-title {
    font-size: 32px;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

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

  .page-about__intro-image {
    margin-top: 30px;
  }

  .page-about__vision-mission-section,
  .page-about__why-choose-section,
  .page-about__journey-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__contact-section,
  .page-about__faq-section {
    padding: 50px 15px;
  }

  .page-about__grid-layout,
  .page-about__features-grid,
  .page-about__journey-steps,
  .page-about__product-grid,
  .page-about__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__feature-card,
  .page-about__step-item,
  .page-about__product-card,
  .page-about__commitment-item {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__step-title,
  .page-about__product-title,
  .page-about__commitment-title {
    font-size: 20px;
  }

  .page-about__card-text,
  .page-about__feature-text,
  .page-about__step-text,
  .page-about__product-text,
  .page-about__commitment-text {
    font-size: 15px;
  }

  .page-about__card-image {
    height: 200px;
  }

  .page-about__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-about__journey-image {
    margin-top: 40px;
  }

  .page-about__product-image {
    height: 160px;
  }

  .page-about__contact-info {
    font-size: 16px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-about__faq-answer {
    padding: 0 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  .page-about__faq-answer p {
    font-size: 15px;
  }

  /* Ensure all images are responsive on mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper,
  .page-about__intro-section,
  .page-about__vision-mission-section,
  .page-about__why-choose-section,
  .page-about__journey-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__contact-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}