/* style/resources-dice-crab-fish-platform-recommendations.css */
.page-resources-dice-crab-fish-platform-recommendations {
  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-resources-dice-crab-fish-platform-recommendations__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-dice-crab-fish-platform-recommendations__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-resources-dice-crab-fish-platform-recommendations__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-dice-crab-fish-platform-recommendations__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-resources-dice-crab-fish-platform-recommendations__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-resources-dice-crab-fish-platform-recommendations__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-dice-crab-fish-platform-recommendations__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-dice-crab-fish-platform-recommendations__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources-dice-crab-fish-platform-recommendations__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-resources-dice-crab-fish-platform-recommendations__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: inherit;
}

.page-resources-dice-crab-fish-platform-recommendations__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

.page-resources-dice-crab-fish-platform-recommendations__intro-section,
.page-resources-dice-crab-fish-platform-recommendations__advantages-section,
.page-resources-dice-crab-fish-platform-recommendations__platform-features,
.page-resources-dice-crab-fish-platform-recommendations__how-to-play,
.page-resources-dice-crab-fish-platform-recommendations__winning-tips,
.page-resources-dice-crab-fish-platform-recommendations__faq-section,
.page-resources-dice-crab-fish-platform-recommendations__cta-bottom {
  padding: 60px 0;
}

.page-resources-dice-crab-fish-platform-recommendations__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-dice-crab-fish-platform-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-dice-crab-fish-platform-recommendations__card {
  background-color: rgba(255, 255, 255, 0.1); /* For dark sections */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-dice-crab-fish-platform-recommendations__light-bg .page-resources-dice-crab-fish-platform-recommendations__card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-resources-dice-crab-fish-platform-recommendations__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-dice-crab-fish-platform-recommendations__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-resources-dice-crab-fish-platform-recommendations__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.page-resources-dice-crab-fish-platform-recommendations__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-dice-crab-fish-platform-recommendations__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 5px solid #017439;
  padding: 10px;
  background-color: #ffffff;
}

.page-resources-dice-crab-fish-platform-recommendations__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: inherit;
}

.page-resources-dice-crab-fish-platform-recommendations__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-resources-dice-crab-fish-platform-recommendations__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-dice-crab-fish-platform-recommendations__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFFF00; /* Custom font color for register/login */
  color: #C30808; /* Custom bg color for register/login */
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-resources-dice-crab-fish-platform-recommendations__step-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: inherit;
}

.page-resources-dice-crab-fish-platform-recommendations__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-resources-dice-crab-fish-platform-recommendations__btn-primary,
.page-resources-dice-crab-fish-platform-recommendations__btn-secondary,
.page-resources-dice-crab-fish-platform-recommendations__btn-secondary-light {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

/* Custom colors for Register/Login buttons */
.page-resources-dice-crab-fish-platform-recommendations__btn-primary {
  background-color: #C30808; /* Register/Login background */
  color: #FFFF00; /* Register/Login font */
  border: 2px solid #C30808;
}

.page-resources-dice-crab-fish-platform-recommendations__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

/* Secondary button for dark backgrounds (Hero, Video, Advantages, How-to-play, FAQ) */
.page-resources-dice-crab-fish-platform-recommendations__dark-bg .page-resources-dice-crab-fish-platform-recommendations__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #FFFFFF;
}

.page-resources-dice-crab-fish-platform-recommendations__dark-bg .page-resources-dice-crab-fish-platform-recommendations__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Secondary button for light backgrounds (Intro, Platform Features, Winning Tips, CTA Bottom) */
.page-resources-dice-crab-fish-platform-recommendations__light-bg .page-resources-dice-crab-fish-platform-recommendations__btn-secondary-light {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-dice-crab-fish-platform-recommendations__light-bg .page-resources-dice-crab-fish-platform-recommendations__btn-secondary-light:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-list {
  margin-top: 30px;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
}

.page-resources-dice-crab-fish-platform-recommendations__light-bg .page-resources-dice-crab-fish-platform-recommendations__faq-item {
  border-color: #e0e0e0;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  color: inherit;
  user-select: none;
}

.page-resources-dice-crab-fish-platform-recommendations__light-bg .page-resources-dice-crab-fish-platform-recommendations__faq-question {
  background-color: #f0f0f0;
  color: #333333;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-dice-crab-fish-platform-recommendations__light-bg .page-resources-dice-crab-fish-platform-recommendations__faq-question:hover {
  background-color: #e8e8e8;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-qtext {
  flex-grow: 1;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-answer {
  padding: 0 25px 18px;
  font-size: 1.05em;
  color: inherit;
}

/* Details element specific styles */
.page-resources-dice-crab-fish-platform-recommendations__faq-item summary {
  list-style: none;
}

.page-resources-dice-crab-fish-platform-recommendations__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources-dice-crab-fish-platform-recommendations__cta-content {
  text-align: center;
}

/* Video Section Styles */
.page-resources-dice-crab-fish-platform-recommendations__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-dice-crab-fish-platform-recommendations__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin-top: 20px;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-dice-crab-fish-platform-recommendations__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-dice-crab-fish-platform-recommendations__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Ensure it's above the video */
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2); /* Subtle overlay to indicate clickability */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3em;
  text-decoration: none;
  transition: background 0.3s ease;
}

.page-resources-dice-crab-fish-platform-recommendations__video-overlay-link:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-resources-dice-crab-fish-platform-recommendations__hero-section {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
  }

  .page-resources-dice-crab-fish-platform-recommendations__hero-content {
    max-width: 50%;
    padding-right: 40px;
  }

  .page-resources-dice-crab-fish-platform-recommendations__hero-image-wrapper {
    position: relative;
    width: 50%;
    height: auto;
    min-height: 400px;
  }

  .page-resources-dice-crab-fish-platform-recommendations__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none; /* No darkening for desktop if image is on side */
  }

  .page-resources-dice-crab-fish-platform-recommendations__hero-title {
    font-size: 3.8em;
  }

  .page-resources-dice-crab-fish-platform-recommendations__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .page-resources-dice-crab-fish-platform-recommendations__hero-title {
    font-size: 2.2em;
  }

  .page-resources-dice-crab-fish-platform-recommendations__section-title {
    font-size: 1.8em;
  }

  .page-resources-dice-crab-fish-platform-recommendations__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  /* General content padding for mobile */
  .page-resources-dice-crab-fish-platform-recommendations__container {
    padding: 0 15px !important;
  }

  /* Images responsiveness */
  .page-resources-dice-crab-fish-platform-recommendations img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers responsiveness */
  .page-resources-dice-crab-fish-platform-recommendations__image-full-width,
  .page-resources-dice-crab-fish-platform-recommendations__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video responsiveness */
  .page-resources-dice-crab-fish-platform-recommendations video,
  .page-resources-dice-crab-fish-platform-recommendations__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers responsiveness */
  .page-resources-dice-crab-fish-platform-recommendations__video-section,
  .page-resources-dice-crab-fish-platform-recommendations__video-container,
  .page-resources-dice-crab-fish-platform-recommendations__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px !important; /* Remove container padding if any */
    padding-right: 0px !important;
    overflow: hidden !important;
  }
  
  .page-resources-dice-crab-fish-platform-recommendations__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  /* Button responsiveness */
  .page-resources-dice-crab-fish-platform-recommendations__btn-primary,
  .page-resources-dice-crab-fish-platform-recommendations__btn-secondary,
  .page-resources-dice-crab-fish-platform-recommendations__btn-secondary-light,
  .page-resources-dice-crab-fish-platform-recommendations a[class*="button"],
  .page-resources-dice-crab-fish-platform-recommendations 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 !important;
    padding-right: 15px !important;
  }

  .page-resources-dice-crab-fish-platform-recommendations__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-resources-dice-crab-fish-platform-recommendations__grid,
  .page-resources-dice-crab-fish-platform-recommendations__features-list {
    grid-template-columns: 1fr;
  }

  .page-resources-dice-crab-fish-platform-recommendations__feature-icon {
    width: 100px;
    height: 100px;
  }
}