/* 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: 20px;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.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.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.3; /* Subtle background image */
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-slot-games__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-slot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-slot-games__btn-link {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-slot-games__btn-link:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Section Styles */
.page-slot-games__intro-section,
.page-slot-games__promotions-section,
.page-slot-games__how-to-play-section {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 20px;
}

.page-slot-games__games-section,
.page-slot-games__why-choose-us-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 20px;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-slot-games__subsection-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.page-slot-games__dark-bg .page-slot-games__subsection-title {
    color: #ffffff;
}

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

.page-slot-games__text-link {
    color: #017439; /* Brand color for text links */
    text-decoration: underline;
}

.page-slot-games__dark-bg .page-slot-games__text-link {
    color: #FFFF00; /* Yellow for links on dark background */
}

.page-slot-games__text-link:hover {
    text-decoration: none;
}

.page-slot-games__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__game-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block; /* Ensure it behaves like a block element */
}

.page-slot-games__card-title {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for card titles on dark background */
    margin-bottom: 10px;
}

.page-slot-games__card-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Promotions List */
.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__promo-item {
    background-color: #ffffff; /* White background for promo items */
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__promo-title {
    font-size: 1.5em;
    color: #017439; /* Primary brand color */
    margin-bottom: 10px;
}

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

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

/* Why Choose Us Section */
.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-slot-games__feature-icon {
    width: 100px; /* Example size for feature icons */
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 1.3em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-slot-games__feature-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* How To Play Section */
.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-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439; /* Primary brand color */
    margin-bottom: 15px;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 10px;
}

.page-slot-games__step-text {
    font-size: 0.95em;
    margin-bottom: 20px;
}

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for answer */
    color: #f0f0f0;
}

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

.page-slot-games__faq-text {
    margin: 0;
    padding-bottom: 10px;
}

/* Call to Action Section */
.page-slot-games__cta-content {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
    }

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-slot-games__subsection-title {
        font-size: 1.5em;
    }

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

    .page-slot-games__container,
    .page-slot-games__game-grid,
    .page-slot-games__features-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__image-content,
    .page-slot-games__card-image,
    .page-slot-games__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure images scale */
        min-width: 200px !important; /* Enforce minimum size for content images */
        min-height: 200px !important;
    }

    .page-slot-games__game-card,
    .page-slot-games__feature-card,
    .page-slot-games__step-card,
    .page-slot-games__promo-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Video responsiveness - if any */
    .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;
    }
}

/* Ensure no image filters */
.page-slot-games img {
    filter: none;
}