/* style/about.css */

/* Body background is dark from shared.css, so default text in .page-about should be light. */
.page-about {
  color: #ffffff;
}

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark-bg-1); /* Ensure consistency with body if needed */
}

.page-about__hero-image-wrapper {
  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 {
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff; /* Ensure text is white on dark background */
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__intro-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

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

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

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

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

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

.page-about__light-text {
  color: #ffffff;
}

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

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

.page-about__mission-vision .page-about__section-title,
.page-about__why-choose-us .page-about__section-title,
.page-about__faq-section .page-about__section-title {
  color: #017439; /* Dark text on light background */
}

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

.page-about__card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333; /* Dark text on light card background */
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__card p {
  line-height: 1.7;
  font-size: 1em;
  color: #555555;
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.page-about__value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Example style, can be adjusted */
  border: 4px solid #ffffff; /* Contrast border */
}

.page-about__value-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__value-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.page-about__feature-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #333333;
}

.page-about__feature-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

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

.page-about__feature-content {
  width: 50%;
  padding: 30px;
  box-sizing: border-box;
}

.page-about__feature-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__feature-content p {
  line-height: 1.7;
  font-size: 1em;
  color: #555555;
}

.page-about__responsible-gambling {
  text-align: center;
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__faq-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #e0ffe0; /* Light green for contrast */
  color: #017439;
  border-bottom: 1px solid #c0e0c0;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  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: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  background-color: #ffffff;
  color: #555555;
}

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

.page-about__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

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

  .page-about__feature-card {
    flex-direction: column;
  }

  .page-about__feature-card:nth-child(even) {
    flex-direction: column; /* Ensure column direction on smaller screens */
  }

  .page-about__feature-image,
  .page-about__feature-content {
    width: 100%;
  }

  .page-about__feature-content {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Using clamp for H1 */
    margin-bottom: 15px;
  }

  .page-about__intro-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__section {
    padding: 50px 0;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__value-icon {
    width: 120px;
    height: 120px;
  }

  .page-about__value-title {
    font-size: 1.4em;
  }

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

  .page-about__feature-title {
    font-size: 1.5em;
  }

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

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  /* Image responsiveness */
  .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,
  .page-about__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__feature-card,
  .page-about__feature-image,
  .page-about__feature-content,
  .page-about__values-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-about__video-section { /* Added for video section responsiveness, even if no video is present */
    padding-top: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}