/* style/about.css */

/* Root variables for colors */
:root {
  --page-about-primary-color: #11A84E;
  --page-about-secondary-color: #22C768;
  --page-about-bg-color: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border-color: #2E7A4E;
  --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  font-family: Arial, sans-serif;
  color: var(--page-about-text-main); /* Main text color for dark body background */
  background-color: var(--page-about-bg-color);
}

.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;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-about-bg-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  color: var(--page-about-text-main);
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--page-about-text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-about__intro-text {
  font-size: clamp(1em, 1.5vw, 1.2em);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-about-text-secondary);
}

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
  background-color: var(--page-about-bg-color);
}

.page-about__section--mission .page-about__container,
.page-about__section--values .page-about__container,
.page-about__section--products .page-about__container,
.page-about__section--advantages .page-about__container,
.page-about__section--faq .page-about__container,
.page-about__section--contact .page-about__container {
  padding: 0 20px; /* Ensure consistent padding for main content */
}

.page-about__dark-section {
  background-color: var(--page-about-card-bg);
  color: var(--page-about-text-main);
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-about-primary-color);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--page-about-text-secondary);
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-about-secondary-color);
}

.page-about__text-block p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--page-about-text-main);
}

/* Grid Layouts */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__image-wrapper {
  grid-area: image;
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__value-card {
  background-color: var(--page-about-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-about-border-color);
}

.page-about__value-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-about-secondary-color);
}

.page-about__value-card p {
  color: var(--page-about-text-secondary);
  line-height: 1.6;
}

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

.page-about__product-card {
  background-color: var(--page-about-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-about-border-color);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.page-about__product-card .page-about__product-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--page-about-secondary-color);
  flex-grow: 1;
}

.page-about__product-card .page-about__product-title a {
  color: var(--page-about-secondary-color);
  text-decoration: none;
}

.page-about__product-card .page-about__product-title a:hover {
  color: var(--page-about-primary-color);
}

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

.page-about__product-card .page-about__btn-secondary {
  margin: 0 15px 20px;
}

.page-about__text-block--other-games {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background-color: var(--page-about-card-bg);
  border-radius: 10px;
  border: 1px solid var(--page-about-border-color);
}

.page-about__text-block--other-games p {
  font-size: 1.1em;
  color: var(--page-about-text-main);
  margin-bottom: 25px;
}

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

.page-about__advantage-card {
  background-color: var(--page-about-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--page-about-border-color);
}

.page-about__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__advantage-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-about-secondary-color);
}

.page-about__advantage-card p {
  color: var(--page-about-text-secondary);
  line-height: 1.6;
}

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

.page-about__faq-item {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-about-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(var(--page-about-primary-color), 0.1);
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--page-about-primary-color);
  color: #ffffff;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Remove default details marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* CTA Buttons */
.page-about__cta-wrapper,
.page-about__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.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: var(--page-about-btn-gradient);
  color: #ffffff; /* White text for gradient button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__btn-secondary:hover {
  background-color: var(--page-about-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    width: 95%;
    max-width: 700px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__content-grid--reverse {
    grid-template-areas: unset;
  }

  .page-about__content-grid--reverse .page-about__image-wrapper,
  .page-about__content-grid--reverse .page-about__text-block {
    grid-area: unset;
  }

  .page-about__image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    position: static;
    transform: none;
    width: 100%;
    padding: 20px;
    background: var(--page-about-bg-color); /* Full background on mobile */
    border-radius: 0;
    text-shadow: none;
  }

  .page-about__hero-image-wrapper {
    display: none; /* Hide hero image on very small screens if content needs to be above */
  }

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

  .page-about__intro-text {
    font-size: 1em;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

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

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

  .page-about__image-wrapper,
  .page-about__hero-image-wrapper,
  .page-about__product-card,
  .page-about__value-card,
  .page-about__advantage-card,
  .page-about__text-block--other-games,
  .page-about__faq-item,
  .page-about__cta-wrapper,
  .page-about__cta-buttons,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__product-image {
    height: 180px;
  }

  .page-about__advantage-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    margin-bottom: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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