/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__section-title--light::after {
  background-color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Adjusted padding to accommodate header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Use CSS variable for header offset */
}

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

.page-about__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
  cursor: pointer;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-about__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Introduction Section */
.page-about__introduction-section .page-about__text-block {
  margin-bottom: 30px;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-about__introduction-section p {
  margin-bottom: 15px;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: #000000; /* Darker background for contrast */
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: #0a0a0a;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-about__commitment-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__commitment-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too wide */
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-about__commitment-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #000000; /* Darker background for FAQ */
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-about__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #FFD700; /* Brand color for CTA background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #000000; /* Dark text on light background */
}

.page-about__cta-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-about__cta-title {
  font-size: 3em;
  color: #000000; /* Dark text on brand color background */
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #333333;
}

.page-about__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2.4em;
  }
  .page-about__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__content-area,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    padding-bottom: 40px !important;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .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: 12px 20px !important;
    margin: 10px 0 !important;
  }
  .page-about__hero-content .page-about__btn-primary,
  .page-about__hero-content .page-about__btn-secondary {
    display: block;
  }

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

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

  .page-about__feature-title,
  .page-about__commitment-title {
    font-size: 1.5em;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-full-width,
  .page-about__commitment-icon,
  .page-about__cta-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video responsiveness */
  .page-about video,
  .page-about__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__btn-large {
    font-size: 1em;
    padding: 10px 20px;
  }
}