/* style/about.css */

:root {
  --primary-color: #1A1A1A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: #1A1A1A;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default light background */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-color: var(--background-dark);
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-faq {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

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

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

.page-about__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit;
}

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

.page-about__content-area {
  max-width: 1200px;
  margin: 0 auto;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  text-align: center;
}

.page-about__dark-section .page-about__sub-title {
  color: var(--secondary-color);
}

.page-about__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-about__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-about__list-item::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.page-about__image-and-text-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}

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

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

.page-about__text-block {
  text-align: justify;
}

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

.page-about__game-card,
.page-about__promo-card,
.page-about__team-member {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-about__dark-section .page-about__game-card,
.page-about__dark-section .page-about__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__game-card:hover,
.page-about__promo-card:hover,
.page-about__team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__game-image,
.page-about__promo-image,
.page-about__team-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-about__team-image {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 20px auto 15px auto;
  border: 4px solid var(--secondary-color);
}

.page-about__game-title,
.page-about__promo-title,
.page-about__team-name {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-about__game-title a,
.page-about__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__dark-section .page-about__game-title a,
.page-about__dark-section .page-about__promo-title a {
  color: var(--secondary-color);
}

.page-about__game-title a:hover,
.page-about__promo-title a:hover {
  text-decoration: underline;
}

.page-about__game-description,
.page-about__promo-description,
.page-about__team-role {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px;
}

.page-about__dark-section .page-about__game-description,
.page-about__dark-section .page-about__promo-description {
  color: #ccc;
}

.page-about__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__btn-text:hover {
  color: #e6c200;
  text-decoration: underline;
}

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

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__faq-section {
  text-align: left;
}

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

.page-about__faq-item {
  background-color: var(--text-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
  background-color: var(--text-light);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

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

.page-about__btn-faq {
  margin-top: 10px;
}

.page-about__conclusion-section {
  padding-bottom: 60px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__image-and-text-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-about__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-faq {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__paragraph,
  .page-about__list-item,
  .page-about__game-description,
  .page-about__promo-description,
  .page-about__team-role {
    font-size: 0.95em;
  }
  .page-about__list {
    padding-left: 0;
  }
  .page-about__list-item {
    padding-left: 25px;
  }
  .page-about__list-item::before {
    left: 0;
  }
  .page-about__content-area,
  .page-about__game-grid,
  .page-about__promotions-grid,
  .page-about__team-grid,
  .page-about__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__game-card,
  .page-about__promo-card,
  .page-about__team-member {
    padding: 15px;
  }
  .page-about__game-image,
  .page-about__promo-image,
  .page-about__team-image,
  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__faq-item {
    margin-left: 0;
    margin-right: 0;
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__game-title,
  .page-about__promo-title,
  .page-about__team-name {
    font-size: 1.2em;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
  }
}