/* style/about.css */

.page-about {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-about__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-about__section:nth-of-type(even) {
  background-color: #f8f8f8;
}

.page-about__section-title {
  font-size: 2.8em;
  color: #0A2342;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-about__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  background-color: #0A2342; /* Fallback background */
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-about__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
}

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

.page-about__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-about__story-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-about__story-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it's a block element */
  margin: 20px auto;
}

.page-about__text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.page-about__mission-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-about__value-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #FFD700;
}

.page-about__value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__value-title {
  font-size: 1.5em;
  color: #0A2342;
  margin-bottom: 15px;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-about__feature-title {
  font-size: 1.6em;
  color: #0A2342;
  padding: 20px 25px 10px;
}

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
  padding: 0 25px 25px;
  text-align: justify;
}

.page-about__responsible-gaming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.page-about__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-about__responsible-gaming-link {
  display: inline-block;
  background-color: #0A2342;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__responsible-gaming-link:hover {
  background-color: #1a3c63;
}

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

.page-about__team-member {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-bottom: 5px solid #FFD700;
}

.page-about__team-member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #0A2342;
}

.page-about__team-member-name {
  font-size: 1.8em;
  color: #0A2342;
  margin-bottom: 5px;
}

.page-about__team-member-role {
  font-size: 1.1em;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-about__team-member-bio {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.7;
  text-align: justify;
}

.page-about__team-closing {
  margin-top: 40px;
  text-align: center;
  font-style: italic;
}

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

.page-about__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-about__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A2342;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

  .page-about__hero-description {
    font-size: 1.2em;
  }

  .page-about__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-about__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

  .page-about__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

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

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

  .page-about__values-list {
    grid-template-columns: 1fr;
  }

  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-title {
    font-size: 1.4em;
  }

  .page-about__feature-description {
    font-size: 0.95em;
  }

  .page-about__responsible-gaming-content {
    flex-direction: column;
  }

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

  .page-about__team-member-name {
    font-size: 1.5em;
  }

  .page-about__cta-title {
    font-size: 2.2em;
  }

  .page-about__cta-description {
    font-size: 1.1em;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }

  /* Ensure all content area images are responsive and not too small */
  .page-about__story-image,
  .page-about__feature-image,
  .page-about__responsible-gaming-image,
  .page-about__team-member-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
  }

  /* Specific override for feature-image height to maintain proportion if needed, but still min 200px */
  .page-about__feature-image {
    height: auto; /* Allow height to adjust based on aspect ratio */
    max-height: 250px; /* Cap height to avoid overly tall images on mobile */
  }

  .page-about__team-member-image {
    width: 150px;
    height: 150px;
    min-width: 150px; /* Adjusted min for circular images */
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__cta-title {
    font-size: 1.8em;
  }
}