/* style/jackpot-games.css */

/* --- General Styles for Page Jackpot Games --- */
.page-jackpot-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 */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-jackpot-games__section-title {
    font-size: 2.8em;
    color: #ffffff; /* White for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-jackpot-games__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for subtitles in light sections */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-jackpot-games__list-title {
    font-size: 1.3em;
    color: #017439; /* Brand color for list titles in light sections */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-jackpot-games p {
    margin-bottom: 15px;
    color: inherit; /* Inherit from parent for contrast */
}

/* --- Color Contrast Handling --- */
.page-jackpot-games__dark-bg {
    background-color: #017439; /* Main brand color for dark sections */
    color: #ffffff; /* Light text for dark background */
}

.page-jackpot-games__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
}

/* Ensure specific elements in light sections have dark text */
.page-jackpot-games__light-bg .page-jackpot-games__section-title,
.page-jackpot-games__light-bg .page-jackpot-games__section-description,
.page-jackpot-games__light-bg .page-jackpot-games__text-block p,
.page-jackpot-games__light-bg .page-jackpot-games__step-list li p,
.page-jackpot-games__light-bg .page-jackpot-games__feature-list li p {
    color: #333333;
}

.page-jackpot-games__light-bg .page-jackpot-games__sub-title,
.page-jackpot-games__light-bg .page-jackpot-games__list-title {
    color: #017439; /* Brand color for headings in light sections */
}

/* --- Hero Section --- */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding: 80px 20px; /* Adjust padding for content */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    background-color: #0a0a0a; /* Fallback/additional dark background */
}

.page-jackpot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly transparent to let content stand out */
}

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

.page-jackpot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

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

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

/* --- Buttons --- */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-card {
    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;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

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

.page-jackpot-games__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-jackpot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.page-jackpot-games__btn-card {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

.page-jackpot-games__btn-card:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

/* --- Grid Layout for content blocks --- */
.page-jackpot-games__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-jackpot-games__grid-layout--reverse {
    grid-template-areas: "image text";
}

.page-jackpot-games__grid-layout--reverse .page-jackpot-games__image-block {
    grid-area: image;
}

.page-jackpot-games__grid-layout--reverse .page-jackpot-games__text-block {
    grid-area: text;
}


.page-jackpot-games__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
}

/* --- Intro Section --- */
.page-jackpot-games__intro-section {
    padding: 60px 0;
}

.page-jackpot-games__intro-section .page-jackpot-games__section-title {
    color: #017439; /* Brand color for title in light section */
}

.page-jackpot-games__intro-section .page-jackpot-games__section-description {
    color: #333333;
}

.page-jackpot-games__intro-section .page-jackpot-games__text-block a {
    color: #017439; /* Link color in light section */
    text-decoration: underline;
}

/* --- Games Section --- */
.page-jackpot-games__games-section {
    padding: 60px 0;
}

.page-jackpot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-jackpot-games__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
    color: #ffffff; /* Light text for dark background card */
}

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

.page-jackpot-games__game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size for card images */
    min-height: 200px; /* Enforce minimum size for card images */
}

.page-jackpot-games__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-jackpot-games__card-text {
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1; /* Allow text to grow and push button down */
    color: #f0f0f0;
}

/* --- Guide Section --- */
.page-jackpot-games__guide-section {
    padding: 60px 0;
}

.page-jackpot-games__step-list {
    list-style: none;
    padding: 0;
}

.page-jackpot-games__step-list li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333333;
}

.page-jackpot-games__step-list li a {
    color: #017439; /* Link color in light section */
    text-decoration: underline;
}

.page-jackpot-games__guide-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Promotions Section --- */
.page-jackpot-games__promotions-section {
    padding: 60px 0;
}

.page-jackpot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-jackpot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    color: #ffffff; /* Light text for dark background card */
}

.page-jackpot-games__promo-card:hover {
    transform: translateY(-5px);
}

.page-jackpot-games__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size for card images */
    min-height: 200px; /* Enforce minimum size for card images */
}

/* --- Features Section --- */
.page-jackpot-games__features-section {
    padding: 60px 0;
}

.page-jackpot-games__feature-list {
    list-style: none;
    padding: 0;
}

.page-jackpot-games__feature-list li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333333;
}

.page-jackpot-games__feature-list li a {
    color: #017439; /* Link color in light section */
    text-decoration: underline;
}

.page-jackpot-games__features-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- FAQ Section --- */
.page-jackpot-games__faq-section {
    padding: 60px 0;
}

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

.page-jackpot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}