/* style/resources-iwin-ruby-latest-game-guide.css */

.page-resources-iwin-ruby-latest-game-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-resources-iwin-ruby-latest-game-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-iwin-ruby-latest-game-guide__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-iwin-ruby-latest-game-guide__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
}

.page-resources-iwin-ruby-latest-game-guide__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-resources-iwin-ruby-latest-game-guide__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-resources-iwin-ruby-latest-game-guide__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-resources-iwin-ruby-latest-game-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-iwin-ruby-latest-game-guide__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources-iwin-ruby-latest-game-guide__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-resources-iwin-ruby-latest-game-guide__hero-title {
  font-size: 3.8em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-iwin-ruby-latest-game-guide__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources-iwin-ruby-latest-game-guide__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources-iwin-ruby-latest-game-guide__btn-primary,
.page-resources-iwin-ruby-latest-game-guide__btn-secondary,
.page-resources-iwin-ruby-latest-game-guide__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-iwin-ruby-latest-game-guide__btn-primary {
  background-color: #FFD700; /* Gold primary button */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-resources-iwin-ruby-latest-game-guide__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-resources-iwin-ruby-latest-game-guide__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-resources-iwin-ruby-latest-game-guide__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-resources-iwin-ruby-latest-game-guide__btn-tertiary {
  background-color: #8B0000; /* Dark red tertiary button */
  color: #ffffff;
  border: 2px solid #8B0000;
  margin-top: 20px;
}

.page-resources-iwin-ruby-latest-game-guide__btn-tertiary:hover {
  background-color: #a00000;
  border-color: #a00000;
}

/* Game Categories */
.page-resources-iwin-ruby-latest-game-guide__games-overview .page-resources-iwin-ruby-latest-game-guide__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-resources-iwin-ruby-latest-game-guide__game-category {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-iwin-ruby-latest-game-guide__game-category-title {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-iwin-ruby-latest-game-guide__game-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-resources-iwin-ruby-latest-game-guide__game-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
}

/* How to Start Section */
.page-resources-iwin-ruby-latest-game-guide__how-to-start .page-resources-iwin-ruby-latest-game-guide__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-resources-iwin-ruby-latest-game-guide__step-item {
  background-color: rgba(139, 0, 0, 0.2); /* Dark red translucent background */
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-iwin-ruby-latest-game-guide__step-title {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-iwin-ruby-latest-game-guide__step-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-resources-iwin-ruby-latest-game-guide__step-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
}

/* Benefits Section */
.page-resources-iwin-ruby-latest-game-guide__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-resources-iwin-ruby-latest-game-guide__benefits-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-iwin-ruby-latest-game-guide__benefits-item-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-iwin-ruby-latest-game-guide__benefits-item-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources-iwin-ruby-latest-game-guide__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources-iwin-ruby-latest-game-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-iwin-ruby-latest-game-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #8B0000; /* Dark red for question header */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources-iwin-ruby-latest-game-guide__faq-question:hover {
  background-color: #a00000;
}

.page-resources-iwin-ruby-latest-game-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-iwin-ruby-latest-game-guide__faq-item.active .page-resources-iwin-ruby-latest-game-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-iwin-ruby-latest-game-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-iwin-ruby-latest-game-guide__faq-item.active .page-resources-iwin-ruby-latest-game-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources-iwin-ruby-latest-game-guide__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Conclusion Section */
.page-resources-iwin-ruby-latest-game-guide__conclusion {
  background-color: #8B0000; /* Dark red background for conclusion */
  padding: 80px 0;
}

.page-resources-iwin-ruby-latest-game-guide__conclusion .page-resources-iwin-ruby-latest-game-guide__container {
  max-width: 900px;
}

.page-resources-iwin-ruby-latest-game-guide__conclusion .page-resources-iwin-ruby-latest-game-guide__section-title {
  color: #FFD700;
}

.page-resources-iwin-ruby-latest-game-guide__conclusion .page-resources-iwin-ruby-latest-game-guide__section-description {
  color: #ffffff;
  margin-bottom: 50px;
}

.page-resources-iwin-ruby-latest-game-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-iwin-ruby-latest-game-guide__hero-title {
    font-size: 3em;
  }

  .page-resources-iwin-ruby-latest-game-guide__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-iwin-ruby-latest-game-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-iwin-ruby-latest-game-guide__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-iwin-ruby-latest-game-guide__hero-title {
    font-size: 2.2em;
  }

  .page-resources-iwin-ruby-latest-game-guide__hero-description {
    font-size: 1.1em;
  }

  .page-resources-iwin-ruby-latest-game-guide__hero-buttons,
  .page-resources-iwin-ruby-latest-game-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-iwin-ruby-latest-game-guide__btn-primary,
  .page-resources-iwin-ruby-latest-game-guide__btn-secondary,
  .page-resources-iwin-ruby-latest-game-guide__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources-iwin-ruby-latest-game-guide__section {
    padding: 40px 0;
  }

  .page-resources-iwin-ruby-latest-game-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-iwin-ruby-latest-game-guide__section-description {
    font-size: 1em;
  }

  .page-resources-iwin-ruby-latest-game-guide__game-category,
  .page-resources-iwin-ruby-latest-game-guide__step-item,
  .page-resources-iwin-ruby-latest-game-guide__benefits-item {
    padding: 25px;
  }

  .page-resources-iwin-ruby-latest-game-guide__game-category-title,
  .page-resources-iwin-ruby-latest-game-guide__step-title,
  .page-resources-iwin-ruby-latest-game-guide__benefits-item-title {
    font-size: 1.5em;
  }

  /* Mobile image and container responsive rules */
  .page-resources-iwin-ruby-latest-game-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-iwin-ruby-latest-game-guide__section,
  .page-resources-iwin-ruby-latest-game-guide__card,
  .page-resources-iwin-ruby-latest-game-guide__container,
  .page-resources-iwin-ruby-latest-game-guide__hero-section,
  .page-resources-iwin-ruby-latest-game-guide__game-category,
  .page-resources-iwin-ruby-latest-game-guide__how-to-start,
  .page-resources-iwin-ruby-latest-game-guide__step-item,
  .page-resources-iwin-ruby-latest-game-guide__benefits,
  .page-resources-iwin-ruby-latest-game-guide__benefits-list,
  .page-resources-iwin-ruby-latest-game-guide__faq-section,
  .page-resources-iwin-ruby-latest-game-guide__faq-list,
  .page-resources-iwin-ruby-latest-game-guide__conclusion,
  .page-resources-iwin-ruby-latest-game-guide__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-resources-iwin-ruby-latest-game-guide__hero-content {
    padding: 0 15px;
  }

  .page-resources-iwin-ruby-latest-game-guide__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-iwin-ruby-latest-game-guide__faq-answer {
    padding: 0 15px;
  }

  .page-resources-iwin-ruby-latest-game-guide__faq-item.active .page-resources-iwin-ruby-latest-game-guide__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-iwin-ruby-latest-game-guide__hero-title {
    font-size: 1.8em;
  }
  .page-resources-iwin-ruby-latest-game-guide__hero-description {
    font-size: 1em;
  }
}