/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared, for context */
}

/* Fixed nav bar spacing for the first section */
.page-about__hero-section {
  padding-top: 10px; /* Ensures content is not hidden by fixed header */
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1A202C, #0d0d0d); /* Dark gradient background for hero */
}

.page-about__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

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

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

.page-about__hero-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-about__btn-primary, .page-about__btn-secondary, .page-about__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-about__btn-link {
  background: none;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 10px 20px;
}

.page-about__btn-link:hover {
  background: #FFD700;
  color: #1A202C;
}

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

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for section titles */
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-about__introduction-section {
  padding: 80px 0;
  background-color: #1A202C; /* Dark background */
  color: #f0f0f0;
}

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

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

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

.page-about__image-block {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #121212; /* Body background */
  color: #ffffff;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

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

.page-about__card p {
  font-size: 16px;
}

.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #1A202C;
  color: #f0f0f0;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 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;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

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

.page-about__cta-buttons--center {
  text-align: center;
  margin-top: 50px;
}

.page-about__game-diversity-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

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

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

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

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

.page-about__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
}

.page-about__game-card p {
  font-size: 16px;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__game-card .page-about__btn-link {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-about__security-commitment-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #f0f0f0;
}

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

.page-about__security-text {
  flex: 1;
}

.page-about__security-text ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__security-text li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 17px;
}

.page-about__security-text li::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__highlight-text {
  color: #FFD700;
}

.page-about__security-text .page-about__btn-primary, .page-about__security-text .page-about__btn-secondary {
  margin-top: 20px;
  margin-right: 15px;
}

.page-about__security-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__security-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__customer-support-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

.page-about__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__support-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-about__support-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-about__support-item p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-about__mt-40 {
  margin-top: 40px;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #f0f0f0;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #f0f0f0;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle */
  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: 28px;
  height: 28px;
}

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

.page-about__conclusion-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

/* General image responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-about__hero-image,
  .page-about__hero-content {
    max-width: 100%;
  }

  .page-about__hero-title {
    font-size: 40px;
  }

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

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__security-content {
    flex-direction: column;
  }

  .page-about__security-image {
    order: -1; /* Image above text on mobile */
  }
}

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

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-container {
    padding: 40px 15px;
  }

  .page-about__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-about__section-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__introduction-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us,
  .page-about__game-diversity-section,
  .page-about__security-commitment-section,
  .page-about__customer-support-section,
  .page-about__faq-section,
  .page-about__conclusion-section {
    padding: 50px 0;
  }

  .page-about__content-grid,
  .page-about__security-content {
    gap: 30px;
  }

  .page-about__text-block p,
  .page-about__security-text p,
  .page-about__security-text li,
  .page-about__feature-item p,
  .page-about__game-card p,
  .page-about__support-item p {
    font-size: 15px;
  }

  .page-about__card,
  .page-about__feature-item,
  .page-about__game-card,
  .page-about__support-item {
    padding: 25px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__game-card-title,
  .page-about__support-title {
    font-size: 20px;
  }

  .page-about__game-card img {
    height: 180px;
  }

  .page-about__game-card .page-about__btn-link {
    margin-top: 15px;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-about__hero-image,
  .page-about__image-block,
  .page-about__security-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about__hero-image img,
  .page-about__image-block img,
  .page-about__security-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}