/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #ffffff; /* Default page background */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

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

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

/* General section styling */
.page-slot-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-slot-games__section-title--white {
    color: #ffffff;
}

.page-slot-games__section-title--white::after {
    background-color: #ffffff;
}

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

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

.page-slot-games__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-slot-games__text-block--white {
    color: #ffffff;
}

/* 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.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
    background-color: #005a2d; /* Slightly darker green */
    border-color: #005a2d;
}

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

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

/* Specific button colors for Login/Register */
.page-slot-games__btn-register,
.page-slot-games__btn-login {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow font for register/login */
    border-color: #C30808;
}

.page-slot-games__btn-register:hover,
.page-slot-games__btn-login:hover {
    background-color: #a10606; /* Darker red on hover */
    border-color: #a10606;
}

.page-slot-games__link-inline {
    color: #FFFF00; /* Custom yellow for inline links in dark sections */
    text-decoration: underline;
}

.page-slot-games__link-inline:hover {
    color: #f0f0f0;
}

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

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

.page-slot-games__feature-card,
.page-slot-games__game-card,
.page-slot-games__promotion-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-card:hover,
.page-slot-games__promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promotion-image {
    width: 100%; /* Ensure images fill card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promotion-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__game-title a,
.page-slot-games__promotion-title a {
    color: #017439;
    text-decoration: none;
}

.page-slot-games__game-title a:hover,
.page-slot-games__promotion-title a:hover {
    text-decoration: underline;
}

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__promotion-description {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* Guide & Tips Sections */
.page-slot-games__guide-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__guide-list li,
.page-slot-games__tips-list li {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for dark section list items */
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__guide-list--white li,
.page-slot-games__tips-list--white li {
    background-color: rgba(255, 255, 255, 0.1); /* Consistent light background for dark section */
}

.page-slot-games__list-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for titles in dark section */
    margin-bottom: 10px;
}

.page-slot-games__guide-list p,
.page-slot-games__tips-list p {
    color: #f0f0f0; /* Light grey for text in dark section */
    text-align: justify;
}

/* Video Section */
.page-slot-games__video-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    background-color: #017439; /* Dark background for video section */
    color: #ffffff;
    text-align: center;
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for the video player */
    margin: 30px auto 0;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-slot-games__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make it clickable over the video */
    cursor: pointer;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for dark section list items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-slot-games__faq-title {
    font-size: 1.2em;
    margin: 0;
    flex-grow: 1;
    color: #ffffff; /* White text for question title */
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Yellow toggle icon */
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 30px 30px;
}

.page-slot-games__faq-answer p {
    color: #f0f0f0; /* Light grey text for answers */
}

/* Call to Action Section */
.page-slot-games__cta-section {
    text-align: center;
    padding: 80px 20px;
}

.page-slot-games__cta-container {
    max-width: 800px;
}

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

/* Global image styles for content area - must be >= 200px */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Default responsive */
    height: auto;
    display: block;
}

/* Responsive styles */
@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 {
        height: auto; /* Adjust height for mobile */
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__container {
        padding: 40px 15px;
    }

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

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

    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__promotion-card {
        padding: 20px;
    }
}