/* style/about.css */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__dark-section {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast, but still dark */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-about__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on right for desktop, text above image for mobile */
  background-color: #017439; /* Use brand primary color for hero */
}

.page-about__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-about__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-about__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__subsection-title {
  color: #017439;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-about__light-bg .page-about__section-description {
  color: #555555;
}

.page-about__intro-video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #017439;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 30px;
}

.page-about__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.page-about__mission-vision-section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.page-about__subsection-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.page-about__values-section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__value-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__value-card p {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-about__history-section {
  padding: 60px 20px;
}

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

.page-about__timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #017439;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: #017439;
  border: 4px solid #ffffff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

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

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

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

.page-about__timeline-year {
  position: absolute;
  top: 15px;
  z-index: 2;
  background-color: #017439;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
  right: -25px; /* Adjust for better alignment */
  transform: translateX(100%);
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-year {
  left: -25px; /* Adjust for better alignment */
  transform: translateX(-100%);
}

.page-about__timeline-content {
  padding: 20px 30px;
  background-color: #f5f5f5;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #333333;
}

.page-about__timeline-content::before {
  content: '';
  position: absolute;
  top: 22px;
  width: 0;
  height: 0;
  border: medium solid #f5f5f5;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f5f5f5 transparent transparent;
  right: 30px;
  left: auto;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-content::before {
  left: 30px;
  right: auto;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f5f5f5;
}

.page-about__timeline-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #017439;
}

.page-about__advantages-section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-about__advantage-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__advantage-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__advantage-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__advantage-card p {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-about__cta-bottom {
  margin-top: 50px;
}

.page-about__responsibility-section {
  padding: 60px 20px;
}

.page-about__responsibility-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__responsibility-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.page-about__responsibility-text {
  flex: 2;
  min-width: 300px;
}

.page-about__responsibility-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-about__responsibility-text .page-about__btn-secondary {
  color: #017439;
  border-color: #017439;
}

.page-about__responsibility-text .page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-about__team-section {
  padding: 60px 20px;
  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: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__team-image {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__member-name {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: #ffffff;
}

.page-about__member-title {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__member-description {
  font-size: 0.9em;
  color: #cccccc;
}

.page-about__future-section {
  padding: 60px 20px;
}

.page-about__future-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap-reverse;
}

.page-about__future-text {
  flex: 2;
  min-width: 300px;
}

.page-about__future-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-about__future-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.page-about__faq-section {
  padding: 60px 20px;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.0em;
  color: #cccccc;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-about__hero-content,
  .page-about__hero-image-wrapper {
    max-width: 100%;
  }

  .page-about__hero-buttons {
    justify-content: center;
  }

  .page-about__future-content,
  .page-about__responsibility-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-about__future-image,
  .page-about__responsibility-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description,
  .page-about__section-description {
    font-size: 1em;
  }

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

  .page-about__subsection-title {
    font-size: 1.5em;
  }

  .page-about__timeline::after {
    left: 31px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .page-about__timeline-item::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

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

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

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year,
  .page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    left: 70px;
    transform: translateX(0);
  }

  .page-about__timeline-content::before {
    left: 30px;
    right: auto;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f5f5f5;
  }

  .page-about__timeline-item:nth-child(even) .page-about__timeline-content::before {
    left: 30px;
    right: auto;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f5f5f5;
  }

  /* Mobile responsive for images, videos, buttons */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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,
  .page-about__section,
  .page-about__card,
  .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: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__intro-video-section {
    padding-top: var(--header-offset, 120px) !important; /* Important for video section */
  }

  .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__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}