/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color on dark background */
  background-color: #B71C1C; /* Background color */
}

.page-about__dark-bg {
  background-color: #B71C1C;
  color: #FFF5E1;
}

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

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

.page-about__section:nth-of-type(even) {
  background-color: #7A0E0E; /* Deep Red for alternating sections if desired */
}

.page-about__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: bold;
  margin-bottom: 30px;
  color: #F4D34D; /* Gold color for titles */
  letter-spacing: 1px;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* 10px top padding as per requirement, rest for spacing */
  overflow: hidden;
}

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

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

.page-about__hero-content {
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to bring content slightly up over the image bottom */
  background-color: rgba(183, 28, 28, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 900;
  color: #FFCC66; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  margin-bottom: 30px;
  color: #FFF5E1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-about__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-about__btn-secondary {
  background-color: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #E53935; /* Auxiliary color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary:hover {
  background-color: #E53935;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-about__btn-tertiary {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 1px solid #7A0E0E; /* Deep Red border */
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-about__btn-tertiary:hover {
  background-color: #7A0E0E;
  transform: translateY(-1px);
}

.page-about__faq-cta {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__feature-card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #7A0E0E; /* Deep Red border */
}

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

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold color */
}

.page-about__feature-description {
  font-size: 1em;
  color: #FFF5E1;
}

/* Values List */
.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-about__values-item {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1;
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #F2B544; /* Border color */
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-about__values-item strong {
  color: #FFCC66; /* Glow color */
}

/* Game Categories Grid */
.page-about__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #7A0E0E; /* Deep Red border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-about__card-description {
  font-size: 1em;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #D32F2F; /* Card BG */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #7A0E0E; /* Deep Red border */
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #C91F17; /* Main color */
  color: #FFF5E1;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  border-bottom: 1px solid #E53935; /* Auxiliary color */
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #E53935; /* Keep border when open */
}

.page-about__faq-qtext {
  flex-grow: 1;
  text-align: left;
  color: #F4D34D; /* Gold for question text */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFF5E1;
}

.page-about__faq-answer {
  padding: 20px 25px;
  text-align: left;
  color: #FFF5E1;
  font-size: 1em;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
  }
}

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

  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

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

  .page-about__hero-description {
    font-size: clamp(1em, 2.5vw, 1.1em);
  }

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

  .page-about__section-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }

  .page-about__text-block {
    font-size: 1em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-about__features-grid,
  .page-about__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__values-list {
    padding: 0 15px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__feature-icon,
  .page-about__game-categories,
  .page-about__card,
  .page-about__feature-card,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}