/* style/about.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f9fa;
  --btn-register: #C30808;
  --btn-login: #C30808;
  --font-register-login: #FFFF00;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Body background is dark, so default text is light */
  background-color: var(--bg-dark);
}

.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;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  color: var(--text-on-dark);
  background-color: var(--primary-color);
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-on-dark);
}

.page-about__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: var(--btn-register);
  color: var(--font-register-login);
  border: 2px solid var(--btn-register);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--btn-register), 10%);
  border-color: darken(var(--btn-register), 10%);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--text-on-dark);
  color: var(--primary-color);
}

/* Section Titles and Descriptions */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-on-light);
}

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-about__intro-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__intro-section .page-about__section-description {
  color: var(--text-on-light);
}

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

.page-about__value-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-on-light);
}

.page-about__value-card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__value-card-text {
  font-size: 1em;
  color: var(--text-on-light);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-about__why-choose-us .page-about__section-title {
  color: var(--text-on-dark);
}

.page-about__why-choose-us .page-about__section-description {
  color: var(--text-on-dark);
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-on-dark);
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--text-on-dark);
  margin-bottom: 10px;
}

.page-about__feature-text {
  font-size: 0.95em;
  color: var(--text-on-dark);
}

/* Video Section */
.page-about__video-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-about__video-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__video-section .page-about__section-description {
  color: var(--text-on-light);
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.page-about__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

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

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.page-about__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: var(--text-on-dark);
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-about__faq-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__faq-section .page-about__section-description {
  color: var(--text-on-light);
}

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

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

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

.page-about__faq-question:hover {
  background-color: #f0f0f0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-light);
}

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

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-on-light);
}

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

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-about__intro-section,
  .page-about__why-choose-us,
  .page-about__video-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 50px 0;
  }
  .page-about__value-cards,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-card,
  .page-about__feature-item {
    padding: 25px;
  }
  .page-about__video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile 4:3 or similar */
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-description {
    font-size: 0.95em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 10px 15px;
  }
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__cta-title {
    font-size: 1.6em;
  }
  .page-about__value-card-title {
    font-size: 1.5em;
  }
  .page-about__feature-title {
    font-size: 1.4em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}

/* Color Contrast Safeguards */
.page-about__dark-bg {
  color: var(--text-on-dark); /* Deep background, light text */
}

.page-about__light-bg {
  color: var(--text-on-light); /* Light background, dark text */
}

.page-about p,
.page-about li {
  color: var(--text-on-light); /* Default for paragraphs and list items */
}

.page-about__value-card {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}