/* style/about.css */

:root {
  --page-about-primary-color: #F2C14E;
  --page-about-secondary-color: #FFD36B;
  --page-about-card-bg: #111111;
  --page-about-text-main: #FFF6D6;
  --page-about-border-color: #3A2A12;
  --page-about-glow-color: #FFD36B;
  --page-about-dark-bg: #0A0A0A;
}

.page-about {
  color: var(--page-about-text-main); /* Ensure light text on dark body background */
  background-color: var(--page-about-dark-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  min-height: 500px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff; /* Explicitly white for contrast on darkened image */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-about-secondary-color);
}

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

.page-about__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
  background-color: var(--page-about-dark-bg);
}

.page-about__section-title {
  font-size: 2.5rem;
  color: var(--page-about-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__card {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-title {
  font-size: 1.6rem;
  color: var(--page-about-secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-about__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  text-align: left;
  width: 100%;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #e0e0e0;
  padding-left: 20px;
  position: relative;
}

.page-about__list-item::before {
  content: '⚡';
  position: absolute;
  left: 0;
  color: var(--page-about-secondary-color);
}

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

.page-about__feature-card {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

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

.page-about__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-about__link-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-about__commitment-list .page-about__list-item {
  text-align: left;
  padding-left: 0;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-about__commitment-list .page-about__list-item::before {
  content: '✅';
  position: static;
  margin-right: 10px;
}

/* Timeline */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto;
  padding: 20px 0;
}

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

.page-about__timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 20px;
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  margin-right: 50%;
}

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

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

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

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

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

.page-about__timeline-description {
  font-size: 0.95rem;
  color: #e0e0e0;
}

/* Video Section */
.page-about__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-about-dark-bg);
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 30px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-about__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-about__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3); /* Slight overlay for clickable indication */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-about__video-overlay-link:hover {
  opacity: 1;
}

.page-about__video-overlay-link::before {
  content: '▶';
  font-size: 4rem;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-about__faq-item {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-about-text-main);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--page-about-primary-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e0e0e0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-about-dark-bg);
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Button Styles */
.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.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-color: var(--page-about-primary-color);
  color: var(--page-about-dark-bg); /* Dark text on hover */
  transform: translateY(-3px);
}

/* Responsive Styling */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

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

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    padding-left: 60px; /* Adjust padding for smaller screens */
  }

  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 10px;
    right: auto;
  }
}

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

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-about__text-block {
    font-size: 0.9rem;
  }

  .page-about__card-grid,
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-about__card-image,
  .page-about__feature-image {
    max-width: 200px;
  }

  .page-about__list-item {
    font-size: 0.9rem;
  }

  .page-about__commitment-list {
    grid-template-columns: 1fr;
  }

  .page-about__timeline-year {
    font-size: 1.5rem;
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-about__faq-answer {
    font-size: 0.85rem;
    padding: 0 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

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

  .page-about__cta-button,
  .page-about__hero-cta,
  .page-about__link-button,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-about__video-overlay-link::before {
    font-size: 3rem;
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

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

  .page-about__section-title {
    font-size: 1.5rem;
  }

  .page-about__hero-cta,
  .page-about__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}