/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #1F2D3D); /* Default text color for light background */
  background-color: var(--page-bg, #F4F7FB);
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino__section-subtitle {
  font-size: 18px;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-casino__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #F0F5FF;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Image base styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  display: flex; /* Use flex for image-then-content layout */
  flex-direction: column; /* Stack image above content */
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for desktop */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Fallback */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit image height to ensure text appears below */
  overflow: hidden;
  position: relative;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-casino__hero-content-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px; /* Space between image and content */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-casino__hero-title {
  font-size: clamp(32px, 4vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 20px;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
}

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

/* Features Section */
.page-casino__features-section {
  padding: 80px 0;
  background-color: var(--card-bg, #FFFFFF);
}

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

.page-casino__feature-card {
  background: var(--page-bg, #F4F7FB);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-casino__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
}

/* Games Category Section */
.page-casino__games-category-section {
  padding: 80px 0;
  background: var(--primary-color, #2F6BFF); /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-casino__games-category-section .page-casino__section-title,
.page-casino__games-category-section .page-casino__section-subtitle {
  color: #FFFFFF; /* Ensure white text on dark background */
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.page-casino__game-card {
  display: block;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-casino__game-info {
  padding: 20px;
}

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 10px;
}

.page-casino__game-description {
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
}

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

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--card-bg, #FFFFFF);
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.page-casino__promo-card {
  background: var(--page-bg, #F4F7FB);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promo-image {
  width: 100%;
  height: 220px; /* Consistent image height */
  object-fit: cover;
}

.page-casino__promo-content {
  padding: 20px;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 10px;
}

.page-casino__promo-text {
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 20px;
}

.page-casino__promo-content .page-casino__btn-secondary {
  width: 100%;
}

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

/* Safety Section */
.page-casino__safety-section {
  padding: 80px 0;
  background: var(--primary-color, #2F6BFF); /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-casino__safety-section .page-casino__section-title,
.page-casino__safety-section .page-casino__section-subtitle {
  color: #FFFFFF; /* Ensure white text on dark background */
}

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

.page-casino__safety-text {
  flex: 1;
}