.page-game-strategies-baccarat {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
}

.page-game-strategies-baccarat__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-game-strategies-baccarat__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-game-strategies-baccarat__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-game-strategies-baccarat__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-game-strategies-baccarat__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-strategies-baccarat__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-game-strategies-baccarat__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-game-strategies-baccarat__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-strategies-baccarat__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color for titles on light backgrounds */
}

.page-game-strategies-baccarat__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-game-strategies-baccarat__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-game-strategies-baccarat__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-game-strategies-baccarat__paragraph {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-game-strategies-baccarat__highlight {
  font-weight: bold;
  color: #FFFF00; /* Yellow for highlight, ensure contrast on dark green */
}

.page-game-strategies-baccarat__text-link {
  color: #FFFF00; /* Yellow for links on dark backgrounds */
  text-decoration: underline;
}

.page-game-strategies-baccarat__text-link:hover {
  color: #ffffff;
}

.page-game-strategies-baccarat__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-strategies-baccarat__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-game-strategies-baccarat__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-game-strategies-baccarat__btn-primary,
.page-game-strategies-baccarat__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

/* Register/Login button colors */
.page-game-strategies-baccarat__btn-primary {
  background-color: #B00707; /* Darkened #C30808 for WCAG AA contrast with #FFFF00 (Contrast 4.54:1) */
  color: #FFFF00; /* Specified font color */
  border: 2px solid #B00707;
}

.page-game-strategies-baccarat__btn-primary:hover {
  background-color: #E00808; /* Slightly lighter red on hover */
  border-color: #E00808;
  color: #ffffff;
}

.page-game-strategies-baccarat__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-strategies-baccarat__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-game-strategies-baccarat__feature-grid,
.page-game-strategies-baccarat__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-game-strategies-baccarat__feature-card,
.page-game-strategies-baccarat__strategy-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-game-strategies-baccarat__feature-image,
.page-game-strategies-baccarat__strategy-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-strategies-baccarat__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow title on dark background */
}

.page-game-strategies-baccarat__card-description {
  font-size: 1em;
}

.page-game-strategies-baccarat__centered-text {
  text-align: center;
}

.page-game-strategies-baccarat__video-section {
  background-color: #1a1a2e;
  padding: 60px 20px;
  color: #ffffff;
  text-align: center;
}

.page-game-strategies-baccarat__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  max-width: 1000px; /* Limit video width */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-strategies-baccarat__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-game-strategies-baccarat__cta-buttons--video {
  margin-top: 20px;
}

.page-game-strategies-baccarat__faq-list {
  margin-top: 40px;
}

.page-game-strategies-baccarat__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-game-strategies-baccarat__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439; /* Brand primary color for FAQ question */
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-game-strategies-baccarat__faq-item[open] .page-game-strategies-baccarat__faq-question {
  border-bottom: 1px solid #e0e0e0; /* Separator when open */
}

.page-game-strategies-baccarat__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-game-strategies-baccarat__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-game-strategies-baccarat__faq-answer {
  padding: 15px 25px;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  font-size: 1em;
}

.page-game-strategies-baccarat__faq-item[open] .page-game-strategies-baccarat__faq-answer {
  border-top: none;
}

.page-game-strategies-baccarat__cta-section {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-strategies-baccarat__main-title {
    font-size: 2.8em;
  }
  .page-game-strategies-baccarat__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-strategies-baccarat__hero-section {
    height: 500px;
  }
  .page-game-strategies-baccarat__main-title {
    font-size: 2.2em;
  }
  .page-game-strategies-baccarat__hero-description,
  .page-game-strategies-baccarat__paragraph,
  .page-game-strategies-baccarat__list-item,
  .page-game-strategies-baccarat__card-description {
    font-size: 1em;
  }
  .page-game-strategies-baccarat__section-title {
    font-size: 1.8em;
  }
  .page-game-strategies-baccarat__feature-grid,
  .page-game-strategies-baccarat__strategy-grid {
    grid-template-columns: 1fr;
  }
  .page-game-strategies-baccarat__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-strategies-baccarat__btn-primary,
  .page-game-strategies-baccarat__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-game-strategies-baccarat__video-wrapper {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .page-game-strategies-baccarat img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-strategies-baccarat__section,
  .page-game-strategies-baccarat__card,
  .page-game-strategies-baccarat__container,
  .page-game-strategies-baccarat__feature-card,
  .page-game-strategies-baccarat__strategy-card,
  .page-game-strategies-baccarat__video-section,
  .page-game-strategies-baccarat__video-container,
  .page-game-strategies-baccarat__video-wrapper,
  .page-game-strategies-baccarat__cta-buttons,
  .page-game-strategies-baccarat__button-group,
  .page-game-strategies-baccarat__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-game-strategies-baccarat__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-game-strategies-baccarat__faq-question,
  .page-game-strategies-baccarat__faq-answer {
    padding: 15px 20px;
  }
}