body {
    background-color: var(--color-background, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-slot-games-how-to-play {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6;
    background-color: #08160F;
}

.page-slot-games-how-to-play__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-slot-games-how-to-play__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0A4B2C;
    padding-top: 10px; /* Adjusted for shared header offset */
}

.page-slot-games-how-to-play__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.page-slot-games-how-to-play__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-slot-games-how-to-play__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(0deg, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.7) 50%, rgba(8, 22, 15, 0.0) 100%);
    position: relative;
    z-index: 1;
    color: #F2FFF6;
    padding-top: 20px; /* Reduced padding-top to avoid overlap with image */
}

.page-slot-games-how-to-play__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games-how-to-play__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games-how-to-play__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games-how-to-play__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games-how-to-play__cta-button--secondary {
    background: #11271B;
    border: 2px solid #2E7A4E;
    color: #F2FFF6;
}

.page-slot-games-how-to-play__cta-button--secondary:hover {
    background: #1E3A2A;
    box-shadow: 0 8px 15px rgba(46, 122, 78, 0.4);
}

.page-slot-games-how-to-play__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games-how-to-play__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #F2FFF6;
    text-align: justify;
}

.page-slot-games-how-to-play__light-bg {
    background-color: #08160F;
    color: #F2FFF6;
    padding: 60px 0;
}

.page-slot-games-how-to-play__dark-bg {
    background-color: #11271B;
    color: #F2FFF6;
    padding: 60px 0;
}

.page-slot-games-how-to-play__text-link {
    color: #57E38D;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-slot-games-how-to-play__text-link:hover {
    color: #2AD16F;
}

.page-slot-games-how-to-play__text-highlight {
    color: #F2C14E;
    font-weight: bold;
}

.page-slot-games-how-to-play__game-types-grid,
.page-slot-games-how-to-play__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games-how-to-play__card {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #F2FFF6;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-slot-games-how-to-play__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games-how-to-play__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games-how-to-play__card-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    flex-grow: 0;
}

.page-slot-games-how-to-play__card-text {
    font-size: 1em;
    color: #A7D9B8;
    flex-grow: 1;
}

.page-slot-games-how-to-play__center-content {
    text-align: center;
    margin-top: 50px;
}

.page-slot-games-how-to-play__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-slot-games-how-to-play__guide-step-card {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-slot-games-how-to-play__guide-step-card .page-slot-games-how-to-play__card-title {
    font-size: 1.2em;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-slot-games-how-to-play__guide-step-card .page-slot-games-how-to-play__card-text {
    font-size: 0.95em;
    color: #A7D9B8;
}

.page-slot-games-how-to-play__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games-how-to-play__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games-how-to-play__feature-item {
    background-color: #0A4B2C;
    border-left: 5px solid #57E38D;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games-how-to-play__feature-title {
    font-size: 1.3em;
    color: #F2C14E;
    margin-bottom: 10px;
}

.page-slot-games-how-to-play__feature-description {
    color: #A7D9B8;
    font-size: 1em;
}

.page-slot-games-how-to-play__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games-how-to-play__strategy-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease;
}

.page-slot-games-how-to-play__strategy-item:hover {
    background-color: #1E3A2A;
}

.page-slot-games-how-to-play__strategy-title {
    font-size: 1.4em;
    color: #57E38D;
    margin-bottom: 10px;
}

.page-slot-games-how-to-play__strategy-description {
    color: #A7D9B8;
    font-size: 1em;
}

/* FAQ Section */
details.page-slot-games-how-to-play__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E;
  overflow: hidden;
  background: #11271B;
  color: #F2FFF6;
}
details.page-slot-games-how-to-play__faq-item summary.page-slot-games-how-to-play__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;
  color: #F2FFF6;
}
details.page-slot-games-how-to-play__faq-item summary.page-slot-games-how-to-play__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games-how-to-play__faq-item summary.page-slot-games-how-to-play__faq-question:hover {
  background: #1E3A2A;
}
.page-slot-games-how-to-play__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-slot-games-how-to-play__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games-how-to-play__faq-item .page-slot-games-how-to-play__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C;
  border-radius: 0 0 5px 5px;
  color: #A7D9B8;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games-how-to-play__container {
        padding: 20px 30px;
    }
    .page-slot-games-how-to-play__main-title {
        font-size: 2.8rem;
    }
    .page-slot-games-how-to-play__subtitle {
        font-size: 1.15rem;
    }
    .page-slot-games-how-to-play__game-types-grid, 
    .page-slot-games-how-to-play__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-slot-games-how-to-play__guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-slot-games-how-to-play {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games-how-to-play__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }
    .page-slot-games-how-to-play__hero-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain; /* Ensure image is fully visible */
    }
    .page-slot-games-how-to-play__hero-content {
        padding: 20px 15px;
    }
    .page-slot-games-how-to-play__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .page-slot-games-how-to-play__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-slot-games-how-to-play__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games-how-to-play__container {
        padding: 0 15px;
    }
    .page-slot-games-how-to-play__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-slot-games-how-to-play__text-block {
        font-size: 0.95em;
    }
    .page-slot-games-how-to-play__game-types-grid,
    .page-slot-games-how-to-play__benefits-grid,
    .page-slot-games-how-to-play__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games-how-to-play__card {
        padding: 20px;
    }
    .page-slot-games-how-to-play__card-image {
        height: 180px;
    }
    .page-slot-games-how-to-play__card-title {
        font-size: 1.2em;
    }
    .page-slot-games-how-to-play__card-text {
        font-size: 0.9em;
    }
    .page-slot-games-how-to-play__feature-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    .page-slot-games-how-to-play__feature-title {
        font-size: 1.1em;
    }
    .page-slot-games-how-to-play__feature-description {
        font-size: 0.9em;
    }
    .page-slot-games-how-to-play__strategy-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-slot-games-how-to-play__strategy-title {
        font-size: 1.2em;
    }
    .page-slot-games-how-to-play__strategy-description {
        font-size: 0.9em;
    }
    .page-slot-games-how-to-play__content-image {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    details.page-slot-games-how-to-play__faq-item summary.page-slot-games-how-to-play__faq-question { padding: 15px; }
    .page-slot-games-how-to-play__faq-qtext { font-size: 15px; }
    details.page-slot-games-how-to-play__faq-item .page-slot-games-how-to-play__faq-answer {
        padding: 0 15px 15px;
    }
    .page-slot-games-how-to-play__center-content {
        margin-top: 30px;
    }
    .page-slot-games-how-to-play__cta-buttons,
    .page-slot-games-how-to-play__button-group,
    .page-slot-games-how-to-play__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-slot-games-how-to-play__cta-buttons {
      display: flex;
      flex-direction: column;
    }
    .page-slot-games-how-to-play img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-slot-games-how-to-play__section,
    .page-slot-games-how-to-play__card,
    .page-slot-games-how-to-play__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}