.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color for the page content on dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-about__hero-section {
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  color: #0A0A0A; /* Dark text on light gradient background */
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__hero-content {
  max-width: 800px;
}

.page-about__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0A0A0A;
}

.page-about__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #333333;
}

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

.page-about__hero-image-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__section {
  padding: 80px 0;
}

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E;
}

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

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

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

.page-about__text-block {
  flex: 1;
  min-width: 0;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-about__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum width for image wrapper */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-about__story-section, .page-about__vision-mission-section {
  background-color: #0A0A0A;
}

.page-about__why-choose-us-section {
  background-color: #111111;
}

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

.page-about__feature-card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.page-about__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-about__feature-card p {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__feature-link {
  display: inline-block;
  margin-top: auto;
  color: #FFD36B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__feature-link:hover {
  color: #F2C14E;
  text-decoration: underline;
}

.page-about__dark-section {
  background-color: #0A0A0A;
  color: #ffffff; /* Forced white text */
}

.page-about__dark-section .page-about__section-title {
  color: #F2C14E;
}

.page-about__dark-section .page-about__section-intro {
  color: #FFF6D6;
}

.page-about__responsible-gaming-section .page-about__btn-primary {
  margin-top: 30px;
}

.page-about__team-section {
  background-color: #111111;
}

.page-about__team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.page-about__team-member-card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  max-width: 350px;
}

.page-about__team-member-photo {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #F2C14E;
  min-width: 200px;
  min-height: 200px;
}

.page-about__team-member-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFD36B;
  margin-bottom: 5px;
}

.page-about__team-member-role {
  font-size: 1rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-about__team-member-bio {
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-about__partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.page-about__partner-logo-wrapper {
  flex-shrink: 0;
  max-width: 167px;
  max-height: 127px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-about__partner-logo {
  width: 100%;
  height: auto;
  max-width: 167px;
  max-height: 127px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  min-width: 167px; /* Adhering to fixed size requirement */
  min-height: 127px;
}

.page-about__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.page-about__faq-section {
  background-color: #111111;
}

.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1A1A1A;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E;
  margin: 0;
}

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

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

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

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

.page-about__faq-answer p {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 0;
}

.page-about__faq-cta {
  margin-top: 40px;
}

.page-about__join-us-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-about__join-us-section .page-about__section-title {
  color: #F2C14E;
}

.page-about__join-us-section .page-about__section-intro {
  margin-bottom: 40px;
}

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

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-about__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
}

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
    gap: 40px;
  }

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

  .page-about__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-about__subsection-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }

  .page-about__section {
    padding: 50px 0;
  }

  .page-about__hero-cta-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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__hero-image,
  .page-about__image,
  .page-about__team-member-photo,
  .page-about__partner-logo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow resizing below 200px for specific elements */
    min-height: unset !important;
  }

  .page-about__image-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__team-member-card,
  .page-about__partner-logo-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__partner-logo-wrapper {
    max-width: unset;
    width: auto;
  }

  .page-about__partner-logo {
    max-width: 167px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__team-member-photo {
    max-width: 200px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-item-title {
    font-size: 1.1rem;
  }

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

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