.page-bj88login {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

.page-bj88login__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Rely on body padding-top for header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: #ffffff;
}

.page-bj88login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-bj88login__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-bj88login__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
    color: #2563eb;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-bj88login__description {
    font-size: 1.1em;
    color: #64748b;
    margin-bottom: 30px;
}

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

.page-bj88login__btn-primary,
.page-bj88login__btn-secondary,
.page-bj88login__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

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

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

.page-bj88login__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a4aae;
    border-color: #1a4aae;
}

.page-bj88login__btn-tertiary {
    background-color: #64748b;
    color: #ffffff;
    border: 2px solid #64748b;
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-bj88login__btn-tertiary:hover {
    background-color: #4a5a6e;
    border-color: #4a5a6e;
}

.page-bj88login__section-title {
    font-size: 2.2em;
    color: #2563eb;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-bj88login__section-description {
    font-size: 1.05em;
    color: #64748b;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-bj88login__benefits-section,
.page-bj88login__games-section,
.page-bj88login__promotions-section,
.page-bj88login__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-bj88login__dark-section {
    background-color: #2563eb;
    color: #ffffff;
    padding: 60px 0;
}

.page-bj88login__dark-section .page-bj88login__section-title,
.page-bj88login__dark-section .page-bj88login__section-description {
    color: #ffffff;
}

.page-bj88login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-bj88login__benefit-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-bj88login__benefit-title {
    font-size: 1.5em;
    color: #2563eb;
    margin-bottom: 10px;
}

.page-bj88login__benefit-text {
    color: #64748b;
    font-size: 0.95em;
}

.page-bj88login__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.page-bj88login__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-bj88login__step-number {
    background-color: #ffffff;
    color: #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.page-bj88login__step-text h3 {
    font-size: 1.4em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-bj88login__step-text p {
    color: #f0f0f0;
    font-size: 0.95em;
    margin-bottom: 0;
}

.page-bj88login__inline-link {
    color: #90caf9; /* Lighter blue for links on dark background */
    text-decoration: underline;
}

.page-bj88login__inline-link:hover {
    color: #e0f2f7;
}

.page-bj88login__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

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

.page-bj88login__game-card {
    display: block;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-bj88login__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-bj88login__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-bj88login__game-title {
    font-size: 1.3em;
    color: #2563eb;
    padding: 15px;
    text-align: center;
}

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

.page-bj88login__promotion-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-bj88login__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-bj88login__promotion-title {
    font-size: 1.4em;
    color: #2563eb;
    padding: 0 15px;
    margin-bottom: 10px;
}

.page-bj88login__promotion-text {
    color: #64748b;
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-bj88login__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-bj88login__faq-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.page-bj88login__faq-item:hover {
    background-color: #f0f0f0;
}

.page-bj88login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-bj88login__faq-qtext {
    font-size: 1.15em;
    color: #2563eb;
    font-weight: bold;
    pointer-events: none; /* Prevent text from blocking click event */
}

.page-bj88login__faq-toggle {
    font-size: 1.5em;
    color: #2563eb;
    font-weight: bold;
    pointer-events: none; /* Prevent icon from blocking click event */
    transition: transform 0.3s ease;
}

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

.page-bj88login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
}

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

.page-bj88login__faq-answer p {
    color: #64748b;
    font-size: 1em;
    margin-bottom: 0;
}

.page-bj88login__support-section {
    padding: 60px 0;
    text-align: center;
}

.page-bj88login__support-contact {
    margin-top: 40px;
}

.page-bj88login__floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff0000; /* Eye-catching red */
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    word-wrap: normal;
    max-width: calc(100% - 40px); /* Ensure it doesn't overflow on small screens */
    box-sizing: border-box;
}

.page-bj88login__floating-button:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-bj88login__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.5em);
    }

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

    .page-bj88login__hero-image {
        height: 500px;
    }

    .page-bj88login__games-grid,
    .page-bj88login__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-bj88login__container {
        padding: 15px;
    }

    .page-bj88login__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-bj88login__hero-image {
        height: 300px;
        margin-bottom: 15px;
    }

    .page-bj88login__hero-content {
        padding: 0 15px;
    }

    .page-bj88login__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-bj88login__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-bj88login__btn-primary,
    .page-bj88login__btn-secondary,
    .page-bj88login__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-bj88login__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-bj88login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-bj88login__benefits-section,
    .page-bj88login__games-section,
    .page-bj88login__promotions-section,
    .page-bj88login__faq-section,
    .page-bj88login__dark-section {
        padding: 40px 0;
    }

    .page-bj88login__benefit-item {
        padding: 20px;
    }

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

    .page-bj88login__benefit-title {
        font-size: 1.3em;
    }

    .page-bj88login__step-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .page-bj88login__step-number {
        margin-bottom: 15px;
    }

    .page-bj88login__step-text h3 {
        font-size: 1.2em;
    }

    .page-bj88login__step-text p {
        font-size: 0.9em;
    }

    .page-bj88login__games-grid,
    .page-bj88login__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-bj88login__game-image,
    .page-bj88login__promotion-image {
        height: 180px;
    }

    .page-bj88login__game-title,
    .page-bj88login__promotion-title {
        font-size: 1.2em;
    }

    .page-bj88login__promotion-text {
        font-size: 0.9em;
    }

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

    .page-bj88login__faq-qtext {
        font-size: 1em;
    }

    .page-bj88login__faq-answer {
        padding: 15px !important;
    }

    .page-bj88login__faq-answer p {
        font-size: 0.9em;
    }

    .page-bj88login__floating-button {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: calc(100% - 30px) !important;
        width: auto;
    }

    /* Ensure all images and containers are responsive */
    .page-bj88login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-bj88login__container,
    .page-bj88login__hero-content,
    .page-bj88login__benefits-grid,
    .page-bj88login__guide-steps,
    .page-bj88login__games-grid,
    .page-bj88login__promotions-grid,
    .page-bj88login__faq-list,
    .page-bj88login__cta-buttons,
    .page-bj88login__support-contact {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-bj88login__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-bj88login__benefit-item,
    .page-bj88login__step-item,
    .page-bj88login__game-card,
    .page-bj88login__promotion-card,
    .page-bj88login__faq-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .page-bj88login p, .page-bj88login li, .page-bj88login h1, .page-bj88login h2, .page-bj88login h3 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}