/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Main text color for dark body background */
  background-color: #0A0A0A; /* Ensure consistency, though body handles it */
  line-height: 1.6;
  padding-top: 0; /* Handled by body padding-top in shared.css */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: #0A0A0A; /* Ensure hero section background is dark */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability without changing color */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above image filter if any */
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Pull content up over the image, but not covering it */
  background: linear-gradient(0deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0) 100%); /* Fading background for text */
  padding-top: 150px; /* Compensate for margin-top */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Soft glow effect */
}

.page-about__description {
  font-size: 1.2rem;
  color: #FFF6D6;
  margin-bottom: 40px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6B02A 100%);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #111111; /* Card BG color */
  color: #F2C14E; /* Main brand color for secondary button text */
  border: 2px solid #F2C14E; /* Main brand color for border */
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  transform: translateY(-2px);
}

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-about__subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6;
}

.page-about__introduction-section p,
.page-about__story-section p,
.page-about__responsible-gaming-section p,
.page-about__future-vision-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF6D6;
}

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

.page-about__story-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__unique-features-section {
  background-color: #111111; /* Card BG */
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for subtle card effect */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 211, 107, 0.2);
}

.page-about__feature-card img {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide in card */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-about__feature-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main brand color */
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 1rem;
  color: #FFF6D6;
  line-height: 1.6;
}

.page-about__responsible-gaming-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 211, 107, 0.2);
}

.page-about__team-member img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 50%; /* Circular images for team members */
  border: 4px solid #F2C14E;
  object-fit: cover;
}

.page-about__member-name {
  font-size: 1.4rem;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 1rem;
  color: #FFF6D6;
}

.page-about__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  color: #FFF6D6;
}

.page-about__benefits-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #3A2A12;
  border-left: 5px solid #F2C14E; /* Accent border */
  border-radius: 8px;
  padding: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__benefits-list li strong {
  color: #FFD36B;
}

.page-about__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A0A0A; /* Ensure background is dark */
}

/* Responsive design */
@media (min-width: 769px) {
  .page-about__story-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__story-content {
    order: 1; /* Content first on desktop */
  }
  .page-about__story-image {
    order: 2; /* Image second on desktop */
  }
  .page-about__team-member img {
    max-width: 200px; /* Smaller circular images on desktop */
  }
}


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

  .page-about__hero-content {
    margin-top: -100px; /* Adjust for smaller screens */
    padding-top: 100px;
  }

  .page-about__main-title {
    font-size: 2.2rem;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__subtitle {
    font-size: 1rem;
  }

  .page-about__introduction-section p,
  .page-about__story-section p,
  .page-about__responsible-gaming-section p,
  .page-about__future-vision-section p,
  .page-about__feature-card p,
  .page-about__member-role,
  .page-about__benefits-list li {
    font-size: 0.95rem;
  }

  .page-about__story-grid {
    grid-template-columns: 1fr;
  }
  .page-about__story-content {
    order: 2; /* Content after image on mobile */
  }
  .page-about__story-image {
    order: 1; /* Image first on mobile */
    margin-bottom: 30px;
  }

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

  .page-about__feature-card img,
  .page-about__team-member img {
    max-width: 200px; /* Ensure images are responsive but not too large */
  }

  /* Mobile image and container responsive styles */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__story-section,
  .page-about__unique-features-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__future-vision-section,
  .page-about__why-choose-section,
  .page-about__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure contrast for specific elements */
.page-about__btn-primary {
  color: #ffffff; /* Explicitly set white for contrast */
}

.page-about__btn-secondary {
  color: #F2C14E; /* Explicitly set brand color for contrast */
}

/* Dark section text color is already #FFF6D6, which is light */
.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__subtitle {
  color: #FFD36B; /* Ensure titles are bright */
}

.page-about__dark-section p {
  color: #FFF6D6; /* Ensure body text is light */
}