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

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

.page-casino-table-games__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino-table-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino-table-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #F0F0F0;
}

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

.page-casino-table-games__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
  font-size: 1.1em;
}

.page-casino-table-games__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-casino-table-games__button--register:hover {
  background-color: #F0F0F0;
}

.page-casino-table-games__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-casino-table-games__button--login:hover {
  background-color: #E0A030;
}

.page-casino-table-games__about-section,
.page-casino-table-games__games-showcase,
.page-casino-table-games__why-choose-section,
.page-casino-table-games__strategy-section,
.page-casino-table-games__responsible-gaming-section,
.page-casino-table-games__cta-section {
  padding: 60px 0;
}

.page-casino-table-games__about-section,
.page-casino-table-games__strategy-section,
.page-casino-table-games__responsible-gaming-section {
  background-color: #F8F8F8;
}

.page-casino-table-games__why-choose-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-casino-table-games__why-choose-section .page-casino-table-games__section-title,
.page-casino-table-games__why-choose-section .page-casino-table-games__feature-title,
.page-casino-table-games__why-choose-section .page-casino-table-games__feature-description {
  color: #FFFFFF;
}

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

.page-casino-table-games__why-choose-section .page-casino-table-games__section-title {
  color: #FCBC45;
}

.page-casino-table-games__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-casino-table-games__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino-table-games__game-title {
  font-size: 1.8em;
  margin: 20px 0 10px;
  color: #000000;
}

.page-casino-table-games__game-description {
  padding: 0 20px 20px;
  font-size: 1em;
  flex-grow: 1;
  color: #555555;
  text-align: justify;
}

.page-casino-table-games__game-card .page-casino-table-games__button {
  margin: 0 20px 20px;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-casino-table-games__game-card .page-casino-table-games__button:hover {
  background-color: #E0A030;
}

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

.page-casino-table-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino-table-games__feature-description {
  font-size: 1em;
  color: #F0F0F0;
  text-align: justify;
}

.page-casino-table-games__feature-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain image within feature card */
  margin-top: 20px;
  border-radius: 8px;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 80px);
  }
  .page-casino-table-games__hero-title {
    font-size: 2.5em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-games__game-grid,
  .page-casino-table-games__feature-list {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__hero-buttons,
  .page-casino-table-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino-table-games__button {
    width: 100%;
    max-width: 250px;
  }
  /* Mobile content image constraint */
  .page-casino-table-games__game-image,
  .page-casino-table-games__feature-image,
  .page-casino-table-games__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-casino-table-games__game-card .page-casino-table-games__button {
    max-width: unset; /* Allow full width within card */
  }
}

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