/* style/about.css */

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #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;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color); /* Overall background color */
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-about__intro-text {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-main-color);
  margin-bottom: 30px;
  line-height: 1.5;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-about__cta-buttons--center {
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

.page-about__dark-section .page-about__section-description {
  color: var(--text-secondary-color);
}

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

.page-about__feature-item {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-about__feature-item p {
  color: var(--text-secondary-color);
  font-size: 15px;
}

/* Entertainment Section */
.page-about__entertainment-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-about__game-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__game-title {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__game-card p {
  color: var(--text-secondary-color);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-about__support-item {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__support-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__support-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__support-item p {
  color: var(--text-secondary-color);
  font-size: 15px;
  margin-bottom: 20px;
}

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

.page-about__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__advantages-list li {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-main-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.6;
}

.page-about__advantages-list li strong {
  color: var(--primary-color);
  font-weight: 700;
}

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

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

.page-about__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

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

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

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

.page-about__faq-item:not([open]) .page-about__faq-answer {
  display: none;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px;
  }

  .page-about__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }

  .page-about__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

  .page-about__intro-text {
    font-size: clamp(16px, 1.8vw, 20px);
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__game-title,
  .page-about__support-title {
    font-size: 22px;
  }

  .page-about__card p,
  .page-about__feature-item p,
  .page-about__game-card p,
  .page-about__support-item p,
  .page-about__advantages-list li,
  .page-about__faq-question,
  .page-about__faq-answer {
    font-size: 15px;
  }
}

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

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

  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 25px;
  }

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

  .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 15px;
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: clamp(22px, 5vw, 36px);
    margin-bottom: 15px;
  }

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

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid-layout,
  .page-about__features-grid,
  .page-about__game-categories,
  .page-about__support-channels,
  .page-about__faq-list,
  .page-about__advantages-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__mission-vision-section,
  .page-about__security-section,
  .page-about__entertainment-section,
  .page-about__customer-support-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 40px 0;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__game-title,
  .page-about__support-title {
    font-size: 20px;
  }

  .page-about__card p,
  .page-about__feature-item p,
  .page-about__game-card p,
  .page-about__support-item p,
  .page-about__advantages-list li,
  .page-about__faq-question,
  .page-about__faq-answer {
    font-size: 14px;
  }
}

/* Ensure contrast for specific elements if needed */
.page-about__dark-bg {
  color: var(--text-main-color); /* Deep green background with light text */
}

.page-about__light-bg {
  color: #333333; /* Light background with dark text (if any) */
  background: #ffffff;
}

/* Text elements on dark backgrounds */
.page-about p,
.page-about li {
  color: var(--text-main-color);
}

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

.page-about__card-title,
.page-about__feature-title,
.page-about__game-title,
.page-about__support-title,
.page-about__faq-question {
  color: var(--primary-color);
}

.page-about__main-title,
.page-about__section-title,
.page-about__faq-toggle {
  color: var(--gold-color);
}

.page-about__advantages-list li strong {
  color: var(--primary-color);
}

/* Button colors already defined with good contrast */
.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
}

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

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