:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-light: #ffffff;
  --text-dark: #333333;
  --dark-bg-1: #0d0d00; /* Very dark, almost black */
  --dark-bg-2: #1a1a1a; /* Slightly lighter dark */
  --dark-bg-3: #2a2a2a; /* Even lighter dark for card containers */
}

/* Ensure main content is visible below fixed header */
.page-casino {
  padding-top: 0; /* HERO section handles its own spacing */
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-casino__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-casino__hero-image {
  width: 100%;
  margin: 0;
}

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* LOGO Carousel Section */
.page-casino__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: var(--dark-bg-2);
  color: var(--text-light);
}

.page-casino__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-casino__logo-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction for auto-scroll */
}

.page-casino__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-casino__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* Light background for logos */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Re-enable pointer events for the link inside */
}

.page-casino__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  pointer-events: auto; /* Re-enable pointer events for the link */
}

.page-casino__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Game Display Section */
.page-casino__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--dark-bg-1);
  color: var(--text-light);
}

.page-casino__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-casino__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-casino__featured-game-area {
  width: 100%;
}

.page-casino__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--secondary-color); /* Yellow text */
  text-align: left;
  text-transform: uppercase;
}

.page-casino__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-bg-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-casino__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-casino__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-casino__games-grid-area {
  width: 100%;
  background: var(--dark-bg-3);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.page-casino__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.page-casino__games-tab {
  background: none;
  border: none;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6); /* Lighter white for inactive */
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  text-decoration: none;
  position: relative;
  border-bottom: 2px solid transparent; /* For underline effect */
  text-transform: uppercase;
}

.page-casino__games-tab:hover {
  color: var(--text-light);
}

.page-casino__games-tab.active {
  color: var(--secondary-color); /* Yellow for active tab */
  border-bottom-color: var(--secondary-color); /* Underline effect */
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-casino__games-grid.active {
  display: grid;
}

.page-casino__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* White background for game cards */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-casino__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-casino__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px;
  color: var(--text-dark); /* Dark text for titles on white background */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* General Section Styles */
.page-casino__section {
  padding: 80px 20px;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-casino__section.page-casino__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-casino__section.page-casino__promotions-section .page-casino__heading,
.page-casino__section.page-casino__quick-links-section .page-casino__heading,
.page-casino__section.page-casino__faq-section .page-casino__heading {
  color: var(--secondary-color);
}

.page-casino__paragraph {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: rgba(255, 255, 255, 0.8);
}

.page-casino__dark-bg .page-casino__paragraph {
  color: rgba(255, 255, 255, 0.9);
}

.page-casino__subheading {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-casino__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-casino__link {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-casino__link:hover {
  color: var(--text-light);
  text-decoration: none;
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
}

.page-casino__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on yellow background */
  border: 2px solid var(--secondary-color);
}

.page-casino__btn-primary:hover {
  background: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
  color: var(--primary-color);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--secondary-color); /* Yellow text on dark background */
  border: 2px solid var(--secondary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on yellow background */
}

.page-casino__btn-text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-casino__btn-text-link:hover {
  color: var(--text-light);
}

/* Quick Links Section */
.page-casino__quick-links-section {
  background-color: var(--dark-bg-2);
}

.page-casino__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}