:root {
  --bg-color-primary: #08160F;
  --bg-color-card: #11271B;
  --text-color-main: #F2FFF6;
  --text-color-secondary: #A7D9B8;
  --border-color-primary: #2E7A4E;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-about {
  background-color: var(--bg-color-primary); /* Dark background */
  color: var(--text-color-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile padding */
  box-sizing: border-box;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: var(--text-color-main);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-main);
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-color-secondary);
}

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

.page-about__btn {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* Always white text for dark buttons */
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-about__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--bg-color-primary);
  transform: translateY(-2px);
}

.page-about__btn-link {
  background: transparent;
  color: var(--glow-color);
  text-decoration: underline;
  padding: 0;
  border: none;
}

.page-about__btn-link:hover {
  opacity: 0.8;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-main);
}

.page-about__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-about__content-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

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

.page-about__text-block {
  flex: 1;
  color: var(--text-color-secondary);
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image wrapper has a min-width */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-wrapper--center {
  flex: none;
  width: 100%;
  margin-top: 40px;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__dark-section {
  background-color: var(--bg-color-card);
  color: var(--text-color-main);
}

.page-about__dark-section .page-about__section-title {
  color: var(--text-color-main);
}

.page-about__dark-section .page-about__text-block {
  color: var(--text-color-secondary);
}

.page-about__value-list,
.page-about__responsibility-list {
  list-style: none;
  padding-left: 0;
  color: var(--text-color-secondary);
}

.page-about__value-list li,
.page-about__responsibility-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before,
.page-about__responsibility-list li::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-about__card {
  background-color: var(--bg-color-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color-main);
}

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

.page-about__faq-item {
  background-color: var(--bg-color-card);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-secondary);
}

.page-about__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--text-color-main);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
  background-color: var(--deep-green-color);
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-color-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-flex {
    flex-direction: column;
    align-items: center;
  }

  .page-about__content-flex--reverse {
    flex-direction: column;
  }

  .page-about__image-wrapper {
    margin-top: 30px;
  }

  .page-about__text-block {
    order: 2; /* Text comes after image on smaller screens */
  }

  .page-about__content-flex--reverse .page-about__text-block {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-about__section-spacing {
    padding: 40px 15px;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__description {
    font-size: 1em;
  }

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

  .page-about__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important; /* Ensure padding on mobile buttons */
    padding-right: 15px !important;
  }

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

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

  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__history-section,
  .page-about__vision-mission-section,
  .page-about__values-section,
  .page-about__team-section,
  .page-about__responsible-gambling-section,
  .page-about__why-choose-us,
  .page-about__faq-section,
  .page-about__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-about__faq-item summary,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}