/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: #22C768; /* Auxiliary color */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__hero-image {
  width: 100%;
  height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #11271B; /* Card B G */
}

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

.page-about__feature-card {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__card-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-about__value-item {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #1E3A2A; /* Divider */
}

.page-about__value-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: #11271B; /* Card B G */
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #2E7A4E; /* Border */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
  left: 0;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E;
  top: 28px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -10px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-year {
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-about__timeline-title {
  font-size: 1.3rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__timeline-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B;
  list-style: none; /* Remove default marker for <summary> */
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #11271B; /* Card B G */
  text-align: center;
}

.page-about__cta-button--large {
  font-size: 1.2rem;
  padding: 18px 35px;
  margin-right: 15px;
}

.page-about__cta-button--secondary {
  background: none;
  border: 2px solid #2AD16F;
  color: #2AD16F;
  box-shadow: none;
}

.page-about__cta-button--secondary:hover {
  background: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

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

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd) {
    padding-right: 20px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd)::after {
    left: 10px;
    right: auto;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item:nth-child(even)::after {
    left: 10px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__hero-image {
    height: 400px;
    margin-bottom: 20px;
  }

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

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

  .page-about__cta-button,
  .page-about__cta-button--large,
  .page-about__cta-button--secondary {
    display: block;
    width: 100% !important;
    margin: 10px auto !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__cta-button--large {
    margin-right: auto !important;
  }

  /* Image responsive adaptations */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__feature-icon {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section .page-about__container,
  .page-about__why-choose-us-section .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__history-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd)::after,
  .page-about__timeline-item:nth-child(even)::after {
    left: 10px;
  }

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

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

/* Ensure content area images are not smaller than 200px */
.page-about img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for small feature icons if they exist and are smaller than 200px */
/* This block ensures any smaller images in content areas are scaled up */
.page-about__feature-icon {
  width: auto; /* Allow natural width */
  height: auto; /* Allow natural height */
  max-width: 100%; /* Ensure it fits container */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: contain; /* Adjust as needed */
}