/* style/slot-games.css */

/* Custom color variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--card-bg); /* Dark background for hero */
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust as needed for hero image container */
    margin-bottom: 30px; /* Space between image and text */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter changes image color */
}

.page-slot-games__hero-content {
    width: 100%;
    max-width: 900px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-slot-games__section {
    padding: 80px 0;
    background-color: var(--background); /* Default section background */
}

.page-slot-games__heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-slot-games__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__text-center {
    text-align: center;
}

.page-slot-games__highlight {
    color: var(--gold); /* Highlight important keywords */
    font-weight: bold;
}

.page-slot-games__link {
    color: var(--glow); /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-slot-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no filter changes image color */
}

/* Card Grid Styles */
.page-slot-games__card-grid,
.page-slot-games__feature-grid,
.page-slot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-slot-games__card,
.page-slot-games__feature-item,
.page-slot-games__promo-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--divider);
    color: var(--text-secondary); /* Ensure text color on card background */
}

.page-slot-games__card-title,
.page-slot-games__feature-title,
.page-slot-games__promo-title {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__card-text,
.page-slot-games__feature-text,
.page-slot-games__promo-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* List Styles */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
    list-style-position: inside;
    margin: 20px 0;
    padding-left: 0;
}

.page-slot-games__ordered-list {
    list-style-type: decimal;
}

.page-slot-games__unordered-list {
    list-style-type: disc;
}

.page-slot-games__list-item {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 10px; /* Space for list marker */
}

/* FAQ Section */
.page-slot-games__faq {
    background-color: var(--deep-green); /* Darker background for contrast */
}

.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(var(--primary-color-rgb, 17, 168, 78), 0.1); /* Lighter hover */
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: "−";
}

.page-slot-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-slot-games__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-slot-games__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__section {
        padding: 50px 0;
    }

    .page-slot-games__heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-slot-games__text-block,
    .page-slot-games__list-item,
    .page-slot-games__card-text,
    .page-slot-games__feature-text,
    .page-slot-games__promo-text,
    .page-slot-games__faq-answer {
        font-size: 0.95rem;
    }

    .page-slot-games img,
    .page-slot-games__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 30px auto;
        box-sizing: border-box !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
        filter: none !important; /* Ensure no filter changes image color */
    }

    .page-slot-games__card-grid,
    .page-slot-games__feature-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-slot-games__card,
    .page-slot-games__feature-item,
    .page-slot-games__promo-card {
        padding: 20px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .page-slot-games__faq-question {
        padding: 15px;
        font-size: 1.1rem;
    }

    .page-slot-games__faq-answer {
        padding: 0 15px 15px;
    }

    /* Container specific overrides for mobile to prevent overflow */
    .page-slot-games__introduction .page-slot-games__container,
    .page-slot-games__types .page-slot-games__container,
    .page-slot-games__how-to-play .page-slot-games__container,
    .page-slot-games__features .page-slot-games__container,
    .page-slot-games__promotions .page-slot-games__container,
    .page-slot-games__tips .page-slot-games__container,
    .page-slot-games__faq .page-slot-games__container,
    .page-slot-games__cta-final .page-slot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}