/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background, #08160F); /* Default background color for the page */
  line-height: 1.6;
}

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

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

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

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background, #08160F);
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensures image covers the area, may crop */
  filter: brightness(0.7); /* Slightly darken image for text contrast */
  min-height: 300px; /* Minimum height for visual impact */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image for visual effect */
  background: linear-gradient(0deg, var(--background, #08160F) 0%, rgba(8, 22, 15, 0.8) 50%, transparent 100%);
  padding-top: 150px;
}

.page-casino__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__description {
  font-size: 18px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-casino__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* About Section */
.page-casino__about-section {
  background-color: var(--card-bg, #11271B);
}

.page-casino__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 16px;
}

.page-casino__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Games Section */
.page-casino__games-section {
  background-color: var(--background, #08160F);
}

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

.page-casino__game-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  line-height: 1.3;
}

.page-casino__game-title a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
}

.page-casino__game-title a:hover {
  text-decoration: underline;
}

.page-casino__game-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 15px 20px;
}

.page-casino__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: background 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-play:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Benefits Section */
.page-casino__benefits-section {
  background-color: var(--card-bg, #11271B);
}

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

.page-casino__benefit-card {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-casino__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-casino__benefit-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

/* Guide Section */
.page-casino__guide-section {
  background-color: var(--background, #08160F);
}

.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-casino__guide-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid var(--border, #2E7A4E);
}

.page-casino__step-number {
  counter-increment: step-counter;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold, #F2C14E);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.5);
}

.page-casino__step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.page-casino__guide-item p {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
}

.page-casino__guide-cta {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-casino__promo-section {
  background-color: var(--card-bg, #11271B);
}

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

.page-casino__promo-card {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  line-height: 1.3;
}

.page-casino__promo-title a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
}

.page-casino__promo-title a:hover {
  text-decoration: underline;
}

.page-casino__promo-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 15px 20px;
}

.page-casino__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: var(--background, #08160F);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: var(--deep-green, #0A4B2C);
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow, #57E38D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-green, #0A4B2C);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary, #A7D9B8);
}

/* Generic image and button responsiveness */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 32px;
  }

  .page-casino__section-subtitle {
    font-size: 16px;
  }

  .page-casino__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-casino__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__section {
    padding: 40px 0;
  }

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-casino__section-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* HERO Section mobile */
  .page-casino__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-casino__hero-image-wrapper {
    max-height: 400px;
  }

  .page-casino__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible, no cropping */
    aspect-ratio: unset !important; /* Allow image to adjust its aspect ratio */
    filter: brightness(0.8); /* Slightly less dark for mobile */
  }

  .page-casino__hero-content {
    margin-top: -80px; /* Adjust overlap */
    padding-top: 80px;
    background: linear-gradient(0deg, var(--background, #08160F) 0%, rgba(8, 22, 15, 0.9) 60%, transparent 100%);
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Smaller on mobile */
  }

  .page-casino__description {
    font-size: 16px;
  }

  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* All buttons mobile */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-play,
  .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;
  }

  /* Button containers mobile */
  .page-casino__cta-buttons,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* About Section mobile */
  .page-casino__content-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 30px;
  }

  .page-casino__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__text-block p {
    font-size: 15px;
  }

  /* Games Section mobile */
  .page-casino__games-grid {
    grid-template-columns: 1fr; /* Single column for game cards */
  }

  .page-casino__game-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__game-title {
    font-size: 20px;
  }

  .page-casino__game-description {
    font-size: 14px;
  }

  /* Benefits Section mobile */
  .page-casino__benefits-grid {
    grid-template-columns: 1fr; /* Single column for benefits */
  }

  .page-casino__benefit-title {
    font-size: 20px;
  }

  .page-casino__benefit-description {
    font-size: 15px;
  }

  /* Guide Section mobile */
  .page-casino__guide-steps {
    grid-template-columns: 1fr; /* Single column for guide steps */
  }

  .page-casino__step-number {
    top: -10px; /* Adjust position */
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-casino__step-title {
    font-size: 18px;
  }

  .page-casino__guide-item p {
    font-size: 15px;
  }

  /* Promo Section mobile */
  .page-casino__promo-cards {
    grid-template-columns: 1fr; /* Single column for promo cards */
  }

  .page-casino__promo-image {
    height: 200px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__promo-title {
    font-size: 20px;
  }

  .page-casino__promo-description {
    font-size: 14px;
  }

  /* FAQ Section mobile */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }

  .page-casino__faq-qtext {
    font-size: 15px;
  }

  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

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