/* style/about.css */

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

/* Base styles for the page-about class */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for dark background */
  background-color: var(--background-color); /* Ensures content area matches body background */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

/* Main sections */
.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  order: 1; /* Image first in DOM order */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  order: 2; /* Content after image in DOM order */
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5em, 4vw, 3.8em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-about__btn-secondary:hover {
  background: rgba(34, 199, 104, 0.1);
  color: var(--gold-color);
  border-color: var(--gold-color);
  transform: translateY(-3px);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: var(--card-background);
  color: var(--text-main-color);
}

.page-about__mission-vision .page-about__section-title {
  color: var(--gold-color);
}

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

.page-about__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__card p {
  color: var(--text-secondary-color);
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-about__values-section .page-about__section-title {
  color: var(--gold-color);
}

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

.page-about__value-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-about__value-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__value-item p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
  line-height: 1.6;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: var(--card-background);
  color: var(--text-main-color);
}

.page-about__why-choose-us .page-about__section-title {
  color: var(--gold-color);
}

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

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 80px; /* Specific size for icons */
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 80px; /* Ensure minimum size */
  min-height: 80px;
  border-radius: 50%; /* Make them circular */
  background-color: rgba(var(--primary-color), 0.1);
  padding: 10px;
}

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

.page-about__feature-item p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
  line-height: 1.6;
}

/* Security & Fairplay Section */
.page-about__security-fairplay {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-about__security-fairplay .page-about__section-title {
  color: var(--gold-color);
}

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

.page-about__security-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-about__security-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__security-item p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
  line-height: 1.6;
}

/* Game Overview Section */
.page-about__game-overview {
  padding: 80px 0;
  background-color: var(--card-background);
  color: var(--text-main-color);
}

.page-about__game-overview .page-about__section-title {
  color: var(--gold-color);
}

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

.page-about__game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-about__game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 15px 0 10px;
  padding: 0 15px;
  font-weight: 700;
}

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

.page-about__game-title a:hover {
  color: var(--gold-color);
}

.page-about__game-card p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-about__cta-bottom {
  text-align: center;
}

/* Customer Support Section */
.page-about__customer-support {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-about__customer-support .page-about__section-title {
  color: var(--gold-color);
}

.page-about__support-channels {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-about__support-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.page-about__support-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__support-item p {
  color: var(--text-secondary-color);
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--card-background);
  color: var(--text-main-color);
}

.page-about__faq-section .page-about__section-title {
  color: var(--gold-color);
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.07);
}

.page-about__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

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

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

.page-about__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: var(--gold-color);
}

/* Final CTA Section */
.page-about__final-cta {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  text-align: center;
  color: var(--text-main-color);
}

.page-about__final-cta .page-about__section-title {
  color: var(--gold-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
  .page-about__card-title, .page-about__value-title, .page-about__feature-title, .page-about__security-title, .page-about__game-title, .page-about__support-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-about__hero-image {
    max-height: 350px;
  }
  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__mission-vision, .page-about__values-section, .page-about__why-choose-us, .page-about__security-fairplay, .page-about__game-overview, .page-about__customer-support, .page-about__faq-section, .page-about__final-cta {
    padding: 50px 0;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-about__content-grid, .page-about__values-grid, .page-about__features-grid, .page-about__security-grid, .page-about__game-grid, .page-about__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card, .page-about__value-item, .page-about__feature-item, .page-about__security-item, .page-about__game-card, .page-about__support-item {
    padding: 20px;
  }
  .page-about__card-title, .page-about__value-title, .page-about__feature-title, .page-about__security-title, .page-about__game-title, .page-about__support-title {
    font-size: 1.4em;
  }
  .page-about__card p, .page-about__value-item p, .page-about__feature-item p, .page-about__security-item p, .page-about__game-card p, .page-about__support-item p {
    font-size: 0.9em;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-about__card-image, .page-about__game-image {
    min-width: unset;
    min-height: unset;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px;
  }
  .page-about__video-section {
    padding-top: 10px !important;
  }
  .page-about__video-container, .page-about__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about video, .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }
  .page-about__card-title, .page-about__value-title, .page-about__feature-title, .page-about__security-title, .page-about__game-title, .page-about__support-title {
    font-size: 1.2em;
  }
  .page-about__feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
  .page-about__faq-question {
    font-size: 0.95em;
  }
}