/* style/about.css */

/* Custom Colors */
:root {
  --page-about-primary-color: #11A84E;
  --page-about-secondary-color: #22C768;
  --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-about-card-bg: #11271B;
  --page-about-background: #08160F;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border: #2E7A4E;
  --page-about-glow: #57E38D;
  --page-about-gold: #F2C14E;
  --page-about-divider: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-text-main); /* Default text color for the page */
  background-color: var(--page-about-background); /* Default background color for the page */
}

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

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

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-about-text-main);
  margin-bottom: 20px;
  max-width: 100%;
  /* No fixed font-size for H1, relying on responsive adjustments */
}

.page-about__intro-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--page-about-text-secondary);
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: var(--page-about-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

/* General Section Styles */
.page-about__section {
  padding: 80px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-about-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 1.1em;
  color: var(--page-about-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Color Contrast Handling */
.page-about__dark-section {
  background-color: var(--page-about-background);
  color: var(--page-about-text-main);
}

.page-about__light-bg {
  background-color: #ffffff; /* Using white for light background for better contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg .page-about__value-title,
.page-about__light-bg .page-about__feature-title {
  color: #000000; /* Ensure black for titles on light background */
}

.page-about__light-bg .page-about__section-description,
.page-about__light-bg .page-about__card p,
.page-about__light-bg .page-about__value-item p,
.page-about__light-bg .page-about__feature-item p {
  color: #333333; /* Ensure dark grey for text on light background */
}


/* Mission & Vision Section */
.page-about__mission-vision .page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background: var(--page-about-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border);
  color: var(--page-about-text-main);
}

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

.page-about__card-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-about-text-main);
  margin-bottom: 15px;
}

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

/* History Section */
.page-about__history {
  text-align: center;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 50px;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--page-about-divider);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px;
  text-align: left;
  margin-bottom: 40px;
}

.page-about__timeline-item:nth-child(odd) {
  left: -25%; /* Adjust to center the line */
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 25%; /* Adjust to center the line */
  text-align: left;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 12px;
  height: 12px;
  background: var(--page-about-primary-color);
  border-radius: 50%;
  border: 2px solid var(--page-about-text-main);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -8%; /* Position dot relative to content */
  left: auto;
}

.page-about__timeline-item:nth-child(even)::before {
  left: -8%; /* Position dot relative to content */
  right: auto;
}

.page-about__timeline-year {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-about-primary-color);
  margin-bottom: 5px;
}

.page-about__timeline-event {
  font-size: 1em;
  color: var(--page-about-text-secondary);
  line-height: 1.5;
}

.page-about__history-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Core Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background: var(--page-about-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--page-about-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--page-about-text-main);
}

.page-about__value-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
}

.page-about__value-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-about-text-secondary);
}

/* Why Choose Us Section */
.page-about__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  background: var(--page-about-card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--page-about-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--page-about-text-main);
}

.page-about__feature-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-about-text-secondary);
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 100px 0;
}

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

.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-about-primary-color);
  cursor: pointer;
  background: var(--page-about-deep-green);
  border-bottom: 1px solid var(--page-about-border);
  transition: background 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
  background: var(--page-about-primary-color);
  color: var(--page-about-text-main);
}

.page-about__faq-question:hover .page-about__faq-toggle {
  color: var(--page-about-text-main);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-about-text-main);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-about-text-secondary);
  border-top: 1px solid var(--page-about-divider);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__card-title,
  .page-about__feature-title {
    font-size: 1.6em;
  }

  .page-about__value-title {
    font-size: 1.4em;
  }

  .page-about__timeline-item {
    width: 80%;
  }

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

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

  .page-about__timeline-item:nth-child(odd)::before {
    right: -5%;
  }

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

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has padding-top */
  }

  .page-about__main-title {
    font-size: clamp(2em, 5vw, 2.5em); /* Using clamp for H1 */
    margin-bottom: 15px;
  }

  .page-about__intro-description {
    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 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-about__section,
  .page-about__container,
  .page-about__card,
  .page-about__timeline-item,
  .page-about__value-item,
  .page-about__feature-item,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image,
  .page-about__card-image,
  .page-about__history-image,
  .page-about__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-about__timeline-item {
    width: 100%;
    padding-left: 45px;
    text-align: left;
    left: 0 !important;
  }

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

  .page-about__timeline-item::before {
    left: 10px;
  }

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

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

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.6em;
  }

  .page-about__card-title,
  .page-about__feature-title {
    font-size: 1.4em;
  }

  .page-about__value-title {
    font-size: 1.2em;
  }

  .page-about__intro-description {
    font-size: 0.9em;
  }

  .page-about__timeline-year {
    font-size: 1.3em;
  }

  .page-about__timeline-event {
    font-size: 0.9em;
  }
}

/* No CSS filters for images */
.page-about img {
  filter: none; /* Ensure no filters are applied */
}