/* style/88k.css */
:root {
    --color-primary: #FFD700; /* Yellow */
    --color-secondary: #ffffff; /* White */
    --color-background: #000000; /* Black */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-88k {
    max-width: 100vw;
    overflow: hidden;
}

.page-88k__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--color-background);
    text-align: center;
}

.page-88k__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust based on desired max image width */
    margin-bottom: 20px;
}

.page-88k__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-88k__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-88k__main-title {
    color: var(--color-primary);
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-88k__description {
    color: var(--color-secondary);
    font-size: clamp(1em, 2.5vw, 1.2em);
    margin-bottom: 30px;
}

.page-88k__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-88k__btn-primary,
.page-88k__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-88k__btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: 2px solid var(--color-primary);
}

.page-88k__btn-primary:hover {
    background-color: #FFC107;
    color: var(--color-background);
}

.page-88k__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-88k__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.page-88k__game-categories,
.page-88k__about-section,
.page-88k__popular-games,
.page-88k__providers-section,
.page-88k__faq-section,
.page-88k__cta-banner {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--color-background);
}

.page-88k__section-title {
    color: var(--color-primary);
    font-size: clamp(1.8em, 4vw, 2.8em);
    margin-bottom: 20px;
}

.page-88k__section-description {
    color: var(--color-secondary);
    font-size: clamp(0.9em, 2.2vw, 1.1em);
    margin-bottom: 40px;
}

.page-88k__categories-grid,
.page-88k__games-grid,
.page-88k__providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-88k__category-card,
.page-88k__game-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--color-text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-88k__category-card:hover,
.page-88k__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-88k__category-image,
.page-88k__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-88k__category-title,
.page-88k__game-title {
    color: var(--color-primary);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-88k__game-description {
    color: var(--color-secondary);
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-88k__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-88k__about-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-88k__text-block {
    flex: 1;
    color: var(--color-secondary);
    font-size: 1.05em;
}

.page-88k__text-block p {
    margin-bottom: 20px;
}

.page-88k__text-block .page-88k__btn-primary {
    margin-top: 20px;
}

.page-88k__providers-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-items: center;
}

.page-88k__provider-logo {
    width: 100%;
    height: auto;
    max-width: 150px; /* Max width for logos */
    filter: brightness(0) invert(1) saturate(100%); /* Make logos white on dark background */
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin: 0 auto;
    display: block;
}

.page-88k__provider-logo:hover {
    opacity: 1;
}

.page-88k__faq-list {
    text-align: left;
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-88k__faq-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-88k__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    background-color: #222;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-88k__faq-question:hover {
    background-color: #333;
}

.page-88k__faq-qtext {
    pointer-events: none; /* Prevent text from blocking click */
    margin-right: 15px;
}

.page-88k__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    pointer-events: none; /* Prevent toggle from blocking click */
}

.page-88k__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    color: var(--color-secondary);
    font-size: 0.95em;
    text-align: justify;
}

.page-88k__faq-answer p {
    margin-bottom: 15px;
}

.page-88k__faq-item.active .page-88k__faq-answer {
    max-height: 2000px !important; /* Use !important to override */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-88k__faq-item.active .page-88k__faq-toggle {
    content: '−';
}

.page-88k__cta-banner {
    background-color: #1a1a1a;
    padding: 80px 20px;
    border-radius: 10px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-88k__cta-title {
    color: var(--color-primary);
    font-size: clamp(2em, 4.5vw, 3em);
    margin-bottom: 20px;
}

.page-88k__cta-description {
    color: var(--color-secondary);
    font-size: clamp(1em, 2.5vw, 1.2em);
    margin-bottom: 40px;
}

.page-88k__floating-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 90%;
    box-sizing: border-box;
}

.page-88k__floating-button:hover {
    background-color: #FFC107;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-88k__about-content {
        flex-direction: column;
        text-align: center;
    }

    .page-88k__about-image {
        max-width: 80%;
        margin-bottom: 30px;
    }

    .page-88k__categories-grid,
    .page-88k__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .page-88k__providers-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-88k__hero-section {
        padding-bottom: 30px;
    }

    .page-88k__main-title {
        font-size: 2.5em;
    }

    .page-88k__description {
        font-size: 1em;
    }

    .page-88k__btn-primary,
    .page-88k__btn-secondary {
        font-size: 1em;
        padding: 10px 20px;
        width: 100%;
        max-width: 300px !important; /* Constrain button width on mobile */
    }

    .page-88k__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-88k__game-categories,
    .page-88k__about-section,
    .page-88k__popular-games,
    .page-88k__providers-section,
    .page-88k__faq-section,
    .page-88k__cta-banner {
        padding: 40px 15px;
    }

    .page-88k__section-title {
        font-size: 2em;
    }

    .page-88k__section-description {
        font-size: 0.9em;
    }

    .page-88k__categories-grid,
    .page-88k__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-88k__category-image,
    .page-88k__game-image {
        height: 160px;
    }

    .page-88k__about-image {
        max-width: 100%;
    }

    .page-88k__providers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .page-88k__provider-logo {
        max-width: 100px;
    }

    .page-88k__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-88k__faq-answer {
        padding: 0 20px;
    }

    .page-88k__faq-item.active .page-88k__faq-answer {
        padding: 15px 20px !important;
    }

    .page-88k__cta-title {
        font-size: 2em;
    }

    .page-88k__cta-description {
        font-size: 1em;
    }

    /* Mobile specific image/video/button responsiveness */
    .page-88k img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-88k__hero-image-wrapper,
    .page-88k__about-content,
    .page-88k__game-categories,
    .page-88k__about-section,
    .page-88k__popular-games,
    .page-88k__providers-section,
    .page-88k__faq-section,
    .page-88k__cta-banner,
    .page-88k__categories-grid,
    .page-88k__games-grid,
    .page-88k__providers-grid,
    .page-88k__faq-list,
    .page-88k__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-88k__floating-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (min-width: 769px) {
    .page-88k__floating-button {
        display: none; /* Hide on desktop */
    }
}