/* style/casino.css */
/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Inherited from body or set explicitly if needed */
  line-height: 1.6;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #2F4F4F, #1a1a1a); /* Dark gradient background */
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Primary color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-casino__btn--primary {
  background-color: #FFD700; /* Primary color */
  color: #2F4F4F; /* Dark text for primary button */
}

.page-casino__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Primary color text */
  border: 2px solid #FFD700;
}

.page-casino__btn--secondary:hover {
  background-color: #FFD700;
  color: #2F4F4F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-casino__game-categories-section,
.page-casino__why-choose-section,
.page-casino__how-to-play-section,
.page-casino__promotions-section,
.page-casino__about-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-casino__about-section {
  background-color: #2F4F4F; /* Secondary color background */
}
.page-casino__about-section .page-casino__section-title {
  color: #FFD700;
}
.page-casino__about-section .page-casino__section-description {
  color: #f0f0f0;
}


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

.page-casino__game-card {
  background-color: #2F4F4F; /* Secondary color for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-casino__game-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}
.page-casino__game-card-title a {
  color: inherit;
  text-decoration: none;
}
.page-casino__game-card-title a:hover {
  text-decoration: underline;
}

.page-casino__game-card-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__btn--small {
  padding: 10px 25px;
  font-size: 0.95em;
  border-radius: 6px;
  background-color: #FFD700;
  color: #2F4F4F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__btn--small:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Feature Grid (Why Choose) */
.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-card {
  background-color: #2F4F4F;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow for icons */
}

.page-casino__feature-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 0.95em;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How to Play Steps */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__step-card {
  background-color: #2F4F4F;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #2F4F4F;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__step-text {
  font-size: 0.95em;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__promo-card {
  background-color: #2F4F4F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__promo-card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}
.page-casino__promo-card-title a {
  color: inherit;
  text-decoration: none;
}
.page-casino__promo-card-title a:hover {
  text-decoration: underline;
}

.page-casino__promo-card-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* About Section */
.page-casino__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-casino__about-image {
  width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-casino__about-text {
  width: 50%;
  text-align: left;
}

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

/* Contact CTA Section */
.page-casino__contact-cta-section {
  background: linear-gradient(90deg, #FFD700, #e6c200); /* Primary color gradient */
  padding: 80px 20px;
  text-align: center;
}

.page-casino__section-title--light {
  color: #2F4F4F; /* Dark text on light background */
}

.page-casino__section-description--light {
  color: #333333; /* Dark text on light background */
  margin-bottom: 40px;
}

.page-casino__btn--light {
  background-color: #2F4F4F; /* Secondary color for button */
  color: #FFD700; /* Primary color text */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn--light:hover {
  background-color: #1a2f2f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__about-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__about-image,
  .page-casino__about-text {
    width: 100%;
  }
  .page-casino__about-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  .page-casino__main-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn {
    width: 100%;
    max-width: 300px; /* Constrain max-width for buttons in column */
    margin: 0 auto;
    padding: 12px 25px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-casino__game-categories-section,
  .page-casino__why-choose-section,
  .page-casino__how-to-play-section,
  .page-casino__promotions-section,
  .page-casino__about-section,
  .page-casino__contact-cta-section {
    padding: 60px 0;
  }
  .page-casino__game-grid,
  .page-casino__feature-grid,
  .page-casino__steps-grid,
  .page-casino__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 180px;
  }
  .page-casino__game-card-title,
  .page-casino__promo-card-title,
  .page-casino__feature-title,
  .page-casino__step-title {
    font-size: 1.3em;
  }
  .page-casino__game-card-text,
  .page-casino__promo-card-text,
  .page-casino__feature-text,
  .page-casino__step-text {
    font-size: 0.9em;
  }

  /* Image responsive rules */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }
  /* Container for images to prevent overflow */
  .page-casino__hero-section,
  .page-casino__game-card,
  .page-casino__feature-card,
  .page-casino__promo-card,
  .page-casino__about-section,
  .page-casino__container,
  .page-casino__game-grid,
  .page-casino__feature-grid,
  .page-casino__steps-grid,
  .page-casino__promo-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  /* Specific image containers that need padding */
  .page-casino__hero-image-wrapper {
    padding: 0;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image,
  .page-casino__feature-icon,
  .page-casino__about-image {
    padding: 0;
  }
  .page-casino__about-image {
    width: 100%;
    height: auto;
  }
  .page-casino__about-text {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 150px;
  }
}