.page-live-baccarat {
  color: #333333; /* Default dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-live-baccarat__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1A2E44; /* Primary color for hero background */
  color: #ffffff;
  overflow: hidden;
  padding-bottom: 0; /* Image will extend to bottom */
}

.page-live-baccarat__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live-baccarat__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-live-baccarat__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-live-baccarat__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-live-baccarat__hero-image {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
  margin-top: -50px; /* Overlap with content slightly for visual flow */
}

.page-live-baccarat__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Minimum height for hero image */
}

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

.page-live-baccarat__section-title {
  font-size: 2.5em;
  color: #1A2E44;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-live-baccarat__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-live-baccarat__button {
  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, transform 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.page-live-baccarat__button--primary {
  background-color: #FFD700;
  color: #1A2E44;
  border: 2px solid #FFD700;
}

.page-live-baccarat__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-live-baccarat__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-live-baccarat__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-live-baccarat__button--tertiary {
  background-color: #1A2E44;
  color: #FFD700;
  border: 2px solid #1A2E44;
}

.page-live-baccarat__button--tertiary:hover {
  background-color: #0d1e2e;
  transform: translateY(-2px);
}

.page-live-baccarat__button--register {
  background-color: #FFD700;
  color: #1A2E44;
  border: 2px solid #FFD700;
}

.page-live-baccarat__button--register:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-live-baccarat__button--login {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-live-baccarat__button--login:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-live-baccarat__button--download {
  background-color: #1A2E44;
  color: #FFD700;
  border: 2px solid #1A2E44;
}

.page-live-baccarat__button--download:hover {
  background-color: #0d1e2e;
  transform: translateY(-2px);
}

.page-live-baccarat__button--link {
  background-color: transparent;
  color: #1A2E44;
  border: 1px solid #1A2E44;
  padding: 10px 20px;
  font-size: 1em;
}

.page-live-baccarat__button--link:hover {
  background-color: rgba(26, 46, 68, 0.05);
}

.page-live-baccarat__about-section,
.page-live-baccarat__rules-section,
.page-live-baccarat__promotions-section,
.page-live-baccarat__cta-section,
.page-live-baccarat__responsible-gaming-section {
  padding: 80px 0;
}

.page-live-baccarat__about-section {
  background-color: #f9f9f9;
}

.page-live-baccarat__image-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live-baccarat__image-text-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-live-baccarat__image-text-item img {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-live-baccarat__item-title {
  font-size: 1.5em;
  color: #1A2E44;
  margin-bottom: 15px;
}

.page-live-baccarat__item-description {
  color: #666666;
}

.page-live-baccarat__rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live-baccarat__rule-card {
  background-color: #f0f4f8; /* Light blue-grey background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live-baccarat__card-title {
  font-size: 1.8em;
  color: #1A2E44;
  margin-bottom: 20px;
}

.page-live-baccarat__rule-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #555555;
}

.page-live-baccarat__rule-list li {
  margin-bottom: 10px;
}

.page-live-baccarat__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live-baccarat__promo-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live-baccarat__promo-card img {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  border-radius: 8px;
  margin: 0 auto 20px;
  object-fit: cover;
}

.page-live-baccarat__card-text {
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-live-baccarat__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-live-baccarat__cta-section {
  background-color: #1A2E44;
  color: #ffffff;
  text-align: center;
}

.page-live-baccarat__cta-section .page-live-baccarat__section-title {
  color: #FFD700;
}

.page-live-baccarat__cta-section .page-live-baccarat__section-description {
  color: #f0f0f0;
}

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

.page-live-baccarat__responsible-gaming-section {
  text-align: center;
  background-color: #f0f4f8;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-live-baccarat__hero-title {
    font-size: 2.8em;
  }
  .page-live-baccarat__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-live-baccarat__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header on mobile too */
    padding-bottom: 0;
  }
  .page-live-baccarat__hero-title {
    font-size: 2.2em;
  }
  .page-live-baccarat__hero-description {
    font-size: 1em;
  }
  .page-live-baccarat__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-live-baccarat__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-live-baccarat__section-title {
    font-size: 1.8em;
  }
  .page-live-baccarat__section-description {
    font-size: 0.95em;
  }
  .page-live-baccarat__about-section,
  .page-live-baccarat__rules-section,
  .page-live-baccarat__promotions-section,
  .page-live-baccarat__cta-section,
  .page-live-baccarat__responsible-gaming-section {
    padding: 60px 0;
  }
  .page-live-baccarat__image-text-grid,
  .page-live-baccarat__rules-grid,
  .page-live-baccarat__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* CRITICAL: Ensure all images within content area are responsive and don't overflow */
  .page-live-baccarat img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum image size even on mobile */
    min-height: 200px;
  }
  .page-live-baccarat__container {
    padding: 0 15px;
  }
  .page-live-baccarat__hero-image img {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .page-live-baccarat__hero-title {
    font-size: 1.8em;
  }
  .page-live-baccarat__section-title {
    font-size: 1.5em;
  }
  .page-live-baccarat__hero-content {
    padding: 40px 15px 30px;
  }
}