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

.page-live-dealer-games__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.page-live-dealer-games__hero-section {
  background-color: #0A192F; /* Main brand color for hero background */
  color: #ffffff;
  padding: 80px 20px 60px; /* Adjust padding as needed, but no additional top padding for header offset */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-live-dealer-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-live-dealer-games__hero-image {
  width: 100%;
  max-width: 1000px; /* Constrain image width within hero */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  display: block;
}

.page-live-dealer-games__hero-content {
  z-index: 1;
  position: relative;
  max-width: 800px;
}

.page-live-dealer-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-live-dealer-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-live-dealer-games__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-live-dealer-games__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-dealer-games__button--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

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

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

.page-live-dealer-games__button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-live-dealer-games__section-title {
  font-size: 2.5em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-live-dealer-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444444;
  text-align: justify;
}

.page-live-dealer-games__link {
  color: #0A192F;
  text-decoration: underline;
  font-weight: bold;
}

.page-live-dealer-games__link:hover {
  color: #FFD700;
}

/* Games List Section */
.page-live-dealer-games__games-list-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.page-live-dealer-games__game-category {
  margin-bottom: 60px;
}

.page-live-dealer-games__category-title {
  font-size: 2em;
  color: #0A192F;
  margin-bottom: 30px;
  text-align: center;
}

.page-live-dealer-games__game-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.page-live-dealer-games__game-card:nth-child(odd) {
  flex-direction: row-reverse; /* Alternate image and text direction */
}

.page-live-dealer-games__game-image {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-live-dealer-games__game-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Why phjoy68 Section */
.page-live-dealer-games__why-phjoy68-section {
  padding: 60px 0;
  background-color: #eeeeee;
}

.page-live-dealer-games__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-live-dealer-games__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live-dealer-games__feature-title {
  font-size: 1.5em;
  color: #0A192F;
  margin-bottom: 15px;
}

/* Getting Started Section */
.page-live-dealer-games__getting-started-section {
  padding: 60px 0;
  background-color: #f4f4f4;
}

.page-live-dealer-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-live-dealer-games__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-live-dealer-games__step-title {
  font-size: 1.4em;
  color: #0A192F;
  margin-bottom: 15px;
}

.page-live-dealer-games__cta-container {
  text-align: center;
  margin-top: 50px;
}

/* Responsible Gaming Section */
.page-live-dealer-games__responsible-gaming-section {
  padding: 60px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-live-dealer-games__responsible-gaming-section .page-live-dealer-games__section-title {
  color: #FFD700;
}

.page-live-dealer-games__responsible-gaming-section .page-live-dealer-games__section-title::after {
  background-color: #FFD700;
}

.page-live-dealer-games__responsible-gaming-section .page-live-dealer-games__paragraph {
  color: #f0f0f0;
}

.page-live-dealer-games__responsible-gaming-section .page-live-dealer-games__link {
  color: #FFD700;
}

.page-live-dealer-games__responsible-gaming-section .page-live-dealer-games__link:hover {
  color: #e6c200;
}

/* FAQ Section */
.page-live-dealer-games__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-live-dealer-games__accordion {
  max-width: 900px;
  margin: 0 auto;
}

.page-live-dealer-games__accordion-item {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-live-dealer-games__accordion-header {
  background-color: #0A192F;
  color: #ffffff;
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-live-dealer-games__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-live-dealer-games__accordion-header.active {
  background-color: #FFD700;
  color: #0A192F;
}

.page-live-dealer-games__accordion-header.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-live-dealer-games__accordion-content {
  padding: 0 25px;
  background-color: #fcfcfc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-live-dealer-games__accordion-content.open {
  max-height: 200px; /* Max height for content to allow smooth transition */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live-dealer-games__hero-title {
    font-size: 2.8em;
  }

  .page-live-dealer-games__hero-description {
    font-size: 1.2em;
  }

  .page-live-dealer-games__section-title {
    font-size: 2.2em;
  }

  .page-live-dealer-games__game-card {
    flex-direction: column;
    align-items: center;
  }

  .page-live-dealer-games__game-card:nth-child(odd) {
    flex-direction: column; /* Reset alternating direction for smaller screens */
  }

  .page-live-dealer-games__game-image {
    max-width: 80%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .page-live-dealer-games__hero-section {
    padding: 60px 15px 40px;
  }

  .page-live-dealer-games__hero-title {
    font-size: 2.2em;
  }

  .page-live-dealer-games__hero-description {
    font-size: 1em;
  }

  .page-live-dealer-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-live-dealer-games__button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-live-dealer-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-live-dealer-games__content-wrapper {
    padding: 30px 15px;
  }

  .page-live-dealer-games__paragraph {
    font-size: 0.95em;
  }

  .page-live-dealer-games__game-card {
    padding: 20px;
  }

  .page-live-dealer-games__game-image {
    max-width: 100%;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
  }

  .page-live-dealer-games__feature-list,
  .page-live-dealer-games__steps-list {
    grid-template-columns: 1fr;
  }

  .page-live-dealer-games__feature-item,
  .page-live-dealer-games__step-item {
    padding: 25px;
  }

  .page-live-dealer-games__accordion-header {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-live-dealer-games__accordion-content.open {
    padding: 10px 20px;
  }
  
  /* Mobile content image overflow prevention */
  .page-live-dealer-games img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-live-dealer-games__hero-title {
    font-size: 1.8em;
  }

  .page-live-dealer-games__section-title {
    font-size: 1.6em;
  }

  .page-live-dealer-games__category-title {
    font-size: 1.5em;
  }

  .page-live-dealer-games__feature-title,
  .page-live-dealer-games__step-title {
    font-size: 1.2em;
  }
}