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

.page-casino__hero-section {
  background-color: #4A148C; /* Royal Purple */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-casino__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__intro-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-casino__button--primary {
  background-color: #FFD700; /* Gold */
  color: #4A148C; /* Royal Purple */
  border: 2px solid #FFD700;
}

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

.page-casino__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #4A148C;
  transform: translateY(-2px);
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-casino__games-overview-section,
.page-casino__featured-games-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__guide-section,
.page-casino__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #4A148C; /* Royal Purple */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__game-card-title {
  font-size: 1.6em;
  color: #4A148C;
  margin-bottom: 10px;
}

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

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FFD700;
  color: #4A148C;
  border: 2px solid #FFD700;
}

.page-casino__button--small:hover {
  background-color: #e6c200;
  color: #4A148C;
}

.page-casino__game-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-casino__game-item {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-casino__game-item-image {
  width: 250px;
  height: 188px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-casino__game-item-details {
  padding: 25px;
  flex-grow: 1;
}

.page-casino__game-item-title {
  font-size: 1.8em;
  color: #4A148C;
  margin-bottom: 10px;
}

.page-casino__game-item-description {
  color: #666666;
  margin-bottom: 20px;
}

.page-casino__button--play {
  padding: 12px 25px;
  font-size: 1em;
  background-color: #FFD700;
  color: #4A148C;
  border: 2px solid #FFD700;
}

.page-casino__button--play:hover {
  background-color: #e6c200;
  color: #4A148C;
}

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

.page-casino__promo-card {
  background-color: #4A148C;
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 225px; /* Fixed height for promo images */
  object-fit: cover;
}

.page-casino__promo-card-title {
  font-size: 1.7em;
  color: #FFD700;
  padding: 20px 25px 10px;
}

.page-casino__promo-card-text {
  color: #e0e0e0;
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-casino__button--promo {
  display: block;
  width: calc(100% - 50px);
  margin: 0 25px 25px;
  padding: 12px 0;
  text-align: center;
  background-color: #FFD700;
  color: #4A148C;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-casino__button--promo:hover {
  background-color: #e6c200;
  color: #4A148C;
}

.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain; /* Ensure small icons are contained */
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #4A148C;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  color: #666666;
  margin-bottom: 15px;
}

.page-casino__feature-link {
  color: #4A148C;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__feature-link:hover {
  color: #FFD700;
}

.page-casino__guide-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-casino__guide-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: #f0f0f0;
  color: #4A148C;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #ddd;
}

.page-casino__guide-link:hover {
  background-color: #4A148C;
  color: #FFD700;
}

.page-casino__cta-section {
  background-color: #4A148C; /* Royal Purple */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.page-casino__cta-section .page-casino__section-title {
  color: #FFD700; /* Gold */
}

.page-casino__cta-section .page-casino__section-description {
  color: #e0e0e0;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

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

.page-casino__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 2.8em;
  }
  .page-casino__intro-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-item {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__game-item-image {
    width: 100%;
    height: 250px;
  }
  .page-casino__game-item-details {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino__main-title {
    font-size: 2.2em;
  }
  .page-casino__intro-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.95em;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 180px;
  }
  .page-casino__game-item-image {
    height: 200px;
  }
  .page-casino__game-card-title,
  .page-casino__promo-card-title {
    font-size: 1.4em;
  }
  .page-casino__game-card-text,
  .page-casino__promo-card-text {
    font-size: 0.9em;
  }
  .page-casino__feature-title {
    font-size: 1.3em;
  }
  .page-casino__feature-text {
    font-size: 0.9em;
  }
  /* Mobile content area images */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-casino__game-item-image {
    width: 100%;
    height: 150px;
  }
  .page-casino__game-item-details {
    padding: 15px;
  }
  .page-casino__game-item-title {
    font-size: 1.5em;
  }
  .page-casino__promo-card-image {
    height: 150px;
  }
  .page-casino__feature-icon {
    width: 50px;
    height: 50px;
  }
  .page-casino__guide-link {
    padding: 10px 18px;
    font-size: 0.9em;
  }
}