/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text color for light background */
  background-color: var(--secondary-color); /* Matches body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-casino__section:nth-of-type(even) {
  background-color: #f8f8f8; /* Light grey for alternating sections */
}

.page-casino__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-casino__section-title--light {
  color: #ffffff; /* White text for dark backgrounds */
}

.page-casino__text-content {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Main Banner Section */
.page-casino__main-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFFFFF 100%);
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-casino__banner-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-casino__banner-content {
  position: relative;
  z-index: 2;
  color: #333333; /* Dark text for the lighter part of the gradient */
}

.page-casino__main-title {
  font-size: 48px;
  color: #000000; /* Stronger contrast for H1 */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-casino__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-casino__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for mobile */
}

.page-casino__btn-register,
.page-casino__btn-login {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-register {
  background: #C30808; /* Specific color for register */
  color: #FFFF00; /* Specific font color for register */
  border: 2px solid #C30808;
}

.page-casino__btn-login {
  background: #C30808; /* Specific color for login */
  color: #FFFF00; /* Specific font color for login */
  border: 2px solid #C30808;
}

.page-casino__btn-register:hover,
.page-casino__btn-login:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-casino__why-choose .page-casino__section-title {
  color: var(--primary-color);
}

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

.page-casino__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* Popular Games Section */
.page-casino__popular-games .page-casino__section-title {
  color: var(--primary-color);
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid #e0e0e0;
}

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

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

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

.page-casino__game-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px;
}

/* Live Casino Section */
.page-casino__live-casino .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-casino__content-flex--reverse {
  flex-direction: row-reverse;
}

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

.page-casino__content-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #555555;
}

.page-casino__content-text ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-casino__content-text ul li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-casino__content-image {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't shrink too much */
}

.page-casino__content-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Promotions Section */
.page-casino__promotions .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__promotion-banner {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 0 auto 30px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__promotion-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
}

.page-casino__promotion-list li {
  background-color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  color: #444444;
}

.page-casino__promotion-list li strong {
  color: var(--primary-color);
}

/* Get Started Section */
.page-casino__get-started .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-casino__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__step-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__step-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-casino__btn-secondary--light {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff; /* Border matches background for light style */
}

.page-casino__btn-secondary--light:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}


/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  background: var(--primary-color); /* Dark background */
  color: #ffffff; /* Light text */
}

.page-casino__dark-bg {
  background: var(--primary-color);
  color: #ffffff;
  padding: 60px 20px; /* Ensure padding for dark sections */
  border-radius: 10px;
}

.page-casino__text--light p,
.page-casino__text--light ul,
.page-casino__text--light li {
  color: #f0f0f0; /* Lighter text for dark background */
}

.page-casino__responsible-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.page-casino__responsible-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-casino__responsible-list li strong {
  color: #FFFF00; /* Highlight important points with yellow */
}


/* Final CTA Section */
.page-casino__cta-final {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-casino__cta-final .page-casino__section-title {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__intro-text,
  .page-casino__text-content,
  .page-casino__content-text p,
  .page-casino__content-text ul li {
    font-size: 17px;
  }
  .page-casino__game-card h3,
  .page-casino__feature-title,
  .page-casino__step-title {
    font-size: 20px;
  }
  .page-casino__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-casino__content-flex--reverse .page-casino__content-image {
    order: -1; /* Image first in column layout for reverse */
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-casino__main-banner {
    padding: 60px 0 30px;
  }
  .page-casino__main-title {
    font-size: 32px;
  }
  .page-casino__intro-text {
    font-size: 16px;
  }
  .page-casino__section {
    padding: 40px 0;
  }
  .page-casino__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-casino__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-casino__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons mobile adaptation */
  .page-casino__btn-register,
  .page-casino__btn-login,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure button containers also adapt */
  .page-casino__cta-group,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Prevent overflow */
  }

  /* Images mobile adaptation */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__feature-item,
  .page-casino__game-card,
  .page-casino__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__game-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-casino__game-card h3,
  .page-casino__feature-title,
  .page-casino__step-title {
    font-size: 18px;
  }
  .page-casino__promotion-list li {
    font-size: 16px;
    padding: 12px 15px;
  }
  .page-casino__text-content,
  .page-casino__content-text p,
.page-casino__content-text ul li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 28px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__btn-register,
  .page-casino__btn-login,
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Color contrast fixes for specific elements if needed, based on the smart contrast system */
.page-casino__dark-bg {
  background: var(--primary-color);
  color: #ffffff; /* Dark background needs light text */
}

.page-casino__text--light {
  color: #ffffff; /* Explicitly light text */
}