.page-live-baccarat-deep-dive {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-live-baccarat-deep-dive__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-live-baccarat-deep-dive__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Fallback for hero section background */
  color: #FFFFFF;
  padding-bottom: 60px; /* Add padding at the bottom of the hero section */
}

.page-live-baccarat-deep-dive__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  opacity: 0.6; /* Slightly dim the background image for text readability */
}

.page-live-baccarat-deep-dive__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px; /* Adjust padding for hero content */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-live-baccarat-deep-dive__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-live-baccarat-deep-dive__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-live-baccarat-deep-dive__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px;
}

.page-live-baccarat-deep-dive__hero-button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-live-baccarat-deep-dive__hero-button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-live-baccarat-deep-dive__hero-button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-live-baccarat-deep-dive__hero-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-live-baccarat-deep-dive__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-live-baccarat-deep-dive__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-live-baccarat-deep-dive__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-live-baccarat-deep-dive__introduction-section,
.page-live-baccarat-deep-dive__basics-section,
.page-live-baccarat-deep-dive__strategies-section,
.page-live-baccarat-deep-dive__tips-section,
.page-live-baccarat-deep-dive__security-section,
.page-live-baccarat-deep-dive__conclusion-section,
.page-live-baccarat-deep-dive__related-content-section {
  padding: 60px 0;
}

.page-live-baccarat-deep-dive__basics-section,
.page-live-baccarat-deep-dive__tips-section,
.page-live-baccarat-deep-dive__security-section,
.page-live-baccarat-deep-dive__related-content-section {
  background-color: #f8f8f8;
}

.page-live-baccarat-deep-dive__content-grid,
.page-live-baccarat-deep-dive__tips-grid,
.page-live-baccarat-deep-dive__security-grid,
.page-live-baccarat-deep-dive__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-live-baccarat-deep-dive__card,
.page-live-baccarat-deep-dive__tip-card,
.page-live-baccarat-deep-dive__feature-card,
.page-live-baccarat-deep-dive__related-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live-baccarat-deep-dive__card:hover,
.page-live-baccarat-deep-dive__tip-card:hover,
.page-live-baccarat-deep-dive__feature-card:hover,
.page-live-baccarat-deep-dive__related-card:hover {
  transform: translateY(-10px);
}

.page-live-baccarat-deep-dive__card-image,
.page-live-baccarat-deep-dive__tip-image,
.page-live-baccarat-deep-dive__feature-icon,
.page-live-baccarat-deep-dive__related-image {
  width: 100%; /* Ensure images take full width of their container */
  max-width: 400px; /* Max width to prevent overly large images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-live-baccarat-deep-dive__feature-icon {
  max-width: 200px; /* Adjust max-width for smaller icons */
  height: 150px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure the full icon is visible */
}

.page-live-baccarat-deep-dive__card-title,
.page-live-baccarat-deep-dive__tip-title,
.page-live-baccarat-deep-dive__feature-title,
.page-live-baccarat-deep-dive__related-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-live-baccarat-deep-dive__related-title a {
  color: #000000;
  text-decoration: none;
}

.page-live-baccarat-deep-dive__related-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-live-baccarat-deep-dive__card-description,
.page-live-baccarat-deep-dive__tip-description,
.page-live-baccarat-deep-dive__feature-description,
.page-live-baccarat-deep-dive__related-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-live-baccarat-deep-dive__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-live-baccarat-deep-dive__strategy-item {
  background-color: #FFFFFF;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-live-baccarat-deep-dive__strategy-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-live-baccarat-deep-dive__strategy-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-live-baccarat-deep-dive__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 40px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.page-live-baccarat-deep-dive__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-live-baccarat-deep-dive__cta-button--small {
  font-size: 0.9em;
  padding: 12px 25px;
  margin-top: 20px;
}

.page-live-baccarat-deep-dive__action-buttons {
  text-align: center;
  margin-top: 40px;
}

.page-live-baccarat-deep-dive__action-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px;
}

.page-live-baccarat-deep-dive__action-button--primary {
  background-color: #FCBC45;
  color: #000000;
}

.page-live-baccarat-deep-dive__action-button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-live-baccarat-deep-dive__action-button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-live-baccarat-deep-dive__action-button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-live-baccarat-deep-dive__hero-title {
    font-size: 2.5em;
  }

  .page-live-baccarat-deep-dive__hero-description {
    font-size: 1em;
  }

  .page-live-baccarat-deep-dive__hero-container {
    padding: 80px 20px;
    min-height: 400px;
  }

  .page-live-baccarat-deep-dive__section-title {
    font-size: 2em;
  }

  .page-live-baccarat-deep-dive__content-grid,
  .page-live-baccarat-deep-dive__tips-grid,
  .page-live-baccarat-deep-dive__security-grid,
  .page-live-baccarat-deep-dive__related-grid {
    grid-template-columns: 1fr;
  }

  .page-live-baccarat-deep-dive__card-image,
  .page-live-baccarat-deep-dive__tip-image,
  .page-live-baccarat-deep-dive__feature-icon,
  .page-live-baccarat-deep-dive__related-image {
    max-width: 100%;
    height: auto;
    max-height: 250px; /* Constrain height on mobile for better flow */
    object-fit: cover;
  }

  .page-live-baccarat-deep-dive__feature-icon {
    max-width: 150px;
    height: 100px;
  }

  .page-live-baccarat-deep-dive__hero-button,
  .page-live-baccarat-deep-dive__cta-button,
  .page-live-baccarat-deep-dive__action-button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* Mobile content area images must not cause overflow */
  .page-live-baccarat-deep-dive img {
    max-width: 100%;
    height: auto;
  }

  .page-live-baccarat-deep-dive__hero-section {
    padding-bottom: 40px;
  }
}

/* Ensure all content area images are at least 200px wide */
.page-live-baccarat-deep-dive__card-image,
.page-live-baccarat-deep-dive__tip-image,
.page-live-baccarat-deep-dive__feature-icon,
.page-live-baccarat-deep-dive__related-image {
  min-width: 200px;
  min-height: 150px; /* Allow for different aspect ratios, but ensure minimum height */
}

@media (max-width: 768px) {
  .page-live-baccarat-deep-dive__card-image,
  .page-live-baccarat-deep-dive__tip-image,
  .page-live-baccarat-deep-dive__feature-icon,
  .page-live-baccarat-deep-dive__related-image {
    width: 100%;
    height: auto;
    max-width: 100%; /* Important for mobile responsiveness */
    min-width: 200px; /* Still maintain minimum size */
    min-height: 150px;
  }

  .page-live-baccarat-deep-dive {
    overflow-x: hidden;
  }
}