/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light);
  background-color: var(--dark-bg-1);
}

/* Ensure the first content section has padding-top to clear fixed header */
.page-about__hero-banner {
  padding-top: 120px; /* Adjusted for fixed header */
}

/* Responsive padding-top for mobile */
@media (max-width: 768px) {
  .page-about__hero-banner {
    padding-top: 100px;
  }
}

/* Sections */
.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--accent-color);
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-color-light);
}

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

.page-about__dark-section {
  background-color: var(--dark-bg-2);
  color: var(--text-color-light);
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: var(--light-bg-1);
  color: var(--text-color-dark);
  padding: 80px 0;
}

.page-about__light-bg .page-about__section-title {
  color: var(--primary-color-dark);
}

.page-about__light-bg .page-about__section-description {
  color: var(--text-color-dark);
}

/* Hero Banner */
.page-about__hero-banner {
  background: linear-gradient(135deg, #1A202C, #3A404C);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-about__hero-title {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-about__hero-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color-dark);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-about__hero-btn:hover {
  background-color: #ffcc00;
  transform: translateY(-3px);
}

/* Content Grid */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

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

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

.page-about__text-block p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__image-block {
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-about__value-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-about__value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__value-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color-dark);
}

.page-about__value-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color-dark);
}

/* Game Category Cards */
.page-about__games-grid-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-category-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
  display: flex;
  flex-direction: column;
}

.page-about__game-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__game-category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-about__game-category-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color-dark);
}

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

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

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

.page-about__feature-item {
  background-color: var(--dark-bg-3);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.page-about__feature-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color-dark);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

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

.page-about__btn-lg {
  padding: 18px 45px;
  font-size: 22px;
}

/* Final CTA Section */
.page-about__final-cta-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--primary-color-dark));
}

.page-about__final-cta-section .page-about__section-title {
  color: var(--accent-color);
}

.page-about__final-cta-section .page-about__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-section {
  padding-bottom: 80px;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark);
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color-dark);
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color-dark);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-color-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important and large value to ensure expansion */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse {
    grid-template-areas: unset;
  }
  .page-about__content-grid--reverse .page-about__text-block {
    grid-area: unset;
  }
  .page-about__content-grid--reverse .page-about__image-block {
    grid-area: unset;
  }
  .page-about__image-block {
    order: -1; /* Image first on mobile for reverse layout */
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__hero-btn {
    padding: 12px 25px;
    font-size: 18px;
  }
  .page-about__dark-section, .page-about__light-bg {
    padding: 60px 0;
  }
  .page-about__container {
    padding: 30px 15px;
  }
  .page-about__text-block p {
    font-size: 15px;
  }
  .page-about__value-card, .page-about__game-category-card, .page-about__feature-item {
    padding: 25px;
  }
  .page-about__value-card img, .page-about__feature-item img {
    width: 60px;
    height: 60px;
  }
  .page-about__value-card h3, .page-about__game-category-card h3, .page-about__feature-item h3 {
    font-size: 20px;
  }
  .page-about__value-card p, .page-about__game-category-card p, .page-about__feature-item p {
    font-size: 15px;
  }
  .page-about__game-category-card img {
    height: 180px;
  }
  .page-about__btn-primary {
    padding: 10px 25px;
    font-size: 16px;
  }
  .page-about__btn-lg {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  /* Mobile image adaptation - must contain !important */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section, .page-about__card, .page-about__container, .page-about__image-block, .page-about__value-card, .page-about__game-category-card, .page-about__feature-item, .page-about__faq-list, .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__value-card h3, .page-about__game-category-card h3, .page-about__feature-item h3 {
    font-size: 18px;
  }
  .page-about__hero-btn {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-about__btn-lg {
    font-size: 16px;
    padding: 12px 25px;
  }
}