.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); /* Ensure content is below fixed header */
}

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

.page-about__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

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

.page-about__hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  padding: 40px;
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-about__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 150px;
  text-align: center;
}

.page-about__button--register {
  background-color: #FCBC45; /* Login button color for register */
  color: #000000; /* Dark text for light background */
}

.page-about__button--register:hover {
  background-color: #e0a53b;
}

.page-about__button--login {
  background-color: #000000; /* Main color for login button */
  color: #FCBC45; /* Login button color for text */
  border: 2px solid #FCBC45;
}

.page-about__button--login:hover {
  background-color: #222222;
  color: #FFFFFF;
}

.page-about__button--learn-more,
.page-about__button--affiliate {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FCBC45;
}

.page-about__button--learn-more:hover,
.page-about__button--affiliate:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-about__button--cta {
  background-color: #FCBC45;
  color: #000000;
  font-size: 1.1em;
  padding: 18px 35px;
}

.page-about__button--cta:hover {
  background-color: #e0a53b;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-about__section-title--light {
  color: #FFFFFF;
}

.page-about__section-title--light::after {
  background-color: #FFFFFF;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-about__paragraph--light {
  color: #f0f0f0;
}

.page-about__mission-section,
.page-about__history-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__text-content {
  grid-area: text;
}

.page-about__content-grid--reverse .page-about__image-wrapper {
  grid-area: image;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-about__values-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__background--dark {
  background-color: #000000;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px; /* Ensure cards are not too small */
}

.page-about__value-icon {
  width: 200px; /* Enforce minimum display size */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #000000; /* Main color for CTA section */
  color: #FFFFFF;
}

.page-about__background--promo {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:cta_bg:1920x1080:phbet vip,online gambling,promo background,luxury,gold,red]');
  background-size: cover;
  background-position: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__content-grid--reverse {
    grid-template-areas: unset;
  }
  .page-about__content-grid--reverse .page-about__text-content,
  .page-about__content-grid--reverse .page-about__image-wrapper {
    grid-area: unset;
  }
  .page-about__value-card {
    min-height: unset;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 20px;
    min-height: 400px;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__button {
    width: 100%;
    max-width: 280px;
  }
  .page-about__mission-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__cta-section {
    padding: 60px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  /* Mobile content area image fix */
  .page-about__image, .page-about__value-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small even on mobile */
    min-height: 200px;
  }
  .page-about__value-icon {
    width: 200px; /* Fixed width for icons to ensure min-size */
    height: 200px;
  }
}

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