.page-casino-table-card-games {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background from shared.css */
}

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

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

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

.page-casino-table-card-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
}

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

.page-casino-table-card-games__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-casino-table-card-games__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Dark red secondary color for text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-casino-table-card-games__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-casino-table-card-games__introduction,
.page-casino-table-card-games__game-showcase,
.page-casino-table-card-games__why-choose,
.page-casino-table-card-games__strategy-guide,
.page-casino-table-card-games__getting-started,
.page-casino-table-card-games__conclusion,
.page-casino-table-card-games__related-links {
  padding: 60px 0;
  text-align: center;
}

.page-casino-table-card-games__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-casino-table-card-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #8B0000; /* Dark red secondary color */
  border-radius: 2px;
}

.page-casino-table-card-games__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

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

.page-casino-table-card-games__game-card,
.page-casino-table-card-games__feature-item,
.page-casino-table-card-games__step-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino-table-card-games__game-image,
.page-casino-table-card-games__feature-icon,
.page-casino-table-card-games__step-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too wide */
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px; /* Enforce minimum size for content images */
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 20px auto;
  border: 2px solid #FFD700;
}

.page-casino-table-card-games__game-title,
.page-casino-table-card-games__feature-title,
.page-casino-table-card-games__step-title {
  font-size: 1.6em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 15px;
}

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

.page-casino-table-card-games__game-button,
.page-casino-table-card-games__step-button {
  display: inline-block;
  background-color: #8B0000; /* Dark red secondary color */
  color: #FFD700; /* Gold text */
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #8B0000;
}

.page-casino-table-card-games__game-button:hover,
.page-casino-table-card-games__step-button:hover {
  background-color: #b30000;
  transform: translateY(-2px);
}

.page-casino-table-card-games__cta-center {
  margin-top: 50px;
}

.page-casino-table-card-games__primary-button,
.page-casino-table-card-games__final-button {
  display: inline-block;
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Dark red text */
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-casino-table-card-games__primary-button:hover,
.page-casino-table-card-games__final-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-casino-table-card-games__secondary-button {
  display: inline-block;
  background-color: #8B0000; /* Dark red secondary color */
  color: #FFD700; /* Gold text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-right: 20px;
  border: 2px solid #8B0000;
}

.page-casino-table-card-games__secondary-button:hover {
  background-color: #b30000;
  transform: translateY(-3px);
}

.page-casino-table-card-games__tertiary-button {
  display: inline-block;
  background-color: transparent;
  color: #FFD700; /* Gold text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-casino-table-card-games__tertiary-button:hover {
  color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-casino-table-card-games__strategy-guide .page-casino-table-card-games__strategy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.page-casino-table-card-games__strategy-item {
  background: rgba(139, 0, 0, 0.2); /* Semi-transparent red background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-casino-table-card-games__strategy-title {
  font-size: 1.4em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 10px;
}

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

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

.page-casino-table-card-games__link-item {
  display: block;
  background-color: rgba(255, 215, 0, 0.1);
  color: #FFD700; /* Gold text */
  padding: 15px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #FFD700;
}

.page-casino-table-card-games__link-item:hover {
  background-color: #FFD700;
  color: #8B0000; /* Dark red text on hover */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino-table-card-games__hero-title {
    font-size: 3em;
  }
  .page-casino-table-card-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-card-games__game-grid,
  .page-casino-table-card-games__feature-list,
  .page-casino-table-card-games__steps-grid,
  .page-casino-table-card-games__links-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino-table-card-games__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .page-casino-table-card-games__hero-content {
    padding: 25px;
  }
  .page-casino-table-card-games__hero-title {
    font-size: 2.2em;
  }
  .page-casino-table-card-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-card-games__hero-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-casino-table-card-games__introduction,
  .page-casino-table-card-games__game-showcase,
  .page-casino-table-card-games__why-choose,
  .page-casino-table-card-games__strategy-guide,
  .page-casino-table-card-games__getting-started,
  .page-casino-table-card-games__conclusion,
  .page-casino-table-card-games__related-links {
    padding: 40px 0;
  }
  .page-casino-table-card-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-card-games__section-text {
    font-size: 0.95em;
  }
  .page-casino-table-card-games__game-grid,
  .page-casino-table-card-games__feature-list,
  .page-casino-table-card-games__steps-grid,
  .page-casino-table-card-games__links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino-table-card-games__game-image,
  .page-casino-table-card-games__feature-icon,
  .page-casino-table-card-games__step-icon {
    max-width: 100%;
    height: auto;
  }
  .page-casino-table-card-games__primary-button,
  .page-casino-table-card-games__final-button,
  .page-casino-table-card-games__secondary-button,
  .page-casino-table-card-games__tertiary-button {
    font-size: 1em;
    padding: 12px 25px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-casino-table-card-games__cta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-casino-table-card-games__strategy-guide .page-casino-table-card-games__strategy-points {
    grid-template-columns: 1fr;
  }
  /* Mobile content image overflow prevention */
  .page-casino-table-card-games img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino-table-card-games__hero-title {
    font-size: 1.8em;
  }
  .page-casino-table-card-games__hero-content {
    padding: 20px;
  }
  .page-casino-table-card-games__section-title {
    font-size: 1.5em;
  }
}