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

/* Base styles for page-about, assuming body has a dark background from shared.css */
.page-about {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-dark);
  line-height: 1.6;
}

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

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

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

.page-about__card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
  line-height: 1.2;
}

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

.page-about__card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__card-title a:hover {
  color: var(--secondary-color);
}

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

.page-about__text-main {
  color: var(--text-main);
}

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

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

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

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

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

.page-about__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-dark);
}

.page-about__btn-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom of card */
  display: inline-block;
  padding-top: 15px;
  transition: color 0.3s ease;
}

.page-about__btn-link:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

/* Hero Section */
.page-about__hero-section {
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetics */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 20px; /* Space from image */
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.page-about__intro-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Mission & Vision */
.page-about__mission-vision {
  background-color: var(--background-dark);
}

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

/* History */
.page-about__history {
  background-color: var(--deep-green-color);
}

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

.page-about__timeline-item {
  position: relative;
  padding: 25px;
  text-align: left;
}

/* Why Choose Us */
.page-about__why-choose-us {
  background-color: var(--background-dark);
}

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

.page-about__feature-card {
  align-items: center;
  text-align: center;
  padding: 25px;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
  width: 200px;
  height: 200px;
}

/* Games Overview */
.page-about__games-overview {
  background-color: var(--deep-green-color);
}

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

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

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

/* Security & Fairness */
.page-about__security-fairness {
  background-color: var(--background-dark);
}

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

.page-about__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

/* Responsible Gaming */
.page-about__responsible-gaming {
  background-color: var(--deep-green-color);
}

.page-about__list {
  list-style: none;
  padding: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__list li {
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}

.page-about__list li::before {
  content: '✓';
  color: var(--glow-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__list-item-title {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: var(--text-main);
}

/* Our Team */
.page-about__our-team {
  background-color: var(--background-dark);
}

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

.page-about__team-member {
  align-items: center;
  text-align: center;
  padding: 25px;
}

.page-about__team-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
  width: 200px;
  height: 200px;
}

/* Future Vision */
.page-about__future-vision {
  background-color: var(--deep-green-color);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--background-dark);
}

.page-about__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-about__faq-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.page-about__faq-question:hover {
  background-color: var(--border-color);
}

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

.page-about__faq-answer {
  padding: 0 30px 20px 30px;
  background-color: var(--card-background);
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.7;
}

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

.page-about__faq-answer .page-about__btn-link {
  display: inline-block;
  margin-top: 10px;
}

/* Details tag specific styling for FAQ */
.page-about__faq-item summary {
  list-style: none; /* Remove default marker */
}

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

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--border-color);
}

/* Bottom CTA */
.page-about__cta-bottom {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

.page-about__cta-content .page-about__section-title {
  margin-bottom: 20px;
}

.page-about__cta-content .page-about__text-secondary {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__card-title {
    font-size: 1.5em;
  }

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

  .page-about__hero-image-wrapper {
    max-height: 550px;
  }
}

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

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

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__section-description,
  .page-about__intro-description {
    font-size: 1em;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .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: 1em;
  }

  /* Image responsive adaptations */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area image CSS dimensions lower limit */
  .page-about__feature-icon,
  .page-about__game-image,
  .page-about__content-image,
  .page-about__team-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Allow to scale up to 100% of parent */
    height: auto !important;
    object-fit: cover !important;
  }

  .page-about__feature-card .page-about__feature-icon,
  .page-about__team-member .page-about__team-image {
    width: 200px !important; /* Fixed width for small icons, but ensure min size */
    height: 200px !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-about__container,
  .page-about__card,
  .page-about__section,
  .page-about__text-block,
  .page-about__feature-card,
  .page-about__game-card,
  .page-about__team-member,
  .page-about__list,
  .page-about__faq-item,
  .page-about__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-about__list li {
    padding-left: 25px;
  }

  .page-about__list li::before {
    left: 5px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__card-title {
    font-size: 1.2em;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }

  .page-about__faq-question {
    font-size: 1em;
  }
}