/* style/slot-games.css */

/* Custom Colors */
:root {
    --page-bg: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --btn-gradient-start: #2AD16F; /* Button */
    --btn-gradient-end: #13994A; /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
}

.page-slot-games {
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.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;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    background-color: var(--deep-green); /* Fallback background */
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-slot-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure text is above any potential background layering */
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size constraint */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-slot-games__description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Limit max width for desktop */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

.page-slot-games__btn-tertiary {
    background: var(--deep-green);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    padding: 10px 20px;
}

.page-slot-games__btn-tertiary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-slot-games__section:last-of-type {
    border-bottom: none;
}

.page-slot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    border-radius: 2px;
}

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

.page-slot-games__text-block a {
    color: var(--btn-gradient-start);
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__text-block a:hover {
    text-decoration: underline;
}

.page-slot-games__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    /* No filter allowed */
}

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

.page-slot-games__card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main); /* Card text main */
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    /* No filter allowed */
}

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

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

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list,
.page-slot-games__benefits-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li,
.page-slot-games__benefits-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-slot-games__ordered-list li strong,
.page-slot-games__unordered-list li strong,
.page-slot-games__benefits-list li strong {
    color: var(--text-main);
}

.page-slot-games__ordered-list li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    color: var(--btn-gradient-start);
    font-weight: bold;
}

.page-slot-games__unordered-list li::before,
.page-slot-games__benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--btn-gradient-start);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    top: 0;
}

/* FAQ Section */
.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: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-item summary {
    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;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: var(--border-color);
}

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

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

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-slot-games__description {
        font-size: 1.1rem;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-slot-games__hero-content {
        padding: 30px 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Mobile H1 constraint */
    }
    .page-slot-games__description {
        font-size: 1rem;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-slot-games__section {
        padding: 40px 0;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 1rem;
    }
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__card {
        padding: 20px;
    }
    .page-slot-games__card-image {
        height: 180px;
    }
    .page-slot-games__card-title {
        font-size: 1.3rem;
    }
    .page-slot-games__card-text {
        font-size: 0.95rem;
    }
    .page-slot-games__ordered-list li,
    .page-slot-games__unordered-list li,
    .page-slot-games__benefits-list li {
        font-size: 1rem;
        padding-left: 25px;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-slot-games__faq-toggle {
        font-size: 1.5rem;
    }
    .page-slot-games__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Mobile image and video responsive adaptation */
    .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__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper,
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-slot-games__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-slot-games__cta-buttons {
        flex-direction: column !important; /* Ensure buttons stack vertically */
        gap: 10px !important;
    }
}