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

.page-slot-games {
    background-color: var(--bl55-background); /* Body background from shared.css, this is for main content area */
    color: var(--bl55-text-main);
    font-family: Arial, sans-serif;
}

.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;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-top: -100px; /* Overlap with image slightly for visual appeal */
}

.page-slot-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--bl55-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: var(--bl55-button-gradient);
    color: #ffffff;
    border: 2px solid var(--bl55-primary-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    opacity: 0.9;
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--bl55-primary-color);
    border: 2px solid var(--bl55-primary-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background: var(--bl55-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__game-types-section,
.page-slot-games__popular-games-section,
.page-slot-games__promotions-section,
.page-slot-games__how-to-play-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-slot-games__dark-section {
    background-color: var(--bl55-deep-green);
}

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--bl55-text-main);
    text-align: center;
    margin-bottom: 40px;
    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: var(--bl55-gold);
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--bl55-text-secondary);
}

.page-slot-games__highlight {
    color: var(--bl55-gold);
    font-weight: 700;
}

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

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

.page-slot-games__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--bl55-glow);
}

.page-slot-games__feature-icon,
.page-slot-games__type-image,
.page-slot-games__game-thumbnail,
.page-slot-games__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--bl55-border);
}

.page-slot-games__feature-title,
.page-slot-games__type-title,
.page-slot-games__game-title,
.page-slot-games__promo-title,
.page-slot-games__step-title {
    font-size: 1.5rem;
    color: var(--bl55-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__feature-description,
.page-slot-games__type-description,
.page-slot-games__game-provider,
.page-slot-games__promo-description,
.page-slot-games__step-description {
    font-size: 1rem;
    color: var(--bl55-text-secondary);
    line-height: 1.6;
}

.page-slot-games__game-provider {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--bl55-secondary-color);
}

.page-slot-games__btn-play,
.page-slot-games__btn-detail,
.page-slot-games__btn-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-play,
.page-slot-games__btn-detail {
    background: var(--bl55-primary-color);
    color: #ffffff;
    border: 1px solid var(--bl55-primary-color);
}

.page-slot-games__btn-play:hover,
.page-slot-games__btn-detail:hover {
    background: var(--bl55-secondary-color);
    border-color: var(--bl55-secondary-color);
    transform: translateY(-2px);
}

.page-slot-games__btn-link {
    background: transparent;
    color: var(--bl55-gold);
    border: 1px solid var(--bl55-gold);
}

.page-slot-games__btn-link:hover {
    background: var(--bl55-gold);
    color: var(--bl55-card-bg);
}

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

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

.page-slot-games__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bl55-text-main);
    background-color: var(--bl55-deep-green);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary:hover {
    background-color: var(--bl55-primary-color);
}

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -50px;
    }
    .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.6rem, 3.5vw, 2.4rem);
    }
    .page-slot-games__text-block {
        font-size: 1rem;
    }
    .page-slot-games__feature-icon, .page-slot-games__type-image, .page-slot-games__game-thumbnail, .page-slot-games__promo-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }
    .page-slot-games__hero-content {
        margin-top: -30px;
        padding: 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-slot-games__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .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: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__introduction-section,
    .page-slot-games__game-types-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__promotions-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__responsible-gaming-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 50px 0;
    }
    .page-slot-games__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-slot-games__features-grid, .page-slot-games__type-cards, .page-slot-games__game-grid, .page-slot-games__promo-grid, .page-slot-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__card {
        padding: 20px;
    }
    .page-slot-games__feature-icon, .page-slot-games__type-image, .page-slot-games__game-thumbnail, .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure min size */
        object-fit: cover;
    }
    .page-slot-games__btn-play, .page-slot-games__btn-detail, .page-slot-games__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-slot-games__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

/* Ensure content area images are at least 200px */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-slot-games img {
    filter: none;
}

/* Color Contrast Fixes (if needed) */
.page-slot-games__card .page-slot-games__feature-description,
.page-slot-games__card .page-slot-games__type-description,
.page-slot-games__card .page-slot-games__game-provider,
.page-slot-games__card .page-slot-games__promo-description,
.page-slot-games__card .page-slot-games__step-description {
    color: var(--bl55-text-secondary); /* Ensure sufficient contrast on card background */
}

.page-slot-games__dark-section .page-slot-games__text-block {
    color: var(--bl55-text-secondary); /* Ensure sufficient contrast on dark background */
}