:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #1a1a2e; /* From shared.css body background */
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #444;
}

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

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-casino__section-title--light {
  color: var(--text-color-dark-bg);
}

.page-casino__section-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-casino__section-description--light {
  color: var(--text-color-dark-bg);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero */
  background: url('[GALLERY:hero_main:1920x1080:qq88,casino,main_banner,luxury_gaming]') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

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

.page-casino__main-title {
  font-size: 58px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
  font-size: 22px;
  color: var(--text-color-dark-bg);
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #000000; /* Contrast for gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.page-casino__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Game Categories Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #2a2a4a; /* Slightly lighter dark background for contrast */
}

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

.page-casino__game-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.page-casino__game-card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__game-card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-casino__game-card-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.page-casino__game-card-button:hover {
  background: #a30000;
  transform: translateY(-2px);
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-casino__promo-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.page-casino__promo-card-title {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__promo-card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-casino__promo-card-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #000000; /* Contrast for gold button */
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.page-casino__promo-card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-casino__view-all-promos {
  text-align: center;
}

.page-casino__cta-button--outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__cta-button--outline:hover {
  background: var(--primary-color);
  color: #000000;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #2a2a4a;
}

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

.page-casino__feature-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
  width: 200px; /* Enforce minimum display size */
  height: 200px; /* Enforce minimum display size */
  object-fit: contain;
  margin: 0 auto 20px; /* Center and add margin */
  display: block; /* Make it a block element for centering */
}

.page-casino__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* How to Play Section */
.page-casino__how-to-play-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-casino__step-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__step-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #000000; /* Contrast for gold number */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__step-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.page-casino__step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

.page-casino__step-button:hover {
  background: #a30000;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-bg-dark); /* Dark card background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for question header */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark-bg);
}

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-casino__faq-toggle {
  font-size: 28px; /* Increased size for visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Increased size */
  height: 32px; /* Increased size */
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--text-color-dark-bg);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.8);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03); /* Slightly darker than question header for contrast */
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
}

.page-casino__faq-button {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page-casino__faq-button:hover {
  background: #e6c200;
}

/* Latest News/Updates Section */
.page-casino__news-section {
  padding: 80px 0;
  background-color: #2a2a4a;
}

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