/* style/about.css */

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

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

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding */
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__main-title {
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive H1 font size */
}

.page-about__hero-content .page-about__description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-about__btn-tertiary {
  background: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-about__btn-tertiary:hover {
  background: #c26505;
  border-color: #c26505;
}

.page-about__btn-inline {
  margin-top: 20px;
  display: inline-block;
}

/* Section backgrounds */
.page-about__dark-bg {
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for readability */
  color: #ffffff;
}

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

.page-about__dark-section {
  background-color: #1a1a1a; /* Darker background for sections */
  color: #ffffff;
  padding: 60px 0;
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 60px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-about__image-block {
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background-color: rgba(38, 169, 224, 0.2);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-about__value-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Products Section */
.page-about__products-section {
  padding: 60px 0;
}

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

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
}

.page-about__product-card:hover {
  transform: translateY(-8px);
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-about__product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  color: #26A9E0;
}

.page-about__product-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-about__product-text {
  font-size: 0.9rem;
  color: #f0f0f0;
  padding: 0 20px 15px 20px;
  flex-grow: 1;
}

.page-about__product-card .page-about__btn-tertiary {
  margin: 0 20px 20px 20px;
  text-align: center;
}

.page-about__cta-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

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

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

.page-about__advantage-item {
  background-color: rgba(38, 169, 224, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #f0f0f0;
}

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

.page-about__advantage-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Responsibility Section */
.page-about__responsibility-section {
  padding: 60px 0;
}

.page-about__responsibility-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Future Section */
.page-about__future-section {
  padding: 60px 0;
}

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

.page-about__future-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #f0f0f0;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

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

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

.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;
  color: #26A9E0;
  background-color: rgba(38, 169, 224, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  border-top: none;
}

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

/* Remove default details marker */
.page-about__faq-item > summary {
  list-style: none;
}

.page-about__faq-item > summary::-webkit-details-marker {
  display: none;
}

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

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-about__hero-content .page-about__description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__container,
  .page-about__introduction-section,
  .page-about__values-section,
  .page-about__products-section,
  .page-about__why-choose-section,
  .page-about__responsibility-section,
  .page-about__future-section,
  .page-about__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__image-block,
  .page-about__hero-image-wrapper,
  .page-about__value-icon,
  .page-about__product-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__value-icon {
    width: 100px !important; /* Keep icon size reasonable on mobile */
    height: 100px !important;
    object-fit: contain !important;
    min-width: unset !important; /* Allow smaller display */
    min-height: unset !important;
    margin: 0 auto 20px auto;
  }

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

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

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