:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* Auxiliary white */
    --button-register-color: #C30808; /* Specific for register/login buttons */
    --button-register-text-color: #FFFF00; /* Specific for register/login button text */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --section-padding-y: 60px;
    --section-padding-x: 20px;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Matches body background */
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding-y) var(--section-padding-x);
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #015f30 100%); /* Darker gradient for hero */
    color: var(--text-light); /* Light text for dark background */
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-slot-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--button-register-text-color); /* Yellow for highlight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure buttons have a decent size */
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--button-register-color); /* Red for Register/Login */
    color: var(--button-register-text-color); /* Yellow text */
    border: 2px solid var(--button-register-text-color);
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-slot-games__btn-primary:hover {
    background: #e00b0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.6);
}

.page-slot-games__btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--text-light);
    box-shadow: 0 4px 15px rgba(1, 116, 57, 0.4);
}

.page-slot-games__btn-secondary:hover {
    background: #015f30;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 116, 57, 0.6);
}

/* --- General Section Styles --- */
.page-slot-games__section {
    padding: var(--section-padding-y) var(--section-padding-x);
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-slot-games__heading {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-slot-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__text-center {
    text-align: center;
}

.page-slot-games__mt-30 {
    margin-top: 30px;
}

/* Backgrounds */
.page-slot-games__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__heading {
    color: var(--secondary-color);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__light-bg .page-slot-games__heading {
    color: var(--primary-color);
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card,
.page-slot-games__feature-box {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-card img,
.page-slot-games__promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-slot-games__card-title,
.page-slot-games__box-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-slot-games__card-description,
.page-slot-games__box-description {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 15px 20px;
    text-align: justify;
}

/* --- How To Play Section --- */
.page-slot-games__ordered-list {
    list-style-type: decimal;
    margin-left: 25px;
    padding-left: 0;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-slot-games__ordered-list li {
    margin-bottom: 15px;
}

.page-slot-games__ordered-list li strong {
    color: var(--primary-color);
}

.page-slot-games__ordered-list li a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Tips & Strategies Section --- */
.page-slot-games__unordered-list {
    list-style-type: disc;
    margin-left: 25px;
    padding-left: 0;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-slot-games__unordered-list li {
    margin-bottom: 10px;
}

.page-slot-games__unordered-list li strong {
    color: var(--primary-color);
}

/* --- Security & Support Section --- */
.page-slot-games__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-slot-games__feature-box {
    padding: 25px;
    text-align: left;
}

.page-slot-games__feature-box .page-slot-games__box-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.page-slot-games__feature-box .page-slot-games__box-description {
    padding: 0;
    margin-bottom: 0;
}

/* --- FAQ Section --- */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-slot-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
    background: #eeeeee;
}

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

.page-slot-games__faq-toggle {
    font-size: 2em;
    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: 30px;
    height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: var(--button-register-color); /* Red when active */
    transform: rotate(45deg); /* Optional: rotate for 'X' effect if '-' not used */
}

.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;
    background: #fdfdfd;
    border-radius: 0 0 8px 8px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-slot-games__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--text-dark);
    text-align: justify;
}

.page-slot-games__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__heading {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-slot-games__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        min-width: unset;
    }

    .page-slot-games__section {
        padding: 40px 15px;
    }
    .page-slot-games__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__paragraph,
    .page-slot-games__ordered-list,
    .page-slot-games__unordered-list {
        font-size: 0.95em;
    }

    .page-slot-games__game-card img,
    .page-slot-games__promo-card img {
         /* Adjust image height for smaller screens */
    }

    .page-slot-games__card-title,
    .page-slot-games__box-title {
        font-size: 1.3em;
    }

    .page-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1.05em;
    }
    .page-slot-games__faq-toggle {
        font-size: 1.8em;
        width: 25px;
        height: 25px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 20px !important;
    }

    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box; /* Ensure padding/border doesn't cause overflow */
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__feature-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__heading {
        font-size: 1.6em;
    }
    .page-slot-games__game-card img,
    .page-slot-games__promo-card img {
        
    }
    .page-slot-games__grid {
        gap: 20px;
    }
    .page-slot-games__grid--2-cols {
        grid-template-columns: 1fr; /* Stack 2-column grid on very small screens */
    }
    .page-slot-games__faq-question {
        padding: 12px 15px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1em;
    }
    .page-slot-games__faq-toggle {
        font-size: 1.5em;
        width: 20px;
        height: 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 12px 15px !important;
    }
}