.page-about {
  color: #ffffff; /* Body background is dark (#121212), so use light text */
  background-color: transparent; /* Main content background is handled by body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-about__hero-content {
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

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

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

.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, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-about__intro-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__cta-final-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for sections */
  color: #ffffff;
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-about__text-block--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__mission-vision-section,
.page-about__security-section {
  padding: 80px 0;
  background-color: #222222;
  color: #ffffff;
}

.page-about__dark-section {
  background-color: #017439; /* Brand color background */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-about__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for feature titles */
  margin-bottom: 10px;
}

.page-about__feature-item p {
  color: #e0e0e0;
}

.page-about__cta-buttons--centered {
  margin-top: 40px;
  text-align: center;
}

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.page-about__value-title {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-about__value-item p {
  color: #f0f0f0;
}

.page-about__video-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for video */
  margin: 0 auto 30px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-about__video-overlay-click {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-about__security-content,
.page-about__support-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-about__security-list,
.page-about__support-list,
.page-about__responsible-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__security-list li,
.page-about__support-list li,
.page-about__responsible-list li {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1.05em;
  display: flex;
  align-items: center;
}

.page-about__security-list li strong,
.page-about__support-list li strong,
.page-about__responsible-list li strong {
  color: #017439;
  margin-right: 10px;
}

.page-about__security-image-wrapper,
.page-about__support-image-wrapper {
  text-align: center;
}

.page-about__security-image,
.page-about__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__grid-layout--reversed {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* Reverse order for layout */
}

.page-about__grid-layout--reversed > *:nth-child(1) { /* First child in HTML (image) */
  grid-column: 2; /* Place image on the right */
}

.page-about__grid-layout--reversed > *:nth-child(2) { /* Second child in HTML (content) */
  grid-column: 1; /* Place content on the left */
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__cta-final-section .page-about__cta-content {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-final-section .page-about__btn-primary,
.page-about__cta-final-section .page-about__btn-secondary {
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-about__grid-layout--reversed {
    grid-template-columns: 1fr;
    direction: ltr; /* Reset for mobile */
  }
  .page-about__grid-layout--reversed > *:nth-child(1),
  .page-about__grid-layout--reversed > *:nth-child(2) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-about__intro-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__values-section,
  .page-about__video-section,
  .page-about__security-section,
  .page-about__customer-support-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-final-section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__feature-list,
  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__video-wrapper {
    margin-left: 15px !important;
    margin-right: 15px !important;
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__security-image,
  .page-about__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    height: 400px;
  }
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}