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

:root {
  --phdream-primary: #F2C14E;
  --phdream-secondary: #FFD36B;
  --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phdream-card-bg: #111111;
  --phdream-bg: #0A0A0A;
  --phdream-text-main: #FFF6D6;
  --phdream-border: #3A2A12;
  --phdream-glow: #FFD36B;
}

.page-casino-table-games {
  color: var(--phdream-text-main); /* Ensures light text on dark body background */
  background-color: var(--phdream-bg); /* Explicitly set for clarity, though shared.css should handle body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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 as body handles --header-offset */
  overflow: hidden;
  color: #ffffff;
}

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

.page-casino-table-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  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(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--phdream-secondary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino-table-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino-table-games__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino-table-games__section-title {
  font-size: 2.5em;
  color: var(--phdream-primary);
  margin-bottom: 40px;
  font-weight: 700;
}

.page-casino-table-games__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--phdream-text-main);
  text-align: left;
  line-height: 1.8;
}

.page-casino-table-games__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-casino-table-games__game-card,
.page-casino-table-games__feature-item {
  background: var(--phdream-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-casino-table-games__game-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino-table-games__card-title {
  font-size: 1.8em;
  color: var(--phdream-secondary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino-table-games__card-description {
  font-size: 1em;
  color: var(--phdream-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino-table-games__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
  color: var(--phdream-text-main);
}

.page-casino-table-games__card-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.page-casino-table-games__card-list li::before {
  content: '•';
  color: var(--phdream-primary);
  position: absolute;
  left: 0;
}

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

.page-casino-table-games__step-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-casino-table-games__step-card .page-casino-table-games__card-title {
  color: #333333;
}

.page-casino-table-games__step-card .page-casino-table-games__card-description {
  color: #555555;
  flex-grow: 1;
}

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

.page-casino-table-games__strategy-list li {
  background: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--phdream-text-main);
  position: relative;
  padding-left: 50px;
}

.page-casino-table-games__strategy-list li strong {
  color: var(--phdream-primary);
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
}

.page-casino-table-games__strategy-list li::before {
  content: '✔';
  color: var(--phdream-primary);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
}

.page-casino-table-games__faq {
  padding-bottom: 60px;
}

.page-casino-table-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino-table-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: #1a1a1a;
  color: var(--phdream-text-main);
  font-size: 1.2em;
  font-weight: 600;
}

.page-casino-table-games__faq-question:hover {
  background: #2a2a2a;
}

.page-casino-table-games__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--phdream-text-main);
}

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

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-toggle {
  transform: rotate(45deg);
  content: '−';
}

.page-casino-table-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  text-align: left;
}

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 20px;
  padding-top: 0;
}

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

.page-casino-table-games__faq-btn {
  display: inline-block;
  background: var(--phdream-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.page-casino-table-games__faq-btn:hover {
  opacity: 0.9;
}

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

.page-casino-table-games__btn-primary,
.page-casino-table-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-casino-table-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

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

.page-casino-table-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.2);
  background: rgba(242, 193, 78, 0.1);
}

/* Mobile Responsiveness */
@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;
  }

  .page-casino-table-games__hero-title {
    font-size: 2em;
  }

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

  .page-casino-table-games__section {
    padding: 40px 15px;
  }

  .page-casino-table-games__section-title {
    font-size: 2em;
  }

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

  /* Images responsiveness */
  .page-casino-table-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino-table-games__hero-image-wrapper,
  .page-casino-table-games__container,
  .page-casino-table-games__game-grid,
  .page-casino-table-games__steps-grid,
  .page-casino-table-games__features-grid,
  .page-casino-table-games__faq-list,
  .page-casino-table-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino-table-games__game-card,
  .page-casino-table-games__feature-item,
  .page-casino-table-games__step-card {
    padding: 20px;
  }

  /* Buttons responsiveness */
  .page-casino-table-games__btn-primary,
  .page-casino-table-games__btn-secondary {
    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 {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

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

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

  .page-casino-table-games__faq-item.active .page-casino-table-games__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}