/* style/slot-games.css */

/* Variables for colors */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Royal Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
    --border-light: #e0e0e0;
}

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Minimum height for hero */
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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 {
    max-width: 900px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 10px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-slot-games__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Section Styling */
.page-slot-games__section {
    padding: 80px 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-slot-games__section:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.4); /* Alternate background for distinction */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-slot-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-slot-games__section-description {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px;
    font-size: 1.1em;
    color: var(--text-light);
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.page-slot-games__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

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

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

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

.page-slot-games__cta-group--center .page-slot-games__btn-primary,
.page-slot-games__cta-group--center .page-slot-games__btn-secondary {
    margin: 0 10px;
}

/* Content Layouts */
.page-slot-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-slot-games__text-block {
    flex: 1;
    font-size: 1.1em;
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-slot-games__image {
    flex: 1;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-slot-games__image--center {
    margin: 40px auto;
}

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

.page-slot-games__feature-item {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-10px);
}

.page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(1.2); /* Slightly brighten icons for visibility, NOT color change */
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__feature-item p {
    color: var(--text-light);
}

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

.page-slot-games__game-card {
    background-color: var(--bg-dark-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-10px);
}

.page-slot-games__game-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-slot-games__game-card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-slot-games__game-card p {
    padding: 0 15px 20px;
    color: var(--text-light);
}

.page-slot-games__game-card-button {
    margin-bottom: 20px;
}

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

.page-slot-games__step-item {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__step-item p {
    color: var(--text-light);
}

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

.page-slot-games__faq-item {
    background-color: var(--bg-dark-card);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__content-wrapper {
        flex-direction: column;
    }

    .page-slot-games__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-slot-games__text-block, .page-slot-games__image {
        flex: none;
        width: 100%;
    }
}

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

    .page-slot-games__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
    }

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

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

    .page-slot-games__cta-group--center .page-slot-games__btn-primary,
    .page-slot-games__cta-group--center .page-slot-games__btn-secondary {
        margin: 0;
    }

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

    .page-slot-games__section-title {
        font-size: 1.8em;
    }

    .page-slot-games__section-description {
        font-size: 0.95em;
    }

    /* Image Responsiveness for all images in content area */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__container,
    .page-slot-games__content-wrapper,
    .page-slot-games__features-grid,
    .page-slot-games__game-cards-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__feature-item,
    .page-slot-games__game-card,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        padding: 20px;
    }

    .page-slot-games__game-card-image {
        height: 200px; /* Adjust height for smaller screens */
    }
}

/* Ensure content area images are not too small */
.page-slot-games__image,
.page-slot-games__feature-icon,
.page-slot-games__game-card-image {
    min-width: 200px;
    min-height: 200px;
}
.page-slot-games__feature-icon {
    min-width: 80px;
    min-height: 80px;
}

/* Specific adjustment for feature icons to not force 200px */
.page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    min-width: 80px; /* Override min-width for small icons */
    min-height: 80px; /* Override min-height for small icons */
    object-fit: contain;
}