/* style/about.css */

/* Body background from shared.css is #08160F (dark), so default text color should be light */
.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;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for decoration */
  background-color: #08160F;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  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-wrapper {
  max-width: 800px;
  padding: 0 20px;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  /* No fixed font-size, rely on responsive scaling */
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
}

.page-about__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-about__mission-vision-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__future-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-about__dark-section {
  background-color: #11271B; /* Card B G */
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__intro-text {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.page-about__subtitle {
  font-size: 1.75rem;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__text-block {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__image-centered {
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts */
.page-about__grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

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

/* Card Styles */
.page-about__value-card,
.page-about__offering-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__value-card:hover,
.page-about__offering-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-about__card-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__card-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-about__card-title a:hover {
  color: #2AD16F;
  text-decoration: underline;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: #A7D9B8;
}

.page-about__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Timeline Styles */
.page-about__timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 60px auto;
  padding: 40px 0;
}

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

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

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

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

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #2AD16F; /* Button color for highlight */
  border: 4px solid #13994A; /* Darker button color */
  top: 15px;
  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.5rem;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1rem;
  color: #A7D9B8;
}

/* Feature Items */
.page-about__feature-item,
.page-about__responsible-item,
.page-about__future-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__feature-title,
.page-about__responsible-title,
.page-about__future-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-description,
.page-about__responsible-description,
.page-about__future-description {
  font-size: 1rem;
  color: #A7D9B8;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff; /* Ensure contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
}

.page-about__text-link {
  color: #2AD16F;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: #13994A;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

.page-about__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #11271B; /* Card B G */
  border-bottom: 1px solid #2E7A4E;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  background-color: #0A4B2C;
  border-top: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__grid-row {
    grid-template-columns: 1fr;
  }
  .page-about__timeline::before {
    left: 20px;
  }
  .page-about__timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .page-about__timeline-item::after {
    left: 10px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-about__hero-description,
  .page-about__intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .page-about__subtitle,
  .page-about__card-title,
  .page-about__feature-title,
  .page-about__responsible-title,
  .page-about__future-title {
    font-size: 1.2rem;
  }
  .page-about__text-block,
  .page-about__card-text,
  .page-about__timeline-description,
  .page-about__feature-description,
  .page-about__responsible-description,
  .page-about__future-description,
  .page-about__faq-answer p {
    font-size: 0.9rem;
  }

  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__commitment-section,
  .page-about__future-section,
  .page-about__cta-section,
  .page-about__dark-section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px; /* Add horizontal padding for mobile */
  }

  /* Force responsive for all images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all videos */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video/Image/Button containers mobile adaptation */
  .page-about__hero-image-wrapper,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Force responsive for all buttons */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Full width for single buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Spacing between stacked buttons */
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px; /* Space between stacked buttons */
  }

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

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