:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808; /* Red for register */
    --button-login: #C30808;    /* Red for login */
    --button-text-contrast: #000000; /* Black for contrast on red buttons */
}

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

/* Section styling */
.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

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

.page-slot-games__text-block {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
    text-align: justify;
}

.page-slot-games__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__text-block a:hover {
    text-decoration: underline;
}

/* Color contrast classes */
.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__card-title,
.page-slot-games__dark-bg .page-slot-games__feature-title,
.page-slot-games__dark-bg .page-slot-games__info-title {
    color: var(--text-light);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden; /* Prevent content overflow */
}

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

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.page-slot-games__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure button has a minimum width */
    text-align: center;
}

.page-slot-games__btn-register {
    background: var(--button-register); /* #C30808 */
    color: var(--button-text-contrast); /* #000000 for contrast */
    border: 2px solid var(--button-register);
}

.page-slot-games__btn-register:hover {
    background: #a30707; /* Darken for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-login {
    background: var(--button-login); /* #C30808 */
    color: var(--button-text-contrast); /* #000000 for contrast */
    border: 2px solid var(--button-login);
}

.page-slot-games__btn-login:hover {
    background: #a30707; /* Darken for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-slot-games__card:hover .page-slot-games__card-image {
    transform: scale(1.03);
}

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

.page-slot-games__card-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take available space */
}

/* Ordered list styling */
.page-slot-games__ordered-list {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin: 40px 0;
    counter-reset: step-counter;
}

.page-slot-games__ordered-list li {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 80px; /* Space for step number */
    transition: transform 0.2s ease;
}

.page-slot-games__ordered-list li:hover {
    transform: translateY(-5px);
}

.page-slot-games__ordered-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-slot-games__list-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 0;
}

.page-slot-games__ordered-list p {
    font-size: 16px;
    color: var(--text-dark);
}

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

.page-slot-games__feature-item {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 300px; /* Adjust max-width for content images */
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size as per requirements */
    min-height: 200px;
    display: block;
}

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

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

/* Generic buttons */
.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

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

.page-slot-games__btn-primary:hover {
    background: #005a2e;
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Security & Support Section */
.page-slot-games__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__info-block {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-slot-games__info-icon {
    width: 100%;
    height: auto;
    max-width: 300px; /* Adjust max-width for content images */
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
    display: block;
}

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

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

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

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--secondary-color); /* Ensure light background for text */
}

.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 15px;
    opacity: 0;
    color: var(--text-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}