.page-casino {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for content area if body is default white */
  line-height: 1.6;
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5; /* Light background if image doesn't cover fully */
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px 15px;
  max-width: 900px;
  margin-top: -80px; /* Slightly overlap with image for visual flow, but not on text */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-casino__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Clamp for H1 font size */
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #555555;
  margin-bottom: 30px;
}

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

/* General Section Styles */
.page-casino__section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-casino__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-casino__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-description {
  color: #ffffff;
}

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

.page-casino__section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__text-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.page-casino__text-block p {
  margin-bottom: 20px;
}

.page-casino__text-block img.page-casino__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  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 8px 25px rgba(0,0,0,0.15);
}

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

.page-casino__game-card h3.page-casino__game-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin: 20px 15px 10px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-casino__game-card h3.page-casino__game-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-casino__game-card p.page-casino__game-description {
  font-size: 15px;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-casino__btn-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.page-casino__btn-link:hover {
  background-color: #005a2d;
}

/* Promotions and Responsible Gambling Lists */
.page-casino__promo-list,
.page-casino__responsible-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  font-size: 17px;
}

.page-casino__promo-list li,
.page-casino__responsible-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
}

.page-casino__responsible-list li {
  background-color: #f0f0f0;
  color: #333333;
}

.page-casino__promo-list li::before,
.page-casino__responsible-list li::before {
  content: '✔';
  color: #FFFF00; /* Highlight color for checkmark */
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

.page-casino__responsible-list li::before {
  color: #017439;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border-color: #C30808;
}

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

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #C30808; /* Register/Login button color as text */
  border-color: #C30808;
}

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00606;
  border-color: #a00606;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
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: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive Styles for 1024px */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 500px;
  }
  .page-casino__hero-content {
    margin-top: -60px;
    max-width: 700px;
  }
  .page-casino__section {
    padding: 40px 0;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Responsive Styles for 768px (Mobile) */
@media (max-width: 768px) {
  /* HERO Section - Mobile */
  .page-casino__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 20px;
  }
  .page-casino__hero-image-wrapper {
    max-height: 300px;
  }
  .page-casino__hero-image {
    object-fit: contain !important; /* Mobile hero image must contain, not cover */
    aspect-ratio: unset !important; /* Remove aspect ratio if any */
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__hero-content {
    margin-top: 0;
    max-width: 100% !important;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }
  .page-casino__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }
  .page-casino__subtitle {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 20px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    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 15px !important;
    font-size: 16px !important;
  }

  /* General Section Styles - Mobile */
  .page-casino__section {
    padding: 30px 0;
  }
  .page-casino__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-casino__section-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-casino__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-casino__text-block {
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images - Mobile */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }
  .page-casino__image-content {
    margin: 20px auto !important;
  }

  /* Product Grid - Mobile */
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
  }
  .page-casino__game-card {
    min-width: unset !important;
  }
  .page-casino__game-image {
    height: 120px;
    min-width: unset !important;
    min-height: unset !important;
  }
  .page-casino__game-card h3.page-casino__game-title {
    font-size: 18px;
    margin: 10px 10px 5px;
  }
  .page-casino__game-card p.page-casino__game-description {
    font-size: 14px;
    padding: 0 10px;
    margin-bottom: 10px;
  }
  .page-casino__btn-link {
    padding: 8px 15px;
    font-size: 14px;
    margin-bottom: 10px;
  }
}