/* Base Styles */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default to light text on dark background */
  background-color: var(--card-bg-color); /* Deep Navy */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

.page-about__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
  background: transparent;
  color: #F3F8FF;
  border: 2px solid #244D84;
}

.page-about__btn-secondary:hover {
  background: #244D84;
  color: #F3F8FF;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--card-bg-color);
}

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

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Mission & Values Section */
.page-about__mission-values-section {
  padding: 80px 0;
  background-color: var(--light-bg-color, #f9f9f9); /* Fallback for light background */
  color: #333333; /* Dark text on light background */
}

.page-about__mission-values-section .page-about__section-title {
  color: #08162B; /* Darker title for light section */
}

.page-about__mission-values-section .page-about__text-block {
  color: #555555;
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

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

.page-about__value-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-about__value-title {
  font-size: 24px;
  font-weight: 700;
  color: #113B7A;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 16px;
  color: #555555;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
}

.page-about__history-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__history-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background-color: var(--light-bg-color, #f9f9f9);
  color: #333333;
}

.page-about__why-choose-section .page-about__section-title {
  color: #08162B;
}

.page-about__why-choose-section .page-about__text-block {
  color: #555555;
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.page-about__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__benefits-list li {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-about__benefits-list li h3 {
  font-size: 22px;
  font-weight: 700;
  color: #113B7A;
  margin-bottom: 10px;
}

.page-about__benefits-list li p {
  font-size: 16px;
  color: #555555;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

.page-about__faq-section .page-about__section-title {
  color: #08162B;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

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: #f5f5f5;
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Join Us CTA Section */
.page-about__join-us-cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
}

.page-about__join-us-cta .page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Custom Color Variables */
:root {
  --main-color: #113B7A;
  --accent-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F; /* Deep Navy for card-like sections */
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
  --light-bg-color: #F3F8FF; /* Lighter background for some sections */
}

/* General Section Backgrounds and Text Colors based on inferred body brightness */
.page-about__dark-section {
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
}

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

.page-about__light-bg {
  background-color: var(--light-bg-color);
  color: #333333; /* Dark text on light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__value-title,
.page-about__light-bg .page-about__faq-qtext {
  color: var(--main-color);
}

.page-about__light-bg .page-about__value-card p,
.page-about__light-bg .page-about__benefits-list li p,
.page-about__light-bg .page-about__faq-answer {
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1023px) {
  /* No specific home-hero rules needed for About page, but general responsiveness applies */
}

@media (min-width: 1024px) {
  /* No specific home-hero rules needed for About page, but general responsiveness applies */
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 20px;
  }

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

  .page-about__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-about__description {
    font-size: 16px;
  }

  .page-about__hero-section,
  .page-about__mission-values-section,
  .page-about__history-section,
  .page-about__why-choose-section,
  .page-about__responsible-gaming-section,
  .page-about__faq-section,
  .page-about__join-us-cta {
    padding: 50px 0;
  }

  .page-about__history-content {
    flex-direction: column;
  }

  .page-about__history-image {
    width: 100%;
    margin-bottom: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ specific for mobile */
  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; }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section .page-about__container,
  .page-about__mission-values-section .page-about__container,
  .page-about__history-section .page-about__container,
  .page-about__why-choose-section .page-about__container,
  .page-about__responsible-gaming-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__join-us-cta .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure text blocks are also constrained */
  .page-about__text-block {
    padding: 0 5px; /* Slight padding for readability */
  }
}