.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Body background from shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* Fixed header spacing for desktop */
  padding-bottom: 60px;
  background-color: #111111; /* Fallback if image fails */
}

.page-about__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
  border-radius: 8px;
}

.page-about__hero-text-container {
  max-width: 800px;
  margin-top: 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-about__hero-description {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-about__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 2px solid #FFD36B;
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

.page-about__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

/* General Section Styling */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__section-description {
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 60px auto;
}

.page-about__story-vision-section,
.page-about__mission-values-section,
.page-about__unique-features-section,
.page-about__security-compliance-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-about__dark-section {
  background-color: #111111; /* Card BG for dark sections */
  color: #FFF6D6;
  padding: 80px 0;
}

.page-about__dark-section .page-about__section-title {
  color: #FFD36B; /* Lighter brand color for titles on darker background */
}

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

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

.page-about__text-block {
  flex: 1;
  color: #FFF6D6;
  font-size: 1.05rem;
}

.page-about__text-block p {
  margin-bottom: 1.2em;
}

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

.page-about__text-block a:hover {
  color: #F2C14E;
}

.page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mission & Values */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__value-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Brand color for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__value-card p {
  font-size: 1rem;
  color: #ffffff;
}

/* Unique Features */
.page-about__sub-title {
  font-size: 1.8rem;
  color: #FFD36B; /* Auxiliary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__unique-features-section p {
  color: #FFF6D6;
  font-size: 1.05rem;
}

/* Security & Compliance */
.page-about__compliance-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__compliance-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-about__item-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__compliance-item p {
  font-size: 1rem;
  color: #ffffff;
}

/* Responsible Gaming */
.page-about__responsible-gaming-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for features */
  border-radius: 12px;
  padding: 30px;
  color: #FFF6D6;
}

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

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #111111;
  color: #F2C14E; /* Brand color for questions */
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-about__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #FFD36B; /* Auxiliary color for toggle */
  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 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answers */
  color: #FFF6D6;
  font-size: 1rem;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Use !important for FAQ expansion */
  padding: 20px 30px;
}

.page-about__faq-answer p {
  margin: 0;
  color: #ffffff;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-section .page-about__cta-buttons {
  margin-top: 40px;
}

.page-about__cta-section .page-about__btn-primary,
.page-about__cta-section .page-about__btn-secondary {
  font-size: 1.1rem;
  padding: 16px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
  }

  .page-about__hero-content-wrapper {
    gap: 20px;
  }

  .page-about__hero-image {
    max-height: 300px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__story-vision-section,
  .page-about__mission-values-section,
  .page-about__unique-features-section,
  .page-about__security-compliance-section,
  .page-about__faq-section,
  .page-about__dark-section {
    padding: 50px 0;
  }

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

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }

  .page-about__values-grid,
  .page-about__compliance-points,
  .page-about__responsible-gaming-features {
    grid-template-columns: 1fr;
  }

  .page-about__section-description {
    margin-bottom: 40px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-about__faq-answer {
    padding: 0 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-section,
  .page-about__story-vision-section,
  .page-about__mission-values-section,
  .page-about__unique-features-section,
  .page-about__security-compliance-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__value-card,
  .page-about__compliance-item,
  .page-about__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure no horizontal scroll for elements that contain images/buttons */
  .page-about__hero-content-wrapper,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__compliance-points,
  .page-about__responsible-gaming-features,
  .page-about__faq-list,
  .page-about__cta-buttons {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}