.page-about {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure main content background is consistent with body */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

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

.page-about__hero-title {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(252, 188, 69, 0.5);
}

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

.page-about__hero-cta {
  display: inline-block;
  background-color: #FCBC45; /* Login button color used for CTA */
  color: #000000;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(252, 188, 69, 0.4);
}

.page-about__hero-cta:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(252, 188, 69, 0.6);
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure minimum display size */
  min-height: 200px;
}

.page-about__story-section, .page-about__mission-vision-section, .page-about__why-choose-section, .page-about__responsible-gaming-section, .page-about__technology-section, .page-about__team-section, .page-about__cta-section {
  padding: 60px 0;
  background-color: #000000;
}

.page-about__story-section .page-about__container,
.page-about__responsible-gaming-section .page-about__container,
.page-about__technology-section .page-about__container,
.page-about__team-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 40px;
  color: #FCBC45; /* Gold accent */
  text-align: center;
  text-shadow: 0 0 10px rgba(252, 188, 69, 0.3);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
  max-width: 900px;
  text-align: justify; /* Justify text for professional look */
}

.page-about__image-content {
  width: 100%;
  max-width: 800px; /* Ensure images are not too small */
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Enforce minimum display size for content images */
  min-height: 200px;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card background for dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(252, 188, 69, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
}

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

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

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

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

.page-about__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid rgba(252, 188, 69, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: left;
  min-width: 200px; /* Ensure minimum display size for card items */
  min-height: 200px;
}

.page-about__advantage-item:hover {
  transform: translateY(-5px);
}

.page-about__advantage-title {
  font-size: 1.5em;
  color: #FCBC45;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__advantage-description {
  font-size: 0.95em;
  color: #b0b0b0;
}

.page-about__link-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(252, 188, 69, 0.3);
}

.page-about__link-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(252, 188, 69, 0.5);
}

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

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

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

.page-about__cta-button--register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  box-shadow: 0 5px 15px rgba(252, 188, 69, 0.4);
}

.page-about__cta-button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(252, 188, 69, 0.6);
}

.page-about__cta-button--explore {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
  box-shadow: 0 5px 15px rgba(252, 188, 69, 0.2);
}

.page-about__cta-button--explore:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(252, 188, 69, 0.4);
}

/* Initial state for JS animation */
.page-about--hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-about--is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
  .page-about__mission-vision-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .page-about__text-block,
  .page-about__card-description,
  .page-about__advantage-description {
    font-size: 1em;
    text-align: left; /* Keep text left-aligned on mobile for better readability */
  }

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

  .page-about__story-section, .page-about__mission-vision-section, .page-about__why-choose-section, .page-about__responsible-gaming-section, .page-about__technology-section, .page-about__team-section, .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 20px;
  }

  .page-about__image-content,
  .page-about__hero-image {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    min-width: 200px; /* Ensure minimum display size */
    min-height: 200px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-about img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum display size */
    min-height: 200px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-about__cta-button {
    width: 100%;
    max-width: 300px;
  }
}