:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --text-main-color: #FFF5E1;
  --card-bg-color: #D32F2F;
  --section-bg-color: #B71C1C;
  --border-color: #F2B544;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --dark-text-on-light: #333333; /* For general use on light backgrounds if needed */
  --light-text-on-dark: #ffffff; /* For general use on dark backgrounds if needed */
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Main text color */
  background-color: var(--section-bg-color); /* Main section background color */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background: var(--deep-red-color); /* Use a darker red for hero background */
  color: var(--light-text-on-dark);
  overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for responsive H1 size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color); /* Gold color for title */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-about__intro-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-main-color);
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--dark-text-on-light); /* Dark text on light gold button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--glow-color);
}

/* General Section Styling */
.page-about__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  background-color: var(--section-bg-color); /* Default section background */
  color: var(--text-main-color);
}

.page-about__section--mission {
  background-color: var(--deep-red-color); /* Specific background for mission section */
}

.page-about__section--why-choose-us {
  background-color: var(--primary-color); /* Specific background for why choose us */
}

.page-about__section--games {
  background-color: var(--section-bg-color); /* Specific background for games section */
}

.page-about__section--safety-support {
  background-color: var(--deep-red-color); /* Specific background for safety section */
}

.page-about__section--faq {
  background-color: var(--primary-color); /* Specific background for FAQ section */
}

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

.page-about__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.page-about__sub-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--gold-color);
}

.page-about__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-about__list-item {
  background-color: var(--card-bg-color); /* Card BG for list items */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-about__list-item strong {
  color: var(--gold-color);
}

.page-about__content-wrapper img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Grid */
.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__card {
  background-color: var(--card-bg-color); /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.page-about__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

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

.page-about__card-text {
  font-size: 1rem;
  color: var(--text-main-color);
}

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

.page-about__game-item {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.page-about__game-item img {
  width: 100%;
   /* Fixed height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-about__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-about__game-description {
  font-size: 0.95rem;
  color: var(--text-main-color);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-about__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--dark-text-on-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-gradient);
  color: var(--dark-text-on-light); /* Dark text on light gold button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  border-color: var(--glow-color);
}


/* FAQ Section */
.page-about__faq-list {
  margin-top: 50px;
  text-align: left;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color); /* FAQ item background */
  color: var(--text-main-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-color); /* FAQ question color */
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: var(--deep-red-color); /* Darker on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
  font-size: 1rem;
}
.page-about__faq-answer p {
  margin: 0; /* Remove default paragraph margin within answer */
}


/* --- Responsive Styling --- */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__intro-text {
    font-size: 1rem;
  }
  .page-about__heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-about__section {
    padding: 60px 15px;
  }
  .page-about__list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-about__hero-section {
    padding-top: 10px !important; /* body already has padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-image img {
    border-radius: 4px;
  }
  
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* All images must be responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid,
  .page-about__game-grid,
  .page-about__faq-list,
  .page-about__content-wrapper,
  .page-about__game-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

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

  .page-about__list {
    grid-template-columns: 1fr;
  }

  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 15px; }
  .page-about__faq-answer { padding: 0 15px 15px; }
  .page-about__faq-toggle {
    width: 24px;
    font-size: 20px;
  }

  /* Button containers mobile adaptation */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex for column/wrap */
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-about__btn-secondary, .page-about__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}