/* style/about.css */

/* Body background is dark from shared.css, so main text in sections should be dark on light background or light on dark background */

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light sections */
}

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-about__btn-link {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-about__btn-link:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

/* Sections */
.page-about__introduction-section,
.page-about__values-section,
.page-about__products-section,
.page-about__team-culture-section,
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__mission-vision-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__contact-future-section {
  padding: 60px 0;
  color: #ffffff; /* Text color for dark sections */
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #000000; /* Body background color */
  color: #ffffff;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section */
}

.page-about__subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Mission & Vision Grid */
.page-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-about__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-about__grid-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__grid-item .page-about__image {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-about__grid-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-about__values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-about__values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.page-about__value-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* History Section */
.page-about__history-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__history-content .page-about__image {
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-about__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-about__list li strong {
  color: #26A9E0;
}

/* Products Section */
.page-about__products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-about__products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-about__products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-about__product-card {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-about__product-card .page-about__image {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-about__product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

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

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

/* Commitment Section */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .page-about__commitment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-about__commitment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-about__commitment-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Contact & Future Section */
.page-about__contact-info,
.page-about__future-vision {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__contact-info .page-about__list {
  list-style-type: none;
  padding: 0;
}

.page-about__contact-info .page-about__list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-about__contact-info .page-about__list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-about__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #dcdcdc;
  color: #333333;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  background-color: #ffffff;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

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

  .page-about__main-title {
    font-size: 2rem;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__section-title {
    font-size: 1.8rem;
  }

  .page-about__subtitle {
    font-size: 1.2rem;
  }

  .page-about__text-block {
    font-size: 0.95rem;
  }

  .page-about__introduction-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__team-culture-section,
  .page-about__contact-future-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__grid-item,
  .page-about__value-card,
  .page-about__product-card,
  .page-about__commitment-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__faq-question {
    font-size: 1rem;
  }

  .page-about__faq-answer {
    font-size: 0.95rem;
  }
}