.page-casino-table-card-games {
  color: #333333; /* Dark text for default 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-card-games__hero-section {
  background-color: #000080; /* Dark blue background */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-casino-table-card-games__hero-content {
  max-width: 800px;
  margin-bottom: 20px;
}

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

.page-casino-table-card-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-casino-table-card-games__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  white-space: nowrap;
}

.page-casino-table-card-games__button--primary {
  background-color: #FFD700; /* Golden button */
  color: #000080; /* Dark blue text */
  border: 2px solid #FFD700;
}

.page-casino-table-card-games__button--primary:hover {
  background-color: #e6c200;
  color: #000066;
}

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

.page-casino-table-card-games__button--secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

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

.page-casino-table-card-games__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  width: 1200px; /* Display width */
  height: 675px; /* Display height */
}

.page-casino-table-card-games__introduction-section,
.page-casino-table-card-games__games-showcase,
.page-casino-table-card-games__advantages-section,
.page-casino-table-card-games__getting-started-section,
.page-casino-table-card-games__responsible-gaming-section,
.page-casino-table-card-games__cta-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-casino-table-card-games__section-title {
  font-size: 2.5em;
  color: #000080; /* Dark blue title */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

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

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

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

.page-casino-table-card-games__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-card-games__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  width: 400px; /* Display width */
  height: 300px; /* Display height */
  min-width: 200px; /* Minimum size enforcement */
  min-height: 200px; /* Minimum size enforcement */
}

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

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

.page-casino-table-card-games__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino-table-card-games__advantage-item {
  background-color: #e6f7ff; /* Light blue background for list items */
  border-left: 5px solid #FFD700; /* Golden accent */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

.page-casino-table-card-games__advantage-item strong {
  color: #000080;
}

.page-casino-table-card-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino-table-card-games__step-item {
  background-color: #f0f8ff; /* Lighter blue background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-card-games__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFD700; /* Golden number background */
  color: #000080; /* Dark blue number */
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-casino-table-card-games__step-item h3 {
  font-size: 1.4em;
  color: #000080;
  margin-bottom: 10px;
}

.page-casino-table-card-games__step-item p {
  color: #555555;
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-card-games__cta-section {
  text-align: center;
  background-color: #000080; /* Dark blue background */
  color: #ffffff; /* Light text */
  padding: 50px 20px;
}

.page-casino-table-card-games__cta-section .page-casino-table-card-games__section-title {
  color: #FFD700; /* Golden title */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino-table-card-games__hero-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-card-games__hero-section {
    flex-direction: column;
    padding: 40px 15px;
  }

  .page-casino-table-card-games__hero-title {
    font-size: 2em;
  }

  .page-casino-table-card-games__hero-description {
    font-size: 1em;
  }

  .page-casino-table-card-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino-table-card-games__button {
    width: 100%;
    max-width: 300px;
  }

  .page-casino-table-card-games__section-title {
    font-size: 2em;
  }

  .page-casino-table-card-games__game-grid,
  .page-casino-table-card-games__steps-list {
    grid-template-columns: 1fr;
  }

  /* Mobile content area image resizing */
  .page-casino-table-card-games__game-card img,
  .page-casino-table-card-games__hero-image img {
    max-width: 100%;
    height: auto;
    width: auto; /* Reset explicit width for mobile */
    min-width: 200px; /* Ensure minimum size is still met */
    min-height: 200px; /* Ensure minimum size is still met */
  }
  
  .page-casino-table-card-games__introduction-section,
  .page-casino-table-card-games__games-showcase,
  .page-casino-table-card-games__advantages-section,
  .page-casino-table-card-games__getting-started-section,
  .page-casino-table-card-games__responsible-gaming-section,
  .page-casino-table-card-games__cta-section {
    padding: 15px;
    margin: 30px auto;
  }
}

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

  .page-casino-table-card-games__section-title {
    font-size: 1.8em;
  }

  .page-casino-table-card-games__game-title {
    font-size: 1.3em;
  }

  .page-casino-table-card-games__button {
    font-size: 1em;
    padding: 12px 25px;
  }
}