/* style/slot-games.css */

/* Base Styles */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Matches body background from 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.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-slot-games__center-text {
    text-align: center;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #017439, #004d29); /* Brand colors */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-slot-games__hero-section .page-slot-games__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-slot-games__main-title {
    font-size: 3.5em;
    color: #FFFF00; /* Register/Login font color for main title */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.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: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

/* Introduction Section */
.page-slot-games__introduction-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-slot-games__introduction-section .page-slot-games__section-title,
.page-slot-games__introduction-section .page-slot-games__paragraph {
    color: #333333;
}

.page-slot-games__grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__feature-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__card-description {
    font-size: 1em;
    color: #555555;
}

/* How-to-Play Section */
.page-slot-games__how-to-play-section {
    background-color: #017439; /* Brand color dark background */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.page-slot-games__how-to-play-section .page-slot-games__section-title {
    color: #FFFF00; /* Highlight title with yellow */
}

.page-slot-games__how-to-play-section .page-slot-games__paragraph {
    color: #f0f0f0;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00;
    padding: 20px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-slot-games__list-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Video Section */
.page-slot-games__video-section {
    text-align: center;
    margin-top: 60px;
}

.page-slot-games__video-title {
    font-size: 2em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Max width for video */
    margin: 0 auto 20px auto;
    background-color: #000; /* Black background for video area */
    border-radius: 10px;
}

.page-slot-games__video-wrapper .page-slot-games__video-link {
    display: block; /* Make the whole area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    max-width: 100%; /* Ensure video does not overflow */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below video */
}

.page-slot-games__video-description {
    color: #f0f0f0;
    font-style: italic;
    font-size: 0.95em;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

.page-slot-games__promotions-section .page-slot-games__section-title,
.page-slot-games__promotions-section .page-slot-games__paragraph {
    color: #333333;
}

.page-slot-games__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__promo-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__promo-card .page-slot-games__card-title {
    color: #017439;
    margin-top: 0;
}

.page-slot-games__promo-card .page-slot-games__card-description {
    color: #555555;
    flex-grow: 1;
}

/* Security Section */
.page-slot-games__security-section {
    background-color: #017439; /* Brand color dark background */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.page-slot-games__security-section .page-slot-games__section-title {
    color: #FFFF00; /* Highlight title with yellow */
}

.page-slot-games__security-section .page-slot-games__paragraph {
    color: #f0f0f0;
}

.page-slot-games__security-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.page-slot-games__security-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 15px;
    object-fit: contain;
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
}

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

.page-slot-games__item-description {
    color: #ffffff;
    font-size: 0.95em;
}

/* Mobile App Section */
.page-slot-games__mobile-app-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

.page-slot-games__mobile-app-section .page-slot-games__section-title,
.page-slot-games__mobile-app-section .page-slot-games__paragraph {
    color: #333333;
}

.page-slot-games__grid-2-cols-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-slot-games__image-content {
    text-align: center;
}

.page-slot-games__mobile-app-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-slot-games__text-content .page-slot-games__cta-buttons {
    justify-content: flex-start;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.page-slot-games__faq-section .page-slot-games__section-title {
    color: #FFFF00;
}

.page-slot-games__faq-section .page-slot-games__paragraph {
    color: #f0f0f0;
}

.page-slot-games__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
}

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

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1em;
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes a cross */
}

/* Contact CTA Section */
.page-slot-games__contact-cta-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

.page-slot-games__contact-cta-section .page-slot-games__section-title,
.page-slot-games__contact-cta-section .page-slot-games__paragraph {
    color: #333333;
}

.page-slot-games__contact-cta-section .page-slot-games__cta-buttons {
    margin-top: 30px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 2.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__grid-2-cols,
    .page-slot-games__grid-3-cols,
    .page-slot-games__grid-2-cols-reverse {
        grid-template-columns: 1fr;
    }
    .page-slot-games__text-content .page-slot-games__cta-buttons {
        justify-content: center;
    }
}

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

    .page-slot-games__hero-section {
        padding-bottom: 60px;
    }

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        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__container {
        padding: 0 15px;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

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

    .page-slot-games__feature-card,
    .page-slot-games__promo-card,
    .page-slot-games__security-item {
        padding: 20px;
    }

    /* Images responsiveness */
    .page-slot-games img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Video responsiveness */
    .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;
    }
    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct offset */
    }

    /* Ensure all content containers are responsive */
    .page-slot-games__hero-section,
    .page-slot-games__introduction-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__security-section,
    .page-slot-games__mobile-app-section,
    .page-slot-games__faq-section,
    .page-slot-games__contact-cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }
    
    .page-slot-games__text-content {
        order: 1; /* For reverse grid, text first on mobile */
    }
    .page-slot-games__image-content {
        order: 2;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1em;
    }
    .page-slot-games__faq-toggle {
        font-size: 1.5em;
    }
}