.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--background); /* Default background color from custom palette */
}

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

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

.page-about__text-center {
  text-align: center;
}

.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__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__hero-content-wrapper {
  max-width: 900px;
  margin-top: 40px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__hero-title {
  font-size: 2.8em;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.page-about__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Dark Section */
.page-about__dark-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__dark-section .page-about__section-title {
  color: var(--text-main);
}

.page-about__dark-section .page-about__text-block {
  color: var(--text-secondary);
}

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

.page-about__card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Why Choose Section */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-text {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Join Community Section */
.page-about__community-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-item summary {
  list-style: none;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(var(--deep-green-rgb), 0.5);
}

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__vision-mission-grid {
    grid-template-columns: 1fr;
  }
  .page-about__card-image {
    max-width: 300px;
  }
  .page-about__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px !important;
  }
  .page-about__section-spacing {
    padding: 40px 0;
  }
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-content-wrapper {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 0.95em;
  }
  .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__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__card,
  .page-about__feature-item,
  .page-about__community-image,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  .page-about__card-image,
  .page-about__feature-image {
    max-width: 100%;
    width: 100%;
  }
}

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

/* Ensure contrast for elements with custom colors */
.page-about__dark-section .page-about__btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.page-about__dark-section .page-about__btn-secondary:hover {
  background: var(--deep-green);
  color: var(--text-main);
}

/* General text color for readability */
.page-about p, .page-about li {
  color: var(--text-secondary);
}

.page-about h2, .page-about h3, .page-about h4 {
  color: var(--text-main);
}

/* Ensure content area images are not too small */
.page-about__introduction-section img,
.page-about__vision-mission-section img,
.page-about__why-choose-section img,
.page-about__responsible-gaming-section img,
.page-about__join-community-section img {
  min-width: 200px;
  min-height: 200px;
}