.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 */
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 80px);
  }
}

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

.page-casino-table-games__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  padding-bottom: 50px; /* Adjust as needed for content positioning */
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino-table-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.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;
  font-size: 1.1em;
}

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

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

.page-casino-table-games__button--play {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-casino-table-games__intro-section,
.page-casino-table-games__games-overview-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__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-casino-table-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 10px auto 0;
}

.page-casino-table-games__section-text {
  font-size: 1.1em;
  text-align: justify;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

.page-casino-table-games__game-card,
.page-casino-table-games__strategy-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-casino-table-games__game-card:hover,
.page-casino-table-games__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block; /* Ensure image is block-level to fill container */
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-casino-table-games__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  margin: 0 15px 20px 15px;
  align-self: center;
}

.page-casino-table-games__button--learn-more:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-casino-table-games__strategy-card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

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

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

.page-casino-table-games__cta-section {
  background-color: #000000;
  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: #FCBC45;
}

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

.page-casino-table-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-casino-table-games__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-casino-table-games__button--download:hover {
  background-color: transparent;
  color: #FCBC45;
}

/* Responsive adjustments */
@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__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: 80%;
    margin: 0 auto;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__section-text {
    font-size: 0.95em;
  }
  .page-casino-table-games__game-grid,
  .page-casino-table-games__strategy-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure images in content area are responsive and not smaller than 200px */
  .page-casino-table-games__game-image,
  .page-casino-table-games__container img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  /* Specific rule for img within page-casino-table-games to prevent small sizes */
  .page-casino-table-games img:not(.shared-header__logo-image):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-logo) {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-title {
    font-size: 2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 0.9em;
  }
  .page-casino-table-games__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-casino-table-games__intro-section,
  .page-casino-table-games__games-overview-section,
  .page-casino-table-games__strategy-section,
  .page-casino-table-games__responsible-gaming-section,
  .page-casino-table-games__cta-section {
    padding: 40px 0;
  }
  .page-casino-table-games__section-title {
    font-size: 1.5em;
  }
  .page-casino-table-games__game-title,
  .page-casino-table-games__strategy-card-title {
    font-size: 1.3em;
  }
}