/* style/about.css */

:root {
  --color-primary: #FF8C1A;
  --color-secondary: #FFA53A;
  --color-background: #0D0E12;
  --color-card-bg: #17191F;
  --color-text-main: #FFF3E6;
  --color-border: #A84F0C;
  --color-glow: #FFB04D;
  --color-deep-orange: #D96800;
}

.page-about {
  font-family: Arial, sans-serif;
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-background);
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for image-above-text */
  align-items: center;
  padding: 10px 20px 40px;
  background-color: var(--color-card-bg);
  gap: 30px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
}

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

.page-about__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--color-text-main);
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  transform: translateY(-2px);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-about__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-about__text-block {
  font-size: 1.1em;
  color: var(--color-text-main);
  text-align: justify;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: var(--color-text-main);
  transition: transform 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--color-secondary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 1em;
  color: var(--color-text-main);
}

.page-about__mission-vision-section .page-about__content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.page-about__mission-vision-section .page-about__card {
  flex: 1;
  min-width: 300px;
  max-width: 48%;
}

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

.page-about__feature-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-3px);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__feature-description {
  font-size: 0.95em;
  color: var(--color-text-main);
}

.page-about__grid-image {
  grid-column: span 2;
  max-width: 100%;
  height: auto;
}

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

.page-about__product-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-about__product-title {
  font-size: 1.4em;
  color: var(--color-secondary);
  margin: 15px 10px 10px;
  font-weight: 600;
}

.page-about__product-description {
  font-size: 0.9em;
  color: var(--color-text-main);
  padding: 0 15px 20px;
}

.page-about__team-section .page-about__content-wrapper {
  flex-direction: row;
  align-items: center;
}

.page-about__team-section .page-about__image-content {
  flex: 0 0 40%;
  margin-right: 30px;
  max-width: 40%;
}

.page-about__team-section .page-about__text-block {
  flex: 1;
}

.page-about__faq-section {
  padding-bottom: 80px;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--color-text-main);
}

.page-about__contact-cta-section {
  text-align: center;
}

.page-about__contact-cta-section .page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
}

/* --- Responsive Styles --- */

/* General mobile rules for images and containers */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__section {
    padding: 30px 15px;
  }

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

  /* Hero Section */
  .page-about__hero-section {
    padding: 10px 15px 30px;
    gap: 20px;
  }

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

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

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

  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image is fully visible */
  }

  /* General image and container rules for mobile */
  .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__content-wrapper,
  .page-about__feature-item,
  .page-about__product-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Prevent horizontal scroll */
  }

  /* Mission & Vision Section */
  .page-about__mission-vision-section .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__mission-vision-section .page-about__card {
    max-width: 100%;
    min-width: unset;
  }

  /* Why Choose Section */
  .page-about__why-choose-section .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__grid-image {
    grid-column: span 1; /* Reset span for mobile */
  }

  /* Products & Services Section */
  .page-about__products-services-section .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__product-image {
    height: 180px; /* Adjust height for mobile */
  }

  /* Team Section */
  .page-about__team-section .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__team-section .page-about__image-content {
    max-width: 100%;
    margin-right: 0;
    flex: none;
  }

  /* FAQ Section */
  .page-about__faq-list {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Contact CTA Section */
  .page-about__contact-cta-section .page-about__text-block {
    padding: 0 15px;
  }
}