.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

.page-about__card {
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-about__card-title {
  font-size: 1.8em;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #F2C14E; /* Primary Color */
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

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

.page-about__cta-buttons--centered {
  margin-top: 60px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #111111; /* Dark text on hover for contrast */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
}

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
}

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

.page-about__value-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 10px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
}

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

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size for content images */
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #F2C14E; /* Primary Color */
  margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-about__responsible-gaming-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #FFF6D6;
}

.page-about__responsible-gaming-footer-text a {
  color: #FFD36B; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-about__responsible-gaming-footer-text a:hover {
  text-decoration: underline;
}

/* Our Team Section */
.page-about__our-team-section {
  padding: 80px 0;
}

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

.page-about__team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #F2C14E;
  min-width: 200px; /* Ensure min size for content images */
  min-height: 200px;
}

.page-about__member-name {
  font-size: 1.4em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: #F2C14E; /* Primary Color */
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  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: #111111;
  color: #FFF6D6;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  margin: 0;
  color: #F2C14E; /* Primary Color */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for consistency */
}

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  padding-top: 10px; /* Adjust padding for text */
}

/* Dark section styling */
.page-about__dark-section {
  background-color: #0A0A0A;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__hero-description,
  .page-about__section-description {
    font-size: 1em;
  }

  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
  }

  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__responsible-gaming-grid,
  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-about__hero-description {
    font-size: 0.95em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 1.6em;
  }

  .page-about__value-title,
  .page-about__feature-title {
    font-size: 1.3em;
  }

  .page-about__team-photo {
    width: 120px;
    height: 120px;
    min-width: 200px !important; /* Ensure min size for content images */
    min-height: 200px !important;
  }

  .page-about__team-member {
    padding: 20px;
  }

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

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

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

  /* Force images to be responsive and not overflow */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-about__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.6em;
  }

  .page-about__main-title {
    font-size: clamp(1.4em, 7vw, 2.2em);
  }

  .page-about__card-title {
    font-size: 1.4em;
  }

  .page-about__value-title,
  .page-about__feature-title {
    font-size: 1.2em;
  }

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