/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared, ensuring contrast */
}

/* Sections */
.page-slot-games__section-title {
    font-size: 2.5rem;
    color: #ffc107;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

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

.page-slot-games__text-block {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-slot-games__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: #ffc107;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: #ffc107;
    color: #000000; /* Ensure contrast with yellow */
    border: 2px solid #ffc107;
}

.page-slot-games__btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffc107;
    color: #000000; /* Ensure contrast */
    transform: translateY(-2px);
}

/* Dark and Light Backgrounds */
.page-slot-games__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* About Slots Section */
.page-slot-games__about-slots {
    padding: 80px 0;
}

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

/* Game Types Section */
.page-slot-games__game-types {
    padding: 80px 0;
}

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

.page-slot-games__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    padding-bottom: 20px;
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-slot-games__card-title {
    font-size: 1.6rem;
    margin: 20px 15px 10px;
    text-align: center;
}

.page-slot-games__card-link {
    color: #007bff;
    text-decoration: none;
}

.page-slot-games__card-link:hover {
    text-decoration: underline;
}

.page-slot-games__card-description {
    font-size: 1rem;
    padding: 0 15px;
    text-align: center;
}

/* How To Play Section */
.page-slot-games__how-to-play {
    padding: 80px 0;
}

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

.page-slot-games__step-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-slot-games__step-title {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 15px;
}

.page-slot-games__step-item p {
    color: #555555;
}

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

/* Promotions Section */
.page-slot-games__promotions {
    padding: 80px 0;
}

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

.page-slot-games__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
    padding-bottom: 20px;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
}

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

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

.page-slot-games__features-list li {
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #333333;
    text-align: left;
}

.page-slot-games__feature-icon {
    color: #007bff;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

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

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffc107;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
    border-bottom: none;
}

.page-slot-games__faq-toggle {
    font-size: 1.8rem;
    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: #ffffff;
}

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

.page-slot-games__faq-answer p {
    margin: 0;
    font-size: 1rem;
}

/* Bottom CTA Section */
.page-slot-games__cta-bottom {
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3rem;
    }
    .page-slot-games__hero-description {
        font-size: 1.2rem;
    }
    .page-slot-games__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Force offset on mobile */
    }
    .page-slot-games__hero-title {
        font-size: 2.2rem;
    }
    .page-slot-games__hero-description {
        font-size: 1rem;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-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-title {
        font-size: 1.8rem;
    }
    .page-slot-games__text-block {
        font-size: 1rem;
    }
    .page-slot-games__game-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-slot-games__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__about-slots,
    .page-slot-games__game-types,
    .page-slot-games__how-to-play,
    .page-slot-games__promotions,
    .page-slot-games__why-choose,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom,
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-slot-games__features-list li {
        font-size: 1rem;
    }
    .page-slot-games__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8rem;
    }
    .page-slot-games__hero-description {
        font-size: 0.9rem;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    .page-slot-games__section-title {
        font-size: 1.5rem;
    }
    .page-slot-games__text-block {
        font-size: 0.9rem;
    }
}