/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-slot-games__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__paragraph {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-slot-games__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Color contrast enforcement */
.page-slot-games__dark-bg {
    background-color: #0a0a0a; /* Or a slightly lighter dark shade for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-slot-games__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: #000000; /* Dark title on light background */
}

.page-slot-games__light-bg .page-slot-games__highlight {
    color: #26A9E0;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent; /* Ensure consistent border */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-slot-games__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-slot-games__btn-primary:hover {
    background-color: #1a8cc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-slot-games__btn-secondary:hover {
    background-color: #e0f2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0a0a0a; /* Dark background for hero */
    color: #ffffff;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #26A9E0; /* Brand color for hero title */
}

.page-slot-games__hero-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle background */
}

/* Introduction Section */
.page-slot-games__introduction-section {
    background-color: #ffffff;
    color: #333333;
}

/* Features Section */
.page-slot-games__features-grid,
.page-slot-games__game-types-grid,
.page-slot-games__guide-steps,
.page-slot-games__promotions-grid,
.page-slot-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__feature-card,
.page-slot-games__type-card,
.page-slot-games__step-card,
.page-slot-games__promo-card,
.page-slot-games__tip-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__feature-card,
.page-slot-games__light-bg .page-slot-games__type-card,
.page-slot-games__light-bg .page-slot-games__step-card,
.page-slot-games__light-bg .page-slot-games__promo-card,
.page-slot-games__light-bg .page-slot-games__tip-card {
    background-color: #f8f8f8; /* Light background for cards on light sections */
    color: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__feature-image,
.page-slot-games__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-slot-games__card-title {
    font-size: 1.8rem;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-slot-games__light-bg .page-slot-games__card-title {
    color: #000000;
}

.page-slot-games__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

/* Guide Section specific styles */
.page-slot-games__step-card .page-slot-games__btn-primary {
    margin-top: auto; /* Push button to bottom */
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    color: #333333;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #eef;
}

.page-slot-games__faq-title {
    margin: 0;
    font-size: 1.2rem;
    color: #000000;
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f8f8;
    color: #555555;
}

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

.page-slot-games__faq-answer .page-slot-games__paragraph {
    margin-bottom: 0; /* Remove bottom margin for paragraphs inside FAQ answer */
}

/* Global image styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no filter is applied to images */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3rem;
    }
    .page-slot-games__section-title {
        font-size: 2rem;
    }
    .page-slot-games__card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-slot-games__hero-title {
        font-size: 2.2rem;
    }
    .page-slot-games__hero-description {
        font-size: 1.1rem;
    }
    .page-slot-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}