/* style/casino.css */
/* Base styles */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons specifically */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #017439; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background: var(--background-light); /* Default page background */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-casino__section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-casino__text-block {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

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

/* Color contrast enforcement */
.page-casino__dark-bg {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-casino__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

/* Buttons */
.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-casino__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
  background: #005c2e; /* Darker shade of #017439 */
  border-color: #005c2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific buttons for login/register */
.page-casino__btn-register,
.page-casino__btn-login {
  background: var(--register-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
  border: 2px solid var(--register-button-bg);
  margin: 0 10px;
}

.page-casino__btn-register:hover,
.page-casino__btn-login:hover {
  background: #a30707; /* Darker shade of #C30808 */
  border-color: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding-bottom as needed */
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%); /* Example gradient */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-casino__hero-image-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0; /* No radius for hero image usually */
  margin-bottom: 30px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
  padding: 0 20px;
}

.page-casino__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light); /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-casino__hero-description {
  font-size: 20px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light); /* Ensure high contrast */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

/* Module 1: Introduction */
.page-casino__introduction {
  background: var(--background-light);
  color: var(--text-dark);
}

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

.page-casino__feature-item {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.page-casino__feature-item img {
  width: 250px; /* Ensure minimum width */
  height: 250px; /* Ensure minimum height */
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-casino__feature-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* Module 2: Quick Access Links */
.page-casino__quick-access {
  background: var(--background-dark);
  color: var(--text-light);
}

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

.page-casino__access-link-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__access-link-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
}

.page-casino__access-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__access-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-casino__access-link-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Module 3: Core Games */
.page-casino__core-games {
  background: var(--background-light);
  color: var(--text-dark);
}

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

.page-casino__game-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.page-casino__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  display: block;
}

.page-casino__game-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.page-casino__game-card p {
  font-size: 16px;
  color: #555;
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-casino__game-card .page-casino__btn-secondary {
  margin: 0 20px 20px 20px;
  align-self: flex-start; /* Align button to start of card */
}

/* Module 4: Promotions */
.page-casino__promotions {
  background: var(--background-dark);
  color: var(--text-light);
}

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