/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background, overridden by shared if dark */
}

/* Ensure main content color contrasts with body background */
.page-about.page-content {
  color: #ffffff; /* Assuming var(--dark-bg-1) is dark, use light text */
}

.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-about h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-about h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-about__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #0d0d0d; /* Dark background for hero */
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
}

.page-about__section--mission {
  background-color: #f8f8f8;
  color: #333333;
}

.page-about__section--why-choose {
  background-color: #ffffff;
  color: #333333;
}

.page-about__section--security-fair-play {
  background-color: #f8f8f8;
  color: #333333;
}

.page-about__section--responsibility {
  background-color: #ffffff;
  color: #333333;
}

.page-about__section--faq {
  background-color: #f0f8ff; /* Light blue tint */
  color: #333333;
}

.page-about__section--contact-cta {
  background-color: #26A9E0; /* Brand primary color for CTA background */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__description {
  color: #ffffff;
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

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

.page-about__content-text {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0; /* Added border for contrast */
  color: #333333;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-icon {
  width: 100%; /* Ensure large image */
  max-width: 400px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-about__cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background-color: #26A9E0; /* Brand color for CTA background */
  border-radius: 10px;
  color: #ffffff;
}

.page-about__cta-section .page-about__description {
  color: #ffffff;
  margin-bottom: 30px;
}

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

.page-about__responsibility-item {
  background-color: #f0f8ff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #fdfdfd;
  user-select: none;
  list-style: none; /* For details tag */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  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 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
}

/* CTA Contact Section */
.page-about__section--contact-cta .page-about__container {
  background-color: #26A9E0;
  border-radius: 15px;
  padding: 50px;
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-about.page-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-about__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about h1 {
    font-size: 2rem;
  }

  .page-about h2 {
    font-size: 1.8rem;
  }

  .page-about h3 {
    font-size: 1.3rem;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__content-grid,
  .page-about__content-grid--reverse {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__features-grid,
  .page-about__responsibility-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about img {
    max-width: 100% !important;
    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__section--contact-cta .page-about__container {
    padding: 30px 15px;
  }

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

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

/* Specific color for Login button if it exists */
.page-about__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

/* Ensure contrast for text on card backgrounds */
.page-about__feature-card, .page-about__responsibility-item {
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__dark-section {
  background: #26A9E0;
  color: #ffffff; /* White text */
}