/* style/about.css */
.page-about {
  color: #F2FFF6; /* Main text color for dark backgrounds */
  background-color: var(--background-color, #08160F); /* Fallback to default dark background */
}

.page-about__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-about__light-bg {
  background-color: #F2FFF6;
  color: #333333;
}

.page-about__text-contrast-fix {
  color: #333333;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding for visual balance */
  padding-bottom: 60px;
  background-color: #08160F;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Adjust max-height as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold color for main title */
  letter-spacing: 0.05em;
}

.page-about__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #F2FFF6;
}

.page-about__description-secondary {
  font-size: 1.05em;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #A7D9B8;
  text-align: center;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background-color: transparent;
  color: #11A84E;
  border: 2px solid #11A84E;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background-color: #11A84E;
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #F2C14E; /* Gold color for section titles */
}

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

.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__mission-vision-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-about__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
}

.page-about__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
  flex-grow: 1;
}

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

.page-about__values-section {
  background-color: #F2FFF6; /* Light background for contrast */
  color: #333333;
}

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

.page-about__value-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__value-heading {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #11A84E;
}

.page-about__value-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

.page-about__why-choose-us-section {
  background-color: #08160F;
}

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

.page-about__feature-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #2E7A4E;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #57E38D);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__feature-heading {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-about__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-about__responsible-gaming-section {
  background-color: #F2FFF6;
  color: #333333;
}

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

.page-about__responsible-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__faq-section {
  background-color: #08160F;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #F2C14E;
  transition: color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
  color: #57E38D;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
  border-top: 1px solid #2E7A4E;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    max-width: 700px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }
  .page-about__cards-grid,
  .page-about__values-list,
  .page-about__features-grid,
  .page-about__responsible-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    max-height: 300px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-about__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section {
    padding: 50px 0;
  }
  .page-about__card,
  .page-about__value-item,
  .page-about__feature-item,
  .page-about__responsible-item {
    padding: 25px;
  }
  .page-about__feature-icon {
    width: 150px;
    height: 150px;
    min-width: 150px !important;
    min-height: 150px !important;
  }

  /* Mobile image responsiveness */
  .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,
  .page-about__cta-wrapper,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  
  /* Mobile button responsiveness */
  .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-wrapper .page-about__btn-primary {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-about__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }
  .page-about__card-title,
  .page-about__value-heading,
  .page-about__feature-heading {
    font-size: 1.3em;
  }
  .page-about__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-about__hero-image-wrapper {
    max-height: 250px;
  }
}