/* style/jackpot-games.css */

/* Custom Properties for Colors */
:root {
    --page-jackpot-games-bg: #08160F; /* Background */
    --page-jackpot-games-card-bg: #11271B; /* Card BG */
    --page-jackpot-games-text-main: #F2FFF6; /* Text Main */
    --page-jackpot-games-text-secondary: #A7D9B8; /* Text Secondary */
    --page-jackpot-games-border: #2E7A4E; /* Border */
    --page-jackpot-games-glow: #57E38D; /* Glow */
    --page-jackpot-games-gold: #F2C14E; /* Gold */
    --page-jackpot-games-divider: #1E3A2A; /* Divider */
    --page-jackpot-games-deep-green: #0A4B2C; /* Deep Green */
    --page-jackpot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

/* Base styles for the page content */
.page-jackpot-games {
    background-color: var(--page-jackpot-games-bg);
    color: var(--page-jackpot-games-text-main);
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-top: 0; /* body padding-top is handled by shared.css */
}

/* Section styling */
.page-jackpot-games__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-jackpot-games__section-title {
    font-size: 2.5rem;
    color: var(--page-jackpot-games-gold);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-jackpot-games__paragraph {
    font-size: 1.1rem;
    color: var(--page-jackpot-games-text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding for content */
    background-color: var(--page-jackpot-games-bg);
}

.page-jackpot-games__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-jackpot-games__hero-content {
    position: relative; /* Ensure content is above any potential background */
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-jackpot-games__main-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--page-jackpot-games-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-jackpot-games__hero-description {
    font-size: 1.25rem;
    color: var(--page-jackpot-games-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-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;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
    background: var(--page-jackpot-games-btn-gradient);
    color: var(--page-jackpot-games-text-main); /* White text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: var(--page-jackpot-games-gold);
    border: 2px solid var(--page-jackpot-games-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__btn-secondary:hover {
    background-color: var(--page-jackpot-games-gold);
    color: var(--page-jackpot-games-bg); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Card Styling */
.page-jackpot-games__card {
    background-color: var(--page-jackpot-games-card-bg);
    border: 1px solid var(--page-jackpot-games-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
}

.page-jackpot-games__card-title {
    font-size: 1.5rem;
    color: var(--page-jackpot-games-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-jackpot-games__card-text {
    font-size: 1rem;
    color: var(--page-jackpot-games-text-secondary);
    flex-grow: 1; /* Allows text to take up available space */
}

.page-jackpot-games__card-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Min size for content images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

/* Text links */
.page-jackpot-games__text-link {
    color: var(--page-jackpot-games-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-jackpot-games__text-link:hover {
    color: var(--page-jackpot-games-glow);
}

/* Grid layouts */
.page-jackpot-games__features-grid,
.page-jackpot-games__advantages-grid,
.page-jackpot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* CTA Bottom */
.page-jackpot-games__cta-bottom,
.page-jackpot-games__cta-final {
    margin-top: 60px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-jackpot-games__faq-section {
    background-color: var(--page-jackpot-games-deep-green); /* Slightly different background for contrast */
    padding: 80px 0;
}

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

.page-jackpot-games__faq-item {
    background-color: var(--page-jackpot-games-card-bg);
    border: 1px solid var(--page-jackpot-games-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-jackpot-games-text-main);
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-jackpot-games__faq-question:hover {
    background-color: rgba(var(--page-jackpot-games-glow), 0.1); /* Use rgba for hover effect */
}

/* Hide default details marker */
.page-jackpot-games__faq-item summary {
    list-style: none;
}
.page-jackpot-games__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--page-jackpot-games-gold);
    margin-left: 15px;
}

/* Styling for open/closed state of details */
.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-question {
    background-color: var(--page-jackpot-games-deep-green);
    border-bottom: 1px solid var(--page-jackpot-games-divider);
}

.page-jackpot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-jackpot-games-text-secondary);
}

/* Conclusion Section */
.page-jackpot-games__conclusion {
    padding-bottom: 80px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-jackpot-games__section-title {
        font-size: 2rem;
    }
    .page-jackpot-games__main-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }
    .page-jackpot-games__hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__section {
        padding: 40px 0;
    }
    .page-jackpot-games__container {
        padding: 0 15px; /* Add padding for mobile content */
    }
    .page-jackpot-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .page-jackpot-games__paragraph {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-jackpot-games__main-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }
    .page-jackpot-games__hero-description {
        font-size: 1rem;
    }
    .page-jackpot-games__hero-cta,
    .page-jackpot-games__cta-bottom,
    .page-jackpot-games__cta-final {
        flex-direction: column;
        gap: 15px;
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure full width on mobile */
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-games__card-image {
        min-height: 150px; /* Adjust min height for mobile cards */
    }

    /* Card/Container responsiveness */
    .page-jackpot-games__card,
    .page-jackpot-games__section,
    .page-jackpot-games__container,
    .page-jackpot-games__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-jackpot-games__container for inner content */
    }
    .page-jackpot-games__hero-section {
        padding-top: 10px !important; /* Small top padding for hero on mobile */
        padding-bottom: 40px !important;
    }

    /* FAQ responsiveness */
    .page-jackpot-games__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-jackpot-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }
}