/* style/king288.css */
.page-king288 {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
}

.page-king288__section {
    padding: 60px 20px;
    text-align: center;
}

.page-king288__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-king288__dark-bg {
    background-color: #2563eb;
    color: #ffffff;
}

.page-king288__light-bg {
    background-color: #f8f9fa;
    color: #333333;
}

.page-king288__section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: inherit;
    font-weight: bold;
}

.page-king288__section-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Hero Section */
.page-king288__hero-section {
    padding: 10px 0 60px 0; /* body handles main padding-top */
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-king288__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.page-king288__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-king288__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-king288__hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #2563eb;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
}

.page-king288__hero-description {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-king288__btn-primary,
.page-king288__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-king288__btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: 2px solid #2563eb;
}

.page-king288__btn-primary:hover {
    background-color: #1a4aae;
    border-color: #1a4aae;
}

.page-king288__btn-secondary {
    background-color: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.page-king288__btn-secondary:hover {
    background-color: #e0e7ff;
    color: #2563eb;
}

.page-king288__cta-center {
    margin-top: 40px;
}

/* Floating Promo Button */
.page-king288__floating-promo-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4500; /* A vibrant color for promotion */
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: none; /* Hidden by default, shown on mobile */
    white-space: normal;
    word-wrap: break-word;
    max-width: 250px;
}

.page-king288__floating-promo-btn:hover {
    transform: translateY(-3px);
}

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

.page-king288__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-king288__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-king288__game-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2563eb;
}

.page-king288__game-card-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-king288__emphasis-text a {
    color: #ffeb3b; /* Highlight links in dark background */
    text-decoration: underline;
}

.page-king288__emphasis-text a:hover {
    color: #ffd700;
}

/* Why Choose Us Section */
.page-king288__why-choose-us .page-king288__section-title {
    color: #2563eb;
}

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

.page-king288__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-king288__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-king288__feature-title {
    font-size: 1.3rem;
    color: #2563eb;
    margin-bottom: 10px;
}

.page-king288__feature-description {
    font-size: 0.95rem;
    color: #64748b;
}

/* Promotions Section */
.page-king288__promotions .page-king288__section-title {
    color: #2563eb;
}

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

.page-king288__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-king288__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-king288__promo-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2563eb;
}

.page-king288__promo-card-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* App Download Section */
.page-king288__app-download-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-king288__app-qr-code {
    text-align: center;
}

.page-king288__qr-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto 15px auto;
}

.page-king288__qr-text {
    font-size: 1.1rem;
    color: #ffffff;
}

.page-king288__app-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    width: 100%;
}

.page-king288__btn-app {
    padding: 15px 20px;
}

.page-king288__app-buttons .page-king288__text-block {
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 10px;
}

.page-king288__app-buttons .page-king288__text-block a {
    color: #ffeb3b;
    text-decoration: underline;
}

/* FAQ Section */
.page-king288__faq-section .page-king288__section-title {
    color: #2563eb;
}

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

.page-king288__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-king288__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f4f8;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2563eb;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-king288__faq-question:hover {
    background-color: #e6f0ff;
}

.page-king288__faq-question h3 {
    margin: 0;
    font-size: inherit;
    color: inherit;
    pointer-events: none;
}

.page-king288__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #2563eb;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.page-king288__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    color: #333333;
}

.page-king288__faq-item.active .page-king288__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-king288__faq-item.active .page-king288__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

.page-king288__faq-answer p {
    margin-bottom: 15px;
    color: #333333;
}

.page-king288__faq-answer a {
    color: #2563eb;
    text-decoration: underline;
}

/* Call to Action Section */
.page-king288__cta-content {
    color: #ffffff;
}

.page-king288__cta-content .page-king288__section-title {
    color: #ffffff;
}

.page-king288__cta-content .page-king288__section-description {
    color: #e0e7ff;
}

.page-king288__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-king288 {
        font-size: 15px;
    }

    .page-king288__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-king288__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-king288__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-king288__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-king288__btn-primary,
    .page-king288__btn-secondary,
    .page-king288__btn-app {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    .page-king288__section {
        padding: 40px 15px;
    }

    .page-king288__section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-king288__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-king288__game-grid,
    .page-king288__features-grid,
    .page-king288__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-king288__game-card-image,
    .page-king288__promo-card-image {
        height: 180px;
    }

    .page-king288__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-king288__app-download-grid {
        flex-direction: column;
    }

    .page-king288__app-buttons {
        max-width: 100%;
    }

    .page-king288__qr-image {
        width: 200px;
        height: 200px;
    }

    .page-king288__floating-promo-btn {
        display: block; /* Show on mobile */
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
        padding: 10px 15px;
        max-width: 200px;
    }

    /* Ensure images do not overflow */
    .page-king288 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-king288__section,
    .page-king288__card,
    .page-king288__container,
    .page-king288__hero-image-wrapper,
    .page-king288__app-download-grid,
    .page-king288__app-qr-code,
    .page-king288__app-buttons,
    .page-king288__faq-list,
    .page-king288__faq-item,
    .page-king288__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-king288__faq-answer {
        padding: 0 15px;
    }

    .page-king288__faq-item.active .page-king288__faq-answer {
        padding: 15px 15px !important;
    }

    .page-king288__faq-list {
        padding-left: 0;
        padding-right: 0;
    }

    .page-king288__faq-item {
        margin-left: 0;
        margin-right: 0;
    }

    .page-king288__faq-question {
        padding: 15px;
    }

    .page-king288__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-king288 p,
    .page-king288 li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

@media (min-width: 769px) {
    .page-king288__floating-promo-btn {
        display: none; /* Hide on desktop */
    }
}