:root {
  --main-color: #C91F17;
  --accent-color: #E53935;
  --btn-button: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --bg-card-bg: #D32F2F;
  --bg-background: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow: #FFCC66;
  --gold: #F4D34D;
  --deep-red: #7A0E0E;
  --deep-red-rgb: 122, 14, 14;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Text Main from custom colors */
  background: var(--bg-background); /* Background from custom colors */
}

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

.page-casino__dark-section {
  background: var(--bg-background); /* Deep Red from custom colors */
  color: var(--text-main); /* White from custom colors */
  padding: 60px 0;
}

.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Minimal top padding, body handles header offset */
  background: var(--bg-background);
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limiting hero image height */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content slightly up over the image, but not *on* it */
  background: rgba(var(--deep-red-rgb), 0.8); /* Use custom color with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-casino__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-casino__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main); /* Default for dark sections */
  line-height: 1.3;
}

.page-casino__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-main); /* Default for dark sections */
}

.page-casino__games-overview {
  padding: 60px 0;
}

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

.page-casino__game-card,
.page-casino__promotion-card,
.page-casino__feature-item {
  background: var(--bg-card-bg); /* Card BG from custom colors */
  color: var(--text-main); /* Text Main from custom colors */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color); /* Border color from custom colors */
}

.page-casino__game-card:hover,
.page-casino__promotion-card:hover,
.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__game-title,
.page-casino__promotion-title,
.page-casino__feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: var(--gold); /* Gold color from custom colors */
}

.page-casino__game-text,
.page-casino__promotion-text,
.page-casino__feature-text {
  font-size: 1rem;
  margin: 0 20px 20px 20px;
  color: var(--text-main);
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
  background: var(--btn-button); /* Gradient from custom colors */
  color: #000000; /* Dark text for light gradient button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background: var(--gold); /* Gold color from custom colors */
  color: #000000;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.page-casino__btn-tertiary {
  background: var(--deep-red); /* Deep Red from custom colors */
  color: var(--text-main); /* White from custom colors */
  border: 1px solid var(--deep-red);
  margin: 0 20px 20px 20px;
}

.page-casino__btn-tertiary:hover {
  background: transparent;
  color: var(--deep-red);
  border-color: var(--deep-red);
}

.page-casino__promotions-section {
  padding: 60px 0;
  background: var(--bg-background); /* Deep Red from custom colors */
  color: var(--text-main);
}

.page-casino__promotion-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-casino__promotion-card {
  flex: 1 1 calc(50% - 15px);
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 585px; /* Adjust based on container width and gap */
  background: var(--bg-card-bg);
  border: 1px solid var(--border-color);
}