/* style/about.css */

/* Variáveis CSS para cores */
:root {
  --potosi-green: #017439;
  --potosi-white: #FFFFFF;
  --potosi-red-button: #C30808;
  --potosi-yellow-text: #FFFF00;
  --potosi-dark-bg: #0a0a0a; /* Cor de fundo do body */
  --text-light: #ffffff; /* Texto para fundos escuros */
  --text-dark: #333333;   /* Texto para fundos claros */
}

/* Base styles */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark #0a0a0a */
  background-color: var(--potosi-dark-bg);
}

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

.page-about__section--mission,
.page-about__section--pillars,
.page-about__section--experience,
.page-about__section--faq {
  background-color: var(--potosi-white);
  color: var(--text-dark);
}

.page-about__section--history,
.page-about__section--games,
.page-about__section--community {
  background-color: var(--potosi-green);
  color: var(--text-light);
}

.page-about__dark-bg {
  background-color: var(--potosi-green);
  color: var(--text-light);
}

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

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

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

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

.page-about__hero-content {
  position: relative; /* Ensure content is above image */
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image bottom */
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--potosi-yellow-text);
  letter-spacing: -1px;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

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

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

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

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

/* Titles and Text */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: inherit;
}

.page-about__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
  color: inherit;
}

.page-about p strong {
  color: inherit;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--potosi-red-button);
  color: var(--potosi-yellow-text);
  border: 2px solid var(--potosi-red-button);
}

.page-about__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

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

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

.page-about__faq-item {
  background-color: var(--potosi-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-about__faq-question:hover {
  background-color: #f0f0f0;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--potosi-green);
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__main-title {
    font-size: 2rem;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

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

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

  .page-about__section-title {
    font-size: 1.8rem;
  }

  .page-about__subsection-title {
    font-size: 1.3rem;
  }

  .page-about p {
    font-size: 0.95rem;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Force responsive image and container styles */
  .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__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__content-grid,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8rem;
  }
  .page-about__hero-content {
    margin-top: -60px;
  }
}