/* style/about.css */
.page-about {
  color: #333333; /* Default text color for light body background */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Apply header offset for desktop */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-about__hero-button {
  display: inline-block;
  background: #FFD700;
  color: #4B0082;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__hero-button:hover {
  background-color: #4B0082;
  color: #FFD700;
}

.page-about__story-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
}

.page-about__story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__story-content {
  flex: 1;
  min-width: 300px;
}

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-about__story-title {
  font-size: 2.5em;
  color: #4B0082;
  margin-bottom: 20px;
}

.page-about__story-paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-about__story-button {
  display: inline-block;
  background: #4B0082;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__story-button:hover {
  background-color: #FFD700;
  color: #4B0082;
}

.page-about__why-choose-us-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.page-about__why-choose-us-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-about__why-choose-us-title {
  font-size: 2.5em;
  color: #4B0082;
  margin-bottom: 20px;
}

.page-about__why-choose-us-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__feature-card {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images in cards are substantial */
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-about__feature-heading {
  font-size: 1.5em;
  color: #4B0082;
  margin-bottom: 15px;
}

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

.page-about__why-choose-us-button {
  display: inline-block;
  background: #FFD700;
  color: #4B0082;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__why-choose-us-button:hover {
  background-color: #4B0082;
  color: #FFD700;
}

.page-about__responsible-gambling-section {
  padding: 80px 20px;
  background-color: #4B0082;
  color: #ffffff;
  text-align: center;
}

.page-about__responsible-gambling-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__responsible-gambling-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-about__responsible-gambling-description {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-about__responsible-gambling-button {
  display: inline-block;
  background: #FFD700;
  color: #4B0082;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__responsible-gambling-button:hover {
  background-color: #ffffff;
  color: #4B0082;
}

.page-about__cta-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-about__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #4B0082;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-about__cta-button--primary {
  background: #FFD700;
  color: #4B0082;
}

.page-about__cta-button--primary:hover {
  background-color: #4B0082;
  color: #FFD700;
}

.page-about__cta-button--secondary {
  background: transparent;
  border: 2px solid #4B0082;
  color: #4B0082;
}

.page-about__cta-button--secondary:hover {
  background-color: #4B0082;
  color: #FFD700;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__story-container {
    flex-direction: column;
  }
  .page-about__story-image-wrapper {
    order: -1; /* Image appears before text on smaller screens */
  }
  .page-about__feature-icon {
    max-width: 300px;
    max-height: 225px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-about__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-about__hero-content {
    padding: 20px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-button,
  .page-about__story-button,
  .page-about__why-choose-us-button,
  .page-about__responsible-gambling-button,
  .page-about__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__story-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gambling-section,
  .page-about__cta-section {
    padding: 60px 15px;
  }
  .page-about__story-title,
  .page-about__why-choose-us-title,
  .page-about__responsible-gambling-title,
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__story-paragraph,
  .page-about__why-choose-us-description,
  .page-about__responsible-gambling-description,
  .page-about__cta-description {
    font-size: 0.95em;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-icon {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all images within .page-about are responsive and do not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__story-title,
  .page-about__why-choose-us-title,
  .page-about__responsible-gambling-title,
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}