.page-casino-table-games {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly setting background to match body default */
}

.page-casino-table-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  position: relative;
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Minimum height for hero section */
  overflow: hidden;
}

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

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

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  border-radius: 8px;
}

.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.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino-table-games__hero-buttons {
  display: flex;
  gap: 20px;
  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, transform 0.2s ease;
  font-size: 1.1em;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-casino-table-games__button--register {
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* White text */
  border: 2px solid #FFFFFF;
}

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

.page-casino-table-games__button--play {
  background-color: #FCBC45; /* Yellowish background */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

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

.page-casino-table-games__about-section,
.page-casino-table-games__games-showcase,
.page-casino-table-games__live-section,
.page-casino-table-games__bonuses-section,
.page-casino-table-games__getting-started,
.page-casino-table-games__responsible-gaming,
.page-casino-table-games__faq-section,
.page-casino-table-games__cta-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-casino-table-games__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
}

.page-casino-table-games__section-text {
  font-size: 1.1em;
  color: #333333;
  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;
  margin-top: 30px;
}

.page-casino-table-games__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino-table-games__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency in cards */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino-table-games__card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-casino-table-games__button--play-game {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 10px 20px;
  font-size: 1em;
  margin: 0 auto;
  display: block; /* Make it block to center with margin auto */
  width: fit-content;
}

.page-casino-table-games__button--play-game:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-casino-table-games__live-image,
.page-casino-table-games__bonuses-image {
  margin-bottom: 30px;
  text-align: center;
}

.page-casino-table-games__live-image img,
.page-casino-table-games__bonuses-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-casino-table-games__button--live-casino,
.page-casino-table-games__button--view-promos,
.page-casino-table-games__button--learn-more,
.page-casino-table-games__button--view-all-faqs,
.page-casino-table-games__button--join-now {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 12px 25px;
  font-size: 1.05em;
  margin-top: 20px;
  display: inline-block;
}

.page-casino-table-games__button--live-casino:hover,
.page-casino-table-games__button--view-promos:hover,
.page-casino-table-games__button--learn-more:hover,
.page-casino-table-games__button--view-all-faqs:hover,
.page-casino-table-games__button--join-now:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  transform: translateY(-2px);
}

.page-casino-table-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-casino-table-games__step-item {
  background-color: #f0f0f0;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino-table-games__step-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-casino-table-games__step-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-games__button--register-step,
.page-casino-table-games__button--deposit-step,
.page-casino-table-games__button--play-step {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
  display: inline-block;
}

.page-casino-table-games__button--register-step:hover,
.page-casino-table-games__button--deposit-step:hover,
.page-casino-table-games__button--play-step:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-casino-table-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

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

.page-casino-table-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5em;
  line-height: 1;
}

.page-casino-table-games__faq-question.active::after {
  content: '-';
}

.page-casino-table-games__faq-answer {
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
}

.page-casino-table-games__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 10px;
}

.page-casino-table-games__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__cta-section .page-casino-table-games__section-title {
  color: #FFFFFF;
  border-bottom-color: #FCBC45;
}

.page-casino-table-games__cta-section .page-casino-table-games__section-text {
  color: #f0f0f0;
}

.page-casino-table-games__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  padding: 15px 40px;
  font-size: 1.2em;
}

.page-casino-table-games__button--join-now:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

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

  .page-casino-table-games__hero-description {
    font-size: 1.2em;
  }

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

@media (max-width: 768px) {
  .page-casino-table-games {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  .page-casino-table-games__hero-section {
    min-height: 450px;
    padding: 40px 15px; /* Adjust padding for mobile */
  }

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

  .page-casino-table-games__hero-description {
    font-size: 1em;
  }

  .page-casino-table-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino-table-games__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino-table-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-table-games__game-card img,
  .page-casino-table-games__live-image img,
  .page-casino-table-games__bonuses-image img {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px;
    min-height: 200px;
  }

  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }

  .page-casino-table-games__step-item {
    padding: 20px;
  }

  .page-casino-table-games__steps-list {
    grid-template-columns: 1fr;
  }

  .page-casino-table-games__button--live-casino,
  .page-casino-table-games__button--view-promos,
  .page-casino-table-games__button--learn-more,
  .page-casino-table-games__button--view-all-faqs,
  .page-casino-table-games__button--join-now {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

  .page-casino-table-games__section-title {
    font-size: 1.5em;
  }

  .page-casino-table-games__game-card img {
    height: 200px;
  }

  .page-casino-table-games__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}