/* style/slot-games.css */
/* Custom colors */
:root {
    --k9cc-bg-primary: #08160F;
    --k9cc-card-bg: #11271B;
    --k9cc-text-main: #F2FFF6;
    --k9cc-text-secondary: #A7D9B8;
    --k9cc-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --k9cc-border: #2E7A4E;
    --k9cc-glow: #57E38D;
    --k9cc-gold: #F2C14E;
    --k9cc-divider: #1E3A2A;
    --k9cc-deep-green: #0A4B2C;
}

.page-slot-games {
    background-color: var(--k9cc-bg-primary);
    color: var(--k9cc-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

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

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--k9cc-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-slot-games__description {
    font-size: 1.1rem;
    color: var(--k9cc-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-slot-games__btn-primary {
    background: var(--k9cc-btn-gradient);
    color: var(--k9cc-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--k9cc-text-main);
    border: 2px solid var(--k9cc-glow);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.4);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-slot-games__section-title {
    font-size: 2.5rem;
    color: var(--k9cc-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__section-description {
    font-size: 1.1rem;
    color: var(--k9cc-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-slot-games__sub-title {
    font-size: 1.8rem;
    color: var(--k9cc-glow);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-slot-games__text-block p {
    margin-bottom: 15px;
    color: var(--k9cc-text-main);
}

.page-slot-games__image-block {
    text-align: center;
}

.page-slot-games__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__card {
    background-color: var(--k9cc-card-bg);
    border: 1px solid var(--k9cc-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--k9cc-text-main);
}

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

.page-slot-games__card-title {
    font-size: 1.5rem;
    color: var(--k9cc-glow);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__card p {
    color: var(--k9cc-text-secondary);
}

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

/* How to Play Section */
.page-slot-games__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: var(--k9cc-card-bg);
    border: 1px solid var(--k9cc-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--k9cc-text-main);
}

.page-slot-games__step-icon {
    width: 60px;
    height: 60px;
    background: var(--k9cc-btn-gradient);
    color: var(--k9cc-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 3px 10px rgba(17, 168, 78, 0.5);
}

.page-slot-games__step-title {
    font-size: 1.4rem;
    color: var(--k9cc-glow);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__step-item p {
    color: var(--k9cc-text-secondary);
    margin-bottom: 20px;
}

.page-slot-games__btn-link {
    color: var(--k9cc-glow);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--k9cc-glow);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-slot-games__btn-link:hover {
    color: var(--k9cc-gold);
    border-color: var(--k9cc-gold);
}

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

.page-slot-games__game-type-item .page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__promo-card {
    background-color: var(--k9cc-card-bg);
    border: 1px solid var(--k9cc-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--k9cc-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__promo-title {
    font-size: 1.4rem;
    color: var(--k9cc-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__promo-card p {
    color: var(--k9cc-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    border: 1px solid var(--k9cc-divider);
    border-radius: 12px;
    overflow: hidden;
}

.page-slot-games__faq-item {
    background-color: var(--k9cc-card-bg);
    border-bottom: 1px solid var(--k9cc-divider);
    color: var(--k9cc-text-main);
}

.page-slot-games__faq-item:last-child {
    border-bottom: none;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--k9cc-glow);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--k9cc-gold);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--k9cc-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: '−';
}

/* Video Section */
.page-slot-games__intro-video {
    background-color: var(--k9cc-deep-green);
    padding: 80px 0;
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for the video player */
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.page-slot-games__video-wrapper .page-slot-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
    max-width: 100%; /* Ensure video does not overflow */
}

/* Conclusion Section */
.page-slot-games__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-slot-games__conclusion .page-slot-games__description {
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__content-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__image-block {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-slot-games__section {
        padding: 40px 0;
    }

    .page-slot-games__section-title {
        font-size: 2rem;
    }

    .page-slot-games__sub-title {
        font-size: 1.5rem;
    }

    .page-slot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-slot-games__description,
    .page-slot-games__section-description,
    .page-slot-games__card p,
    .page-slot-games__step-item p,
    .page-slot-games__promo-card p,
    .page-slot-games__faq-answer p {
        font-size: 1rem;
    }

    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Ensure all images are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images/videos/buttons */
    .page-slot-games__hero-section,
    .page-slot-games__container,
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card,
    .page-slot-games__faq-list,
    .page-slot-games__video-wrapper,
    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-slot-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-slot-games__intro-video {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 40px;
    }

    .page-slot-games__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-slot-games__faq-toggle {
        font-size: 1.5rem;
    }
}