.page-slot-games-how-to-play {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #1A1A1A); /* Assume body background is dark from shared */
}

/* Ensure main content color contrasts with assumed dark body background */
.page-slot-games-how-to-play__hero-section,
.page-slot-games-how-to-play__rules-section,
.page-slot-games-how-to-play__faq-section {
    background-color: #ffffff; /* Light background for readability */
    color: #333333;
}

.page-slot-games-how-to-play__dark-bg {
    background-color: #1A1A1A;
    color: #ffffff;
}

.page-slot-games-how-to-play__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

/* Hero Section */
.page-slot-games-how-to-play__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background-color: #1A1A1A; /* Dark background for hero */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-slot-games-how-to-play__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-slot-games-how-to-play__main-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games-how-to-play__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-slot-games-how-to-play__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-slot-games-how-to-play__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image to ensure text contrast */
}

/* General Sections */
.page-slot-games-how-to-play__intro-section,
.page-slot-games-how-to-play__rules-section,
.page-slot-games-how-to-play__how-to-play-section,
.page-slot-games-how-to-play__strategy-section,
.page-slot-games-how-to-play__features-section,
.page-slot-games-how-to-play__faq-section,
.page-slot-games-how-to-play__cta-section {
    padding: 60px 0;
}

.page-slot-games-how-to-play__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
}

.page-slot-games-how-to-play__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games-how-to-play__highlight {
    color: #FFD700;
    font-weight: bold;
}

.page-slot-games-how-to-play__content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games-how-to-play__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Grid Layouts */
.page-slot-games-how-to-play__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-slot-games-how-to-play__grid-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games-how-to-play__sub-title {
    font-size: 1.5em;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.page-slot-games-how-to-play__list {
    list-style: disc;
    margin-left: 20px;
}

.page-slot-games-how-to-play__list-item {
    margin-bottom: 10px;
}

/* How-to-Play Steps */
.page-slot-games-how-to-play__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games-how-to-play__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-slot-games-how-to-play__step-card:hover {
    transform: translateY(-5px);
}

.page-slot-games-how-to-play__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #FFD700;
    color: #1A1A1A;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-slot-games-how-to-play__step-title {
    font-size: 1.6em;
    color: #1A1A1A;
    margin-bottom: 15px;
}

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

/* Video Section */
.page-slot-games-how-to-play__video-section {
    padding: 60px 0;
    background-color: #1A1A1A;
    color: #ffffff;
    text-align: center;
}

.page-slot-games-how-to-play__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games-how-to-play__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicate clickable */
}

.page-slot-games-how-to-play__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure it's above the video for click */
    cursor: pointer;
}

.page-slot-games-how-to-play__text-center {
    text-align: center;
}

/* Strategy Section */
.page-slot-games-how-to-play__strategy-grid,
.page-slot-games-how-to-play__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}