/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

.page-about__section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-about__card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-about .highlight {
  color: var(--gold);
  font-weight: bold;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-about__hero-content-wrapper {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, but not text on image */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--background) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding-top: 100px;
}

.page-about__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-about__btn-secondary:hover {
  background: var(--deep-green);
  color: var(--text-main);
  border-color: var(--deep-green);
  box-shadow: 0 5px 15px rgba(30, 58, 42, 0.4);
}

/* Mission Section */
.page-about__mission-section {
  padding: 60px 0;
  background-color: var(--background);
  text-align: center;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background-color: var(--card-bg);
  color: var(--text-main);
  text-align: center;
}

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

.page-about__feature-card {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-about__feature-card .page-about__card-title {
  color: var(--gold);
}

.page-about__feature-card .page-about__card-text {
  color: var(--text-secondary);
}

.page-about__image-full-width {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 60px;
  border-radius: 10px;
}

/* Products Section */
.page-about__products-section {
  padding: 80px 0;
  background-color: var(--background);
  text-align: center;
}

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

.page-about__product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
}

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

.page-about__product-card .page-about__card-title {
  padding: 20px 20px 0;
  font-size: 1.3rem;
}

.page-about__product-card .page-about__card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-about__product-card .page-about__card-title a:hover {
  color: var(--gold);
}

.page-about__product-card .page-about__card-text {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: var(--background);
  text-align: center;
}

.page-about__commitment-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--card-bg);
  color: var(--text-main);
  text-align: center;
}

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

.page-about__team-member {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--gold);
}

.page-about__member-name {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Future Section */
.page-about__future-section {
  padding: 80px 0;
  background-color: var(--background);
  text-align: center;
}

.page-about__future-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--background);
}

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

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border);
}

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

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content-wrapper {
    margin-top: -100px;
    padding-top: 80px;
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px !important;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content-wrapper {
    margin-top: -80px;
    padding: 30px 15px;
    padding-top: 60px;
  }

  .page-about__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 25px;
  }

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

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

  .page-about__mission-section,
  .page-about__why-choose-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-about__text-block,
  .page-about__card-text,
  .page-about__member-bio,
  .page-about__faq-answer p {
    font-size: 0.9rem;
  }

  .page-about__features-grid,
  .page-about__product-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__product-card .page-about__card-title {
    font-size: 1.2rem;
  }

  .page-about__team-avatar {
    width: 120px;
    height: 120px;
  }

  .page-about__member-name {
    font-size: 1.2rem;
  }

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

  .page-about__faq-toggle {
    font-size: 1.2rem;
  }

  /* Mobile image and video responsive adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__why-choose-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content-wrapper,
  .page-about__cta-buttons,
  .page-about__features-grid,
  .page-about__product-grid,
  .page-about__team-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-about__container */
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}