.page-casino-table-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-casino-table-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-casino-table-games__dark-section {
  background-color: #1A1A1A; /* Auxiliary dark color */
  color: #ffffff;
}

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

.page-casino-table-games__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #DAA520; /* Primary color for titles */
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-casino-table-games__subsection-title {
  font-size: 28px;
  font-weight: 600;
  color: #DAA520;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-casino-table-games__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-casino-table-games__text-block strong {
  color: #DAA520;
}

/* HERO Section */
.page-casino-table-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  overflow: hidden;
}

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

.page-casino-table-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-casino-table-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-casino-table-games__hero-title {
  font-size: 52px;
  font-weight: 900;
  color: #DAA520;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-casino-table-games__hero-description {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-casino-table-games__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #DAA520; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
  max-width: 100%; /* Mobile button adaptation */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino-table-games__cta-button:hover {
  background: #ffcc00; /* Lighter gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.6);
}

.page-casino-table-games__cta-button--large {
  padding: 22px 60px;
  font-size: 24px;
  margin-top: 50px;
}

/* Game Types Grid */
.page-casino-table-games__game-types {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-casino-table-games__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino-table-games__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.page-casino-table-games__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image size */
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #DAA520;
}

.page-casino-table-games__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino-table-games__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-casino-table-games__card-title a {
  color: #DAA520;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino-table-games__card-title a:hover {
  color: #ffcc00;
}

.page-casino-table-games__card-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-games__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #DAA520;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  margin-top: auto; /* Push button to bottom of card */
  max-width: 100%; /* Mobile button adaptation */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino-table-games__btn-primary:hover {
  background: #ffcc00;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(218, 165, 32, 0.4);
}

/* Benefits Section */
.page-casino-table-games__benefits {
  background-color: #2a2a2a; /* Slightly lighter dark background */
  padding: 80px 0;
}

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

.page-casino-table-games__feature-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-casino-table-games__feature-title {
  font-size: 26px;
  color: #DAA520;
  margin-bottom: 15px;
}

.page-casino-table-games__feature-item p {
  font-size: 17px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Strategy Section */
.page-casino-table-games__strategy {
  padding: 80px 0;
  background-color: #1A1A1A;
}

.page-casino-table-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 50px;
}

.page-casino-table-games__text-content {
  flex: 2;
  text-align: left;
}

.page-casino-table-games__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino-table-games__strategy-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Get Started Section */
.page-casino-table-games__get-started {
  background: linear-gradient(135deg, #2a2a2a, #1A1A1A);
  padding: 80px 0;
}

.page-casino-table-games__get-started-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-games__get-started-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-casino-table-games__button-group {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  max-width: 100%; /* Mobile button adaptation */
  box-sizing: border-box;
  overflow: hidden;
}

.page-casino-table-games__btn-secondary {
  display: inline-block;
  padding: 18px 45px;
  background: transparent;
  color: #DAA520;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #DAA520;
  transition: all 0.3s ease;
  max-width: 100%; /* Mobile button adaptation */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino-table-games__btn-secondary:hover {
  background: #DAA520;
  color: #1A1A1A;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.6);
}

/* FAQ Section */
.page-casino-table-games__faq-section {
  padding: 80px 0;
  background-color: #1A1A1A;
}

.page-casino-table-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino-table-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  text-align: left;
}

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-casino-table-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left;
}

.page-casino-table-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #DAA520;
}

.page-casino-table-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-casino-table-games__faq-toggle {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  color: #DAA520;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(218, 165, 32, 0.1);
}

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-toggle {
  color: #ffcc00;
  transform: rotate(180deg);
}

/* Conclusion Section */
.page-casino-table-games__conclusion {
  background: linear-gradient(135deg, #DAA520, #1A1A1A);
  padding: 80px 0;
  color: #ffffff;
}

.page-casino-table-games__conclusion .page-casino-table-games__section-title {
  color: #ffffff;
}

.page-casino-table-games__conclusion .page-casino-table-games__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 44px;
  }
  .page-casino-table-games__hero-description {
    font-size: 20px;
  }
  .page-casino-table-games__section-title {
    font-size: 32px;
  }
  .page-casino-table-games__subsection-title {
    font-size: 24px;
  }
  .page-casino-table-games__text-block {
    font-size: 17px;
  }
  .page-casino-table-games__card-image {
    height: 220px;
  }
  .page-casino-table-games__card-title {
    font-size: 22px;
  }
  .page-casino-table-games__card-text {
    font-size: 15px;
  }
  .page-casino-table-games__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-casino-table-games__btn-primary, .page-casino-table-games__btn-secondary {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino-table-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino-table-games__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-casino-table-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-casino-table-games__cta-button, .page-casino-table-games__btn-primary, .page-casino-table-games__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino-table-games__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-casino-table-games__section {
    padding: 40px 0;
  }
  .page-casino-table-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-casino-table-games__subsection-title {
    font-size: 22px;
  }
  .page-casino-table-games__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino-table-games__card-image {
    height: 200px;
  }
  .page-casino-table-games__card-content {
    padding: 20px;
  }
  .page-casino-table-games__card-title {
    font-size: 20px;
  }
  .page-casino-table-games__card-text {
    font-size: 14px;
  }
  .page-casino-table-games__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino-table-games__feature-title {
    font-size: 22px;
  }
  .page-casino-table-games__feature-item p {
    font-size: 15px;
  }
  .page-casino-table-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-casino-table-games__image-content {
    order: -1; /* Image above text on mobile */
  }
  .page-casino-table-games__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino-table-games__get-started-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino-table-games__faq-question {
    padding: 15px 20px;
  }
  .page-casino-table-games__faq-question h3 {
    font-size: 16px;
  }
  .page-casino-table-games__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }
  .page-casino-table-games__faq-answer {
    padding: 0 20px;
  }
  .page-casino-table-games__faq-item.active .page-casino-table-games__faq-answer {
    padding: 15px 20px !important;
  }
  /* General image responsive styles */
  .page-casino-table-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino-table-games__container, .page-casino-table-games__card, .page-casino-table-games__feature-item, .page-casino-table-games__content-wrapper, .page-casino-table-games__get-started-content, .page-casino-table-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}