.page-casino-table-games {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

/* Hero Section */
.page-casino-table-games__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  background-color: #007bff; /* Fallback background color */
}

.page-casino-table-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffc107; /* Gold for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-casino-table-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.page-casino-table-games__btn--primary {
  background-color: #ffc107;
  color: #007bff;
  border: 2px solid #ffc107;
}

.page-casino-table-games__btn--primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
}

.page-casino-table-games__btn--secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-casino-table-games__btn--secondary:hover {
  background-color: rgba(255, 193, 7, 0.1);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-casino-table-games__overview-section, 
.page-casino-table-games__game-selection, 
.page-casino-table-games__why-choose-us, 
.page-casino-table-games__promotions-section, 
.page-casino-table-games__strategy-section, 
.page-casino-table-games__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-casino-table-games__overview-section, 
.page-casino-table-games__why-choose-us, 
.page-casino-table-games__strategy-section {
  background-color: #f8f9fa; /* Light background for contrast */
}

.page-casino-table-games__section-title {
  font-size: 2.5em;
  color: #007bff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-casino-table-games__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Features Grid */
.page-casino-table-games__features-grid, 
.page-casino-table-games__game-grid, 
.page-casino-table-games__benefits-grid, 
.page-casino-table-games__promo-grid, 
.page-casino-table-games__strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino-table-games__feature-card, 
.page-casino-table-games__game-card, 
.page-casino-table-games__benefit-card, 
.page-casino-table-games__promo-card, 
.page-casino-table-games__strategy-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino-table-games__feature-card:hover, 
.page-casino-table-games__game-card:hover, 
.page-casino-table-games__benefit-card:hover, 
.page-casino-table-games__promo-card:hover, 
.page-casino-table-games__strategy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino-table-games__feature-icon, 
.page-casino-table-games__benefit-icon, 
.page-casino-table-games__promo-image, 
.page-casino-table-games__game-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-casino-table-games__feature-title, 
.page-casino-table-games__game-title, 
.page-casino-table-games__benefit-title, 
.page-casino-table-games__promo-title, 
.page-casino-table-games__strategy-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-casino-table-games__feature-text, 
.page-casino-table-games__game-text, 
.page-casino-table-games__benefit-text, 
.page-casino-table-games__promo-text, 
.page-casino-table-games__strategy-text {
  font-size: 1em;
  color: #666666;
  flex-grow: 1;
}

.page-casino-table-games__btn--play, 
.page-casino-table-games__btn--promo, 
.page-casino-table-games__btn--read-more {
  margin-top: 20px;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-casino-table-games__btn--play:hover, 
.page-casino-table-games__btn--promo:hover, 
.page-casino-table-games__btn--read-more:hover {
  background-color: #0056b3;
}

/* CTA Section */
.page-casino-table-games__cta-section {
  background-color: #007bff;
  color: #ffffff;
  padding: 80px 0;
}

.page-casino-table-games__cta-title {
  font-size: 3em;
  color: #ffc107;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-casino-table-games__hero-title {
    font-size: 2.8em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1.1em;
  }
  .page-casino-table-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-games__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-casino-table-games__hero-section {
    padding: 60px 0;
  }
  .page-casino-table-games__hero-title {
    font-size: 2.2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino-table-games__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__section-description {
    font-size: 0.95em;
  }
  .page-casino-table-games__features-grid, 
  .page-casino-table-games__game-grid, 
  .page-casino-table-games__benefits-grid, 
  .page-casino-table-games__promo-grid, 
  .page-casino-table-games__strategy-cards {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__cta-title {
    font-size: 2em;
  }
  .page-casino-table-games__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile content image overflow prevention */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Adjust object-fit for smaller screens if needed */
  }
  .page-casino-table-games__hero-image {
    object-fit: cover; /* Hero image still covers */
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__section-title {
    font-size: 1.5em;
  }
  .page-casino-table-games__cta-title {
    font-size: 1.8em;
  }
}