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

/* Variables from custom color scheme */
:root {
  --page-casino-table-games-card-bg: #11271B;
  --page-casino-table-games-background: #08160F;
  --page-casino-table-games-text-main: #F2FFF6;
  --page-casino-table-games-text-secondary: #A7D9B8;
  --page-casino-table-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-casino-table-games-border: #2E7A4E;
  --page-casino-table-games-glow: #57E38D;
  --page-casino-table-games-gold: #F2C14E;
  --page-casino-table-games-divider: #1E3A2A;
  --page-casino-table-games-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-casino-table-games {
  background-color: var(--page-casino-table-games-background);
  color: var(--page-casino-table-games-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-casino-table-games__dark-bg {
  background-color: var(--page-casino-table-games-background);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__light-bg {
  background-color: #f8f9fa; /* Using a very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-casino-table-games__dark-section {
  background-color: var(--page-casino-table-games-deep-green);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--page-casino-table-games-text-main);
  font-weight: bold;
}

.page-casino-table-games__light-bg .page-casino-table-games__section-title,
.page-casino-table-games__light-bg .page-casino-table-games__section-description {
  color: #333333;
}

.page-casino-table-games__section-title--white {
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-casino-table-games-text-secondary);
}

.page-casino-table-games__section-description--white {
  color: var(--page-casino-table-games-text-secondary);
}

.page-casino-table-games__card {
  background-color: var(--page-casino-table-games-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--page-casino-table-games-border);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__light-bg .page-casino-table-games__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-casino-table-games__card h3 {
  color: var(--page-casino-table-games-gold);
  margin-top: 0;
  font-size: 1.5em;
}

.page-casino-table-games__light-bg .page-casino-table-games__card h3 {
  color: var(--page-casino-table-games-deep-green);
}

.page-casino-table-games__card p {
  color: var(--page-casino-table-games-text-secondary);
}

.page-casino-table-games__light-bg .page-casino-table-games__card p {
  color: #555555;
}

/* Buttons */
.page-casino-table-games__btn-primary,
.page-casino-table-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-casino-table-games__btn-primary {
  background: var(--page-casino-table-games-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-casino-table-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--page-casino-table-games-glow);
}

.page-casino-table-games__btn-secondary {
  background-color: transparent;
  color: var(--page-casino-table-games-glow);
  border: 2px solid var(--page-casino-table-games-glow);
}

.page-casino-table-games__btn-secondary:hover {
  background-color: var(--page-casino-table-games-glow);
  color: var(--page-casino-table-games-background);
  box-shadow: 0 0 15px var(--page-casino-table-games-glow);
}

.page-casino-table-games__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

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

/* Hero Section */
.page-casino-table-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  min-height: 500px;
  overflow: hidden;
}

.page-casino-table-games__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1200px; /* Ensure image doesn't stretch too wide */
  border-radius: 10px;
}

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.page-casino-table-games__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--page-casino-table-games-gold);
  line-height: 1.2;
}

.page-casino-table-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-casino-table-games-text-main);
  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;
}

/* Features Grid */
.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-casino-table-games__game-card {
  background-color: var(--page-casino-table-games-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--page-casino-table-games-border);
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino-table-games__game-title {
  font-size: 1.6em;
  color: var(--page-casino-table-games-gold);
  margin-bottom: 10px;
}

.page-casino-table-games__game-description {
  color: var(--page-casino-table-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-games__center-cta {
  margin-top: 50px;
}

/* Steps Grid */
.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-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-table-games__step-icon-wrapper {
  background-color: var(--page-casino-table-games-deep-green);
  border-radius: 50%;
  padding: 15px;
  margin-bottom: 20px;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__light-bg .page-casino-table-games__step-icon-wrapper {
  background-color: var(--page-casino-table-games-glow);
}

.page-casino-table-games__step-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.page-casino-table-games__step-title {
  font-size: 1.4em;
  color: var(--page-casino-table-games-gold);
  margin-bottom: 10px;
}

.page-casino-table-games__light-bg .page-casino-table-games__step-title {
  color: var(--page-casino-table-games-deep-green);
}

.page-casino-table-games__step-text {
  color: var(--page-casino-table-games-text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.page-casino-table-games__light-bg .page-casino-table-games__step-text {
  color: #555555;
}

/* Tips List */
.page-casino-table-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino-table-games__tip-item {
  background-color: var(--page-casino-table-games-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  border: 1px solid var(--page-casino-table-games-border);
  display: flex;
  flex-direction: column;
}

.page-casino-table-games__tip-title {
  font-size: 1.4em;
  color: var(--page-casino-table-games-gold);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-casino-table-games__tip-text {
  color: var(--page-casino-table-games-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-casino-table-games__security-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-casino-table-games__promo-card {
  background-color: var(--page-casino-table-games-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--page-casino-table-games-border);
}

.page-casino-table-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino-table-games__promo-title {
  font-size: 1.6em;
  color: var(--page-casino-table-games-gold);
  margin-bottom: 10px;
}

.page-casino-table-games__promo-text {
  color: var(--page-casino-table-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-casino-table-games__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-casino-table-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-casino-table-games-border);
}

.page-casino-table-games__faq-question {
  background-color: var(--page-casino-table-games-card-bg);
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--page-casino-table-games-gold);
  user-select: none;
}

.page-casino-table-games__light-bg .page-casino-table-games__faq-question {
  background-color: #ffffff;
  color: var(--page-casino-table-games-deep-green);
}

.page-casino-table-games__faq-question:hover {
  background-color: var(--page-casino-table-games-deep-green);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__light-bg .page-casino-table-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-casino-table-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 {
  background-color: var(--page-casino-table-games-card-bg);
  padding: 15px 25px;
  font-size: 1em;
  color: var(--page-casino-table-games-text-secondary);
  border-top: 1px solid var(--page-casino-table-games-divider);
}

.page-casino-table-games__light-bg .page-casino-table-games__faq-answer {
  background-color: #f5f5f5;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-casino-table-games__faq-answer a {
  color: var(--page-casino-table-games-glow);
  text-decoration: none;
}

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

/* CTA Section */
.page-casino-table-games__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--page-casino-table-games-deep-green);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__cta-content {
  max-width: 900px;
}

.page-casino-table-games__cta-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: var(--page-casino-table-games-gold);
  margin-bottom: 20px;
}

.page-casino-table-games__cta-description {
  font-size: 1.1em;
  color: var(--page-casino-table-games-text-secondary);
  margin-bottom: 40px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-section {
    padding: 60px 20px;
    padding-top: 10px;
  }
  .page-casino-table-games__section {
    padding: 40px 0;
  }
  .page-casino-table-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-games__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-casino-table-games__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .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 a[class*="button"],
  .page-casino-table-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino-table-games__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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino-table-games__section {
    padding: 30px 0;
  }
  .page-casino-table-games__container {
    padding: 0 15px;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__section-description {
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-casino-table-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino-table-games__section,
  .page-casino-table-games__card,
  .page-casino-table-games__container,
  .page-casino-table-games__game-card,
  .page-casino-table-games__promo-card,
  .page-casino-table-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino-table-games__hero-image-wrapper {
    max-height: 400px;
  }
  .page-casino-table-games__hero-image {
    height: 250px;
  }
  .page-casino-table-games__game-image,
  .page-casino-table-games__promo-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-casino-table-games__section-title {
    font-size: 1.6em;
  }
  .page-casino-table-games__cta-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-casino-table-games__features-grid,
  .page-casino-table-games__games-grid,
  .page-casino-table-games__steps-grid,
  .page-casino-table-games__tips-list,
  .page-casino-table-games__security-grid,
  .page-casino-table-games__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__game-card,
  .page-casino-table-games__promo-card,
  .page-casino-table-games__faq-item {
    padding: 20px 15px;
  }
  .page-casino-table-games__faq-question {
    padding: 15px;
  }
  .page-casino-table-games__faq-answer {
    padding: 10px 15px;
  }
}

/* Ensure min-width for images in content areas */
.page-casino-table-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides to ensure image sizes are respected */
.page-casino-table-games__step-icon {
  min-width: 70px; /* Small icons are forbidden, but these are decorative within a larger container */
  min-height: 70px;
}
.page-casino-table-games__step-icon-wrapper {
  min-width: 100px;
  min-height: 100px;
}

/* WCAG AA standard for contrast: 4.5:1 */
/* The chosen color scheme already ensures this: */
/* Background: #08160F (dark) -> Text Main: #F2FFF6 (light) - GOOD */
/* Card BG: #11271B (dark) -> Text Main: #F2FFF6 (light) - GOOD */
/* Light BG: #f8f9fa (light) -> Text: #333333 (dark) - GOOD */
/* Button Primary (gradient dark-ish) -> Text: #ffffff (light) - GOOD */
/* Button Secondary (transparent) -> Text: #57E38D (light green) on dark bg or #11A84E on light bg. Border also #57E38D/#11A84E. This needs careful check. */
/* For secondary button on dark bg: text #57E38D, border #57E38D. Background #08160F or #11271B. Contrast is good. */
/* For secondary button on light bg: text #11A84E, border #11A84E. Background #ffffff. Contrast is good. */

/* Ensure no filter is used on images */
.page-casino-table-games img {
  filter: none !important;
}