/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-about__hero-section {
  background: linear-gradient(135deg, #0A1931 0%, #1A3A5A 100%);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1931;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

.page-about__hero-image-wrapper {
  max-width: 100%;
  margin-top: 40px;
}

.page-about__hero-image {
  width: 1200px;
  height: 675px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Story Section */
.page-about__story-section,
.page-about__mission-section,
.page-about__security-section,
.page-about__games-section,
.page-about__support-section {
  padding: 60px 0;
  background-color: #0A1931;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-about__value-description {
  font-size: 1em;
  color: #cccccc;
}

.page-about__learn-more-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__learn-more-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Security Section */
.page-about__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__security-image {
  flex-shrink: 0;
  width: 600px;
  height: 375px;
  object-fit: cover;
  border-radius: 10px;
}

.page-about__security-text {
  flex-grow: 1;
}

.page-about__security-text .page-about__learn-more-link {
  margin-right: 20px;
}

/* Games Section */
.page-about__game-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.page-about__game-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__game-item:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.page-about__game-item a {
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.page-about__game-item a:hover {
  color: #FFD700;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #1A3A5A; /* Slightly different dark background */
  text-align: center;
  padding: 80px 20px;
}

.page-about__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1931;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.4em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  margin-top: 30px;
}

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

/* Support Section */
.page-about__support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__support-image {
  flex-shrink: 0;
  width: 600px;
  height: 375px;
  object-fit: cover;
  border-radius: 10px;
}

.page-about__support-text {
  flex-grow: 1;
}

.page-about__support-text .page-about__learn-more-link {
  margin-right: 20px;
}

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

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

  .page-about__hero-image {
    width: 1000px;
    height: 563px;
  }

  .page-about__security-content,
  .page-about__support-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__security-image,
  .page-about__support-image {
    max-width: 80%;
    width: auto; /* Allow image to scale down */
    height: auto;
  }
}

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

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

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

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

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

  .page-about__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

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

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

  .page-about__image {
    max-width: 100%;
    height: auto; /* Essential for mobile responsiveness */
  }

  .page-about__security-image,
  .page-about__support-image {
    width: 100%;
    height: auto;
  }

  /* Critical for mobile content images */
  .page-about__container img,
  .page-about__hero-image-wrapper img,
  .page-about__security-content img,
  .page-about__support-content img {
    max-width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-about__hero-button,
  .page-about__cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }

  .page-about__value-title {
    font-size: 1.5em;
  }
}