/* style/about.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-login-register-text: #FFFF00;
  --body-bg-color: #0a0a0a; /* Defined in shared.css, referencing here for context */
}

/* Base styles for the page-about */
.page-about {
  color: var(--text-color-dark-bg); /* Default text color 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-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  color: var(--text-color-dark-bg);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width if needed */
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
}

.page-about__subtitle {
  font-size: clamp(1.1em, 2vw, 1.4em);
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--button-login-bg); /* #C30808 */
  color: var(--button-login-register-text); /* #FFFF00 */
  border: 2px solid var(--button-login-bg);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--button-login-bg), 10%);
  border-color: darken(var(--button-login-bg), 10%);
}

.page-about__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Section Backgrounds for Contrast */
.page-about__dark-section {
  background-color: var(--body-bg-color); /* #0a0a0a */
  color: var(--text-color-dark-bg); /* #FFFFFF */
}

.page-about__light-bg {
  background-color: var(--secondary-color); /* #FFFFFF */
  color: var(--text-color-light-bg); /* #333333 */
}

/* Intro Section */
.page-about__intro-section {
  padding: 60px 20px;
  text-align: center;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 20px;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-color-dark-bg);
}

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

.page-about__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image width */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__card-text {
  font-size: 1em;
  color: var(--text-color-dark-bg);
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__responsible-gambling-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__responsible-gambling-section a:hover {
  color: lighten(var(--primary-color), 10%);
}

/* Team Section */
.page-about__team-section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__team-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 40px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Future Section */
.page-about__future-section {
  padding: 60px 20px;
  text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 20px;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-dark-bg);
}

.page-about__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color);
  position: relative;
  user-select: none; /* Prevent text selection on click */
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-dark-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }
  .page-about__subtitle {
    font-size: clamp(1em, 2vw, 1.2em);
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-about__hero-content {
    padding: 0 10px;
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-about__subtitle {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100% !important;
    max-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__btn-large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__team-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all images and their containers are responsive */
  .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-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__faq-item summary {
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Adjustments (Dark Body Background #0a0a0a) */
.page-about__dark-bg {
  color: var(--text-color-dark-bg); /* #FFFFFF */
  background: var(--body-bg-color); /* #0a0a0a */
}

.page-about__light-bg {
  color: var(--text-color-light-bg); /* #333333 */
  background: var(--secondary-color); /* #FFFFFF */
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  color: var(--text-color-dark-bg); /* #FFFFFF */
}

.page-about__responsible-gambling-section a {
  color: var(--primary-color); /* #017439 */
}

.page-about__faq-item summary {
  color: var(--primary-color); /* #017439 */
}

.page-about__faq-toggle {
  color: var(--text-color-dark-bg); /* #FFFFFF */
}

/* Ensure all link texts have sufficient contrast */
.page-about a:not(.page-about__btn-primary, .page-about__btn-secondary) {
  color: var(--primary-color); /* Use primary color for links on dark background */
  text-decoration: underline;
}

.page-about a:not(.page-about__btn-primary, .page-about__btn-secondary):hover {
  color: lighten(var(--primary-color), 10%);
}

/* Specific adjustment for buttons on dark background to ensure visibility */
.page-about__btn-primary {
  background-color: var(--button-register-bg); /* #C30808 */
  color: var(--button-login-register-text); /* #FFFF00 */
  border: 2px solid var(--button-register-bg);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--button-register-bg), 10%);
  border-color: darken(var(--button-register-bg), 10%);
}