/* style/about.css */

/* Base styles for page-about */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.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:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-about__btn-primary:hover {
  background-color: #1e87b0;
  border-color: #1e87b0;
}

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87b0;
  border-color: #1e87b0;
}

/* Login button specific color */
.page-about__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

/* Advantages Section */
.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);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-description {
  font-size: 15px;
  color: #f0f0f0;
  text-align: left;
  flex-grow: 1;
}

/* Social Responsibility & Team/Tech Sections */
.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #26A9E0;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-item[open] > .page-about__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
}

/* Remove default details marker */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-about__faq-item summary {
  list-style: none;
}

/* Call to Action Section */
.page-about__call-to-action {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__call-to-action .page-about__section-title {
  color: #ffffff;
}

.page-about__call-to-action .page-about__paragraph {
  color: #ffffff;
}

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

  .page-about__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-about__main-title {
    font-size: 30px;
  }

  .page-about__intro-text {
    font-size: 16px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 24px;
  }

  .page-about__paragraph {
    font-size: 15px;
    padding: 0 15px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

  .page-about__feature-image,
  .page-about__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-image-wrapper {
    padding: 0;
  }

  .page-about__faq-list {
    padding: 0 15px;
  }

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

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

  .page-about__call-to-action {
    padding: 50px 0;
  }

  /* Ensure all img tags within .page-about are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure all containers with images/videos are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Color Contrast Fixes (if needed) */
/* The chosen color scheme (dark background, light text) naturally provides good contrast. */
/* If any specific element needs adjustment, apply here */
.page-about__dark-section {
  background: #26A9E0;
  color: #ffffff;
}