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

/* Custom Colors */
:root {
  --page-casino-table-games-primary-color: #11A84E;
  --page-casino-table-games-secondary-color: #22C768;
  --page-casino-table-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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-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-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-card-bg);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--page-casino-table-games-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-casino-table-games__section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--page-casino-table-games-text-secondary);
  margin-bottom: 40px;
}

.page-casino-table-games__text-block {
  font-size: 18px;
  color: var(--page-casino-table-games-text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino-table-games__text-block a {
  color: var(--page-casino-table-games-gold);
  text-decoration: underline;
}

/* Buttons */
.page-casino-table-games__btn-primary,
.page-casino-table-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-casino-table-games__btn-primary {
  background: var(--page-casino-table-games-button-gradient);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-casino-table-games__btn-secondary {
  background: transparent;
  color: var(--page-casino-table-games-gold);
  border-color: var(--page-casino-table-games-gold);
}

.page-casino-table-games__btn-secondary:hover {
  background: var(--page-casino-table-games-gold);
  color: var(--page-casino-table-games-background);
  transform: translateY(-2px);
}

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

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

/* Hero Section */
.page-casino-table-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  overflow: hidden;
  background-color: var(--page-casino-table-games-background);
}

.page-casino-table-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px 80px;
  max-width: 900px;
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--page-casino-table-games-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.page-casino-table-games__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-casino-table-games-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Games List Section */
.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: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-casino-table-games-border);
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino-table-games__game-title {
  font-size: 24px;
  color: var(--page-casino-table-games-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-casino-table-games__game-button {
  margin: 0 15px;
}

/* Strategy Section */
.page-casino-table-games__strategy-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-casino-table-games__strategy-content {
  flex: 1;
}

.page-casino-table-games__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  color: var(--page-casino-table-games-text-main);
}

.page-casino-table-games__strategy-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 18px;
}

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

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

.page-casino-table-games__strategy-image-wrapper {
  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.3);
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-casino-table-games__benefit-description {
  font-size: 16px;
  color: var(--page-casino-table-games-text-secondary);
}

.page-casino-table-games__benefit-description a {
  color: var(--page-casino-table-games-gold);
  text-decoration: underline;
}

/* How to Start Section */
.page-casino-table-games__how-to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-casino-table-games__how-to-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--page-casino-table-games-glow));
  min-width: 80px;
  min-height: 80px;
}

.page-casino-table-games__how-to-title {
  font-size: 20px;
  color: var(--page-casino-table-games-gold);
  margin-bottom: 10px;
}

.page-casino-table-games__how-to-description {
  font-size: 16px;
  color: var(--page-casino-table-games-text-secondary);
}

.page-casino-table-games__how-to-description a {
  color: var(--page-casino-table-games-gold);
  text-decoration: underline;
}

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

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

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

.page-casino-table-games__faq-question:hover {
  background-color: var(--page-casino-table-games-primary-color);
}

.page-casino-table-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-casino-table-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: var(--page-casino-table-games-text-secondary);
}

.page-casino-table-games__faq-answer p {
  margin-top: 15px;
  color: var(--page-casino-table-games-text-secondary);
}

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

/* Details/Summary specific styles for FAQ */
.page-casino-table-games__faq-item summary {
  list-style: none;
}

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

.page-casino-table-games__faq-item[open] .page-casino-table-games__faq-question {
  border-bottom-color: var(--page-casino-table-games-primary-color);
}

/* General Image Styles (min size 200x200) */
.page-casino-table-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-casino-table-games__strategy-grid {
    flex-direction: column;
  }
  .page-casino-table-games__strategy-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games__section {
    padding: 40px 0;
  }

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

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

  .page-casino-table-games__hero-title {
    font-size: 32px;
  }

  .page-casino-table-games__hero-description {
    font-size: 16px;
  }

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

  .page-casino-table-games__btn-primary,
  .page-casino-table-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-casino-table-games__games-grid,
  .page-casino-table-games__benefits-grid,
  .page-casino-table-games__how-to-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-table-games__strategy-list li {
    font-size: 16px;
  }

  /* Mobile specific image rules */
  .page-casino-table-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-casino-table-games__game-image,
  .page-casino-table-games__strategy-image,
  .page-casino-table-games__how-to-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* Containers for images/buttons to prevent overflow */
  .page-casino-table-games__section,
  .page-casino-table-games__card,
  .page-casino-table-games__container,
  .page-casino-table-games__cta-buttons,
  .page-casino-table-games__game-card,
  .page-casino-table-games__benefit-card,
  .page-casino-table-games__how-to-item,
  .page-casino-table-games__strategy-grid,
  .page-casino-table-games__strategy-content,
  .page-casino-table-games__strategy-image-wrapper,
  .page-casino-table-games__faq-list,
  .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-x: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-casino-table-games__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino-table-games__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino-table-games__how-to-icon {
    width: 80px !important;
    height: 80px !important;
    min-width: unset !important;
    min-height: unset !important;
  }
}