/* style/slot-games.css */
:root {
    --primary-color: #1A237E;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #000000;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color-light: #e0e0e0;
    --border-color-gold: #ffd700;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Body background is dark, so text should be light */
    background-color: var(--background-dark);
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-slot-games__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-slot-games__section-description {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0; 
    background-color: var(--primary-color);
}

.page-slot-games__hero-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.page-slot-games__hero-image {
    width: 100%;
    margin: 0;
}

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

/* Products Section */
.page-slot-games__products-section {
    width: 100%;
    padding: 60px 20px;
    background: var(--primary-color);
}

.page-slot-games__products-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 4fr 2fr; /* Desktop: 4 small cards and 2 large cards side by side */
    gap: 20px;
}

.page-slot-games__products-grid {
    display: grid;
    gap: 20px;
}

.page-slot-games__products-grid--small {
    grid-template-columns: repeat(4, 1fr);
}

.page-slot-games__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
}

.page-slot-games__product-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg-dark);
    border: 3px solid var(--border-color-gold); /* Golden border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-slot-games__product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-slot-games__product-card-image {
    width: 100%;
    height: 250px; /* Fixed height for desktop */
    overflow: hidden;
}

.page-slot-games__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Must use cover */
    display: block;
}

/* Introduction Section */
.page-slot-games__introduction-section {
    background: var(--primary-color);
    padding: 60px 20px;
}

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

.page-slot-games__main-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-slot-games__description-text {
    font-size: 19px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__intro-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-slot-games__intro-heading {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

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

/* Quick Access Section */
.page-slot-games__quick-access-section {
    background-color: var(--background-dark);
    padding: 60px 20px;
}

.page-slot-games__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.page-slot-games__alt-link-text {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-top: 30px;
}

/* Core Games Section */
.page-slot-games__core-games-section {
    padding: 60px 20px;
}

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

.page-slot-games__game-category-card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
}

.page-slot-games__game-category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__game-category-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__game-category-description {
    font-size: 16px;
    color: var(--text-light);
    padding: 0 15px;
}

.page-slot-games__sub-heading {
    font-size: 28px;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 25px;
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 800px;
}

.page-slot-games__tips-list li {
    background: var(--card-bg-dark);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    font-size: 17px;
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__tips-list li p {
    margin: 0;
    color: var(--text-light);
}

.page-slot-games__tips-list li strong {
    color: var(--secondary-color);
}

.page-slot-games__cta-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-slot-games__btn-large {
    padding: 18px 40px;
    font-size: 20px;
    min-width: 250px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    background-color: var(--background-dark);
    padding: 60px 20px;
}

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

.page-slot-games__promo-card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
}

.page-slot-games__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__promo-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__promo-description {
    font-size: 16px;
    color: var(--text-light);
    padding: 0 15px 20px 15px;
}

.page-slot-games__btn-text {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-slot-games__btn-text:hover {
    color: #e6c200;
}

/* Security Section */
.page-slot-games__security-section {
    padding: 60px 20px;
}

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

.page-slot-games__security-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-slot-games__security-heading {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: var(--background-dark);
    padding: 60px 20px;
}

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

.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.3);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    border: 1px solid var(--secondary-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: #2A369C;
    border-color: #e6c200;
}

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none;
}

.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    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(--secondary-color);
    transform: rotate(45deg); /* Plus sign becomes an X or similar */
}

.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-light);
    font-size: 16px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-answer p {
    margin: 0;
    color: var(--text-light);
}

/* Blog Section */
.page-slot-games__blog-section {
    padding: 60px 20px;
}

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

.page-slot-games__blog-card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: left;
    padding-bottom: 20px;
}

.page-slot-games__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__blog-title {
    font-size: 22px;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__blog-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__blog-title a:hover {
    color: #e6c200;
}

.page-slot-games__blog-meta {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__blog-summary {
    font-size: 16px;
    color: var(--text-light);
    padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__products-container {
        grid-template-columns: 1fr; /* Stack product grids vertically */
    }
    .page-slot-games__products-grid--small {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-slot-games__products-grid--large {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-slot-games__section-title {
        font-size: 32px;
    }
    .page-slot-games__main-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-slot-games__container,
    .page-slot-games__quick-access-section .page-slot-games__button-group,
    .page-slot-games__cta-button-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* General image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Product Showcase Mobile */
    .page-slot-games__products-section {
        padding: 40px 15px;
    }
    .page-slot-games__products-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-slot-games__products-grid--small {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .page-slot-games__products-grid--small .page-slot-games__product-card {
        aspect-ratio: 1 / 1; /* Square */
    }
    .page-slot-games__products-grid--small .page-slot-games__product-card-image {
        height: 100%;
        aspect-ratio: 1 / 1; /* Square */
    }
    .page-slot-games__products-grid--small .page-slot-games__product-card-image img {
        object-fit: cover !important;
    }
    .page-slot-games__products-grid--large {
        grid-template-columns: 1fr; /* Each card takes full width */
        gap: 15px;
    }
    .page-slot-games__products-grid--large .page-slot-games__product-card {
        aspect-ratio: 1 / 1; /* Square */
    }
    .page-slot-games__products-grid--large .page-slot-games__product-card-image {
        height: 100%;
        aspect-ratio: 1 / 1; /* Square */
    }
    .page-slot-games__products-grid--large .page-slot-games__product-card-image img {
        object-fit: cover !important;
    }

    .page-slot-games__main-title {
        font-size: 30px;
    }
    .page-slot-games__description-text {
        font-size: 17px;
    }
    .page-slot-games__intro-grid,
    .page-slot-games__game-category-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__security-grid,
    .page-slot-games__blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Button responsiveness */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        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;
    }
    .page-slot-games__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* FAQ Mobile */
    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-slot-games__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }

    .page-slot-games__section-title {
        font-size: 28px;
    }
    .page-slot-games__section-description {
        font-size: 16px;
    }
    .page-slot-games__sub-heading {
        font-size: 24px;
    }
    .page-slot-games__promo-title,
    .page-slot-games__blog-title a {
        font-size: 20px;
    }
    .page-slot-games__intro-heading,
    .page-slot-games__security-heading {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 26px;
    }
    .page-slot-games__section-title {
        font-size: 24px;
    }
    .page-slot-games__products-grid--small {
        grid-template-columns: 1fr;
    }
}