/* style/casino-table-games.css */

:root {
  --go9-primary-color: #11A84E;
  --go9-secondary-color: #22C768;
  --go9-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --go9-card-bg: #11271B;
  --go9-background: #08160F;
  --go9-text-main: #F2FFF6;
  --go9-text-secondary: #A7D9B8;
  --go9-border: #2E7A4E;
  --go9-glow: #57E38D;
  --go9-gold: #F2C14E;
  --go9-divider: #1E3A2A;
  --go9-deep-green: #0A4B2C;
}

.page-casino-table-games {
  font-family: Arial, sans-serif;
  color: var(--go9-text-main); /* Default text color for the page, suitable for dark background */
  background-color: var(--go9-background); /* Body background is dark, so page content uses light text */
}

.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: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px;
}

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

.page-casino-table-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-casino-table-games__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--go9-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-casino-table-games__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--go9-text-main);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino-table-games__btn-primary,
.page-casino-table-games__btn-secondary,
.page-casino-table-games__card-button {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino-table-games__btn-primary {
  background: var(--go9-button-gradient);
  color: var(--go9-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-casino-table-games__btn-secondary {
  background: transparent;
  color: var(--go9-secondary-color);
  border: 2px solid var(--go9-secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__btn-secondary:hover {
  background: var(--go9-secondary-color);
  color: var(--go9-background);
}

.page-casino-table-games__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.page-casino-table-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--go9-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-casino-table-games__section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--go9-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-casino-table-games__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--go9-text-main);
  margin-bottom: 20px;
}

.page-casino-table-games__introduction-section,
.page-casino-table-games__advantages-section,
.page-casino-table-games__how-to-start-section,
.page-casino-table-games__faq-section {
  padding: 80px 0;
  background-color: var(--go9-background); /* Default for light-bg sections on a dark body */
}

.page-casino-table-games__dark-section {
  padding: 80px 0;
  background-color: var(--go9-deep-green);
  color: var(--go9-text-main);
}

.page-casino-table-games__games-showcase {
  background-color: var(--go9-deep-green);
  padding: 80px 0;
}

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

.page-casino-table-games__game-card {
  background-color: var(--go9-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--go9-border);
}

.page-casino-table-games__game-title {
  font-size: 1.6rem;
  color: var(--go9-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino-table-games__game-description {
  font-size: 0.95rem;
  color: var(--go9-text-secondary);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-games__card-button {
  background: var(--go9-button-gradient);
  color: var(--go9-text-main);
  border: none;
  padding: 10px 25px;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-casino-table-games__card-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.page-casino-table-games__advantage-item {
  background-color: var(--go9-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--go9-border);
}

.page-casino-table-games__advantage-title {
  font-size: 1.5rem;
  color: var(--go9-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino-table-games__advantage-description {
  font-size: 0.95rem;
  color: var(--go9-text-secondary);
  line-height: 1.6;
}

.page-casino-table-games__promotions-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
  background-color: var(--go9-deep-green);
}

.page-casino-table-games__promo-content {
  flex: 1;
  max-width: 600px;
}

.page-casino-table-games__promo-list {
  list-style: none;
  padding-left: 0;
  margin-top: 25px;
  margin-bottom: 30px;
}

.page-casino-table-games__promo-list li {
  color: var(--go9-text-main);
  font-size: 1.05rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-casino-table-games__promo-list li::before {
  content: '✓';
  color: var(--go9-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

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

.page-casino-table-games__step-card {
  background-color: var(--go9-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--go9-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-games__step-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino-table-games__step-title {
  font-size: 1.4rem;
  color: var(--go9-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino-table-games__step-description {
  font-size: 0.95rem;
  color: var(--go9-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-casino-table-games__tip-item {
  background-color: var(--go9-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid var(--go9-border);
}

.page-casino-table-games__tip-title {
  font-size: 1.5rem;
  color: var(--go9-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino-table-games__tip-description {
  font-size: 0.95rem;
  color: var(--go9-text-secondary);
  line-height: 1.6;
}

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

.page-casino-table-games__faq-item {
  background-color: var(--go9-card-bg);
  border: 1px solid var(--go9-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--go9-text-main);
  cursor: pointer;
  background-color: var(--go9-deep-green);
  border-bottom: 1px solid var(--go9-border);
}

.page-casino-table-games__faq-item[open] .page-casino-table-games__faq-question {
  border-bottom: 1px solid var(--go9-border);
}

.page-casino-table-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino-table-games__faq-toggle {
  font-size: 1.5rem;
  color: var(--go9-secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-casino-table-games__faq-item[open] .page-casino-table-games__faq-toggle {
  transform: rotate(45deg);
}

.page-casino-table-games__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--go9-text-secondary);
  line-height: 1.7;
  background-color: var(--go9-card-bg);
}

.page-casino-table-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--go9-deep-green);
}

/* Image and Video Responsive Styles */
.page-casino-table-games img,
.page-casino-table-games video,
.page-casino-table-games__video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-casino-table-games__video-section,
.page-casino-table-games__video-container,
.page-casino-table-games__video-wrapper,
.page-casino-table-games__section,
.page-casino-table-games__card,
.page-casino-table-games__container,
.page-casino-table-games__game-grid,
.page-casino-table-games__advantages-grid,
.page-casino-table-games__steps-grid,
.page-casino-table-games__tips-grid,
.page-casino-table-games__promo-content,
.page-casino-table-games__promo-image-wrapper,
.page-casino-table-games__hero-cta-buttons,
.page-casino-table-games__button-group,
.page-casino-table-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-casino-table-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino-table-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-casino-table-games__hero-title {
    font-size: 2rem; /* Adjusted for mobile */
  }

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

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

  .page-casino-table-games__btn-primary,
  .page-casino-table-games__btn-secondary,
  .page-casino-table-games__card-button,
  .page-casino-table-games a[class*="button"],
  .page-casino-table-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1rem !important;
  }

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

  .page-casino-table-games__section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .page-casino-table-games__introduction-section,
  .page-casino-table-games__advantages-section,
  .page-casino-table-games__how-to-start-section,
  .page-casino-table-games__faq-section,
  .page-casino-table-games__dark-section,
  .page-casino-table-games__promotions-section,
  .page-casino-table-games__cta-section {
    padding: 50px 0;
  }

  .page-casino-table-games__container {
    padding: 0 15px !important;
  }

  .page-casino-table-games__game-image,
  .page-casino-table-games__promo-image,
  .page-casino-table-games__step-image,
  .page-casino-table-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino-table-games__video,
  .page-casino-table-games video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino-table-games__video-section,
  .page-casino-table-games__video-container,
  .page-casino-table-games__video-wrapper,
  .page-casino-table-games__section,
  .page-casino-table-games__card,
  .page-casino-table-games__container,
  .page-casino-table-games__game-grid,
  .page-casino-table-games__advantages-grid,
  .page-casino-table-games__steps-grid,
  .page-casino-table-games__tips-grid,
  .page-casino-table-games__promo-content,
  .page-casino-table-games__promo-image-wrapper,
  .page-casino-table-games__hero-cta-buttons,
  .page-casino-table-games__button-group,
  .page-casino-table-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-casino-table-games__promotions-section {
    flex-direction: column;
  }

  .page-casino-table-games__promo-content {
    order: 2;
    text-align: center;
  }

  .page-casino-table-games__promo-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .page-casino-table-games__promo-list {
    text-align: left;
  }

  .page-casino-table-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-casino-table-games__faq-answer {
    font-size: 0.9rem;
    padding: 15px 20px;
  }
}