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

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

.page-casino-table-games {
  background-color: var(--background-color);
  color: var(--text-main-color);
  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;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-casino-table-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-casino-table-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 2;
  color: var(--text-main-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino-table-games__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  margin-bottom: 15px;
  color: var(--gold-color);
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow-color);
}

.page-casino-table-games__hero-description {
  font-size: clamp(1em, 2vw, 1.3em);
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

/* General Section Styling */
.page-casino-table-games__introduction-section,
.page-casino-table-games__games-overview-section,
.page-casino-table-games__live-experience-section,
.page-casino-table-games__registration-guide-section,
.page-casino-table-games__strategy-section,
.page-casino-table-games__support-security-section,
.page-casino-table-games__conclusion-section,
.page-casino-table-games__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-casino-table-games__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 5px var(--glow-color);
}

.page-casino-table-games__sub-title {
  font-size: clamp(1.4em, 3vw, 2em);
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

.page-casino-table-games__text-block {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-casino-table-games__btn-primary:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--glow-color), 0.4);
}

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

.page-casino-table-games__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

.page-casino-table-games__btn-play-now {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-casino-table-games__btn-play-now:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

/* Game Cards Grid */
.page-casino-table-games__game-cards-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(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-casino-table-games__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
}

.page-casino-table-games__game-card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent height for titles */
}

.page-casino-table-games__game-card-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-casino-table-games__game-card-title a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

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

/* Image placements */
.page-casino-table-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.page-casino-table-games__image-right {
  float: right;
  width: 45%;
  height: auto;
  margin-left: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.page-casino-table-games__image-left {
  float: left;
  width: 45%;
  height: auto;
  margin-right: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

/* Clear floats */
.page-casino-table-games__registration-guide-section::after,
.page-casino-table-games__strategy-section::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ Section */
.page-casino-table-games__faq-list {
  margin-top: 30px;
}

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

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

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

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

.page-casino-table-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold-color);
}

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

.page-casino-table-games__faq-answer {
  padding: 15px 20px;
  font-size: 1em;
  color: var(--text-secondary-color);
  background-color: var(--card-bg);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-content {
    width: 95%;
  }

  .page-casino-table-games__game-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-casino-table-games__image-right,
  .page-casino-table-games__image-left {
    width: 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
  }
}

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

  .page-casino-table-games__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

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

  .page-casino-table-games__hero-description {
    font-size: clamp(0.9em, 3vw, 1.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__btn-play-now {
    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__hero-cta-buttons,
  .page-casino-table-games__cta-buttons-bottom,
  .page-casino-table-games__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 15px;
  }

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

  .page-casino-table-games__introduction-section,
  .page-casino-table-games__games-overview-section,
  .page-casino-table-games__live-experience-section,
  .page-casino-table-games__registration-guide-section,
  .page-casino-table-games__strategy-section,
  .page-casino-table-games__support-security-section,
  .page-casino-table-games__conclusion-section,
  .page-casino-table-games__faq-section {
    padding: 40px 0;
  }

  .page-casino-table-games__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-casino-table-games__sub-title {
    font-size: clamp(1.2em, 5vw, 1.6em);
  }

  .page-casino-table-games__text-block {
    font-size: 1em;
  }

  .page-casino-table-games__game-card-image,
  .page-casino-table-games__image-full-width,
  .page-casino-table-games__image-right,
  .page-casino-table-games__image-left {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none;
    margin: 0 auto 20px auto !important;
  }

  .page-casino-table-games__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-casino-table-games__faq-question {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-content {
    padding: 15px;
  }

  .page-casino-table-games__hero-cta-buttons {
    gap: 10px;
  }

  .page-casino-table-games__btn-primary,
  .page-casino-table-games__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}