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

.page-casino-table-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #0A192F; /* Main brand color for hero background */
  color: #f0f0f0;
}

.page-casino-table-games__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.page-casino-table-games__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.page-casino-table-games__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino-table-games__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-casino-table-games__button--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

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

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

.page-casino-table-games__button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

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

.page-casino-table-games__section-title {
  font-size: 2.5em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-casino-table-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-casino-table-games__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-casino-table-games__game-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
  padding: 40px;
}

.page-casino-table-games__game-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.page-casino-table-games__game-card--reverse {
  flex-direction: row-reverse;
}

.page-casino-table-games__game-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum size */
}

.page-casino-table-games__game-details {
  flex: 1;
}

.page-casino-table-games__game-title {
  font-size: 2em;
  color: #0A192F;
  margin-bottom: 20px;
}

.page-casino-table-games__subsection-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-casino-table-games__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-casino-table-games__list-item {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333333;
}

.page-casino-table-games__list-item strong {
  color: #0A192F;
}

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

.page-casino-table-games__tip-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino-table-games__tip-card:hover {
  transform: translateY(-5px);
}

.page-casino-table-games__tip-title {
  font-size: 1.6em;
  color: #0A192F;
  margin-bottom: 15px;
}

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

.page-casino-table-games__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease;
}

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

.page-casino-table-games__feature-icon {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino-table-games__feature-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 15px;
}

.page-casino-table-games__cta-section {
  text-align: center;
  background-color: #0A192F;
  color: #f0f0f0;
  padding: 80px 20px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.page-casino-table-games__cta-section .page-casino-table-games__section-title {
  color: #FFD700;
}

.page-casino-table-games__cta-section .page-casino-table-games__section-title::after {
  background-color: #f0f0f0;
}

.page-casino-table-games__cta-section .page-casino-table-games__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 2.8em;
  }
  .page-casino-table-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-games__game-card {
    flex-direction: column;
    align-items: center;
  }
  .page-casino-table-games__game-card--reverse {
    flex-direction: column;
  }
  .page-casino-table-games__game-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-casino-table-games__hero-title {
    font-size: 2.2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-casino-table-games__content-area {
    padding: 40px 15px;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__game-card {
    gap: 20px;
  }
  .page-casino-table-games__game-image {
    max-width: 100%;
    width: 100%; /* Ensure images are not too wide */
    height: auto; /* Maintain aspect ratio */
    max-height: none; /* Remove any max-height that might constrain it */
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-casino-table-games__tip-grid, .page-casino-table-games__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__game-section, .page-casino-table-games__tip-card, .page-casino-table-games__feature-card {
    padding: 25px;
  }
  .page-casino-table-games__cta-section {
    padding: 60px 15px;
  }
  /* Ensure all images within .page-casino-table-games do not cause horizontal scroll */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
}

@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__game-title {
    font-size: 1.6em;
  }
  .page-casino-table-games__subsection-title {
    font-size: 1.3em;
  }
  .page-casino-table-games__button {
    width: 100%;
  }
  .page-casino-table-games__hero-actions, .page-casino-table-games__cta-actions {
    flex-direction: column;
  }
}