/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background (#0a0a0a) requires light text */
  background-color: transparent; /* Main content background is transparent to show body background */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for better visual impact */
  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 */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-about__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-about__btn-primary:hover {
  background-color: #1a7fb8;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

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

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

.page-about__intro-section, .page-about__responsible-gaming-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-about__mission-vision-section {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-about__card {
  background: rgba(255, 255, 255, 0.08); /* Dark background for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-about__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-about__values-grid {
  margin-top: 40px;
}

.page-about__value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.page-about__value-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid #26A9E0;
  padding: 10px;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-flex--reverse {
  flex-direction: row-reverse;
}

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__feature-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-about__feature-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__why-choose-image,
.page-about__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #26A9E0;
}

.page-about__member-name {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.9em;
  color: #e0e0e0;
}

.page-about__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1a7fb8;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-about__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-about__cta-section {
  background-color: #26A9E0;
  padding: 80px 0;
}

.page-about__cta-content {
  color: #ffffff;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__why-choose-image,
  .page-about__security-image {
    max-width: 80%;
    margin-top: 30px;
  }
  .page-about__cta-title {
    font-size: 2.2em;
  }
}

@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__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-about__why-choose-image,
  .page-about__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 20px;
  }
  .page-about__value-icon {
    width: 120px;
    height: 120px;
  }
  .page-about__team-avatar {
    width: 120px;
    height: 120px;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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,
  .page-about__hero-section,
  .page-about__why-choose-section,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    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-section {
    height: 400px;
  }
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__card-title {
    font-size: 1.4em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
  .page-about__cta-title {
    font-size: 1.5em;
  }
}