.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.page-about__text-center {
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  padding: 10px 0 60px 0; /* body handles header offset, small decorative padding-top here */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly over the image for visual flow, but not overlaying text on image */
  background: linear-gradient(to bottom, transparent, var(--background) 50%); /* Subtle gradient to blend */
  border-radius: 15px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--button);
  color: #ffffff; /* Explicitly white for contrast */
  border: none;
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--gold); /* Use gold for secondary button text */
  border: 2px solid var(--gold);
}

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

/* Intro Section */
.page-about__intro-section .page-about__section-title {
  color: var(--text-main);
}

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

/* Mission Vision Section */
.page-about__mission-vision-section {
  background-color: var(--background);
  color: var(--text-main);
}

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

.page-about__content-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--border);
}

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

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

/* Why Choose Section */
.page-about__why-choose-section .page-about__section-title {
  color: var(--text-main);
}

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

.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: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold);
}

.page-about__feature-description {
  font-size: 1em;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-about__responsible-gambling-section .page-about__section-title {
  color: var(--gold);
}

.page-about__responsible-gambling-section .page-about__text-block {
  color: var(--text-main);
}

/* Team Section */
.page-about__team-section .page-about__section-title {
  color: var(--text-main);
}

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

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

.page-about__team-member {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--glow);
  min-width: 200px; /* enforce min image size */
  min-height: 200px; /* enforce min image size */
}

.page-about__member-name {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--gold);
}

.page-about__member-role {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-about__cta-bottom-section .page-about__section-title {
  color: var(--gold);
}

.page-about__cta-bottom-section .page-about__text-block {
  color: var(--text-main);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--background);
  color: var(--text-main);
}

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

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

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

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-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(--divider);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--gold);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold);
  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: 1em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

.page-about__faq-item[open] .page-about__faq-answer {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

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

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

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

  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-about__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Enforce full width for mobile buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__content-card {
    padding: 25px;
  }

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

  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-card,
  .page-about__team-member {
    padding: 20px;
  }

  .page-about__feature-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-about__team-avatar {
    width: 120px;
    height: 120px;
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* All images must be responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/buttons must be responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .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;
    overflow: hidden !important;
  }

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

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

/* Ensure contrast for specific elements on card-bg */
.page-about__card-title, .page-about__feature-title, .page-about__member-name, .page-about__faq-qtext {
  color: var(--gold); /* Explicitly use gold for titles on dark cards */
}

.page-about__card-text, .page-about__feature-description, .page-about__member-role, .page-about__faq-answer p {
  color: var(--text-secondary); /* Explicitly use secondary text for body on dark cards */
}