.page-electronic-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

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

.page-electronic-games__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjust for header offset, then add actual padding */
  text-align: center;
  background: linear-gradient(135deg, #017439, #0a0a0a);
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-electronic-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlight title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-electronic-games__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

.page-electronic-games__btn-primary,
.page-electronic-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-electronic-games__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
}

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

.page-electronic-games__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-electronic-games__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #FFFF00;
  transform: translateY(-2px);
}

.page-electronic-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #FFFF00; /* Highlight titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-electronic-games__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-electronic-games__features-section,
.page-electronic-games__guide-section,
.page-electronic-games__mobile-app-section,
.page-electronic-games__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #ffffff;
}

.page-electronic-games__popular-games-section,
.page-electronic-games__promotions-section,
.page-electronic-games__support-section,
.page-electronic-games__cta-final-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Darker background for sections */
  color: #ffffff;
}

.page-electronic-games__feature-grid,
.page-electronic-games__game-grid,
.page-electronic-games__promo-grid,
.page-electronic-games__steps-grid,
.page-electronic-games__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-electronic-games__feature-card,
.page-electronic-games__game-card,
.page-electronic-games__promo-card,
.page-electronic-games__step-card,
.page-electronic-games__channel-card,
.page-electronic-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  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;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-electronic-games__feature-card:hover,
.page-electronic-games__game-card:hover,
.page-electronic-games__promo-card:hover,
.page-electronic-games__step-card:hover,
.page-electronic-games__channel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-electronic-games__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Constrain icon size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-electronic-games__game-image,
.page-electronic-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-electronic-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight card titles */
}

.page-electronic-games__card-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-electronic-games__card-title a:hover {
  text-decoration: underline;
}

.page-electronic-games__card-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-electronic-games__btn-play,
.page-electronic-games__btn-promo,
.page-electronic-games__btn-step,
.page-electronic-games__btn-support {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  background-color: #017439;
  color: #ffffff;
  transition: background-color 0.3s ease;
  border: none;
}

.page-electronic-games__btn-play:hover,
.page-electronic-games__btn-promo:hover,
.page-electronic-games__btn-step:hover,
.page-electronic-games__btn-support:hover {
  background-color: #005a2e;
  color: #FFFF00;
}

.page-electronic-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #C30808; /* Custom color for step numbers */
  color: #FFFF00; /* Custom font color */
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-electronic-games__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-electronic-games__app-text {
  flex: 1;
  text-align: left;
}

.page-electronic-games__app-text p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-electronic-games__app-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-electronic-games__app-text li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFFF00"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-electronic-games__list-highlight {
  color: #FFFF00;
}

.page-electronic-games__app-image-wrapper {
  flex: 1;
  text-align: center;
}

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

.page-electronic-games__support-channels {
  margin-top: 50px;
}

.page-electronic-games__faq-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-electronic-games__faq-item {
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.page-electronic-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-electronic-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-electronic-games__faq-question .page-electronic-games__card-title {
  margin: 0;
  color: #FFFF00; /* FAQ question color */
  font-size: 1.2em;
}

.page-electronic-games__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

.page-electronic-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #e0e0e0;
}

.page-electronic-games__faq-item.active .page-electronic-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 30px;
}

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

.page-electronic-games__cta-final-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a, #017439);
}

/* Image specific styles */
.page-electronic-games img {
  border: none; /* Ensure no default border */
  filter: none; /* Ensure no CSS filter is applied */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-electronic-games__hero-title {
    font-size: 2.5em;
  }
  .page-electronic-games__section-title {
    font-size: 2em;
  }
  .page-electronic-games__app-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-electronic-games__app-text,
  .page-electronic-games__app-image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-electronic-games__hero-title {
    font-size: 2em;
  }
  .page-electronic-games__hero-description {
    font-size: 1em;
  }
  .page-electronic-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-electronic-games__btn-primary,
  .page-electronic-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-electronic-games__section-title {
    font-size: 1.8em;
  }
  .page-electronic-games__section-intro {
    font-size: 0.95em;
  }
  .page-electronic-games__feature-grid,
  .page-electronic-games__game-grid,
  .page-electronic-games__promo-grid,
  .page-electronic-games__steps-grid,
  .page-electronic-games__support-channels {
    grid-template-columns: 1fr;
  }
  .page-electronic-games__container {
    padding: 0 15px;
  }
  .page-electronic-games__hero-section,
  .page-electronic-games__features-section,
  .page-electronic-games__popular-games-section,
  .page-electronic-games__guide-section,
  .page-electronic-games__promotions-section,
  .page-electronic-games__mobile-app-section,
  .page-electronic-games__support-section,
  .page-electronic-games__faq-section,
  .page-electronic-games__cta-final-section {
    padding: 60px 0;
  }
  .page-electronic-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-electronic-games__section,
  .page-electronic-games__card,
  .page-electronic-games__container,
  .page-electronic-games__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-electronic-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-electronic-games__faq-question,
  .page-electronic-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-electronic-games__faq-item.active .page-electronic-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}