/* style/about.css */
/* Body background color from shared.css: var(--background) which is #08160F (dark) */
/* Main text color should be light: #F2FFF6 */

.page-about {
  color: var(--text-main, #F2FFF6); /* Default text color for the page content */
  background-color: var(--background, #08160F);
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-about__subtitle {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-about__section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-about__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary, #A7D9B8);
}

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

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

.page-about__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__dark-bg {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-about__light-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
}

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

.page-about__feature-item {
  text-align: center;
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-about__feature-title {
  font-size: 1.3em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--divider, #1E3A2A);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
  background-color: transparent;
}

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

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

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -10px;
  background-color: var(--deep-green, #0A4B2C);
  border: 2px solid var(--glow, #57E38D);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

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

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--glow, #57E38D);
  margin-bottom: 10px;
}

.page-about__timeline-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__image-block {
  margin-top: 60px;
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__image-caption {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  font-style: italic;
}

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

.page-about__faq-section {
  background-color: var(--card-bg, #11271B); /* Darker background for FAQ section */
  padding: 80px 20px;
}

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

.page-about__faq-item {
  background-color: var(--background, #08160F);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow, #57E38D);
}

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficient height to show content */
  transition: max-height 0.5s ease-in;
}

.page-about__faq-answer p {
  margin: 0;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__faq-answer a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-about__cta-bottom {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--deep-green, #0A4B2C) 0%, var(--background, #08160F) 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

  .page-about__hero-image-wrapper {
    height: 450px;
  }

  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

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

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

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    padding-right: 20px;
  }

  .page-about__timeline-item::after {
    left: 14px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

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

  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-about__grid-container,
  .page-about__features-grid,
  .page-about__responsibility-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-about__timeline-item::after {
    left: 14px;
  }

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

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

  .page-about__faq-item,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__cta-bottom {
    padding: 60px 15px;
  }

  .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__hero-content,
  .page-about__image-block,
  .page-about__timeline,
  .page-about__faq-section,
  .page-about__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image-wrapper,
  .page-about__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__card,
  .page-about__feature-item {
    padding: 20px;
  }
}