.page-casino-table-games {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-casino-table-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Primary background for hero */
  color: #FFFFFF; /* White text for dark background */
  position: relative;
  overflow: hidden;
}

.page-casino-table-games__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

.page-casino-table-games__hero-buttons {
  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;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

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

.page-casino-table-games__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

.page-casino-table-games__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-casino-table-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 40px;
}

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

/* General Sections */
.page-casino-table-games__about-section,
.page-casino-table-games__games-showcase,
.page-casino-table-games__why-choose-us,
.page-casino-table-games__strategies-tips,
.page-casino-table-games__cta-section,
.page-casino-table-games__faq-section {
  padding: 80px 20px;
  text-align: center;
}

.page-casino-table-games__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-casino-table-games__section-subtitle {
  font-size: 1.4em;
  color: #555555;
  margin-bottom: 40px;
}

.page-casino-table-games__text-content {
  font-size: 1.1em;
  color: #333333;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.page-casino-table-games__text-content strong {
  color: #000000;
}

/* Games Showcase */
.page-casino-table-games__games-showcase {
  background-color: #f8f8f8;
}

.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: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px;
}

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

.page-casino-table-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino-table-games__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-casino-table-games__game-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-casino-table-games__game-card-title a:hover {
  color: #FCBC45;
}

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

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

.page-casino-table-games__button--small:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* Why Choose Us Section */
.page-casino-table-games__why-choose-us {
  background-color: #000000;
  color: #FFFFFF;
}

.page-casino-table-games__why-choose-us .page-casino-table-games__section-title {
  color: #FCBC45;
}

.page-casino-table-games__why-choose-us .page-casino-table-games__text-content {
  color: #e0e0e0;
}

.page-casino-table-games__feature-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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-height: 350px;
}

.page-casino-table-games__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-casino-table-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color changes */
}

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

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

/* Strategies & Tips Section */
.page-casino-table-games__strategies-tips {
  background-color: #FFFFFF;
}

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

.page-casino-table-games__strategy-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-casino-table-games__strategy-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* CTA Section */
.page-casino-table-games__cta-section {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-casino-table-games__cta-section .page-casino-table-games__text-content {
  color: #333333;
}

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

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

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

.page-casino-table-games__cta-buttons .page-casino-table-games__button--login {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-casino-table-games__cta-buttons .page-casino-table-games__button--login:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* FAQ Section */
.page-casino-table-games__faq-section {
  background-color: #f8f8f8;
}

.page-casino-table-games__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
}

.page-casino-table-games__faq-answer {
  font-size: 1em;
  color: #555555;
  display: none;
}

.page-casino-table-games__faq-answer.page-casino-table-games__faq-answer--active {
  display: block;
}

.page-casino-table-games__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
}

.page-casino-table-games__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@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: 40px 15px;
  }

  .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 {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
  }

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

  .page-casino-table-games__section-subtitle {
    font-size: 1.2em;
  }

  .page-casino-table-games__text-content {
    font-size: 0.95em;
  }

  .page-casino-table-games__game-grid,
  .page-casino-table-games__feature-grid,
  .page-casino-table-games__strategy-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-table-games__about-section,
  .page-casino-table-games__games-showcase,
  .page-casino-table-games__why-choose-us,
  .page-casino-table-games__strategies-tips,
  .page-casino-table-games__cta-section,
  .page-casino-table-games__faq-section {
    padding: 50px 15px;
  }

  .page-casino-table-games__game-card-image,
  .page-casino-table-games__feature-icon {
    max-width: 100%;
    height: auto;
  }

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

  .page-casino-table-games__game-card {
    min-height: auto;
  }

  .page-casino-table-games__feature-item {
    min-height: auto;
  }

  .page-casino-table-games__faq-question {
    font-size: 1.2em;
  }
}

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

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

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