/* style/index-popular-games.css */
.page-index-popular-games {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-index-popular-games__hero {
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.page-index-popular-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFCC00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-index-popular-games__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  opacity: 0.9;
}

.page-index-popular-games__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
}

.page-index-popular-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.page-index-popular-games__hero > .page-index-popular-games__container {
  position: relative;
  z-index: 1;
}

.page-index-popular-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-popular-games__section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-index-popular-games__section-title {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-popular-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  border-radius: 2px;
}

.page-index-popular-games__text {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-popular-games__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-index-popular-games__btn--primary {
  background-color: #FFCC00;
  color: #000000;
}

.page-index-popular-games__btn--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__btn--secondary {
  background-color: #003366;
  color: #fff;
  border: 1px solid #003366;
}

.page-index-popular-games__btn--secondary:hover {
  background-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__btn--ghost {
  background-color: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.page-index-popular-games__btn--ghost:hover {
  background-color: #003366;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__btn--large {
  padding: 15px 35px;
  font-size: 1.3em;
}

/* Overview Section */
.page-index-popular-games__overview {
  background-color: #fff;
}

.page-index-popular-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-popular-games__feature-item {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index-popular-games__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.page-index-popular-games__feature-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index-popular-games__feature-description {
  color: #666;
  font-size: 1em;
}

/* Game Categories Section */
.page-index-popular-games__game-categories {
  background-color: #f8f8f8;
}

.page-index-popular-games__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-popular-games__category-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-popular-games__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #FFCC00;
}

.page-index-popular-games__category-title {
  font-size: 1.6em;
  color: #003366;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index-popular-games__category-description {
  color: #666;
  font-size: 0.95em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index-popular-games__category-card .page-index-popular-games__btn {
  margin-bottom: 20px;
  align-self: center;
}

/* Game Spotlight Section */
.page-index-popular-games__game-spotlight {
  background-color: #fff;
}

.page-index-popular-games__spotlight-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
  text-align: left;
}

.page-index-popular-games__spotlight-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-index-popular-games__spotlight-image {
  width: 100%;
  max-width: 500px;
  height: 350px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-index-popular-games__spotlight-content {
  flex-grow: 1;
  padding: 30px;
}

.page-index-popular-games__spotlight-title {
  font-size: 2em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index-popular-games__spotlight-description {
  color: #555;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-index-popular-games__game-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  font-size: 1em;
}

.page-index-popular-games__game-features li {
  margin-bottom: 8px;
  color: #444;
}

.page-index-popular-games__game-features li strong {
  color: #003366;
  margin-right: 5px;
}

/* Responsible Gambling Section */
.page-index-popular-games__responsible-gambling {
  background-color: #003366;
  color: #fff;
}

.page-index-popular-games__responsible-gambling .page-index-popular-games__section-title {
  color: #FFCC00;
}

.page-index-popular-games__responsible-gambling .page-index-popular-games__text {
  color: #e0e0e0;
}

.page-index-popular-games__responsible-gambling .page-index-popular-games__btn--ghost {
  color: #FFCC00;
  border-color: #FFCC00;
}

.page-index-popular-games__responsible-gambling .page-index-popular-games__btn--ghost:hover {
  background-color: #FFCC00;
  color: #003366;
}

/* FAQ Section */
.page-index-popular-games__faq {
  background-color: #f8f8f8;
}

.page-index-popular-games__faq-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-index-popular-games__faq-question {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index-popular-games__faq-answer {
  color: #555;
  font-size: 1.05em;
}

/* Final CTA */
.page-index-popular-games__cta-final {
  background-color: #FFCC00;
  color: #000000;
  padding: 80px 0;
  text-align: center;
}

.page-index-popular-games__cta-final .page-index-popular-games__cta-title {
  font-size: 3em;
  color: #003366;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-popular-games__cta-final .page-index-popular-games__cta-description {
  font-size: 1.4em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333;
}

.page-index-popular-games__cta-final .page-index-popular-games__btn--primary {
  background-color: #003366;
  color: #FFCC00;
}

.page-index-popular-games__cta-final .page-index-popular-games__btn--primary:hover {
  background-color: #002244;
  color: #FFCC00;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-popular-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-popular-games__section-title {
    font-size: 2.2em;
  }
  .page-index-popular-games__spotlight-image {
    max-width: 100%;
    height: 300px;
  }
  .page-index-popular-games__spotlight-item {
    flex-direction: column;
  }
  .page-index-popular-games__spotlight-item:nth-child(even) {
    flex-direction: column;
  }
  .page-index-popular-games__cta-final .page-index-popular-games__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__hero {
    padding: 60px 0;
    min-height: 400px;
  }
  .page-index-popular-games__hero-title {
    font-size: 2.2em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 1.1em;
  }
  .page-index-popular-games__section {
    padding: 40px 0;
  }
  .page-index-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__text {
    font-size: 1em;
  }
  .page-index-popular-games__features-grid, .page-index-popular-games__category-grid {
    grid-template-columns: 1fr;
  }
  .page-index-popular-games__spotlight-image {
    height: 250px;
  }
  .page-index-popular-games__spotlight-content {
    padding: 20px;
  }
  .page-index-popular-games__spotlight-title {
    font-size: 1.6em;
  }
  .page-index-popular-games__cta-final {
    padding: 60px 0;
  }
  .page-index-popular-games__cta-final .page-index-popular-games__cta-title {
    font-size: 2em;
  }
  .page-index-popular-games__cta-final .page-index-popular-games__cta-description {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 0.9em;
  }
  .page-index-popular-games__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-index-popular-games__btn--large {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-index-popular-games__section-title {
    font-size: 1.5em;
  }
  .page-index-popular-games__feature-item, .page-index-popular-games__category-card, .page-index-popular-games__spotlight-item, .page-index-popular-games__faq-item {
    padding: 20px;
  }
  .page-index-popular-games__faq-question {
    font-size: 1.2em;
  }
  .page-index-popular-games__cta-final .page-index-popular-games__cta-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__cta-final .page-index-popular-games__cta-description {
    font-size: 1em;
  }
}