/* style/jackpot.css */

:root {
    --primary-color: #1A2E44;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-jackpot {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Body background is dark #121212 */
    background-color: transparent; /* Inherited from shared.css */
}

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

/* Hero Section */
.page-jackpot__hero-section {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-jackpot__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.page-jackpot__hero-section .page-jackpot__container {
    position: relative;
    z-index: 1;
}

.page-jackpot__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-jackpot__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-on-dark);
}

.page-jackpot__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-jackpot__cta-buttons--center {
    margin-top: 40px;
}

.page-jackpot__btn-primary,
.page-jackpot__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-jackpot__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-jackpot__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-jackpot__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-jackpot__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* General Sections */
.page-jackpot__introduction-section,
.page-jackpot__game-types-section,
.page-jackpot__features-section,
.page-jackpot__how-to-play-section,
.page-jackpot__tips-section,
.page-jackpot__security-section,
.page-jackpot__promotions-section,
.page-jackpot__faq-section,
.page-jackpot__final-cta-section {
    padding: 80px 0;
    position: relative;
}

.page-jackpot__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-jackpot__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

.page-jackpot__text-block--light {
    color: var(--text-on-dark);
}

.page-jackpot__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-jackpot__content-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark Background Sections */
.page-jackpot__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-jackpot__dark-bg .page-jackpot__section-title {
    color: var(--secondary-color);
}

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

.page-jackpot__card {
    background-color: var(--card-bg-light);
    color: var(--text-on-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-jackpot__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    width: 100%; /* Ensure card images fill width */
    min-height: 200px; /* Enforce min height for content images */
}

.page-jackpot__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-jackpot__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot__card-title a:hover {
    color: var(--secondary-color);
}

.page-jackpot__card-description {
    font-size: 1em;
    color: var(--text-on-light);
}

/* Features List */
.page-jackpot__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-jackpot__feature-item {
    background-color: var(--card-bg-light);
    color: var(--text-on-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.page-jackpot__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size for icons */
    min-height: 200px; /* Enforce min size for icons */
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-jackpot__feature-description {
    font-size: 0.95em;
    color: var(--text-on-light);
}

/* How To Play Steps */
.page-jackpot__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-jackpot__step-list--light .page-jackpot__step-item {
    color: var(--text-on-dark);
}

.page-jackpot__step-item {
    position: relative;
    padding: 20px 0 20px 60px;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 1.1em;
}

.page-jackpot__step-item:last-child {
    border-bottom: none;
}

.page-jackpot__step-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
}

/* Tips List */
.page-jackpot__tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-jackpot__tips-item {
    background-color: var(--card-bg-light);
    color: var(--text-on-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-jackpot__tips-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-jackpot__card--promo {
    background-color: var(--card-bg-light);
    color: var(--text-on-light);
    padding: 0; /* Remove padding for promo cards to make image edge to edge */
    overflow: hidden;
}

.page-jackpot__card--promo .page-jackpot__card-image {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-jackpot__card--promo .page-jackpot__card-title {
    margin: 20px 20px 10px;
}

.page-jackpot__card--promo .page-jackpot__card-description {
    margin: 0 20px 20px;
}

/* FAQ Section */
.page-jackpot__faq-list {
    margin-top: 40px;
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    padding: 20px;
    color: var(--text-on-dark);
}

.page-jackpot__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.page-jackpot__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-jackpot__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.page-jackpot__faq-question:hover {
    color: var(--text-on-dark);
}

.page-jackpot__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-jackpot__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.page-jackpot__faq-item.active .page-jackpot__faq-toggle {
    transform: rotate(45deg);
    color: var(--text-on-dark);
}

.page-jackpot__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-on-dark);
}

.page-jackpot__faq-item.active .page-jackpot__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px;
}

.page-jackpot__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot__hero-title {
        font-size: 2.8em;
    }
    .page-jackpot__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-jackpot__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
    }

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

    .page-jackpot__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-jackpot__btn-primary,
    .page-jackpot__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-jackpot__introduction-section,
    .page-jackpot__game-types-section,
    .page-jackpot__features-section,
    .page-jackpot__how-to-play-section,
    .page-jackpot__tips-section,
    .page-jackpot__security-section,
    .page-jackpot__promotions-section,
    .page-jackpot__faq-section,
    .page-jackpot__final-cta-section {
        padding: 50px 0;
    }

    .page-jackpot__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-jackpot__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-jackpot img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-jackpot__feature-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-jackpot__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
        height: auto !important;
    }

    .page-jackpot__card--promo .page-jackpot__card-image {
        height: 200px !important; /* Adjust height for mobile promo cards */
    }

    .page-jackpot__faq-question {
        font-size: 1em;
        padding: 10px 0;
    }

    .page-jackpot__faq-answer {
        padding: 0 10px;
    }

    .page-jackpot__faq-item.active .page-jackpot__faq-answer {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-jackpot__hero-title {
        font-size: 1.8em;
    }
    .page-jackpot__section-title {
        font-size: 1.5em;
    }
}

/* Ensure content area images maintain minimum size if not explicitly set larger */
.page-jackpot__content-image {
    min-width: 200px;
    min-height: 200px;
}

/* Global image rules for content area - ensure no small icons */
.page-jackpot img {
    min-width: 200px; /* Minimum width for all images in content area */
    min-height: 200px; /* Minimum height for all images in content area */
    object-fit: cover; /* Default object-fit */
}

/* Specific overrides for feature icons if they were designed smaller than 200x200 but need to be larger */
.page-jackpot__feature-icon {
    width: 200px; /* Explicitly set to minimum allowed size */
    height: 200px; /* Explicitly set to minimum allowed size */
    object-fit: contain; /* Icons usually need contain */
}

/* Contrast Fixes */
.page-jackpot__dark-bg {
  color: #ffffff; /* Deep dark background, so text must be light */
}

.page-jackpot__card {
  background: var(--card-bg-light); /* White background for cards */
  color: var(--text-on-light); /* Dark text on light card background */
}

.page-jackpot__text-block strong.page-jackpot__highlight {
  color: var(--secondary-color); /* Highlight color */
}

.page-jackpot__faq-list {
  background-color: var(--primary-color); /* Dark background for FAQ list */
  color: var(--text-on-dark);
}

.page-jackpot__faq-question h3 {
  color: var(--secondary-color);
}

.page-jackpot__faq-question:hover {
    color: var(--text-on-dark);
}

.page-jackpot__faq-item.active .page-jackpot__faq-toggle {
    color: var(--text-on-dark);
}

.page-jackpot__faq-toggle {
    color: var(--secondary-color);
}