/* style/about.css */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-1);
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 17px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__btn-primary {
  display: inline-block;
  background: #FFD700; /* Auxiliary color for primary button background */
  color: #0A246A; /* Primary color for primary button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background: #e6c200;
  color: #0A246A;
}

.page-about__btn-secondary {
  display: inline-block;
  background: none;
  color: #FFD700; /* Auxiliary color for secondary button text */
  border: 2px solid #FFD700;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background: #FFD700;
  color: #0A246A;
}

.page-about__btn-small {
  padding: 8px 15px;
  font-size: 14px;
}

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

.page-about__btn-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  position: relative;
  padding-bottom: 3px;
}

.page-about__btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #FFD700;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.page-about__btn-link:hover::after {
  transform: scaleX(0);
}

/* Shared section styles */
.page-about__dark-section {
  background-color: #0A246A; /* Primary color for dark sections */
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #FFD700;
}

.page-about__dark-section .page-about__text-block {
  color: #f0f0f0;
}

/* Intro Section */
.page-about__intro-section {
  padding-top: 120px; /* For fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0A246A, #1a3a8a);
  text-align: center;
}

.page-about__main-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 19px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-about__content-flex .page-about__image-block {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.page-about__grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Light text for dark card background */
  height: 100%;
  box-sizing: border-box;
}

.page-about__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.page-about__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Games Overview Section */
.page-about__games-overview-section {
  padding: 80px 0;
}

.page-about__grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-category-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__game-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.page-about__game-category-card img {
  width: 100%;
  height: 280px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

.page-about__game-category-card-content {
  padding: 25px;
  flex-grow: 1;
}

.page-about__category-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin: 20px 25px 10px 25px;
}

.page-about__game-category-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  padding: 0 25px 25px 25px;
}

.page-about__game-category-card .page-about__btn-link {
  margin: 0 25px 25px 25px;
}

/* Security Section */
.page-about__security-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.page-about__content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid-2 .page-about__image-block {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-about__list {
  list-style: disc;
  margin-left: 20px;
  color: #f0f0f0;
  font-size: 17px;
}

.page-about__list li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.page-about__list li strong {
  color: #FFD700;
}

/* Experience Section */
.page-about__experience-section {
  padding: 80px 0;
}

.page-about__experience-section .page-about__content-grid-2 .page-about__image-block {
  order: 2; /* Image on right */
}

.page-about__experience-section .page-about__content-grid-2 .page-about__text-block {
  order: 1; /* Text on left */
}

/* Responsibility Section */
.page-about__responsibility-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

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

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A246A; /* Primary color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-radius: 8px;
}

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Auxiliary color for question text */
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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;
  padding: 0 25px;
  opacity: 0;
  color: #f0f0f0;
  font-size: 16px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

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

.page-about__faq-answer strong {
  color: #FFD700;
}

/* Contact Section */
.page-about__contact-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.page-about__contact-info {
  margin-top: 30px;
  text-align: center;
}

.page-about__contact-info p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__contact-info strong {
  color: #FFD700;
}

.page-about__contact-info a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__contact-info a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__cta-title {
  font-size: 40px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 42px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__description,
  .page-about__text-block,
  .page-about__card p,
  .page-about__list li,
  .page-about__faq-answer,
  .page-about__contact-info p,
  .page-about__cta-description {
    font-size: 16px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__category-title {
    font-size: 22px;
  }
  .page-about__content-flex,
  .page-about__content-grid-2 {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__content-flex .page-about__image-block {
    max-width: 100%;
  }
  .page-about__experience-section .page-about__content-grid-2 .page-about__image-block {
    order: 1;
  }
  .page-about__experience-section .page-about__content-grid-2 .page-about__text-block {
    order: 2;
  }
  .page-about__grid-2 {
    grid-template-columns: 1fr;
  }
  .page-about__game-category-card img {
    height: 250px;
  }
  .page-about__game-category-card-content {
    padding: 20px;
  }
  .page-about__category-title {
    margin: 20px 20px 10px 20px;
  }
  .page-about__game-category-card p {
    padding: 0 20px 20px 20px;
  }
  .page-about__game-category-card .page-about__btn-link {
    margin: 0 20px 20px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 17px;
  }
  .page-about__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
  .page-about__cta-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-about__intro-section {
    padding-top: 100px; /* For fixed header on mobile */
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 32px;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 20px;
  }
  .page-about__description,
  .page-about__text-block,
  .page-about__card p,
  .page-about__list li,
  .page-about__faq-answer,
  .page-about__contact-info p,
  .page-about__cta-description {
    font-size: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-about__btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }
  .page-about__history-section,
  .page-about__values-section,
  .page-about__games-overview-section,
  .page-about__security-section,
  .page-about__experience-section,
  .page-about__responsibility-section,
  .page-about__faq-section,
  .page-about__contact-section,
  .page-about__cta-section {
    padding: 50px 0;
  }
  .page-about__grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__game-category-card img {
    height: 200px;
  }
  .page-about__card {
    padding: 25px;
  }
  .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-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }
  .page-about__cta-title {
    font-size: 30px;
  }
  
  /* Mobile image specific styles */
  .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__content-flex .page-about__image-block,
  .page-about__content-grid-2 .page-about__image-block,
  .page-about__game-category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}