.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); /* Ensure 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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000; /* Main color as background for hero */
  color: #FFFFFF; /* White text for dark background */
  position: relative;
  overflow: hidden;
}

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

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-casino-table-games__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino-table-games__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
}

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

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

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

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

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

.page-casino-table-games__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
  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: #FCBC45;
  border-radius: 2px;
}

.page-casino-table-games__introduction-section,
.page-casino-table-games__why-phdream16-section,
.page-casino-table-games__strategy-guide-section,
.page-casino-table-games__cta-section,
.page-casino-table-games__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-casino-table-games__text-content--callout {
  font-style: italic;
  text-align: center;
  margin-top: 40px;
  font-size: 1.2em;
  color: #555555;
}

.page-casino-table-games__games-showcase-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.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-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
}

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

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

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

.page-casino-table-games__game-card-description {
  font-size: 1em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

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

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

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

.page-casino-table-games__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

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

.page-casino-table-games__strategy-card {
  background-color: #fefefe;
  padding: 30px;
  border-left: 5px solid #FCBC45;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-casino-table-games__strategy-card-description {
  font-size: 0.95em;
  color: #555555;
}

.page-casino-table-games__inline-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-casino-table-games__inline-link:hover {
  text-decoration: underline;
}

.page-casino-table-games__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

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

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

.page-casino-table-games__cta-buttons {
  margin-top: 30px;
}

.page-casino-table-games__faq-section {
  background-color: #f8f8f8;
}

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

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

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

/* 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: 2.2em;
  }
  .page-casino-table-games__game-card-title {
    font-size: 1.4em;
  }
  .page-casino-table-games__feature-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 80px);
  }
  .page-casino-table-games__hero-section {
    padding: 60px 20px 30px;
  }
  .page-casino-table-games__hero-title {
    font-size: 2.5em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__introduction-section,
  .page-casino-table-games__why-phdream16-section,
  .page-casino-table-games__strategy-guide-section,
  .page-casino-table-games__cta-section,
  .page-casino-table-games__faq-section {
    padding: 40px 0;
  }
  .page-casino-table-games__game-card {
    min-height: 450px;
  }
  .page-casino-table-games__game-card-image,
  .page-casino-table-games__feature-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-casino-table-games__game-grid,
  .page-casino-table-games__features-grid,
  .page-casino-table-games__strategy-grid {
    grid-template-columns: 1fr;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-title {
    font-size: 2em;
  }
  .page-casino-table-games__cta-button {
    display: block;
    margin: 10px auto;
  }
  .page-casino-table-games__game-card {
    min-height: 400px;
  }
  .page-casino-table-games__game-card-image {
    height: 200px;
  }
  .page-casino-table-games__faq-question {
    font-size: 1.2em;
  }
}