.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); /* Ensures content is not hidden by fixed header */
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header if needed */
  }
}

.page-casino-table-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  background-color: #0A2463; /* Midnight Blue primary color */
  color: #ffffff;
  padding: 60px 20px;
  overflow: hidden;
}

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

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

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E3B505; /* Golden Yellow accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

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

.page-casino-table-games__hero-button {
  display: inline-block;
  background-color: #E3B505; /* Golden Yellow accent */
  color: #0A2463; /* Midnight Blue text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px;
  min-height: 50px;
}

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

.page-casino-table-games__intro-section,
.page-casino-table-games__games-grid,
.page-casino-table-games__why-choose-us,
.page-casino-table-games__strategy-guide,
.page-casino-table-games__cta-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__intro-heading,
.page-casino-table-games__grid-heading,
.page-casino-table-games__why-choose-heading,
.page-casino-table-games__strategy-heading,
.page-casino-table-games__cta-heading {
  color: #0A2463; /* Midnight Blue primary color */
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-casino-table-games__intro-heading::after,
.page-casino-table-games__grid-heading::after,
.page-casino-table-games__why-choose-heading::after,
.page-casino-table-games__strategy-heading::after,
.page-casino-table-games__cta-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E3B505;
  border-radius: 2px;
}

.page-casino-table-games__intro-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
}

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

.page-casino-table-games__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

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

.page-casino-table-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card layout */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-casino-table-games__card-title {
  font-size: 1.8em;
  color: #0A2463;
  padding: 15px 20px 10px;
}

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

.page-casino-table-games__card-button {
  display: block;
  background-color: #E3B505;
  color: #0A2463;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
  min-width: 200px;
  min-height: 40px;
}

.page-casino-table-games__card-button:hover {
  background-color: #f0c83a;
}

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

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

.page-casino-table-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
  width: 200px;
  height: 200px;
}

.page-casino-table-games__feature-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 10px;
}

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

.page-casino-table-games__strategy-guide {
  text-align: center;
}

.page-casino-table-games__strategy-intro {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.page-casino-table-games__strategy-button {
  display: inline-block;
  background-color: #0A2463;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px;
  min-height: 40px;
}

.page-casino-table-games__strategy-button:hover {
  background-color: #1a3c7c;
}

.page-casino-table-games__cta-section {
  text-align: center;
  background-color: #0A2463;
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-casino-table-games__cta-heading {
  color: #E3B505;
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-casino-table-games__cta-heading::after {
  background-color: #ffffff;
}

.page-casino-table-games__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

.page-casino-table-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px;
  min-height: 50px;
}

.page-casino-table-games__cta-button--primary {
  background-color: #E3B505;
  color: #0A2463;
}

.page-casino-table-games__cta-button--primary:hover {
  background-color: #f0c83a;
  transform: translateY(-3px);
}

.page-casino-table-games__cta-button--secondary {
  background-color: #ffffff;
  color: #0A2463;
  border: 2px solid #E3B505;
}

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

@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 2.8em;
  }
  .page-casino-table-games__intro-heading,
  .page-casino-table-games__grid-heading,
  .page-casino-table-games__why-choose-heading,
  .page-casino-table-games__strategy-heading,
  .page-casino-table-games__cta-heading {
    font-size: 2em;
  }
  .page-casino-table-games__game-cards-container,
  .page-casino-table-games__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino-table-games__hero-title {
    font-size: 2.2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1.1em;
  }
  .page-casino-table-games__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-casino-table-games__intro-heading,
  .page-casino-table-games__grid-heading,
  .page-casino-table-games__why-choose-heading,
  .page-casino-table-games__strategy-heading,
  .page-casino-table-games__cta-heading {
    font-size: 1.8em;
  }
  .page-casino-table-games__intro-text,
  .page-casino-table-games__strategy-intro,
  .page-casino-table-games__cta-description {
    font-size: 1em;
  }
  .page-casino-table-games__game-cards-container,
  .page-casino-table-games__features-grid {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino-table-games__cta-button {
    width: 100%;
    max-width: 300px;
  }
  /* Ensure images in content area are responsive and don't overflow */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .page-casino-table-games__card-image {
    height: auto; /* Allow height to adjust for responsiveness */
  }
  .page-casino-table-games__feature-icon {
    width: 100%; /* Ensure feature icons are responsive */
    height: auto;
    max-width: 200px; /* Still meet min size requirement */
  }
  .page-casino-table-games__intro-section,
  .page-casino-table-games__games-grid,
  .page-casino-table-games__why-choose-us,
  .page-casino-table-games__strategy-guide,
  .page-casino-table-games__cta-section {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__intro-heading,
  .page-casino-table-games__grid-heading,
  .page-casino-table-games__why-choose-heading,
  .page-casino-table-games__strategy-heading,
  .page-casino-table-games__cta-heading {
    font-size: 1.5em;
  }
  .page-casino-table-games__hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-casino-table-games__card-title {
    font-size: 1.5em;
  }
  .page-casino-table-games__feature-title {
    font-size: 1.3em;
  }
  .page-casino-table-games__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}