.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-casino__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-casino__btn-primary:hover {
  background-color: #1a7fb2;
  border-color: #1a7fb2;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__section-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__about-section .page-casino__section-text,
.page-casino__promotions-section .page-casino__section-text,
.page-casino__guide-section .page-casino__section-text,
.page-casino__security-section .page-casino__section-text,
.page-casino__conclusion-section .page-casino__section-text {
  color: #f0f0f0; /* Ensure light text on dark background */
}

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

.page-casino__game-category {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark body */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__game-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.page-casino__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-casino__game-description {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

.page-casino__promotion-image,
.page-casino__security-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__guide-steps {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-casino__guide-item {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__guide-subtitle {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__guide-list {
  list-style: none;
  padding: 0;
}

.page-casino__guide-list li {
  margin-bottom: 10px;
  color: #cccccc;
  position: relative;
  padding-left: 25px;
  text-align: justify;
}

.page-casino__guide-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
}

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

.page-casino__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #cccccc;
  text-align: justify;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-casino__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-casino__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-casino__section-text {
    font-size: 1rem;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-casino__game-title {
    font-size: 1.6rem;
  }
  .page-casino__game-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
  }

  .page-casino__hero-content {
    width: 95%;
    padding: 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-casino__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .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: 12px 20px;
  }

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

  .page-casino__container {
    padding: 0;
  }

  .page-casino__section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-casino__section-text {
    font-size: 1rem;
  }

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

  .page-casino__hero-image-wrapper,
  .page-casino__games-grid,
  .page-casino__game-category,
  .page-casino__game-images,
  .page-casino__promotion-image,
  .page-casino__security-image,
  .page-casino__guide-steps,
  .page-casino__guide-item,
  .page-casino__faq-list,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-casino__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-casino__game-title {
    font-size: 1.5rem;
  }

  .page-casino__game-images {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .page-casino__guide-steps {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
  .page-casino__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}