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

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

.page-about__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding to accommodate header offset */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(38, 169, 224, 0.8), rgba(38, 169, 224, 0.6));
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  z-index: 2;
  position: relative;
}

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary color for titles on light background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__dark-bg .page-about__section-title {
  color: #FFFFFF; /* White for titles on dark background */
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__dark-bg .page-about__sub-title {
  color: #FFFFFF;
}

.page-about__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: #333333; /* Dark text on light background */
}

.page-about__dark-bg .page-about__paragraph {
  color: #f0f0f0; /* Light text on dark background */
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin: 10px;
}

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

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

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

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

.page-about__mission-vision-section,
.page-about__games-services-section,
.page-about__tech-security-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__customer-support-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color for dark sections */
  color: #FFFFFF;
}

.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-about__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__image-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-about__feature-card .page-about__card-title {
  color: #FFFFFF;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-about__feature-card .page-about__card-description {
  color: #f0f0f0;
}

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

.page-about__game-card {
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__game-card .page-about__card-title {
  color: #26A9E0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-about__game-card .page-about__card-description {
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  color: #FFFFFF;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  color: #FFFFFF;
  transition: transform 0.3s ease;
  font-weight: bold;
  line-height: 1;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 20px;
}

.page-about__faq-answer .page-about__paragraph {
  color: #f0f0f0;
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__image-content {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid:nth-child(even) {
    flex-direction: column;
  }
  .page-about__text-block, .page-about__image-content {
    max-width: 100%;
  }
  .page-about__image-content {
    margin-bottom: 20px;
  }
  .page-about__features-grid, .page-about__games-grid {
    grid-template-columns: 1fr;
  }
  .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;
    margin: 10px 0 !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section, .page-about__card, .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about video, .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section, .page-about__video-container, .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-title {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
}