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

.page-about__hero-section {
  background-color: #003366;
  color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  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: 2px solid #FFD700;
}

.page-about__cta-button:hover {
  background-color: #003366;
  color: #FFD700;
  border-color: #FFD700;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #003366;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

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

.page-about__description-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-about__mission-card, .page-about__vision-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-about__mission-card:hover, .page-about__vision-card:hover {
  transform: translateY(-5px);
}

.page-about__card-image {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: #666666;
}

.page-about__our-story {
  background-color: #f8f8f8;
}

.page-about__story-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}

.page-about__story-text {
  flex: 1;
  font-size: 1.1em;
  color: #444444;
}

.page-about__story-text p {
  margin-bottom: 20px;
}

.page-about__story-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__story-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__story-button {
  display: inline-block;
  background-color: #003366;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

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

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

.page-about__value-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-about__value-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__value-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 10px;
}

.page-about__value-text {
  font-size: 0.95em;
  color: #666666;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__cta-link {
  display: inline-block;
  color: #003366;
  padding: 15px 30px;
  border: 2px solid #003366;
  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__cta-link:hover {
  background-color: #003366;
  color: #ffffff;
}

.page-about__responsible-gaming {
  background-color: #003366;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-about__responsible-gaming .page-about__section-title {
  color: #FFD700;
}

.page-about__responsible-gaming .page-about__section-title::after {
  background-color: #FFD700;
}

.page-about__responsible-gaming .page-about__description-text {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-about__responsible-gaming-link {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  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: #f0c200;
}

.page-about__app-download-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__app-content {
  flex: 1;
  text-align: left;
}

.page-about__app-content .page-about__section-title {
  text-align: left;
}

.page-about__app-content .page-about__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-about__app-content .page-about__description-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-about__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__mission-vision-grid, .page-about__story-flex, .page-about__app-download-container {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__story-text, .page-about__story-image-wrapper, .page-about__app-content, .page-about__app-image-wrapper {
    flex: none;
    width: 100%;
  }
  .page-about__story-image {
    max-width: 80%;
  }
  .page-about__app-image {
    max-width: 60%;
  }
  .page-about__app-content .page-about__section-title,
  .page-about__app-content .page-about__description-text {
    text-align: center;
  }
  .page-about__app-content .page-about__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-bottom {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure all content images are responsive and do not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .page-about__hero-image,
  .page-about__card-image,
  .page-about__story-image,
  .page-about__value-icon,
  .page-about__app-image {
    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__section-title {
    font-size: 1.8em;
  }
  .page-about__cta-button, .page-about__cta-link {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__content-area {
    padding: 40px 15px;
  }
  .page-about__card-image, .page-about__value-icon {
    width: 150px;
  }
  .page-about__story-image {
    max-width: 100%;
  }
  .page-about__app-image {
    max-width: 80%;
  }
}