.page-about {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Main text color for the page, contrasting with dark red/gold theme */
  background-color: #B71C1C; /* Overall page background */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow issues */
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #FFD86A; /* Gold color for titles */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 18px;
  color: #FFF5E1;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  background: linear-gradient(180deg, #C91F17 0%, #7A0E0E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive size on desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop to fill space */
  max-width: 100%;
  min-height: 300px; /* Ensure a minimum height */
}

.page-about__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1; /* Ensure content is above any background elements */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #FFD86A;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: 20px;
  color: #FFF5E1;
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 800px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  width: 100%;
  max-width: 500px; /* Constrain button group width */
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Default to auto, overridden by media queries */
  min-width: 180px;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for gold button */
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: #C91F17;
  color: #FFF5E1;
  border: 2px solid #FFD86A;
}

.page-about__btn-secondary:hover {
  background: #E53935;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-tertiary {
  background: transparent;
  color: #FFCC66;
  border: 2px solid #FFCC66;
  padding: 12px 25px;
  font-size: 16px;
}

.page-about__btn-tertiary:hover {
  background: #FFCC66;
  color: #333333;
  transform: translateY(-3px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #B71C1C;
  color: #FFF5E1;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

.page-about__text-block {
  flex: 1;
  padding: 20px 0;
}

.page-about__text-block p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-about__text-block strong {
  color: #FFD86A;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  min-height: 200px; /* Minimum size requirement */
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: #D32F2F; /* Card BG color as section background */
  color: #FFF5E1;
}

.page-about__dark-section {
  background-color: #D32F2F;
  color: #FFF5E1;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
  font-size: 24px;
  color: #FFD86A;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-about__feature-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1;
}

.page-about__image-block--center {
  margin-top: 50px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #B71C1C;
  color: #FFF5E1;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #B71C1C; /* Use page background for FAQ section */
  color: #FFF5E1;
  padding-bottom: 80px;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #F2B544; /* Gold border for FAQ items */
  overflow: hidden;
  background: #7A0E0E; /* Deep red for FAQ item background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Gold color for FAQ question */
}
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: #C91F17; /* Lighter red on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold color for FAQ question text */
}
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66; /* Glow color for toggle icon */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #D32F2F; /* Card BG color for answer background */
  border-radius: 0 0 8px 8px;
  color: #FFF5E1; /* Main text color for answer */
  font-size: 16px;
  line-height: 1.7;
}
.page-about__faq-answer p {
  margin-bottom: 10px;
}
.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Bottom CTA Section */
.page-about__cta-bottom-section {
  background: linear-gradient(180deg, #7A0E0E 0%, #C91F17 100%);
  padding: 80px 0;
  color: #FFF5E1;
}

.page-about__cta-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* General image styling for content areas */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
/* Tablet & Small Desktop (up to 1024px, but focusing on 768px as per prompt) */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 15px;
  }

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

  .page-about__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

  .page-about__intro-text {
    font-size: 18px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-about__content-flex--reverse {
    flex-direction: column; /* Keep column for reverse on tablet too */
  }

  .page-about__text-block,
  .page-about__image-block {
    width: 100%;
    max-width: 600px; /* Constrain content width */
    margin: 0 auto;
  }

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

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

/* Mobile (max-width: 768px) - MUST INCLUDE ALL SPECIFIC RULES */
@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* HERO Section specific mobile rules */
  .page-about__hero-section {
    padding-top: 10px; /* Still 10px, as body handles header offset */
  }
  .page-about__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible, no cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min height */
  }
  .page-about__hero-content {
    padding: 20px 15px;
  }
  .page-about__main-title {
    font-size: clamp(24px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 100% !important; /* Ensure full width */
    padding: 0 15px; /* Add padding to container, not individual buttons */
    box-sizing: border-box !important;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Product Display Area (if present, general grid responsiveness) */
  /* For About Us, not a specific product grid, but general features grid */
  .page-about__features-grid {
    grid-template-columns: 1fr; /* Single column layout for features */
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to grid container */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-about__feature-card {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .page-about__card-title {
    font-size: 20px;
  }

  /* Main Title / Long Text SEO Area */
  .page-about__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__text-block p {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 15px;
    text-align: left;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__content-flex {
    flex-direction: column;
    gap: 20px;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__image-block {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-
    box-sizing: border-box !important;
  }

  /* General Images and Containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-flex,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__faq-list,
  .page-about__cta-bottom-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 24px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Bottom CTA Section */
  .page-about__cta-bottom-section {
    padding: 50px 0;
  }
  .page-about__cta-bottom-content {
    padding: 0 15px;
  }
}

/* Ensure contrast for specific elements */
.page-about p,
.page-about li {
  color: #FFF5E1; /* Main text color */
}

/* Specific button text color for gold gradient */
.page-about__btn-primary {
  color: #333333; /* Dark text for gold button */
}

/* Ensure any other text on brand colors has sufficient contrast */
.page-about__dark-bg h2,
.page-about__dark-bg p,
.page-about__dark-section .page-about__section-description {
  color: #FFF5E1;
}