:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --site-bg-dark: #0A0A0A; /* This is var(--site-bg) from shared.css */
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--site-bg-dark); /* Ensure consistency if shared.css is overridden */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--site-bg-dark);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability below it */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-about__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--card-bg);
  transform: translateY(-3px);
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-about__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.page-about__mission-vision-section,
.page-about__history-section,
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: var(--site-bg-dark);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__image-wrapper {
  grid-area: image;
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__text-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__why-choose-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-about__feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-main);
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__btn-text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__btn-text-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--site-bg-dark);
}

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

.page-about__responsible-gaming-points .page-about__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-about__responsible-gaming-points .page-about__card-title {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-about__faq-item {
  background-color: var(--site-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main);
}

.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;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-about__content-grid--reverse {
    grid-template-areas: unset;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 15px 40px;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-about__section-description {
    font-size: 0.95rem;
    margin: 0 auto 30px;
  }

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

  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__cta-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__text-block p {
    font-size: 0.9rem;
  }

  .page-about__image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-about__features-grid,
  .page-about__responsible-gaming-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card,
  .page-about__responsible-gaming-points .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 1.3rem;
  }

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

  .page-about__faq-question h3 {
    font-size: 1rem;
  }

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

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

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.95rem;
    padding: 12px 20px;
  }
}