.page-about {
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.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 */
  background-color: #08160F; /* Ensure hero section has a background */
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is on top of image, but not overlapping its visible area */
  width: 100%;
  max-width: 800px;
  padding: 40px 20px;
  text-align: center;
  color: #F2FFF6;
  z-index: 1; /* Ensure content is above image */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Main brand color for text */
  border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
  background: #2AD16F;
  color: #ffffff;
}

.page-about__btn-link {
  color: #2AD16F;
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
}

.page-about__btn-link:hover {
  color: #13994A;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #2AD16F;
  border-radius: 2px;
}

.page-about__introduction p,
.page-about__mission-vision p,
.page-about__why-choose-us p,
.page-about__game-offerings p,
.page-about__security-commitment p,
.page-about__team p {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: left;
}

.page-about__introduction strong,
.page-about__mission-vision strong,
.page-about__why-choose-us strong,
.page-about__game-offerings strong,
.page-about__security-commitment strong,
.page-about__team strong {
  color: #F2FFF6; /* Text Main */
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Card styles */
.page-about__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in a grid have equal height */
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

.page-about__dark-bg {
  background-color: #11271B;
  color: #F2FFF6; /* Text Main */
}

/* Mission & Vision Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* Feature List */
.page-about__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

/* Game Categories */
.page-about__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__game-card .page-about__card-title {
  color: #2AD16F; /* Highlight game titles */
}

.page-about__game-card:hover .page-about__card-title {
  color: #F2FFF6;
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #A7D9B8; /* Secondary text color for FAQ content */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main for question */
  position: relative;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question:hover {
  background-color: #1a3026; /* Slightly lighter hover */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #2AD16F;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
  color: #A7D9B8;
}

.page-about__faq-answer strong {
  color: #F2FFF6;
}

.page-about__cta-bottom {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
}

.page-about__cta-bottom .page-about__container {
  background-color: #11271B; /* Card BG for inner container */
  border-radius: 15px;
  padding: 50px;
  border: 1px solid #2E7A4E;
}

.page-about__cta-bottom .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__cta-bottom .page-about__description {
  color: #A7D9B8;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__feature-list {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(8, 22, 15, 0.7); /* Semi-transparent overlay for readability */
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
  .page-about__hero-section {
    min-height: 600px; /* Ensure hero section has enough height for content */
  }
  .page-about__hero-image {
    max-height: none;
    min-height: 600px;
  }
}

@media (min-width: 1024px) {
  .page-about__feature-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile specific rules */
@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__description {
    font-size: 1rem;
    padding: 0 15px;
  }

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

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

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

  .page-about__section-title::after {
    width: 60px;
  }

  .page-about__introduction p,
  .page-about__mission-vision p,
.page-about__why-choose-us p,
.page-about__game-offerings p,
.page-about__security-commitment p,
.page-about__team p {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-about__card {
    padding: 20px;
  }

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

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

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

  .page-about__cta-bottom {
    padding: 60px 0;
  }

  .page-about__cta-bottom .page-about__container {
    padding: 30px;
  }

  /* Mobile image and video responsiveness */
  .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__cta-buttons,
  .page-about__game-categories {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll for containers */
  }

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

  .page-about__hero-content {
    position: relative; /* On mobile, remove absolute positioning */
    transform: none;
    top: auto;
    left: auto;
    background-color: transparent; /* Remove overlay */
    padding: 30px 15px;
    box-shadow: none;
  }
  .page-about__hero-image {
    min-height: 200px; /* Ensure hero image is not too small on mobile */
  }

  .page-about__game-card {
    padding: 20px;
  }
}