.page-about {
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #0A2463; /* Use primary brand color for hero background */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #E3B505; /* Use accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button--primary {
  background-color: #E3B505; /* Accent color for primary CTA */
  color: #0A2463;
  border: 2px solid #E3B505;
}

.page-about__cta-button--primary:hover {
  background-color: #ffc928;
  border-color: #ffc928;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
  background-color: transparent;
  color: #E3B505;
  border: 2px solid #E3B505;
}

.page-about__cta-button--secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E3B505; /* Accent color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-about__sub-title {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff; /* Light text for sub-titles */
  margin-bottom: 20px;
}

.page-about__text-block {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
  object-fit: cover;
}

.page-about a {
  color: #E3B505;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: #ffc928;
  text-decoration: underline;
}

/* Specific section styles */
.page-about__history-section,
.page-about__why-choose-us-section,
.page-about__team-section,
.page-about__contact-cta-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-about__mission-section,
.page-about__responsible-gaming-section {
  background-color: #0A2463; /* Primary color for these sections */
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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.08); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__advantage-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-about__advantage-title {
  font-size: 22px;
  color: #E3B505;
  margin-bottom: 15px;
  text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 40px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__hero-image {
    border-radius: 8px;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 24px;
  }

  .page-about__text-block {
    font-size: 15px;
  }

  .page-about__image {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-about__history-section, 
  .page-about__why-choose-us-section,
  .page-about__team-section,
  .page-about__contact-cta-section,
  .page-about__mission-section,
  .page-about__responsible-gaming-section {
    padding: 50px 0;
  }

  .page-about__mission-vision-grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-about__advantage-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-about__advantage-title {
    font-size: 20px;
  }

  /* Ensure all image containers are responsive */
  .page-about__hero-section,
  .page-about__history-section .page-about__container,
  .page-about__mission-section .page-about__container,
  .page-about__why-choose-us-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container,
  .page-about__team-section .page-about__container,
  .page-about__contact-cta-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__sub-title {
    font-size: 22px;
  }
  .page-about__cta-button {
    font-size: 15px;
    padding: 10px 15px;
  }
}