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

/* Custom Colors */
:root {
  --page-casino-table-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-casino-table-games-card-bg: #11271B;
  --page-casino-table-games-bg: #08160F;
  --page-casino-table-games-text-main: #F2FFF6;
  --page-casino-table-games-text-secondary: #A7D9B8;
  --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;
}

.page-casino-table-games {
  background-color: var(--page-casino-table-games-bg);
  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;
}

/* Hero Section */
.page-casino-table-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-casino-table-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino-table-games__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  background: var(--page-casino-table-games-card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-casino-table-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  color: var(--page-casino-table-games-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino-table-games__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--page-casino-table-games-text-secondary);
  margin-bottom: 30px;
}

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

/* Buttons */
.page-casino-table-games__btn-primary,
.page-casino-table-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-casino-table-games__btn-primary {
  background: var(--page-casino-table-games-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino-table-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-casino-table-games__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

.page-casino-table-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

/* Sections */
.page-casino-table-games__intro-section,
.page-casino-table-games__games-section,
.page-casino-table-games__strategy-section,
.page-casino-table-games__promotions-section,
.page-casino-table-games__faq-section,
.page-casino-table-games__cta-section {
  padding: 80px 0;
}

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

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

.page-casino-table-games__text-block {
  font-size: 1.1em;
  color: var(--page-casino-table-games-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-casino-table-games__feature-item {
  background: var(--page-casino-table-games-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino-table-games__feature-title {
  font-size: 1.5em;
  color: var(--page-casino-table-games-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino-table-games__feature-item p {
  color: var(--page-casino-table-games-text-secondary);
  font-size: 1em;
}

/* Game Categories */
.page-casino-table-games__game-category {
  margin-bottom: 60px;
  border-bottom: 1px solid var(--page-casino-table-games-divider);
  padding-bottom: 40px;
}

.page-casino-table-games__game-category:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.page-casino-table-games__game-title {
  font-size: clamp(1.6em, 2.5vw, 2.2em);
  color: var(--page-casino-table-games-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-casino-table-games__game-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--page-casino-table-games-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__game-card--reverse {
  flex-direction: row-reverse;
}

.page-casino-table-games__game-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino-table-games__game-info {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-casino-table-games__game-info p {
  color: var(--page-casino-table-games-text-secondary);
  font-size: 1.05em;
  line-height: 1.7;
  text-align: left;
}

/* Strategy Section */
.page-casino-table-games__strategy-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-casino-table-games__strategy-list li {
  background: var(--page-casino-table-games-card-bg);
  border-left: 5px solid var(--page-casino-table-games-glow);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--page-casino-table-games-text-main);
  font-size: 1.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__strategy-list li strong {
  color: var(--page-casino-table-games-gold);
}

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

.page-casino-table-games__promo-card {
  background: var(--page-casino-table-games-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

/* FAQ Section */
.page-casino-table-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-casino-table-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-casino-table-games-text-main);
  cursor: pointer;
  list-style: none;
}

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

.page-casino-table-games__faq-item summary {
  list-style: none;
}

.page-casino-table-games__faq-item summary::marker,
.page-casino-table-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino-table-games__faq-toggle {
  font-size: 1.5em;
  color: var(--page-casino-table-games-glow);
  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: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-casino-table-games-text-secondary);
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-casino-table-games__hero-section {
    padding: 40px 0;
    padding-top: 10px;
  }

  .page-casino-table-games__hero-content {
    padding: 30px 15px;
  }

  .page-casino-table-games__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-casino-table-games__hero-description {
    font-size: clamp(0.9em, 2vw, 1.1em);
  }

  .page-casino-table-games__game-card {
    flex-direction: column;
    text-align: center;
  }

  .page-casino-table-games__game-card--reverse {
    flex-direction: column;
  }

  .page-casino-table-games__game-image,
  .page-casino-table-games__game-info {
    max-width: 100%;
    flex: none;
  }

  .page-casino-table-games__game-info p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games__intro-section,
  .page-casino-table-games__games-section,
  .page-casino-table-games__strategy-section,
  .page-casino-table-games__promotions-section,
  .page-casino-table-games__faq-section,
  .page-casino-table-games__cta-section {
    padding: 50px 0;
  }

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

  .page-casino-table-games__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-casino-table-games__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-casino-table-games__features-grid,
  .page-casino-table-games__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-table-games__feature-item,
  .page-casino-table-games__promo-card {
    padding: 25px;
  }

  .page-casino-table-games__feature-item img {
    width: 200px;
    height: 200px;
  }

  .page-casino-table-games__btn-primary,
  .page-casino-table-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

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

  /* Image responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-casino-table-games__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  /* FAQ */
  .page-casino-table-games__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-casino-table-games__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
}