/* style/slot-games.css */

/* Custom properties for colors */
:root {
    --page-slot-games-bg-color: #08160F; /* Background */
    --page-slot-games-card-bg: #11271B; /* Card BG */
    --page-slot-games-text-main: #F2FFF6; /* Text Main */
    --page-slot-games-text-secondary: #A7D9B8; /* Text Secondary */
    --page-slot-games-border-color: #2E7A4E; /* Border */
    --page-slot-games-glow-color: #57E38D; /* Glow */
    --page-slot-games-gold-color: #F2C14E; /* Gold */
    --page-slot-games-divider-color: #1E3A2A; /* Divider */
    --page-slot-games-deep-green: #0A4B2C; /* Deep Green */
    --page-slot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --page-slot-games-primary-color: #11A84E; /* Main brand color */
    --page-slot-games-secondary-color: #22C768; /* Auxiliary brand color */
}

/* Base styles for the page content */
.page-slot-games {
    background-color: var(--page-slot-games-bg-color); /* Dark background */
    color: var(--page-slot-games-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Sections */
.page-slot-games__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-slot-games__dark-section {
    background-color: var(--page-slot-games-card-bg); /* Slightly lighter dark background for contrast */
    color: var(--page-slot-games-text-main); /* Ensure light text on dark section */
}

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

/* Titles */
.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: bold;
    color: var(--page-slot-games-glow-color); /* Bright green for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--page-slot-games-text-main);
    margin-bottom: 40px;
    font-weight: bold;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: var(--page-slot-games-glow-color);
    margin-bottom: 15px;
}

/* Text blocks */
.page-slot-games__description,
.page-slot-games__text-block,
.page-slot-games__card-text,
.page-slot-games p,
.page-slot-games li {
    color: var(--page-slot-games-text-secondary); /* Secondary text color for paragraphs */
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-slot-games__text-block strong {
    color: var(--page-slot-games-text-main);
}

/* Images */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter changes original image color */
}

.page-slot-games__hero-image {
    width: 100%;
    border-radius: 0; /* Hero image usually full width, no border radius */
    margin-bottom: 0;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-btn-gradient);
    color: var(--page-slot-games-text-main); /* White text on green gradient */
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--page-slot-games-glow-color); /* Bright green text */
    border: 2px solid var(--page-slot-games-glow-color);
    margin-left: 20px;
}

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

.page-slot-games__centered-btn {
    margin-top: 30px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 0; /* Remove padding from section, content will add it */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-slot-games-bg-color);
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (1080 / 1920 = 0.5625) */
    overflow: hidden;
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px 60px 20px; /* Padding for text content */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.page-slot-games__feature-card,
.page-slot-games__game-type-card,
.page-slot-games__promotion-card {
    background-color: var(--page-slot-games-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-slot-games-border-color);
}

.page-slot-games__feature-card .page-slot-games__card-title,
.page-slot-games__promotion-card .page-slot-games__card-title {
    color: var(--page-slot-games-glow-color);
}

.page-slot-games__game-type-card .page-slot-games__card-image {
    margin-bottom: 20px;
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
}

/* Lists */
.page-slot-games__numbered-list,
.page-slot-games__bullet-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding-left: 20px;
    color: var(--page-slot-games-text-secondary);
    font-size: 1.1em;
}

.page-slot-games__numbered-list li,
.page-slot-games__bullet-list li {
    margin-bottom: 10px;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__numbered-list li strong {
    color: var(--page-slot-games-text-main);
}

/* Mobile CTA */
.page-slot-games__mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-slot-games__mobile-cta .page-slot-games__image-content {
    max-width: 400px;
    margin-bottom: 0;
}

/* FAQ */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    margin-top: 40px;
}

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

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    color: var(--page-slot-games-text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

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

.page-slot-games__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    color: var(--page-slot-games-glow-color);
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        padding: 30px 20px 40px 20px;
    }

    .page-slot-games__section {
        padding: 40px 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-slot-games__section-title {
        font-size: clamp(1.5em, 4vw, 2.5em);
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-slot-games__cta-buttons {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-slot-games__section {
        padding: 30px 15px;
    }

    .page-slot-games__hero-content {
        padding: 25px 15px 30px 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-slot-games__section-title {
        font-size: clamp(1.4em, 5vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-slot-games__description,
    .page-slot-games__text-block,
    .page-slot-games__card-text,
    .page-slot-games p,
    .page-slot-games li {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important; /* Remove margin-left for secondary button */
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__feature-grid,
    .page-slot-games__game-type-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__feature-card,
    .page-slot-games__game-type-card,
    .page-slot-games__promotion-card {
        padding: 20px;
        text-align: center;
    }
    
    .page-slot-games__game-type-card .page-slot-games__card-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-slot-games__mobile-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__mobile-cta .page-slot-games__image-content {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .page-slot-games__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }

    .page-slot-games__faq-answer {
        padding: 0 15px 15px 15px;
    }
    
    /* Ensure all images are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all video containers are responsive */
    .page-slot-games video,
    .page-slot-games__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    /* Content containers */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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