.page-casino {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0A192F; /* Ensure consistency if body background is overridden or for specific sections */
}

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

.page-casino__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4; /* Slightly dim the image to make text more readable */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 40px 20px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.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: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-casino__button--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-casino__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
  padding-top: 60px;
}

.page-casino__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-casino__about-section, .page-casino__games-category-section, .page-casino__featured-games-section, .page-casino__promotions-section, .page-casino__why-choose-section, .page-casino__download-app-section, .page-casino__responsible-gaming-section, .page-casino__faq-section, .page-casino__cta-section {
  padding: 80px 0;
}

.page-casino__about-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-casino__category-card, .page-casino__game-card, .page-casino__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px;
}

.page-casino__category-card:hover, .page-casino__game-card:hover, .page-casino__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__category-image, .page-casino__game-image, .page-casino__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__category-title, .page-casino__game-title, .page-casino__promotion-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__category-description, .page-casino__game-description, .page-casino__promotion-description {
  font-size: 1em;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

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

.page-casino__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-casino__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-casino__benefit-item:hover {
  transform: translateY(-8px);
}

.page-casino__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-casino__benefit-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.6;
}

.page-casino__download-app-section {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-casino__download-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-casino__responsible-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
}

.page-casino__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-casino__faq-question::after {
  content: '+';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-casino__faq-question.active::after {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

.page-casino__faq-answer.open {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 15px;
}

.page-casino__cta-section {
  text-align: center;
  padding-bottom: 80px;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__category-grid, .page-casino__featured-grid, .page-casino__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
  }
  .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: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-casino__section-text {
    font-size: 0.95em;
  }
  .page-casino__category-card, .page-casino__game-card, .page-casino__promotion-card {
    min-height: auto; /* Allow height to adjust */
  }
  .page-casino__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-casino__download-buttons {
    flex-direction: column;
    align-items: center;
  }
  /* Ensure all images within .page-casino are responsive and don't overflow */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
  /* Specific overrides to ensure content images are not small */
  .page-casino__category-image, .page-casino__game-image, .page-casino__promotion-image, .page-casino__benefit-icon, .page-casino__download-image, .page-casino__responsible-image {
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__button {
    width: 90%;
  }
}