.page-casino-table-games {
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* For desktop fixed header */
}

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

.page-casino-table-games__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-casino-table-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

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

.page-casino-table-games__hero-description {
  font-size: 1.2em;
  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: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-casino-table-games__button--primary {
  background-color: #FFD700;
  color: #0A1931;
  border: 2px solid #FFD700;
}

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

.page-casino-table-games__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-casino-table-games__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-casino-table-games__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino-table-games__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-casino-table-games__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

.page-casino-table-games__game-selection,
.page-casino-table-games__why-choose-us,
.page-casino-table-games__getting-started,
.page-casino-table-games__responsible-gaming,
.page-casino-table-games__call-to-action {
  padding: 60px 0;
  background-color: #0A1931;
}

.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: #1a2b45;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid #FFD700;
  min-width: 200px;
  min-height: 200px;
}

.page-casino-table-games__game-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 25px 15px 15px 15px;
}

.page-casino-table-games__game-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino-table-games__game-title a:hover {
  text-decoration: underline;
}

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

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

.page-casino-table-games__feature-card {
  background-color: #1a2b45;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #FFD700;
}

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

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

.page-casino-table-games__feature-description a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino-table-games__feature-description a:hover {
  text-decoration: underline;
}

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

.page-casino-table-games__step-card {
  background-color: #1a2b45;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 5px solid #FFD700;
  text-align: center;
}

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

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

.page-casino-table-games__responsible-gaming {
  background-color: #0A1931;
  text-align: center;
  padding: 80px 0;
}

.page-casino-table-games__download-app {
  background-color: #0A1931;
  padding: 80px 0;
}

.page-casino-table-games__download-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-casino-table-games__download-content {
  flex: 1;
  min-width: 300px;
}

.page-casino-table-games__download-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  min-height: 200px;
}

.page-casino-table-games__call-to-action {
  background-color: #1a2b45;
  text-align: center;
  padding: 80px 0;
}

@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 2.8em;
  }
  .page-casino-table-games__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also respects offset */
  }
  .page-casino-table-games__hero-section {
    padding: 60px 20px;
  }
  .page-casino-table-games__hero-title {
    font-size: 2.2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__hero-buttons {
    flex-direction: column;
  }
  .page-casino-table-games__button {
    width: 100%;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__section-intro {
    font-size: 0.95em;
  }
  .page-casino-table-games__game-grid,
  .page-casino-table-games__feature-grid,
  .page-casino-table-games__steps {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__game-card,
  .page-casino-table-games__feature-card,
  .page-casino-table-games__step-card {
    margin-left: 0;
    margin-right: 0;
  }
  .page-casino-table-games__download-container {
    flex-direction: column;
    text-align: center;
  }
  .page-casino-table-games__download-image {
    max-width: 80%;
  }
  /* Mobile content area images must not cause overflow */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
  }
}

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