.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is from shared.css */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden; /* Ensure content doesn't spill */
  box-sizing: border-box;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-about__btn-primary:hover {
  background-color: #e01010;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-about__section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Match body background from shared.css */
  color: #ffffff;
  box-sizing: border-box;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #017439;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid--reverse {
  grid-template-areas: "image text"; /* Default order */
}

/* Specific order for the second grid section */
.page-about__history .page-about__grid--reverse {
  grid-template-areas: "text image";
}

.page-about__text-block {
  padding: 20px 0;
}

.page-about__subsection-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__values-list li {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
  padding: 15px;
  margin-bottom: 10px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  color: #ffffff;
}

.page-about__values-list li strong {
  color: #FFFF00; /* Yellow for emphasis in dark background */
}

.page-about__image-container {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
}

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

.page-about__card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px; /* Ensure cards have consistent height */
  box-sizing: border-box;
}

.page-about__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for card titles */
}

.page-about__card p {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-about__cta-section {
  text-align: center;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsible Gambling Section */
.page-about__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__responsible-list li {
  background-color: rgba(1, 116, 57, 0.15); /* Semi-transparent brand color */
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #017439;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.05em;
}

.page-about__responsible-list li strong {
  color: #FFFF00;
}

.page-about__responsible-text {
  text-align: center;
  font-style: italic;
  margin-top: 40px;
  font-size: 1.1em;
  color: #aaa;
}

/* FAQ Section */
.page-about__faq {
  background-color: #1a1a1a;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.2); /* Brand color tint */
  user-select: none;
  list-style: none; /* Remove default marker */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Yellow for toggle icon */
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

/* Ensure details toggle icon updates without JS */
.page-about__faq-item[open] .page-about__faq-toggle {
  content: "−"; /* Visually change to minus for open details */
}
.page-about__faq-item:not([open]) .page-about__faq-toggle {
  content: "+"; /* Visually change to plus for closed details */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__grid--reverse {
    grid-template-areas: unset; /* Reset grid area for mobile */
  }

  .page-about__history .page-about__grid--reverse {
    grid-template-areas: unset; /* Reset grid area for mobile */
  }

  .page-about__text-block {
    order: 2; /* Default order for text on mobile */
  }

  .page-about__image-container {
    order: 1; /* Default order for image on mobile */
  }

  .page-about__history .page-about__text-block {
    order: 2; /* Maintain text after image for history section on mobile */
  }

  .page-about__history .page-about__image-container {
    order: 1; /* Maintain image before text for history section on mobile */
  }

  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }

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

  .page-about__btn-secondary {
    margin-left: 0; /* Remove margin for stacked buttons */
  }

  /* Force responsive image behavior for content area images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all containers containing images are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-container,
  .page-about__text-block { /* Also apply to text-block if it contains images */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding for content */
    padding-right: 15px; /* Add padding for content */
  }

  /* Specific padding for sections, overriding generic container padding if needed */
  .page-about__section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Ensure hero section has correct padding-top for mobile, which is controlled by shared */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Button responsiveness */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Ensure images within content area are at least 200x200px */
.page-about__image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover the area */
}

/* No filter on images */
.page-about img {
  filter: none;
}