.page-casino-table-games {
  color: #333333; /* Dark text for default light body background */
}

.page-casino-table-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  padding-bottom: 60px;
  background-color: #0056B3; /* Primary blue background for hero */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-casino-table-games__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-casino-table-games__hero-content {
  max-width: 800px;
}

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent gold for title */
  line-height: 1.2;
}

.page-casino-table-games__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-casino-table-games__button--primary {
  background-color: #FFD700; /* Gold accent */
  color: #0056B3; /* Dark blue text */
  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: #FFD700;
  color: #0056B3;
  transform: translateY(-2px);
}

.page-casino-table-games__hero-image {
  width: 100%;
  max-width: 900px;
}

.page-casino-table-games__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__section-title {
  font-size: 2.8em;
  color: #0056B3;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

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

.page-casino-table-games__game-categories-section,
.page-casino-table-games__why-philucky-section,
.page-casino-table-games__strategy-guides-section,
.page-casino-table-games__promotions-section,
.page-casino-table-games__faq-section,
.page-casino-table-games__final-cta-section {
  padding: 80px 0;
}

.page-casino-table-games__game-categories-section {
  background-color: #f8f8f8;
}

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

.page-casino-table-games__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino-table-games__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino-table-games__game-card-title {
  font-size: 1.8em;
  color: #0056B3;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino-table-games__game-card-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino-table-games__button--play {
  background-color: #0056B3;
  color: #ffffff;
  padding: 10px 25px;
  font-size: 1em;
  border: none;
}

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

.page-casino-table-games__why-philucky-section {
  background-color: #ffffff;
}

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

.page-casino-table-games__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: #f0f7ff; /* Light blue background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-casino-table-games__feature-item:hover {
  transform: translateY(-5px);
}

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

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

.page-casino-table-games__strategy-guides-section {
  background-color: #f8f8f8;
}

.page-casino-table-games__intro-text {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #444444;
}

.page-casino-table-games__guides-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-casino-table-games__guide-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 25px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-casino-table-games__guide-item:hover {
  background-color: #f0f7ff;
  border-color: #0056B3;
}

.page-casino-table-games__guide-link {
  font-size: 1.1em;
  color: #0056B3;
  text-decoration: none;
  font-weight: 600;
}

.page-casino-table-games__guide-link:hover {
  text-decoration: underline;
  color: #FFD700;
}

.page-casino-table-games__cta-button-wrapper {
  text-align: center;
}

.page-casino-table-games__promotions-section {
  background-color: #ffffff;
}

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

.page-casino-table-games__promo-card {
  background-color: #f0f7ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino-table-games__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-casino-table-games__promo-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-casino-table-games__promo-title {
  font-size: 2em;
  color: #0056B3;
  margin: 25px 20px 10px 20px;
}

.page-casino-table-games__promo-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin: 0 20px 25px 20px;
}

.page-casino-table-games__promo-card .page-casino-table-games__button--play {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

.page-casino-table-games__faq-section {
  background-color: #f8f8f8;
}

.page-casino-table-games__accordion {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino-table-games__accordion-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino-table-games__accordion-header {
  width: 100%;
  background-color: #0056B3;
  color: #ffffff;
  padding: 18px 25px;
  text-align: left;
  font-size: 1.2em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-casino-table-games__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-casino-table-games__accordion-header.active {
  background-color: #004085;
}

.page-casino-table-games__accordion-header.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-casino-table-games__accordion-content {
  padding: 0 25px;
  background-color: #fefefe;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-casino-table-games__accordion-content p {
  padding: 15px 0;
  line-height: 1.6;
  color: #555555;
}

.page-casino-table-games__accordion-content a {
  color: #0056B3;
  text-decoration: underline;
}

.page-casino-table-games__accordion-content a:hover {
  color: #FFD700;
}

.page-casino-table-games__final-cta-section {
  background-color: #0056B3;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-casino-table-games__final-cta-section .page-casino-table-games__section-title {
  color: #FFD700;
}

.page-casino-table-games__final-cta-section .page-casino-table-games__intro-text {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-casino-table-games__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

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

@media (max-width: 768px) {
  .page-casino-table-games__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

  .page-casino-table-games__hero-container {
    flex-direction: column;
    gap: 30px;
  }

  .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: 100%;
    max-width: 300px;
  }

  .page-casino-table-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-casino-table-games__game-categories-section,
  .page-casino-table-games__why-philucky-section,
  .page-casino-table-games__strategy-guides-section,
  .page-casino-table-games__promotions-section,
  .page-casino-table-games__faq-section,
  .page-casino-table-games__final-cta-section {
    padding: 60px 0;
  }

  .page-casino-table-games__game-cards-grid,
  .page-casino-table-games__features-grid,
  .page-casino-table-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-casino-table-games__game-card-image,
  .page-casino-table-games__promo-image {
    height: 200px;
  }

  .page-casino-table-games__intro-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-casino-table-games__guides-list {
    flex-direction: column;
    align-items: center;
  }

  .page-casino-table-games__guide-item {
    width: 100%;
    max-width: 350px;
  }

  .page-casino-table-games__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
  }

  .page-casino-table-games__game-card-image,
  .page-casino-table-games__promo-image {
      min-width: 200px; /* Enforce minimum size */
      min-height: 200px; /* Enforce minimum size */
  }
}

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

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

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

  .page-casino-table-games__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}