.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* From shared.css, assumed dark */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  text-align: center;
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #d16e06;
}

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
}

.page-about__mission-vision {
  padding: 60px 0;
  background-color: #f0f0f0; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-about__mission-vision .page-about__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.page-about__mission-card,
.page-about__vision-card {
  flex: 1;
  min-width: 300px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for white background */
}

.page-about__image-card {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  max-height: 400px;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
  color: #26A9E0;
  text-align: center;
}

.page-about__mission-card .page-about__section-title,
.page-about__vision-card .page-about__section-title {
  font-size: 2em;
  text-align: left;
  color: #26A9E0;
}

.page-about__text-block {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__why-choose-us {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand primary color for section background */
  color: #ffffff;
  text-align: center;
}

.page-about__why-choose-us .page-about__section-title {
  color: #ffffff;
}

.page-about__section-description {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for white background */
  text-align: left;
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 1em;
}

.page-about__responsible-gaming {
  padding: 60px 0;
  background-color: #f0f0f0;
  color: #333333;
}

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

.page-about__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* --- Color Contrast Classes (for dynamic use) --- */
.page-about__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-about__light-bg {
  background: #f0f0f0;
  color: #333333;
}

.page-about__medium-bg {
  background: #ffffff;
  color: #333333;
}

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

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

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
  }

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

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

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__mission-vision .page-about__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__mission-card,
  .page-about__vision-card {
    padding: 25px;
  }

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

  .page-about__mission-card .page-about__section-title,
  .page-about__vision-card .page-about__section-title {
    font-size: 1.6em;
  }

  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* Responsive image and video handling */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__image-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__responsible-gaming,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are already on .page-about__container */
    overflow: hidden !important;
  }
}

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

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

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