/* style/jackpot-games.css */

/* Base Styles for .page-jackpot-games */
.page-jackpot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Section Common Styles */
.page-jackpot-games__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-jackpot-games__dark-bg {
    background-color: #8B0000; /* Auxiliary brand color for dark sections */
    color: #ffffff;
}

.page-jackpot-games__section-title {
    font-size: 36px;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-jackpot-games__section-title--light {
    color: #ffffff; /* White for titles on dark background */
}

.page-jackpot-games__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.page-jackpot-games__section-description--light {
    color: #f0f0f0;
}

.page-jackpot-games__text-block {
    margin-bottom: 30px;
    font-size: 17px;
    color: #ffffff;
}

.page-jackpot-games__text-block--light {
    color: #f0f0f0;
}

.page-jackpot-games__text-block p {
    margin-bottom: 15px;
}

/* Card Styles */
.page-jackpot-games__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark body */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-jackpot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__dark-bg-card {
    background-color: rgba(0, 0, 0, 0.4); /* Darker background for cards on auxiliary dark sections */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.page-jackpot-games__btn-primary {
    display: inline-block;
    background-color: #FFD700; /* Gold brand color */
    color: #8B0000; /* Dark red text for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-jackpot-games__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #6a0000;
    transform: translateY(-2px);
}

.page-jackpot-games__btn-primary--large {
    padding: 18px 40px;
    font-size: 20px;
}

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

/* Image Styles */
.page-jackpot-games__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-jackpot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

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

.page-jackpot-games__hero-title {
    font-size: 52px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__hero-description {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Why Choose Us Section */
.page-jackpot-games__why-choose-us {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-jackpot-games__feature-item {
    text-align: center;
}

.page-jackpot-games__feature-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-jackpot-games__feature-item p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Popular Games Section */
.page-jackpot-games__popular-games {
    background-color: #1a1a1a; /* Slightly lighter dark background for this section */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-jackpot-games__game-card {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly less transparent */
}

.page-jackpot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-jackpot-games__game-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-jackpot-games__game-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot-games__game-title a:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-jackpot-games__game-description {
    font-size: 16px;
    color: #e0e0e0;
}

/* How To Play Section */
.page-jackpot-games__how-to-play-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-jackpot-games__step-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.page-jackpot-games__step-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFD700;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 17px;
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__step-list li strong {
    color: #FFD700;
    font-size: 18px;
}

.page-jackpot-games__step-list li a {
    color: #FFD700;
    text-decoration: underline;
}

.page-jackpot-games__step-list li a:hover {
    color: #e6c200;
}

/* Tips & Strategies Section */
.page-jackpot-games__tips-strategies {
    background-color: #1a1a1a;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-jackpot-games__strategy-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    font-size: 17px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__strategy-list li {
    margin-bottom: 15px;
}

.page-jackpot-games__strategy-list li strong {
    color: #FFD700;
}

/* Video Section */
.page-jackpot-games__video-section {
    text-align: center;
    margin-top: 60px;
    padding: 0 20px; /* Add padding for mobile responsiveness */
    box-sizing: border-box;
}

.page-jackpot-games__video-title {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-jackpot-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Limit video width */
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
}

.page-jackpot-games__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Ensure it's above the video controls */
  cursor: pointer;
  display: block; /* Make the whole area clickable */
}

/* Promotions Section */
.page-jackpot-games__promotions-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-jackpot-games__promo-card {
    text-align: center;
}

.page-jackpot-games__promo-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-jackpot-games__promo-card p {
    font-size: 16px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-jackpot-games__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #1a1a1a;
}

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

.page-jackpot-games__faq-item {
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #FFD700;
    padding: 0; /* Remove padding here, add to question/answer */
    overflow: hidden;
}

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

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

.page-jackpot-games__faq-question h3 {
    font-size: 18px;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-jackpot-games__faq-toggle {
    font-size: 24px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-jackpot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 16px;
}

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

.page-jackpot-games__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Section */
.page-jackpot-games__cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-title {
        font-size: 44px;
    }
    .page-jackpot-games__hero-description {
        font-size: 20px;
    }
    .page-jackpot-games__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Ensure all images are responsive */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all video elements are responsive */
    .page-jackpot-games video,
    .page-jackpot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video wrapper mobile adaptation */
    .page-jackpot-games__video-section,
    .page-jackpot-games__video-container,
    .page-jackpot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}