:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-bg: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --header-offset: 120px; /* Default for pages, will be overridden by body padding-top from shared.css */
}

/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-bg); /* Default page background */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles main header offset */
}

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

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

.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  color: var(--color-gold); /* Gold for main titles */
  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: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about p {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.page-about a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--color-gold);
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Buttons */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__contact-button,
.page-about__faq-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary,
.page-about__cta-button,
.page-about__contact-button,
.page-about__faq-link-btn {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover,
.page-about__cta-button:hover,
.page-about__contact-button:hover,
.page-about__faq-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  transform: translateY(-2px);
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Force image on top, text below */
  align-items: center;
  padding: 20px 0 60px;
  text-align: center;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

.page-about__hero-content {
    max-width: 900px;
    margin-bottom: 30px; /* Space between text and image */
    padding: 0 15px;
    box-sizing: border-box;
}

.page-about__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-about__dark-section {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to single column */
  gap: 40px;
  align-items: center;
}

.page-about__text-block {
  text-align: left;
}

.page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--color-bg);
}

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

.page-about__value-card {
  background: var(--color-card-bg); /* Use dark card background */
  color: var(--color-text-main); /* Light text on dark card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__value-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-about__values-main-image {
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__feature-item {
  background: var(--color-card-bg);
  color: var(--color-text-main);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-about__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--color-bg);
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg); /* Dark background for FAQ item */
  color: var(--color-text-main); /* Light text on dark FAQ item */
}
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;
}
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(--color-deep-green); /* Slightly lighter dark green on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text-main);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary); /* Use primary color for toggle */
  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: var(--color-deep-green); /* Slightly lighter dark green for answer background */
  border-radius: 0 0 5px 5px;
  color: var(--color-text-secondary);
}

.page-about__faq-link-btn {
    margin-top: 15px;
    font-size: 16px;
    padding: 8px 15px;
}


/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-deep-green);
}

.page-about__cta-content {
    max-width: 900px;
}

.page-about__cta-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Contact Info Section */
.page-about__contact-info-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.page-about__contact-description {
    text-align: center;
    margin-bottom: 40px;
}

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

.page-about__contact-card {
    background: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    text-align: center;
}

.page-about__contact-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
}

/* --- Responsive Styles --- */

/* REQUIRED: Homepage-specific media queries, even for About Us page */
/* A. @media (max-width: 1023px) must be output verbatim */
@media (max-width: 1023px) {
  .page-about__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot {
    display: none !important;
  }
  .page-about__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-about__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-topbar,
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-about__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* B. @media (min-width: 1024px) must be output verbatim */
@media (min-width: 1024px) {
  .page-about__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot,
  .page-about__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-about__promo-strip { /* Example if this existed on about page */
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-about__hot-games-grid { /* Example if this existed on about page */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile-specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-about {
    padding-top: 5px; /* Adjust small top padding for mobile */
  }

  .page-about__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-about__sub-title {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about p {
    font-size: 16px;
  }

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__image-block {
    order: -1; /* Image above text on mobile */
  }

  .page-about__values-grid,
  .page-about__feature-grid,
  .page-about__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card,
  .page-about__feature-item,
  .page-about__contact-card {
    padding: 25px;
  }

  .page-about__value-title,
  .page-about__feature-title,
  .page-about__contact-title {
    font-size: 20px;
  }

  /* REQUIRED: Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* REQUIRED: All containers with images/content must have these properties */
  .page-about__hero-section,
  .page-about__container,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-us,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__contact-info-section,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__feature-grid,
  .page-about__faq-list,
  .page-about__contact-methods,
  .page-about__value-card,
  .page-about__feature-item,
  .page-about__contact-card,
  .page-about__hero-content,
  .page-about__hero-image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content from touching edges */
    padding-right: 15px;
  }

  /* REQUIRED: Mobile button adaptation */
  .page-about__cta-button,
  .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__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-about__btn-secondary {
    margin-left: 0; /* Remove margin for stacked buttons */
  }

  /* FAQ specific mobile styles */
  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 16px; }
  details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }

  /* Example for homepage elements if they were present (REQUIRED TO BE INCLUDED) */
  /* 2. Ưu đãi __promo-strip */
  .page-about__promo-strip-track { /* Assuming track is the grid container */
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    overflow-x: hidden !important;
    gap: 15px !important;
  }
  .page-about__promo-card { /* Assuming card is the item */
    display: flex !important;
    flex-direction: column !important; /* Stack image and text */
    align-items: center !important;
    text-align: center !important;
  }
  .page-about__promo-card img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px !important;
  }
  .page-about__promo-card-content {
    padding: 0 10px !important;
  }
  .page-about__promo-card-button {
    width: 100% !important;
    margin-top: 10px !important;
  }

  /* 3. Phổ biến __hot-games */
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px !important;
    overflow-x: hidden !important;
  }
  .page-about__hot-games-item {
    text-align: center !important;
  }
  .page-about__hot-games-item img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 5px !important;
  }
  .page-about__hot-games-name,
  .page-about__hot-games-rtp,
  .page-about__hot-games-desc {
    display: none !important; /* Hide details on mobile */
  }

  /* 4. Giới thiệu thương hiệu __brand-intro (if it were shown) */
  .page-about__brand-intro {
    padding: 30px 0 !important;
  }
  .page-about__brand-intro-content {
    flex-direction: column !important;
    text-align: center !important;
  }
  .page-about__brand-intro-text {
    margin-bottom: 20px !important;
  }

  /* 5. Dòng người thắng __winner-ticker (if it were present) */
  .page-about__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    background: rgba(0,0,0,0.8) !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
  body {
    padding-bottom: 50px !important; /* Account for fixed ticker */
  }
  .page-about {
    padding-bottom: 50px !important; /* Also adjust main content if it's the only one */
  }

}

/* Color contrast fixes (if needed, applied generally) */
.page-about__light-bg {
  color: #333333; /* For elements that might have a light background on a dark themed page */
  background: #ffffff;
}
/* Ensure links in dark sections are visible */
.page-about__dark-section a {
    color: var(--color-gold);
}
.page-about__dark-section a:hover {
    color: var(--color-glow);
}