/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #017439;
    --border-light: #e0e0e0;
}

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

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

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-slot-games__hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: var(--text-light);
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-slot-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-button-color);
}

.page-slot-games__btn-primary:hover {
    background-color: #e00b0b;
    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(--background-dark);
    transform: translateY(-3px);
}

/* Intro Section */
.page-slot-games__intro-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-slot-games__intro-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.page-slot-games__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-slot-games__intro-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-slot-games__intro-image-container {
    text-align: center;
}

.page-slot-games__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 80px 0;
}

.page-slot-games__why-choose-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-light);
}

.page-slot-games__why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-slot-games__why-choose-image-container {
    text-align: center;
}

.page-slot-games__why-choose-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__why-choose-list {
    list-style: none;
    padding: 0;
}

.page-slot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.page-slot-games__list-item:hover {
    transform: translateX(10px);
}

.page-slot-games__list-item-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-slot-games__list-item p {
    font-size: 1.05em;
    color: var(--text-light);
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-slot-games__popular-games-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.page-slot-games__popular-games-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__game-card-content {
    padding: 25px;
    text-align: center;
}

.page-slot-games__game-card-title {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-slot-games__game-card-title a {
    text-decoration: none;
    color: inherit;
}

.page-slot-games__game-card-title a:hover {
    text-decoration: underline;
}

.page-slot-games__game-card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-slot-games__game-card-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
}

/* Guide Section */
.page-slot-games__guide-section {
    padding: 80px 0;
}

.page-slot-games__guide-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-light);
}

.page-slot-games__guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-slot-games__guide-steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-slot-games__guide-step {
    margin-bottom: 25px;
    position: relative;
    padding-left: 45px;
}

.page-slot-games__guide-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-step-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.page-slot-games__guide-step p {
    font-size: 1.05em;
    color: var(--text-light);
}

.page-slot-games__guide-image-container {
    text-align: center;
}

.page-slot-games__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-slot-games__promotions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-slot-games__promotions-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-slot-games__promotions-button {
    margin-top: 20px;
}

.page-slot-games__promotions-image-container {
    text-align: center;
}

.page-slot-games__promotions-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Video Section */
.page-slot-games__video-section {
    padding: 80px 0;
}

.page-slot-games__video-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-light);
}

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

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.page-slot-games__video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

.page-slot-games__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-slot-games__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 15px 25px;
}

.page-slot-games__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Final CTA Section */
.page-slot-games__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Global Image Responsive */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__intro-grid,
    .page-slot-games__why-choose-grid,
    .page-slot-games__guide-grid,
    .page-slot-games__promotions-content {
        grid-template-columns: 1fr;
    }
    .page-slot-games__why-choose-image-container,
    .page-slot-games__guide-image-container {
        order: -1; /* Move image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 500px;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__content-area {
        padding: 40px 15px;
    }
    .page-slot-games__intro-title,
    .page-slot-games__why-choose-title,
    .page-slot-games__popular-games-title,
    .page-slot-games__guide-title,
    .page-slot-games__promotions-title,
    .page-slot-games__video-title,
    .page-slot-games__faq-title,
    .page-slot-games__cta-title {
        font-size: 1.8em;
    }
    .page-slot-games__list-item-title,
    .page-slot-games__game-card-title,
    .page-slot-games__guide-step-title {
        font-size: 1.3em;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1.1em;
    }

    /* Mobile specific image, video, button adaptations */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Remove min-width for mobile for flexibility */
        min-height: unset;
    }
    .page-slot-games__video-player {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__hero-cta-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__cta-button,
    .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__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__promotions-content,
    .page-slot-games__intro-grid,
    .page-slot-games__why-choose-grid,
    .page-slot-games__guide-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__video-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure video section is not under header */
    }
}