/* style/slot-games.css */

/* Custom properties for colors */
:root {
    --page-slot-games-primary: #11A84E;
    --page-slot-games-secondary: #22C768;
    --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-slot-games-card-bg: #11271B;
    --page-slot-games-background: #08160F; /* This should align with shared.css body background */
    --page-slot-games-text-main: #F2FFF6;
    --page-slot-games-text-secondary: #A7D9B8;
    --page-slot-games-border: #2E7A4E;
    --page-slot-games-glow: #57E38D;
    --page-slot-games-gold: #F2C14E;
    --page-slot-games-divider: #1E3A2A;
    --page-slot-games-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-slot-games {
    color: var(--page-slot-games-text-main); /* Light text for dark background */
    background-color: var(--page-slot-games-background); /* Ensure consistency with body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section common styles */
.page-slot-games__section {
    padding: 60px 20px;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

.page-slot-games__section-title {
    font-size: 2.8em;
    color: var(--page-slot-games-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--page-slot-games-text-secondary);
    text-align: center;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column; /* Image above, content below */
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Max height for the image to not be too tall */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content slightly up over the image, but not overlapping text on image */
    background: var(--page-slot-games-background); /* Ensure a solid background for text */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__main-title {
    font-weight: bold;
    color: var(--page-slot-games-gold); /* Use gold for main title for impact */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    /* No fixed font-size, relying on responsive scaling and line-height */
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--page-slot-games-text-main);
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure responsiveness */
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(var(--page-slot-games-glow), 0.4);
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--page-slot-games-primary);
    border: 2px solid var(--page-slot-games-primary);
}

.page-slot-games__btn-secondary:hover {
    background: var(--page-slot-games-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-slot-games__btn-link {
    background: none;
    color: var(--page-slot-games-primary);
    border: none;
    padding: 10px 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-slot-games__btn-link:hover {
    color: var(--page-slot-games-secondary);
}

/* Grid layout for benefits and game types */
.page-slot-games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Cards */
.page-slot-games__card {
    background: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-slot-games-text-main); /* Ensure text is light on dark card bg */
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--page-slot-games-glow);
}

.page-slot-games__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-slot-games__card-title {
    font-size: 1.6em;
    color: var(--page-slot-games-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: var(--page-slot-games-text-secondary);
    line-height: 1.7;
    flex-grow: 1; /* Make text block fill available space */
}

.page-slot-games__benefit-item .page-slot-games__card-text,
.page-slot-games__game-type-item .page-slot-games__card-text,
.page-slot-games__promotion-item .page-slot-games__card-text {
  text-align: left; /* Align text left within cards for better readability */
}

/* How to Play Section */
.page-slot-games__how-to-play .page-slot-games__section-title {
  margin-bottom: 60px;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.page-slot-games__step-item {
    background: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text left */
    position: relative;
    padding-left: 80px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 30px;
    background: var(--page-slot-games-primary);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-title {
    font-size: 1.8em;
    color: var(--page-slot-games-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__step-description {
    font-size: 1em;
    color: var(--page-slot-games-text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left; /* Align text left */
}

/* Promotions Section */
.page-slot-games__promotion-cards {
    margin-top: 40px;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming .page-slot-games__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-slot-games__responsible-gaming .page-slot-games__image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__responsible-gaming .page-slot-games__image {
    width: 100%;
    height: auto;
    display: block;
    min-height: 200px; /* Minimum image size */
}

.page-slot-games__responsible-gaming .page-slot-games__text-content {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-slot-games__responsible-gaming .page-slot-games__text-block {
    text-align: left;
    color: var(--page-slot-games-text-secondary);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
    background: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__faq-item summary {
    display: block; /* For details tag */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-slot-games-text-main);
    position: relative;
    list-style: none; /* Hide default marker */
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: var(--page-slot-games-text-main);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-slot-games-gold);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--page-slot-games-text-secondary);
    text-align: left;
}

.page-slot-games__faq-answer p {
    margin-bottom: 10px;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__faq-answer .page-slot-games__btn-link {
    margin-top: 10px;
    display: inline-block;
}

/* Final CTA Section */
.page-slot-games__final-cta {
    background-color: var(--page-slot-games-deep-green);
    padding: 80px 20px;
    text-align: center;
}

.page-slot-games__cta-box {
    background: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__final-cta .page-slot-games__section-title {
    color: var(--page-slot-games-gold);
    margin-bottom: 25px;
}

.page-slot-games__final-cta .page-slot-games__text-block {
    color: var(--page-slot-games-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__section-title {
        font-size: 2.2em;
    }

    .page-slot-games__main-title {
        font-size: 2.8em;
    }
}