/* style/about.css */

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

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-about__section-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  z-index: 2;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
  color: #f0f0f0;
}

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

/* General Button Styles */
.page-about__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-about__introduction {
  background-color: #1a1a1a;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-about__image--left {
  margin-right: 20px;
}

.page-about__image--right {
  margin-left: 20px;
}

.page-about__text-block {
  flex: 1;
  max-width: 50%;
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #cccccc;
}

.page-about__text-block .page-about__btn-secondary {
  margin-top: 20px;
}

/* Services Section */
.page-about__services {
  background-color: #0a0a0a;
}

.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: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-about__card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__card-title a:hover {
  color: #017439;
}

.page-about__card-text {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-about__card-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-about__card-link:hover {
  background-color: #005a2e;
}

/* Safety Section */
.page-about__safety {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__safety .page-about__section-description {
  color: #e0e0e0;
}

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

.page-about__feature-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-about__feature-text {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* Experience Section */
.page-about__experience {
  background-color: #1a1a1a;
}

.page-about__experience .page-about__text-block h3 {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-about__experience .page-about__text-block p {
  color: #cccccc;
}

.page-about__experience .page-about__btn-primary,
.page-about__experience .page-about__btn-secondary {
  margin-top: 15px;
  margin-right: 10px;
}

/* Promotions Section */
.page-about__promotions {
  background-color: #0a0a0a;
  padding: 80px 0;
}

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

.page-about__promotion-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__promotion-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.page-about__promotion-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-about__promotion-text {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
}

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

/* Vision Section */
.page-about__vision {
  background-color: #1a1a1a;
}

/* FAQ Section */
.page-about__faq {
  background-color: #0a0a0a;
}

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

.page-about__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

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

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

.page-about__faq-answer .page-about__btn-primary, .page-about__faq-answer .page-about__btn-secondary {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Call to Action Section */
.page-about__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-about__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color */
  border-color: #C30808;
}

.page-about__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-about__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color */
  border-color: #C30808;
}

.page-about__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-about__image,
  .page-about__text-block {
    max-width: 100%;
    margin: 0;
  }
  .page-about__image {
    margin-bottom: 30px;
  }
  .page-about__card-grid, .page-about__feature-grid, .page-about__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 400px;
    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-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 0.95em;
  }
  .page-about__content-wrapper,
  .page-about__content-wrapper--reverse {
    gap: 20px;
  }
  .page-about__card,
  .page-about__feature-item,
  .page-about__promotion-item {
    padding: 20px;
  }
  .page-about__card-image {
    height: 180px;
  }
  .page-about__card-title,
  .page-about__feature-title,
  .page-about__promotion-title {
    font-size: 1.2em;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-buttons a {
    width: 100%;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and video responsiveness */
  .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__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; /* Prevent horizontal scroll */
  }
  .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% !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__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}