:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --button-login: #EA7C07; /* Custom color for login button */
}

/* Base styles for the page content */
.page-jackpot-slot-introduction {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light); /* Default body background is white */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-jackpot-slot-introduction__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-jackpot-slot-introduction__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-jackpot-slot-introduction__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-jackpot-slot-introduction__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-jackpot-slot-introduction__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--background-light); /* Light background for text block */
    color: var(--text-dark);
}

.page-jackpot-slot-introduction__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.page-jackpot-slot-introduction__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-slot-introduction__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Button styles */
.page-jackpot-slot-introduction__btn-primary,
.page-jackpot-slot-introduction__btn-secondary,
.page-jackpot-slot-introduction__card-link {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-jackpot-slot-introduction__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-jackpot-slot-introduction__btn-primary:hover {
    background: #1e87b7; /* Darker shade of primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-jackpot-slot-introduction__btn-secondary {
    background: var(--button-login); /* Custom login color */
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-jackpot-slot-introduction__btn-secondary:hover {
    background: #c36706; /* Darker shade of login color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-jackpot-slot-introduction__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.page-jackpot-slot-introduction__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-jackpot-slot-introduction__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-jackpot-slot-introduction__content-area p {
    margin-bottom: 1em;
    font-size: 1.05em;
    color: var(--text-dark);
}

/* Dark background sections */
.page-jackpot-slot-introduction__dark-section {
    background-color: var(--background-dark); /* Using primary color for dark sections */
    color: var(--text-light);
    padding: 60px 20px;
}

.page-jackpot-slot-introduction__dark-section .page-jackpot-slot-introduction__section-title {
    color: var(--text-light);
}

.page-jackpot-slot-introduction__dark-section .page-jackpot-slot-introduction__section-title::after {
    background: var(--text-light);
}

.page-jackpot-slot-introduction__dark-section p,
.page-jackpot-slot-introduction__dark-section .page-jackpot-slot-introduction__numbered-list li,
.page-jackpot-slot-introduction__dark-section .page-jackpot-slot-introduction__numbered-list li strong {
    color: var(--text-light);
}

.page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__text-content {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    color: var(--text-light);
}

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

.page-jackpot-slot-introduction__game-card {
    background: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-jackpot-slot-introduction__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-jackpot-slot-introduction__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    max-width: 100%; /* Ensure images are responsive */
    min-width: 200px;
    min-height: 200px;
}

.page-jackpot-slot-introduction__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-jackpot-slot-introduction__game-card p {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-jackpot-slot-introduction__card-link {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
}

.page-jackpot-slot-introduction__card-link:hover {
    background: #1e87b7; /* Darker shade of primary color */
    border-color: #1e87b7;
}

.page-jackpot-slot-introduction__read-more {
    text-align: center;
    margin-top: 40px;
}

/* How to Play Section */
.page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__image-wrapper {
    flex: 1;
    min-width: 200px; /* Minimum size for content images */
}

.page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    min-width: 200px;
    min-height: 200px;
}

.page-jackpot-slot-introduction__numbered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-top: 15px;
    color: var(--text-light);
}

.page-jackpot-slot-introduction__numbered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-light);
}

/* Strategies Section */
.page-jackpot-slot-introduction__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-jackpot-slot-introduction__strategy-item {
    background: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: var(--text-dark);
}

.page-jackpot-slot-introduction__strategy-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Big Wins Section */
.page-jackpot-slot-introduction__image-full-width {
    margin: 40px 0;
    text-align: center;
}

.page-jackpot-slot-introduction__image-full-width img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Us Section */
.page-jackpot-slot-introduction__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-jackpot-slot-introduction__reason-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-jackpot-slot-introduction__reason-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.page-jackpot-slot-introduction__reason-title {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 15px;
}

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

details.page-jackpot-slot-introduction__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-jackpot-slot-introduction__faq-item summary.page-jackpot-slot-introduction__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-jackpot-slot-introduction__faq-item summary.page-jackpot-slot-introduction__faq-question::-webkit-details-marker {
  display: none;
}
details.page-jackpot-slot-introduction__faq-item summary.page-jackpot-slot-introduction__faq-question:hover {
  background: #f5f5f5;
}
.page-jackpot-slot-introduction__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-jackpot-slot-introduction__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-jackpot-slot-introduction__faq-item .page-jackpot-slot-introduction__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-jackpot-slot-introduction__faq-answer p {
    margin-bottom: 1em;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-jackpot-slot-introduction__section-title {
        font-size: 1.8em;
    }
    .page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__text-content {
        padding: 30px 20px;
    }
    .page-jackpot-slot-introduction__numbered-list {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-jackpot-slot-introduction__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-jackpot-slot-introduction__hero-image img {
        border-radius: 4px;
    }
    
    .page-jackpot-slot-introduction__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
    }

    .page-jackpot-slot-introduction__description {
        font-size: 1em;
    }

    .page-jackpot-slot-introduction__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    /* Force full width for buttons on mobile */
    .page-jackpot-slot-introduction__btn-primary,
    .page-jackpot-slot-introduction__btn-secondary,
    .page-jackpot-slot-introduction__card-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
    }

    /* General section padding for mobile */
    .page-jackpot-slot-introduction__section {
        padding: 40px 15px;
    }

    .page-jackpot-slot-introduction__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .page-jackpot-slot-introduction__game-card img,
    .page-jackpot-slot-introduction__how-to-play .page-jackpot-slot-introduction__image-wrapper img,
    .page-jackpot-slot-introduction__image-full-width img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-jackpot-slot-introduction__game-grid,
    .page-jackpot-slot-introduction__strategy-grid,
    .page-jackpot-slot-introduction__reason-grid {
        gap: 20px;
    }

    details.page-jackpot-slot-introduction__faq-item summary.page-jackpot-slot-introduction__faq-question { padding: 15px; }
    .page-jackpot-slot-introduction__faq-qtext { font-size: 15px; }
    .page-jackpot-slot-introduction__faq-answer { padding: 0 15px 15px; }
}

/* Ensure all images within content areas are responsive and meet minimum size */
.page-jackpot-slot-introduction img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Include padding/border in width */
}

/* Ensure no image filter is used */
.page-jackpot-slot-introduction img {
    filter: none;
}