/* style/games.css */
.page-games {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light gray text for dark background */
  background-color: #1A1A2E; /* Main dark background */
}

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

.page-games__section-title {
  font-size: 2.8em;
  color: #E94560; /* Auxiliary red for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-games__section-subtitle {
  font-size: 1.2em;
  color: #B0B0B0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-games__btn--primary {
  background-color: #E94560; /* Auxiliary red */
  color: #FFFFFF;
}

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

.page-games__btn--secondary {
  background-color: #33334F; /* Darker shade of main color */
  color: #E0E0E0;
  border: 2px solid #E94560;
}

.page-games__btn--secondary:hover {
  background-color: #4A4A6B;
  transform: translateY(-2px);
}

.page-games__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Hero Section */
.page-games__hero-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #33334F 100%);
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-games__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract,geometric,dark_pattern]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-games__hero-section > .page-games__container {
  z-index: 1;
}

.page-games__hero-title {
  font-size: 3.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-games__hero-description {
  font-size: 1.3em;
  color: #B0B0B0;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-games__hero-image-wrapper {
  margin-top: 60px;
  width: 80%;
  max-width: 1000px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

/* About PKWIN Section */
.page-games__about-pkwin {
  padding: 80px 0;
  background-color: #1A1A2E;
}

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

.page-games__feature-item {
  background-color: #2A2A3E;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-games__feature-item:hover {
  transform: translateY(-10px);
  background-color: #33334F;
}

.page-games__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(233, 69, 96, 0.7));
}

.page-games__feature-title {
  font-size: 1.6em;
  color: #E94560;
  margin-bottom: 10px;
}

.page-games__feature-description {
  font-size: 1em;
  color: #B0B0B0;
  line-height: 1.5;
}

/* Game Categories Section */
.page-games__game-categories {
  padding: 80px 0;
  background-color: #1A1A2E;
}

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

.page-games__category-item {
  background-color: #2A2A3E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-games__category-item:hover {
  transform: translateY(-10px);
}

.page-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-games__category-title {
  font-size: 1.5em;
  color: #E94560;
  padding: 20px 20px 10px;
  margin-bottom: 0;
}

.page-games__category-description {
  font-size: 0.95em;
  color: #B0B0B0;
  padding: 0 20px 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.page-games__category-item .page-games__btn {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* Promotions Section */
.page-games__promotions {
  padding: 80px 0;
  background-color: #1A1A2E;
}

.page-games__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-games__promotion-item {
  background-color: #2A2A3E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease;
}

.page-games__promotion-item:hover {
  transform: translateY(-10px);
}

.page-games__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-games__promotion-title {
  font-size: 1.8em;
  color: #E94560;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-games__promotion-description {
  font-size: 1em;
  color: #B0B0B0;
  padding: 0 20px;
  line-height: 1.5;
}

.page-games__cta-center {
  text-align: center;
}

/* App Download Section */
.page-games__app-download {
  padding: 80px 0;
  background-color: #1A1A2E;
}

.page-games__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-games__app-info {
  flex: 1;
  min-width: 300px;
}

.page-games__app-info .page-games__section-title,
.page-games__app-info .page-games__section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-games__app-benefits {
  list-style: none;
  padding: 0;
  margin: 30px 0 40px;
}

.page-games__app-benefits li {
  font-size: 1.1em;
  color: #E0E0E0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-games__app-benefits li img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(48%) sepia(85%) saturate(1906%) hue-rotate(320deg) brightness(101%) contrast(90%); /* To make checkmark red */
}

.page-games__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-games__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Trust & Security Section */
.page-games__trust-security {
  padding: 80px 0;
  background-color: #1A1A2E;
}

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

.page-games__security-item {
  background-color: #2A2A3E;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-games__security-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.8));
}

.page-games__security-title {
  font-size: 1.6em;
  color: #E94560;
  margin-bottom: 10px;
}

.page-games__security-description {
  font-size: 1em;
  color: #B0B0B0;
  line-height: 1.5;
}

/* Final CTA Section */
.page-games__cta-final {
  padding: 80px 0;
  background: linear-gradient(45deg, #E94560, #C73550);
  text-align: center;
}

.page-games__cta-final .page-games__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-games__cta-final .page-games__section-subtitle {
  color: #FFDCDC;
  margin-bottom: 40px;
}

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

.page-games__cta-buttons .page-games__btn--primary {
  background-color: #1A1A2E;
  color: #FFFFFF;
}

.page-games__cta-buttons .page-games__btn--primary:hover {
  background-color: #33334F;
}

.page-games__cta-buttons .page-games__btn--secondary {
  background-color: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.page-games__cta-buttons .page-games__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* FAQ Section */
.page-games__faq {
  padding: 80px 0;
  background-color: #1A1A2E;
}

.page-games__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-games__faq-item {
  background-color: #2A2A3E;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-games__faq-question {
  font-size: 1.3em;
  color: #E94560;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #E0E0E0;
  transition: transform 0.3s ease;
}

.page-games__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-games__faq-answer {
  font-size: 1em;
  color: #B0B0B0;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.0s ease-out, padding 0.0s ease-out;
  padding-top: 0;
}

.page-games__faq-answer.open {
  max-height: 300px; /* Adjust as needed */
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
  padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-games__hero-title {
    font-size: 3em;
  }
  .page-games__hero-description {
    font-size: 1.1em;
  }
  .page-games__app-download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-games__app-info .page-games__section-title,
  .page-games__app-info .page-games__section-subtitle {
    text-align: center;
  }
  .page-games__app-benefits {
    text-align: left;
    max-width: 400px;
    margin: 30px auto 40px;
  }
  .page-games__app-info .page-games__btn {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-games__hero-title {
    font-size: 2.5em;
  }
  .page-games__hero-description {
    font-size: 1em;
  }
  .page-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-games__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-games__section-title {
    font-size: 2em;
  }
  .page-games__section-subtitle {
    font-size: 1em;
  }
  .page-games__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-games__hero-title {
    font-size: 2em;
  }
  .page-games__hero-description {
    font-size: 0.9em;
  }
  .page-games__section-title {
    font-size: 1.8em;
  }
  .page-games__feature-item, .page-games__category-item, .page-games__promotion-item, .page-games__security-item {
    padding: 20px;
  }
  .page-games__feature-title, .page-games__category-title, .page-games__promotion-title, .page-games__security-title {
    font-size: 1.3em;
  }
  .page-games__faq-question {
    font-size: 1.1em;
  }
}