/* style/slot-games.css */
.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: 20px;
}

.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #121212; /* Fallback background for video */
}

.page-slot-games__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-slot-games__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    cursor: pointer; /* Indicate clickability */
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

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

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

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

.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

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

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff; /* Default for dark sections */
}

.page-slot-games__section-title--dark {
    color: #333333; /* For light sections */
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0;
}

.page-slot-games__introduction-section {
    padding: 80px 0;
    background-color: #121212; /* Body background color */
    color: #ffffff;
}

.page-slot-games__dark-bg {
    background-color: #121212;
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__card-description,
.page-slot-games__light-bg .page-slot-games__card-list li,
.page-slot-games__light-bg .page-slot-games__step-item p {
    color: #333333;
}

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

.page-slot-games__why-choose-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section {
    padding: 80px 0;
}

.page-slot-games__feature-grid,
.page-slot-games__types-grid,
.page-slot-games__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__card {
    background-color: rgba(255, 255, 255, 0.1); /* For dark sections */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-slot-games__light-bg .page-slot-games__card {
    background-color: #f8f8f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0;
    flex-grow: 1;
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-slot-games__light-bg .page-slot-games__card-description {
    color: #333333;
}

.page-slot-games__card-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.page-slot-games__card-list li {
    font-size: 0.95em;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-slot-games__light-bg .page-slot-games__card-list li {
    color: #333333;
}

.page-slot-games__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #26A9E0;
    transition: background-color 0.3s ease;
}

.page-slot-games__light-bg .page-slot-games__step-item {
    background-color: #f0f0f0;
}

.page-slot-games__step-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__light-bg .page-slot-games__step-item:hover {
    background-color: #e8e8e8;
}

.page-slot-games__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-slot-games__step-item p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-slot-games__light-bg .page-slot-games__step-item p {
    color: #333333;
}

.page-slot-games__strategy-section,
.page-slot-games__conclusion-section {
    padding: 80px 0;
}

.page-slot-games__faq-list {
    margin-top: 30px;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__light-bg .page-slot-games__faq-item {
    background-color: #f0f0f0;
}

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

.page-slot-games__light-bg .page-slot-games__faq-question {
    color: #333333;
}

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

.page-slot-games__light-bg .page-slot-games__faq-question:hover {
    background-color: #e8e8e8;
}

.page-slot-games__faq-title {
    margin: 0;
    color: inherit;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-slot-games__light-bg .page-slot-games__faq-answer {
    color: #333333;
}

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

.page-slot-games__faq-answer p {
    margin: 0;
    font-size: 1em;
}

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

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

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__container {
        padding: 15px;
    }
    .page-slot-games__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied */
    }
    .page-slot-games__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 0.95em;
    }
    .page-slot-games__feature-grid,
    .page-slot-games__types-grid,
    .page-slot-games__strategy-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__card {
        padding: 20px;
    }
    .page-slot-games__card-image {
        height: 200px;
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__card-description {
        font-size: 0.9em;
    }
    .page-slot-games__card-list li {
        font-size: 0.9em;
    }
    .page-slot-games__step-title {
        font-size: 1.3em;
    }
    .page-slot-games__step-item p {
        font-size: 0.9em;
    }
    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px 20px;
    }
    
    /* Image responsiveness */
    .page-slot-games img {
        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__hero-video-wrapper,
    .page-slot-games__hero-content,
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }
    /* Video responsiveness */
    .page-slot-games video,
    .page-slot-games__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 2em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}