/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
}

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

.page-about__dark-section {
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  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;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

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

.page-about__btn-primary {
  background: var(--button);
  color: var(--text-main);
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: var(--glow);
  color: #000;
}

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

.page-about__btn-secondary:hover {
  background: var(--border);
  color: var(--text-main);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-about__subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__grid-layout--reversed .page-about__grid-item:first-child {
  order: 2;
}

.page-about__grid-layout--reversed .page-about__grid-item:last-child {
  order: 1;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-about__story-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--divider);
}

.page-about__timeline-item {
  position: relative;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 15px;
  height: 15px;
  background-color: var(--gold);
  border-radius: 50%;
  border: 4px solid var(--deep-green);
}

.page-about__timeline-year {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 10px;
}

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

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

.page-about__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-height: 200px; /* Minimum size requirement */
}

.page-about__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-about__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-about__cta-section {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-about__grid-layout--reversed .page-about__grid-item:first-child {
    order: 1;
  }

  .page-about__grid-layout--reversed .page-about__grid-item:last-child {
    order: 2;
  }

  .page-about__hero-section {
    padding: 40px 15px;
  }

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

  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-about__intro-text {
    font-size: 1.1rem;
  }

  .page-about__section-title {
    padding-top: 40px;
  }
}

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

  .page-about__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-about__container,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__features-grid,
  .page-about__faq-list,
  .page-about__story-timeline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__image,
  .page-about__hero-image,
  .page-about__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important;
  }

  .page-about__feature-card {
    padding: 20px;
    min-height: auto;
  }

  .page-about__story-timeline {
    padding-left: 15px;
  }

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

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

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .page-about__subtitle {
    font-size: 1.4rem;
  }

  .page-about__intro-text,
  .page-about__text-block,
  .page-about__card-text,
  .page-about__timeline-description,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }
}

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

/* Ensure contrast for all text elements */
.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
  color: var(--text-main);
}

.page-about p, .page-about li, .page-about a {
  color: var(--text-secondary);
}

.page-about__main-title, .page-about__card-title, .page-about__faq-question {
  color: var(--text-main);
}

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

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