:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background); /* Inherited from body, but good to reinforce */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

/* --- Color Theme Application --- */
.page-about__dark-section {
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #ffffff; /* Explicitly white for contrast */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

.page-about__light-bg .page-about__section-title {
  color: #333333;
}
.page-about__light-bg .page-about__section-description {
  color: #555555;
}
.page-about__light-bg .page-about__text-block p {
  color: #333333;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px; /* Adjust as needed */
  background-color: var(--background); /* Ensure dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  position: relative; /* Not absolutely positioned over image */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1, not fixed large */
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile */
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--border); /* #2E7A4E */
}

.page-about__btn-secondary:hover {
  background-color: var(--border);
  color: #ffffff;
}

.page-about__btn-tertiary {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
  border: 1px solid var(--divider); /* #1E3A2A */
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-about__btn-tertiary:hover {
  background-color: var(--border); /* #2E7A4E */
}

/* --- Introduction Section --- */
.page-about__introduction-section .page-about__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

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

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-main); /* Default to light text for dark sections */
}
.page-about__light-bg .page-about__text-block p {
  color: #333333; /* Dark text for light sections */
}


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

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* --- History Section (Timeline) --- */
.page-about__history-section {
  text-align: center;
}

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

.page-about__timeline-item {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__timeline-text {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* --- Games Section --- */
.page-about__games-section {
  text-align: center;
}

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

.page-about__game-card {
  background-color: #ffffff; /* White background for light section */
  color: #333333; /* Dark text */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__game-title {
  font-size: 1.5em;
  color: var(--deep-green); /* #0A4B2C */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-about__image-block--center {
  margin-top: 60px;
  padding: 0 20px;
}

/* --- Security Section --- */
.page-about__security-section .page-about__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Support Section --- */
.page-about__support-section .page-about__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-about__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* --- Vision Section --- */
.page-about__vision-section {
  text-align: center;
}
.page-about__vision-section .page-about__hero-cta-buttons { /* Reusing button group style */
  margin-top: 40px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  text-align: center;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--deep-green); /* #0A4B2C */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* #F2C14E */
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #e8e8e8;
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.page-about__faq-answer p {
  margin-bottom: 0;
}


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

  .page-about__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

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

  .page-about__image-block {
    order: -1; /* Image above text for column layout */
    margin-bottom: 20px;
  }

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

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

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

  .page-about__container {
    padding: 0 15px;
  }

  /* Force responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive video (if any) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive buttons */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary,
  .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; /* Add some padding to prevent text touching edges */
    padding-right: 15px;
  }
  
  /* Button containers */
  .page-about__hero-cta-buttons,
  .page-about__cta-center,
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__hero-title {
    margin-bottom: 15px;
  }

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

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

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

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Content section padding */
  .page-about__introduction-section,
  .page-about__history-section,
  .page-about__games-section,
  .page-about__security-section,
  .page-about__support-section,
  .page-about__vision-section,
  .page-about__faq-section {
    padding: 50px 0;
  }
  /* Video section top padding */
  .page-about__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure containers for images/videos/buttons are also responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
}

/* Ensure content area images are not too small */
.page-about__content-image {
    min-width: 200px;
    min-height: 200px;
}
/* Any img inside .page-about, except shared header/footer, must be >= 200x200px */
.page-about img:not(.shared-header__logo-img):not(.shared-footer__social-icon):not(.shared-footer__payment-icon) {
    min-width: 200px;
    min-height: 200px;
}
/* Card layout images must be large */
.page-about__game-card img { /* If cards had images, they would need this */
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Occupy card's main visual area */
    height: auto;
}