/* style/about.css */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #0056b3);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

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

.page-about__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

.page-about__section {
  padding: 60px 20px;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-about__link:hover {
  text-decoration: underline;
  color: #1e87c0;
}

.page-about__highlight {
  color: #26A9E0;
  font-weight: 700;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.page-about__mission-vision-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: contain;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  background-color: #f8f8f8;
  color: #333333;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-about__cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #000000, #26A9E0);
}

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

/* Clear floats for images */
.page-about__our-story::after,
.page-about__social-responsibility::after {
  content: "";
  display: table;
  clear: both;
}

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

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

  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .page-about__image--left, .page-about__image--right {
    float: none;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__text-block {
    font-size: 1em;
  }

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

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

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

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Mobile video responsiveness */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !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 !important;
    padding-right: 15px !important;
  }

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

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

  .page-about__image--left,
  .page-about__image--right {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
}

/* Ensure text color for links in light background sections */
.page-about__light-bg .page-about__link {
  color: #26A9E0;
}

.page-about__light-bg .page-about__link:hover {
  color: #1e87c0;
}

/* Ensure text color for highlights in light background sections */
.page-about__light-bg .page-about__highlight {
  color: #26A9E0;
}

/* Ensure text color for links in dark background sections */
.page-about__dark-bg .page-about__link {
  color: #FFFFFF;
}

.page-about__dark-bg .page-about__link:hover {
  color: #f0f0f0;
}

/* Ensure text color for highlights in dark background sections */
.page-about__dark-bg .page-about__highlight {
  color: #FFFFFF;
}