/* style/about.css */

/* Base styles for page-about, assuming a dark body background from shared.css */
.page-about {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: var(--background-color); /* #08160F from shared.css */
  line-height: 1.6;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #F2FFF6;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E; /* Border */
}

.page-about__btn-secondary:hover {
  background: #2E7A4E;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

/* Why Choose Section */
.page-about__why-choose {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__feature-card {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
  width: 200px; /* Minimum size */
  height: 200px; /* Minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  color: #A7D9B8; /* Text Secondary */
}

/* Game Portfolio Section */
.page-about__game-portfolio {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-about__game-card .page-about__card-title {
  padding: 20px 20px 10px 20px;
  font-size: 1.3em;
  color: #F2C14E; /* Gold */
}

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

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

.page-about__game-card p {
  padding: 0 20px 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* Security & Fairness Section */
.page-about__security-fairness {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.page-about__content-flex:last-of-type {
  margin-bottom: 0;
}

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

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

.page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image-full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-about__responsible-gaming .page-about__section-title {
  color: #F2C14E; /* Gold */
}

.page-about__responsible-gaming .page-about__section-description {
  color: #A7D9B8; /* Text Secondary */
}

.page-about__responsible-gaming .page-about__text-block p {
  color: #F2FFF6;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-about__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA Section */
.page-about__cta-final {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  text-align: center;
}

.page-about__cta-final .page-about__section-title {
  color: #F2C14E; /* Gold */
}

.page-about__cta-final .page-about__section-description {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

/* Dark/Light Background Helper Classes for text contrast */
.page-about__dark-section {
  background-color: #11271B; /* Card BG - Dark enough for white text */
  color: #F2FFF6;
}

.page-about__light-bg {
  background-color: #08160F; /* Background - Dark enough for white text */
  color: #F2FFF6;
}

/* --- Responsive Styles --- */

/* Tablet styles */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

  .page-about__main-title {
    font-size: 3em;
  }

  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }

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

  .page-about__image-full {
    max-width: 80%;
    margin: 0 auto;
  }
}

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

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

  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__why-choose,
  .page-about__game-portfolio,
  .page-about__security-fairness,
  .page-about__responsible-gaming,
  .page-about__faq-section,
  .page-about__cta-final {
    padding: 30px 0;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: 2em; /* Smaller for mobile */
  }

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

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

  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Image and Video Responsive Adaptations */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__feature-card,
  .page-about__game-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-about__feature-icon {
    width: 150px; /* Adjust for smaller screens */
    height: 150px; /* Adjust for smaller screens */
  }

  .page-about__image-full {
    max-width: 100% !important;
    margin: 0;
  }

  .page-about__content-grid {
    gap: 20px;
  }

  .page-about__game-types {
    gap: 20px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }
}