/* style/slot-games.css */

/* Variables */
:root {
    --primary-color: #11A84E; /* Main Green */
    --secondary-color: #22C768; /* Auxiliary Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B; /* Darker Green for cards */
    --page-bg: #08160F; /* Deepest Green for page background */
    --text-main: #F2FFF6; /* Off-white for main text */
    --text-secondary: #A7D9B8; /* Lighter green for secondary text */
    --border-color: #2E7A4E; /* Border green */
    --glow-color: #57E38D; /* Bright green for highlights */
    --gold-color: #F2C14E; /* Gold for titles/accents */
    --divider-color: #1E3A2A; /* Dark green for dividers */
    --deep-green-alt: #0A4B2C; /* Another deep green */
}

/* Base styles for the page content, ensuring contrast against dark body background */
.page-slot-games {
    background-color: var(--page-bg); /* Explicitly set page background to match dark theme */
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure all links within main content are visible */
.page-slot-games a {
    color: var(--glow-color); /* Use a vibrant color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Sections */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-slot-games__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-slot-games__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--gold-color); /* Gold color for main title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-slot-games__tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 300px; /* Limit button width for better wrapping */
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Glow color for secondary button text */
    border: 2px solid var(--glow-color);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--page-bg); /* Dark text on hover */
    border-color: var(--glow-color);
}

.page-slot-games__intro-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    background-color: var(--page-bg); /* Consistent dark background */
    padding: 60px 0;
}

.page-slot-games__types-section,
.page-slot-games__guide-section,
.page-slot-games__tips-section,
.page-slot-games__mobile-section {
    background-color: var(--card-bg); /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

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

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--glow-color); /* Vibrant color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-slot-games__text-block {
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Game Cards */
.page-slot-games__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__card {
    background-color: var(--page-bg); /* Dark background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider-color);
}

.page-slot-games__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    padding: 20px 20px 10px;
    margin: 0;
}

.page-slot-games__card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-slot-games__btn-text {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    transition: background-color 0.3s ease;
}

.page-slot-games__btn-text:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Guide Steps */
.page-slot-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: var(--page-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--divider-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--primary-color);
}

.page-slot-games__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-slot-games__step-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Tips Section */
.page-slot-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__tip-card {
    background-color: var(--page-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__tip-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__tip-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    padding: 20px 20px 10px;
    margin: 0;
}

.page-slot-games__tip-description {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
}

/* Promotions Section */
.page-slot-games__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--divider-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__promo-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-slot-games__promo-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.page-slot-games__text-highlight {
    font-size: 1.2rem;
    color: var(--glow-color);
    font-weight: 600;
    margin-top: 40px;
}

/* Mobile Section */
.page-slot-games__mobile-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-slot-games__mobile-content {
    flex: 1;
}

.page-slot-games__mobile-image-wrapper {
    flex: 1;
    text-align: center;
    min-width: 250px; /* Ensure image wrapper has a minimum width */
}

.page-slot-games__mobile-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__mobile-advantages {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.page-slot-games__mobile-advantages li {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.page-slot-games__icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    line-height: 1;
}

.page-slot-games__cta-mobile {
    justify-content: flex-start;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    overflow: hidden;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg); /* Slightly lighter dark background */
    border-bottom: 1px solid var(--divider-color);
    color: var(--text-main);
}

.page-slot-games__faq-item:last-child {
    border-bottom: none;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1); /* Slight hover effect */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 2rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--glow-color);
}

.page-slot-games__faq-answer {
    padding: 0 30px 20px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    /* For details tag, browser handles show/hide */
}

.page-slot-games__faq-answer p {
    margin: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games__mobile-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-slot-games__mobile-content,
    .page-slot-games__mobile-image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-slot-games__cta-mobile {
        justify-content: center;
    }
    .page-slot-games__mobile-advantages {
        text-align: left; /* Keep list items left-aligned */
        padding: 0 20px;
    }
    .page-slot-games__mobile-image {
        max-width: 80%; /* Adjust image size for better mobile display */
        margin: 30px auto 0;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-slot-games__main-title {
        font-size: 2.2rem;
    }
    .page-slot-games__tagline {
        font-size: 1rem;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-slot-games__section-title {
        font-size: 1.8rem;
    }
    .page-slot-games__text-block {
        font-size: 1rem;
    }

    .page-slot-games__game-cards,
    .page-slot-games__guide-steps,
    .page-slot-games__tips-grid,
    .page-slot-games__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card-image,
    .page-slot-games__tip-image {
        height: 180px;
    }

    .page-slot-games__card-title,
    .page-slot-games__tip-title,
    .page-slot-games__promo-title {
        font-size: 1.3rem;
    }

    .page-slot-games__step-item {
        padding: 25px;
    }
    .page-slot-games__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .page-slot-games__step-title {
        font-size: 1.2rem;
    }

    .page-slot-games__mobile-image {
        max-width: 90%;
    }

    .page-slot-games__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-slot-games__faq-toggle {
        font-size: 1.8rem;
    }
    .page-slot-games__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }

    /* Mobile image, video, and container responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__intro-section,
    .page-slot-games__types-section,
    .page-slot-games__guide-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__mobile-section,
    .page-slot-games__faq-section,
    .page-slot-games__card,
    .page-slot-games__step-item,
    .page-slot-games__tip-card,
    .page-slot-games__promo-card,
    .page-slot-games__cta-buttons,
    .page-slot-games__mobile-flex,
    .page-slot-games__mobile-content,
    .page-slot-games__mobile-image-wrapper,
    .page-slot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-slot-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__video-section {
        padding-top: 10px !important; /* body already handles header offset */
    }
}