.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);
}

.page-casino-table-games__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  padding: 0;
  margin-bottom: 40px;
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
}

.page-casino-table-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 1;
  max-width: 90%;
}

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  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;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino-table-games__hero-button {
  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, color 0.3s ease;
}

.page-casino-table-games__hero-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-casino-table-games__hero-button--register:hover {
  background-color: #f0f0f0;
}

.page-casino-table-games__hero-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-casino-table-games__hero-button--login:hover {
  background-color: #e0a030;
}

.page-casino-table-games__overview-section,
.page-casino-table-games__features-section,
.page-casino-table-games__how-to-play-section,
.page-casino-table-games__faq-section,
.page-casino-table-games__cta-section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 20px;
}

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

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

.page-casino-table-games__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino-table-games__game-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.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.5em;
  color: #000000;
  padding: 15px 20px 10px;
  margin: 0;
}

.page-casino-table-games__game-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino-table-games__game-title a:hover {
  color: #FCBC45;
}

.page-casino-table-games__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 15px;
}

.page-casino-table-games__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino-table-games__game-button:hover {
  background-color: #e0a030;
}

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

.page-casino-table-games__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.page-casino-table-games__feature-description {
  color: #555555;
  font-size: 1em;
}

.page-casino-table-games__how-to-play-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  margin-bottom: 60px;
}

.page-casino-table-games__how-to-play-section .page-casino-table-games__section-title {
  color: #FFFFFF;
}

.page-casino-table-games__how-to-play-section .page-casino-table-games__section-title::after {
  background-color: #FCBC45;
}

.page-casino-table-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino-table-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

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

.page-casino-table-games__step-description {
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-casino-table-games__step-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino-table-games__step-button:hover {
  background-color: #e0a030;
}

.page-casino-table-games__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino-table-games__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.page-casino-table-games__faq-answer {
  font-size: 1em;
  color: #555555;
  display: none;
  padding-top: 10px;
}

.page-casino-table-games__faq-question.active + .page-casino-table-games__faq-answer {
  display: block;
}

.page-casino-table-games__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

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

.page-casino-table-games__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-casino-table-games__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-casino-table-games__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-casino-table-games__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-casino-table-games__cta-button:hover {
  background-color: #e0a030;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 3em;
  }
  .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 {
    overflow-x: hidden;
  }
  .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__hero-button {
    width: 80%;
    margin: 0 auto;
  }
  .page-casino-table-games__game-image,
  .page-casino-table-games__overview-section img,
  .page-casino-table-games__features-section img,
  .page-casino-table-games__how-to-play-section img,
  .page-casino-table-games__faq-section img,
  .page-casino-table-games__cta-section img {
    max-width: 100%;
    height: auto;
  }
  .page-casino-table-games__game-card,
  .page-casino-table-games__feature-item,
  .page-casino-table-games__step-item {
    margin-bottom: 20px;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__cta-title {
    font-size: 2em;
  }
  .page-casino-table-games__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure no img within .page-casino-table-games is smaller than 200px display */
  .page-casino-table-games img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-casino-table-games__game-image {
    height: auto; /* Allow auto height for mobile to prevent cropping */
  }
}

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