:root {
  --primary-color: #017439;
  --secondary-color: #C30808; /* Register/Login color */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-color-light: #FFFFFF;
  --background-color-dark: #017439;
  --accent-color-yellow: #FFFF00; /* Register/Login font color */
  --border-color-light: #e0e0e0;
}

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--background-color-light); /* Default body background is white */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), var(--background-color-light)); /* Gradient with brand colors */
  color: var(--text-color-dark);
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color); /* Primary color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-color-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__cta-button--primary {
  background: var(--secondary-color); /* Red for Register */
  color: var(--accent-color-yellow); /* Yellow text for Register */
  border-color: var(--secondary-color);
}

.page-casino__cta-button--primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button--secondary {
  background: var(--primary-color); /* Green for Login */
  color: var(--text-color-light); /* White text for Login */
  border-color: var(--primary-color);
}

.page-casino__cta-button--secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-casino__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

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

.page-casino__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-casino__text-block--light {
  color: var(--text-color-light);
}

.page-casino__text-block a {
  color: var(--accent-color-yellow);
  text-decoration: underline;
}

.page-casino__text-block a:hover {
  color: var(--text-color-light);
}


/* Introduction Section */
.page-casino__introduction-section {
  padding: 80px 0;
  background-color: var(--background-color-light);
}

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

.page-casino__intro-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-casino__intro-item:hover {
  transform: translateY(-5px);
}

.page-casino__intro-subtitle {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__intro-item p {
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-casino__intro-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

/* Quick Access Section */
.page-casino__quick-access-section {
  padding: 80px 0;
  background-color: var(--background-color-dark); /* Dark background for this section */
  color: var(--text-color-light);
}

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

.page-casino__access-button {
  display: block;
  padding: 18px 25px;
  background: var(--secondary-color); /* Red button */
  color: var(--accent-color-yellow); /* Yellow text */
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__access-button:hover {
  background: #a30606;
  transform: translateY(-3px);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--background-color-light);
}

.page-casino__game-category {
  margin-bottom: 60px;
}

.page-casino__game-title {
  font-size: 2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-casino__game-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__game-content:nth-child(odd) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-casino__game-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-content p {
  flex: 1;
  font-size: 1.1em;
  color: var(--text-color-dark);
}