/* style/about.css */
.page-about {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  background-color: #08160F;
}

.page-about__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-about__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  margin-top: 30px;
}

.page-about__text-block {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #08160F;
  padding: 60px 0;
}

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

.page-about__card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  min-height: 250px; /* Ensure cards have minimum height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.page-about__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Values Section */
.page-about__values-section {
  background-color: #08160F;
  padding: 60px 0;
}

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

.page-about__value-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__value-heading {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__value-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Games Overview Section */
.page-about__games-overview-section {
  background-color: #08160F;
  padding: 60px 0;
}

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

.page-about__game-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin: 15px 15px 10px 15px;
  font-weight: 600;
}

.page-about__game-title a {
  color: #F2FFF6;
}

.page-about__game-title a:hover {
  color: #57E38D;
}

.page-about__game-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

/* Security & Responsible Gambling Section */
.page-about__security-rg-section {
  background-color: #08160F;
  padding: 60px 0;
}

.page-about__security-rg-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #11271B; /* Card B G */
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #2E7A4E;
}

.page-about__cta-content {
  max-width: 800px;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #08160F;
  padding: 60px 0;
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B;
  position: relative;
  user-select: none;
  list-style: none;
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

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

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

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

  .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: 1em;
  }

  .page-about__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.2em, 4vw, 1.5em);
  }

  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__games-overview-section,
  .page-about__security-rg-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__cards-grid,
  .page-about__values-grid,
  .page-about__games-grid,
  .page-about__security-rg-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__value-item,
  .page-about__game-card {
    padding: 20px;
    min-height: auto;
  }

  .page-about__game-image {
    height: 180px;
  }

  .page-about__game-title {
    font-size: 1.2em;
  }

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

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

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

  .page-about__hero-image-wrapper,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__games-overview-section,
  .page-about__security-rg-section,
  .page-about__cta-section,
  .page-about__faq-section,
  .page-about__container,
  .page-about__card,
  .page-about__value-item,
  .page-about__game-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}

/* Ensure all content images within .page-about are at least 200x200px or larger */
.page-about img:not(.page-about__value-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific sizing for icons, ensuring they are not too small */
.page-about__value-icon {
  width: 100px; /* Example, ensuring it's not tiny */
  height: 100px;
  min-width: 100px; /* Minimum size for these icons */
  min-height: 100px;
}

/* Override for images that are part of a grid where the grid item itself is min 200px */
.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height, but width is responsive */
  object-fit: cover;
}

/* Ensure images within text blocks respect minimum size if they are content images */
.page-about__text-block img {
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

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