/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF3E6); /* Default text color for dark body bg */
  background-color: var(--background-color, #0D0E12); /* Body background from shared */
}

/* Container for content centering */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections styling */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0D0E12; /* Explicitly set for hero */
  color: #FFF3E6;
}

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

.page-about__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp as per instruction */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFF3E6; /* Light text for dark background */
}

.page-about__hero-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #FFF3E6;
}

.page-about__hero-image-wrapper {
  margin-top: 30px;
}

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

.page-about__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-main, #FFF3E6); /* Default for dark sections */
}

.page-about__subsection-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main, #FFF3E6); /* Default for dark sections */
}

.page-about__paragraph {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-main, #FFF3E6); /* Default for dark sections */
}

/* Color theme specific sections */
.page-about__dark-bg {
  background-color: #0D0E12;
  color: #FFF3E6;
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__subsection-title,
.page-about__light-bg .page-about__paragraph,
.page-about__light-bg .page-about__feature-title,
.page-about__light-bg .page-about__feature-description,
.page-about__light-bg .page-about__faq-qtext {
  color: #333333; /* Ensure dark text on light background */
}

.page-about__card-bg {
  background-color: #17191F;
  color: #FFF3E6;
  padding: 60px 0;
}

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__mission-vision-section .page-about__content-block,
.page-about__mission-vision-section .page-about__image-block {
  flex: 1;
  min-width: 300px;
}

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

/* History & Values Section */
.page-about__history-values-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.page-about__history-values-section .page-about__content-block {
  flex: 1;
  min-width: 300px;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__value-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
  color: #FFF3E6;
}

.page-about__value-item::before {
  content: '✓';
  color: #FFA53A; /* Accent color */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

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

.page-about__feature-card {
  background-color: #ffffff; /* White card background on light section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.page-about__light-bg .page-about__feature-card {
    background-color: #f9f9f9; /* Slightly off-white for cards on light background */
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FF8C1A; /* Brand color for titles */
}

.page-about__feature-description {
  font-size: 0.95rem;
  color: #333333;
}

/* Security Section */
.page-about__security-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__security-section .page-about__content-block,
.page-about__security-section .page-about__image-block {
  flex: 1;
  min-width: 300px;
}
.page-about__security-section .page-about__content-block {
  order: 1; /* Content on left */
}
.page-about__security-section .page-about__image-block {
  order: 2; /* Image on right */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  text-align: center;
}

/* Team Section */
.page-about__team-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.page-about__team-section .page-about__content-block {
  flex: 1;
  min-width: 300px;
  order: 2; /* Content on right */
}
.page-about__team-section .page-about__image-block {
  flex: 1;
  min-width: 300px;
  order: 1; /* Image on left */
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 30px;
  border: none;
  cursor: pointer;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}
.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color from custom palette */
  overflow: hidden;
  background: #17191F; /* Card BG color from custom palette */
  color: #FFF3E6; /* Text Main color from custom palette */
}
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;
  background: #17191F;
}
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: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Accent 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: #0D0E12; /* Background color from custom palette for answer */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
}
.page-about__faq-answer p {
  margin-bottom: 0;
  color: #FFF3E6;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-about__subsection-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__mission-vision-section .page-about__container,
  .page-about__history-values-section .page-about__container,
  .page-about__security-section .page-about__container,
  .page-about__team-section .page-about__container {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__security-section .page-about__content-block,
  .page-about__security-section .page-about__image-block,
  .page-about__team-section .page-about__content-block,
  .page-about__team-section .page-about__image-block {
    order: unset; /* Reset order for mobile */
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-values-section,
  .page-about__why-choose-us,
  .page-about__security-section,
  .page-about__responsible-gaming-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  /* Images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons */
  .page-about__cta-button,
  .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;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}

/* Contrast fixes for light backgrounds where text color might be inherited */
.page-about__light-bg .page-about__feature-card p,
.page-about__light-bg .page-about__faq-item .page-about__faq-question .page-about__faq-qtext,
.page-about__light-bg .page-about__faq-item .page-about__faq-answer p {
  color: #333333;
}