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

.page-casino-table-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

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

.page-casino-table-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45;
  line-height: 1.2;
}

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

.page-casino-table-games__hero-actions {
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-casino-table-games__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-casino-table-games__button--play {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-casino-table-games__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 1em;
  border: 2px solid #FCBC45;
}

.page-casino-table-games__button--learn-more:hover {
  background-color: #333333;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

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

.page-casino-table-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
}

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

.page-casino-table-games__introduction,
.page-casino-table-games__game-categories,
.page-casino-table-games__strategies,
.page-casino-table-games__why-j8,
.page-casino-table-games__faq,
.page-casino-table-games__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-casino-table-games__introduction {
  background-color: #F8F8F8;
}

.page-casino-table-games__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

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

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

.page-casino-table-games__game-card {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino-table-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-casino-table-games__game-card-description {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-casino-table-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino-table-games__strategy-item {
  background-color: #F8F8F8;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__strategy-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-casino-table-games__strategy-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-casino-table-games__why-j8 {
  background-color: #EFEFEF;
}

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

.page-casino-table-games__feature-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-games__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-casino-table-games__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-games__feature-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-casino-table-games__faq-accordion {
  margin-top: 40px;
}

.page-casino-table-games__faq-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__faq-question {
  font-size: 1.3em;
  color: #000000;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-question::after {
  transform: rotate(45deg);
}

.page-casino-table-games__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  display: none;
}

.page-casino-table-games__faq-answer p {
  margin-bottom: 10px;
}

.page-casino-table-games__faq-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-casino-table-games__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.page-casino-table-games__cta-section .page-casino-table-games__section-title {
  color: #FCBC45;
}

.page-casino-table-games__cta-section .page-casino-table-games__text-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #F0F0F0;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-casino-table-games__main-title {
    font-size: 3em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1.15em;
  }
  .page-casino-table-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-games__game-card-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    /* max-width: 100%; removed as per instruction */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-casino-table-games__hero-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-casino-table-games__hero-content {
    margin-bottom: 20px;
  }
  .page-casino-table-games__main-title {
    font-size: 2.2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino-table-games__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-casino-table-games__introduction,
  .page-casino-table-games__game-categories,
  .page-casino-table-games__strategies,
  .page-casino-table-games__why-j8,
  .page-casino-table-games__faq,
  .page-casino-table-games__cta-section {
    padding: 40px 0;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-casino-table-games__text-content {
    font-size: 0.95em;
  }
  .page-casino-table-games__game-grid,
  .page-casino-table-games__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino-table-games__game-card-image {
    height: 200px;
  }
  .page-casino-table-games__game-card-title {
    font-size: 1.3em;
  }
  .page-casino-table-games__strategy-item {
    padding: 20px;
  }
  .page-casino-table-games__strategy-heading {
    font-size: 1.3em;
  }
  .page-casino-table-games__feature-item {
    padding: 25px;
  }
  .page-casino-table-games__feature-title {
    font-size: 1.4em;
  }
  .page-casino-table-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-casino-table-games__faq-answer {
    padding: 0 15px 15px 15px;
  }
  /* Mobile image constraint */
  .page-casino-table-games img {
    max-width: 100%;
    height: auto;
  }
  .page-casino-table-games__feature-icon {
    width: 150px;
    height: 112px;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__main-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__hero-description {
    font-size: 0.9em;
  }
  .page-casino-table-games__section-title {
    font-size: 1.5em;
  }
  .page-casino-table-games__game-card-title {
    font-size: 1.2em;
  }
  .page-casino-table-games__button {
    font-size: 1em;
  }
  .page-casino-table-games__cta-section {
    padding: 60px 0;
  }
}