/* style/casino.css */
.page-casino {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

.page-casino__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-casino__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
  transform: translateY(-3px);
}

.page-casino__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-casino__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

/* General Section Styles */
.page-casino__games-overview,
.page-casino__security-section,
.page-casino__promotions-section,
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__games-overview,
.page-casino__promotions-section {
  background-color: #f9f9f9;
}

.page-casino__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-casino__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Game Grid */
.page-casino__game-grid,
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have consistent height */
}

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

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  max-width: 400px; /* Constrain image width within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-casino__game-title,
.page-casino__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
  font-weight: bold;
}

.page-casino__game-text,
.page-casino__promo-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1; /* Allows text to take available space */
}

.page-casino__button--small {
  padding: 10px 25px;
  font-size: 0.95em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-casino__button--small:hover {
  background-color: #FCBC45;
  border-color: #000000;
  color: #000000;
}

/* Security Section */
.page-casino__security-section {
  background-color: #000000; /* Dark background for security section */
  color: #FFFFFF;
}

.page-casino__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 50px;
}

.page-casino__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

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

.page-casino__security-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-casino__security-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__security-text li {
  font-size: 1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-casino__security-text li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FCBC45; /* Accent color for checkmark */
}

.page-casino__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
  font-size: 1em;
}

.page-casino__button--learn-more:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

/* CTA Section */
.page-casino__cta-section {
  background-color: #FCBC45;
  color: #000000;
  padding: 100px 0;
}

.page-casino__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-casino__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-casino__cta-actions {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.page-casino__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-casino__button--large.page-casino__button--register {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-casino__button--large.page-casino__button--register:hover {
  background-color: #555555;
  border-color: #555555;
  color: #FFFFFF;
}

.page-casino__button--large.page-casino__button--login {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-casino__button--large.page-casino__button--login:hover {
  background-color: #EEEEEE;
  border-color: #EEEEEE;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__cta-title {
    font-size: 2.5em;
  }
  .page-casino__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__security-text ul {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
  }
  .page-casino__hero-section {
    padding: 40px 0;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__button {
    width: 100%;
    max-width: 300px;
  }
  .page-casino__games-overview,
  .page-casino__security-section,
  .page-casino__promotions-section,
  .page-casino__cta-section {
    padding: 50px 0;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-casino__game-grid,
  .page-casino__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino__game-card,
  .page-casino__promo-card {
    padding: 25px;
    min-height: auto;
  }
  .page-casino__game-title,
  .page-casino__promo-title {
    font-size: 1.5em;
  }
  .page-casino__game-text,
  .page-casino__promo-text {
    font-size: 0.9em;
  }
  .page-casino__security-image {
    max-width: 100%;
  }
  .page-casino__cta-title {
    font-size: 2em;
  }
  .page-casino__cta-description {
    font-size: 1em;
  }
  .page-casino__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile content image overflow prevention */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure no image filters are applied */
.page-casino img {
  filter: none !important;
}

/* Ensure content area images meet minimum size requirements */
.page-casino__game-image,
.page-casino__promo-image,
.page-casino__security-image {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-casino {
    overflow-x: hidden;
  }
  .page-casino__container {
    padding: 0 15px;
  }
}