/* style/about.css */

:root {
  /* Custom Colors */
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F; /* This is the body bg, handled by shared.css */
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;

  /* Brand Colors (from prompt) */
  --brand-primary: #11A84E;
  --brand-secondary: #22C768;
}

.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Default text color for the page content */
  background-color: var(--color-background); /* This should be overridden by shared.css body */
}

/* 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 as per rules, body handles header offset */
  background-color: var(--color-background); /* Ensure dark background */
  overflow: hidden; /* Prevent content overflow */
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  filter: none; /* Ensure no CSS filter on image */
}

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  z-index: 1;
  color: var(--color-text-main); /* Ensure text is visible on dark background */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 font-size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add subtle shadow for readability */
}

.page-about__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
  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 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--color-button-gradient-start); /* Use a brand color for text */
  border: 2px solid var(--color-button-gradient-start);
}

.page-about__btn-secondary:hover {
  background: var(--color-button-gradient-start);
  color: #ffffff;
}

/* General Section Styling */
.page-about__section {
  padding: 80px 20px;
  background-color: var(--color-background); /* Default background for sections */
}

.page-about__card-bg {
  background-color: var(--color-card-bg); /* Specific background for card sections */
}

.page-about__dark-section {
  background-color: var(--color-deep-green); /* Example of using a darker brand color for a section */
  color: var(--color-text-main);
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some horizontal padding for content */
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-main);
}

.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  text-align: justify;
}

.page-about__text-main {
  color: var(--color-text-main);
}

.page-about__text-secondary {
  color: var(--color-text-secondary);
}

.page-about__text-gold {
  color: var(--color-gold);
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  filter: none; /* Ensure no CSS filter on image */
}

/* History Section */
.page-about__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-divider);
  transform: translateX(-50%);
  display: none; /* Hide on mobile, show on larger screens */
}

.page-about__timeline-item {
  position: relative;
  padding: 20px;
  border-radius: 8px;
  background-color: var(--color-card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-height: 150px; /* Ensure timeline items have some minimum height */
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px; /* Adjust as needed for connection to line */
  width: 20px;
  height: 20px;
  background-color: var(--color-gold);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: none; /* Hide on mobile */
}

.page-about__timeline-year {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.page-about__feature-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  min-height: 200px; /* Ensure cards are not too small */
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
}

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-about__feature-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

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

/* Team Culture Section */
.page-about__team-image-block {
  margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-deep-green); /* Darker background for question */
}

.page-about__faq-question:hover {
  background-color: var(--brand-primary); /* Use brand primary on hover */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Details element specific styling for FAQ */
.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-about__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

/* Bottom CTA Section */
.page-about__cta-bottom-section {
  text-align: center;
  padding: 100px 20px;
  background-color: var(--color-deep-green); /* Ensure dark background */
}

.page-about__cta-bottom-content {
  max-width: 800px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__timeline::before {
    display: block;
  }
  .page-about__timeline-item {
    width: calc(50% - 30px); /* Adjust for line and spacing */
    text-align: left;
  }
  .page-about__timeline-item:nth-child(odd) {
    margin-right: calc(50% + 30px);
  }
  .page-about__timeline-item:nth-child(even) {
    margin-left: calc(50% + 30px);
    text-align: right;
  }
  .page-about__timeline-item:nth-child(odd)::before {
    left: auto;
    right: -10px;
  }
  .page-about__timeline-item:nth-child(even)::before {
    left: -10px;
    right: auto;
  }
  .page-about__timeline-item::before {
    display: block;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-about__main-title {
    font-size: 2.2rem;
  }

  .page-about__description {
    font-size: 1rem;
  }

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

  /* Force 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__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .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; /* Ensure no horizontal overflow */
  }

  .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 0;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-about__timeline-item {
    padding: 15px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr; /* Stack features on mobile */
  }
  
  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
}