/* style/about.css */

/* Body background is #121212 (dark) from shared.css, so use light text */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Base padding for desktop */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
  overflow: hidden;
  min-height: 600px;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.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: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__dark-section {
  background-color: #121212;
  color: #ffffff;
}

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

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__dark-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__light-bg .page-about__section-title {
  color: #121212;
}

.page-about__story-mission .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.page-about__story-mission .page-about__text-block {
  padding-right: 20px;
}

.page-about__story-mission .page-about__image-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for subtitles */
}

.page-about__light-bg .page-about__sub-title {
  color: #121212;
}

.page-about__story-mission p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__core-values .page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__value-card .page-about__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__value-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.page-about__why-choose .page-about__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__benefit-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__benefit-card .page-about__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Limit max width for smaller cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__benefit-card .page-about__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #121212;
}

.page-about__benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.page-about__responsible-gaming .page-about__intro-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__responsible-gaming .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.page-about__responsible-gaming .page-about__text-block {
  padding-left: 20px;
}

.page-about__responsible-gaming .page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__responsible-gaming .page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-about__responsible-gaming p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

.page-about__faq-item {
  background-color: #f9f9f9;
  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: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff;
  color: #121212;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  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;
  line-height: 1.6;
  color: #555555;
}

.page-about__cta-final {
  padding: 100px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-about__cta-final .page-about__description {
  font-size: 1.2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .page-about__hero-section {
    min-height: 500px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-about__description {
    font-size: 1.05rem;
  }

  .page-about__story-mission .page-about__content-grid,
  .page-about__responsible-gaming .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__story-mission .page-about__text-block,
  .page-about__responsible-gaming .page-about__text-block {
    padding-right: 0;
    padding-left: 0;
  }

  .page-about__why-choose .page-about__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 450px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

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

  .page-about__section {
    padding: 50px 15px;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about__story-mission p,
  .page-about__responsible-gaming p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Mobile image and container responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__value-card,
  .page-about__benefit-card,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-about__value-card,
  .page-about__benefit-card {
    padding: 25px;
  }

  .page-about__value-card .page-about__card-title,
  .page-about__benefit-card .page-about__card-title {
    font-size: 1.4rem;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .page-about__cta-final {
    padding: 60px 15px;
  }

  .page-about__cta-final .page-about__description {
    font-size: 1.05rem;
    margin-bottom: 30px;
  }
}

/* Ensure images within content area do not get too small on desktop either */
.page-about__story-mission .page-about__image,
.page-about__responsible-gaming .page-about__image,
.page-about__benefit-card .page-about__benefit-icon {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast fixes for light background sections */
.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg .page-about__description,
.page-about__light-bg .page-about__intro-text {
  color: #333333;
}

.page-about__light-bg .page-about__faq-answer {
  color: #555555;
}

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

.page-about__dark-bg .page-about__section-title {
  color: #26A9E0;
}

.page-about__dark-bg .page-about__sub-title {
  color: #26A9E0;
}

.page-about__dark-section .page-about__description,
.page-about__dark-section .page-about__intro-text {
  color: #f0f0f0;
}

.page-about__value-card .page-about__card-title {
  color: #26A9E0;
}

.page-about__value-card p {
  color: #ffffff;
}