.page-casino-popular-games {
  color: #333333; /* Dark text for light body background */
}

.page-casino-popular-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f8f8f8;
}

.page-casino-popular-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.page-casino-popular-games__hero-image {
  width: 55%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-casino-popular-games__hero-content {
  width: 40%;
  text-align: left;
}

.page-casino-popular-games__hero-title {
  font-size: 3.2em;
  color: #8B0000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino-popular-games__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-casino-popular-games__hero-actions {
  display: flex;
  gap: 15px;
}

.page-casino-popular-games__button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-casino-popular-games__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.page-casino-popular-games__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-casino-popular-games__button--secondary {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.page-casino-popular-games__button--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
  transform: translateY(-2px);
}

.page-casino-popular-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-casino-popular-games__section-title {
  font-size: 2.5em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 20px;
}

.page-casino-popular-games__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-casino-popular-games__game-categories-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-casino-popular-games__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino-popular-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-casino-popular-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-casino-popular-games__game-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino-popular-games__game-card-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-casino-popular-games__game-card-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-casino-popular-games__game-card-title a:hover {
  text-decoration: underline;
}

.page-casino-popular-games__game-card-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-popular-games__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  align-self: flex-start;
}

.page-casino-popular-games__why-choose-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-casino-popular-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

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

.page-casino-popular-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-casino-popular-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino-popular-games__feature-title {
  font-size: 1.4em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-casino-popular-games__feature-description {
  font-size: 0.9em;
  color: #666666;
  line-height: 1.6;
}

.page-casino-popular-games__responsible-gaming-section {
  background-color: #f8f8f8;
  padding: 60px 0;
  text-align: center;
}

.page-casino-popular-games__button--tertiary {
  background-color: #8B0000;
  color: #FFD700;
  box-shadow: 0 4px 8px rgba(139, 0, 0, 0.4);
}

.page-casino-popular-games__button--tertiary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-casino-popular-games__cta-section {
  background: linear-gradient(135deg, #FFD700 0%, #8B0000 100%);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-casino-popular-games__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino-popular-games__cta-content .page-casino-popular-games__section-title {
  color: #ffffff;
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-casino-popular-games__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-casino-popular-games__button--large {
  padding: 18px 36px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-casino-popular-games__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-casino-popular-games__hero-image {
    width: 80%;
    margin-bottom: 30px;
  }

  .page-casino-popular-games__hero-content {
    width: 100%;
  }

  .page-casino-popular-games__hero-title {
    font-size: 2.5em;
  }

  .page-casino-popular-games__hero-description {
    font-size: 1.1em;
  }

  .page-casino-popular-games__hero-actions {
    justify-content: center;
  }

  .page-casino-popular-games__section-title {
    font-size: 2em;
  }

  .page-casino-popular-games__game-card-image {
    height: 200px;
  }

  .page-casino-popular-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-casino-popular-games__feature-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-casino-popular-games__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-casino-popular-games__hero-image {
    width: 95%;
  }
  .page-casino-popular-games__hero-title {
    font-size: 2em;
  }
  .page-casino-popular-games__hero-description {
    font-size: 1em;
  }
  .page-casino-popular-games__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-casino-popular-games__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-casino-popular-games__content-area {
    padding: 20px 15px;
  }
  .page-casino-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-popular-games__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-casino-popular-games__category-grid {
    grid-template-columns: 1fr;
  }
  .page-casino-popular-games__game-card-image {
    height: 180px;
  }
  .page-casino-popular-games__game-card-title {
    font-size: 1.3em;
  }
  .page-casino-popular-games__game-card-description {
    font-size: 0.9em;
  }
  .page-casino-popular-games__features-grid {
    grid-template-columns: 1fr;
  }
  .page-casino-popular-games__feature-item {
    padding: 20px;
  }
  .page-casino-popular-games__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-casino-popular-games__feature-title {
    font-size: 1.1em;
  }
  .page-casino-popular-games__cta-content .page-casino-popular-games__section-title {
    font-size: 2.2em;
  }
  .page-casino-popular-games__cta-description {
    font-size: 1.1em;
  }
  .page-casino-popular-games__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Critical: Ensure images don't overflow */
  .page-casino-popular-games img {
    max-width: 100%;
    height: auto;
  }

  /* Content area specific image sizing, ensuring minimum 200px display size is not violated by smaller values */
  .page-casino-popular-games__game-card-image,
  .page-casino-popular-games__feature-icon {
    /* These elements already have explicit width/height in HTML and object-fit:cover/contain, 
       max-width:100% and height:auto will scale them down proportionally if container is smaller 
       without violating the 200px minimum for content images in terms of *defined CSS width/height*, 
       as long as the container itself is >= 200px. */
  }
}

@media (max-width: 480px) {
  .page-casino-popular-games__hero-title {
    font-size: 1.8em;
  }
  .page-casino-popular-games__section-title {
    font-size: 1.6em;
  }
  .page-casino-popular-games__cta-content .page-casino-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-popular-games__hero-image {
    width: 100%;
  }
}