:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-dark: #0d0d0d;
    --bg-light: #f8f9fa;
    --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark */
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-slot-games {
    color: var(--text-color-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Body background is dark */
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

/* Ensure content is not hidden by fixed header */
.page-slot-games__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on shared header height */
    padding-bottom: 60px;
}

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

/* Section styling */
.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-slot-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-color-light);
}

/* Link styling */
.page-slot-games a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-slot-games__hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero_bg:cwin_slot_games,background,abstract]') no-repeat center center / cover;
    color: var(--text-color-light);
    text-align: center;
    padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-slot-games__hero-image {
    max-width: 800px;
    height: auto;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-slot-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--text-color-dark); /* Dark text on gold button for contrast */
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-slot-games__cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-color-light); /* Light text on dark red hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__strategy-section,
.page-slot-games__security-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background */
    color: var(--text-color-dark); /* Dark text on light background */
}

.page-slot-games__introduction-section .page-slot-games__text-block,
.page-slot-games__strategy-section .page-slot-games__text-block,
.page-slot-games__security-section .page-slot-games__text-block,
.page-slot-games__introduction-section .page-slot-games__ordered-list li,
.page-slot-games__strategy-section .page-slot-games__unordered-list li,
.page-slot-games__security-section .page-slot-games__unordered-list li {
    color: var(--text-color-dark);
}

.page-slot-games__introduction-section .page-slot-games__section-title,
.page-slot-games__strategy-section .page-slot-games__section-title,
.page-slot-games__security-section .page-slot-games__section-title {
    color: var(--secondary-color); /* Dark Red title on light background */
}

.page-slot-games__introduction-section a,
.page-slot-games__strategy-section a,
.page-slot-games__security-section a {
    color: var(--secondary-color);
}

.page-slot-games__game-types-section,
.page-slot-games__benefits-section,
.page-slot-games__app-section,
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark); /* Dark background */
    color: var(--text-color-light); /* Light text on dark background */
}

.page-slot-games__game-types-section .page-slot-games__section-title,
.page-slot-games__benefits-section .page-slot-games__section-title,
.page-slot-games__app-section .page-slot-games__section-title,
.page-slot-games__faq-section .page-slot-games__section-title {
    color: var(--primary-color); /* Gold title on dark background */
}

.page-slot-games__game-types-section a,
.page-slot-games__benefits-section a,
.page-slot-games__app-section a,
.page-slot-games__faq-section a {
    color: var(--primary-color);
}

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

.page-slot-games__card {
    background: var(--card-bg-dark); /* Transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color-light);
}

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

.page-slot-games__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure image fits without cropping */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-slot-games__card-text {
    font-size: 16px;
    color: var(--text-color-light);
}

/* Ordered/Unordered Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-slot-games__unordered-list li,
.page-slot-games__ordered-list li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Adjust list colors for dark sections */
.page-slot-games__benefits-section .page-slot-games__unordered-list,
.page-slot-games__app-section .page-slot-games__unordered-list {
    color: var(--text-color-light);
}
.page-slot-games__benefits-section .page-slot-games__unordered-list li,
.page-slot-games__app-section .page-slot-games__unordered-list li {
    color: var(--text-color-light);
}


/* CTA Container and Buttons */
.page-slot-games__cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 180px; /* Ensure buttons have a minimum width */
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-slot-games__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-dark); /* Dark text on gold */
}

.page-slot-games__btn-primary:hover {
    background: #e6c200; /* Darker gold */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-dark);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

/* App Section */
.page-slot-games__app-features {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-slot-games__app-image {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Security Section */
.page-slot-games__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-slot-games__security-item {
    background: var(--card-bg-light); /* White background for security items on light section */
    color: var(--text-color-dark); /* Dark text */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.page-slot-games__security-item .page-slot-games__security-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

.page-slot-games__security-item .page-slot-games__security-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-slot-games__security-item .page-slot-games__security-text {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ container style */
.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* FAQ default state - answer hidden */
.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-color-light);
    font-size: 16px;
    line-height: 1.6;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough for any content */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05); /* Lighter variant of dark card bg */
    border-radius: 0 0 8px 8px;
}

/* Question style */
.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Top corners only if not active */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

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

.page-slot-games__faq-question:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Question title style */
.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

/* Toggle icon */
.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: var(--text-color-light);
    transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

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