.page-bl555 {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
}

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

.page-bl555__section-title {
    font-size: 2.5em;
    color: #2563eb;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.page-bl555__section-subtitle {
    font-size: 1.2em;
    color: #64748b;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-bl555__dark-bg {
    background-color: #1a1a2e; /* Darker background for contrast */
    color: #ffffff;
    padding: 60px 0;
}

.page-bl555__light-bg {
    background-color: #f8f9fa;
    color: #333333;
    padding: 60px 0;
}

/* Hero Section */
.page-bl555__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-bottom: 40px;
}

.page-bl555__hero-image-wrapper {
    max-width: 100%;
    overflow: hidden;
}

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

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

.page-bl555__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    color: #2563eb;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.page-bl555__hero-description {
    font-size: 1.1em;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

/* Buttons */
.page-bl555__btn-primary,
.page-bl555__btn-secondary,
.page-bl555__game-button,
.page-bl555__floating-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-bl555__btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

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

.page-bl555__btn-secondary:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-bl555__text-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-bl555__text-link:hover {
    color: #1e40af;
}

/* About Section */
.page-bl555__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-bl555__about-text {
    flex: 1;
    padding-right: 20px;
}

.page-bl555__about-text p {
    margin-bottom: 15px;
    color: #4b5563;
}

.page-bl555__about-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-bl555__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.page-bl555__game-card {
    background-color: #2e2e4a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-bl555__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-bl555__game-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-bl555__game-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-bl555__game-button {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 6px;
    display: inline-block;
    margin-top: auto;
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
}

.page-bl555__game-button:hover {
    background-color: #1e40af;
}

.page-bl555__cta-full-width {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-bl555__promotion-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-bl555__promotion-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-bl555__promotion-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-bl555__promotion-text {
    flex: 1;
    padding-left: 20px;
}

.page-bl555__promotion-text p {
    margin-bottom: 15px;
    color: #4b5563;
}

.page-bl555__promotion-text .page-bl555__btn-primary,
.page-bl555__promotion-text .page-bl555__btn-secondary {
    margin-top: 20px;
    margin-right: 15px;
}

/* Guide Section */
.page-bl555__guide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    color: #ffffff;
}

.page-bl555__guide-text {
    flex: 1;
    padding-right: 20px;
}

.page-bl555__guide-text p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.page-bl555__guide-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-bl555__guide-list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #ffffff;
    box-sizing: border-box;
    word-wrap: break-word;
}

.page-bl555__guide-list-item strong {
    color: #2563eb;
}

.page-bl555__guide-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-bl555__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* App Section */
.page-bl555__app-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-bl555__app-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-bl555__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-bl555__app-text {
    flex: 1;
    padding-left: 20px;
}

.page-bl555__app-text p {
    margin-bottom: 15px;
    color: #4b5563;
}

.page-bl555__app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-bl555__faq-list {
    margin-top: 40px;
}

.page-bl555__faq-item {
    background-color: #2e2e4a;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.page-bl555__faq-item.active {
    background-color: #3a3a5a;
}

.page-bl555__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    font-size: 1.15em;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.page-bl555__faq-question:hover {
    color: #2563eb;
}

.page-bl555__faq-qtext {
    pointer-events: none; /* Prevent text selection from interfering with click */
    flex-grow: 1;
}

.page-bl555__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 20px;
    color: #2563eb;
    pointer-events: none; /* Prevent toggle icon from interfering with click */
    transition: transform 0.3s ease;
}

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

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

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

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

/* Contact Section */
.page-bl555__contact-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-bl555__contact-text {
    flex: 1;
    padding-right: 20px;
}

.page-bl555__contact-text p {
    margin-bottom: 15px;
    color: #4b5563;
}

.page-bl555__contact-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-bl555__contact-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Conclusion Section */
.page-bl555__conclusion-section {
    text-align: center;
}

.page-bl555__conclusion-section .page-bl555__btn-primary {
    margin-top: 30px;
}

/* Floating Login Button */
.page-bl555__floating-login {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.page-bl555__floating-button {
    background-color: #ffc107; /* Eye-catching color */
    color: #1a1a2e;
    border: none;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    width: 100%;
    text-transform: uppercase;
}

.page-bl555__floating-button:hover {
    background-color: #e0a800;
    transform: translateX(-50%) translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-bl555__container {
        padding: 15px;
    }

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

    .page-bl555__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-bl555__about-content,
    .page-bl555__promotion-content,
    .page-bl555__guide-content,
    .page-bl555__app-content,
    .page-bl555__contact-content {
        flex-direction: column;
        text-align: center;
    }

    .page-bl555__about-text,
    .page-bl555__promotion-text,
    .page-bl555__guide-text,
    .page-bl555__app-text,
    .page-bl555__contact-text {
        padding-right: 0;
        padding-left: 0;
    }

    .page-bl555__about-image-wrapper,
    .page-bl555__promotion-image-wrapper,
    .page-bl555__guide-image-wrapper,
    .page-bl555__app-image-wrapper,
    .page-bl555__contact-image-wrapper {
        margin-top: 30px;
    }

    .page-bl555__app-buttons {
        justify-content: center;
    }

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

    .page-bl555__btn-primary,
    .page-bl555__btn-secondary {
        width: 100%;
    }
    .page-bl555__promotion-text .page-bl555__btn-primary,
    .page-bl555__promotion-text .page-bl555__btn-secondary {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .page-bl555 {
        font-size: 15px;
    }

    .page-bl555__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-bl555__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-top: 15px;
    }

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

    .page-bl555__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-bl555__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-bl555__dark-bg, .page-bl555__light-bg {
        padding: 40px 0;
    }

    .page-bl555__container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Images responsive */
    .page-bl555 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box;
    }

    .page-bl555__hero-image-wrapper,
    .page-bl555__about-image-wrapper,
    .page-bl555__promotion-image-wrapper,
    .page-bl555__guide-image-wrapper,
    .page-bl555__app-image-wrapper,
    .page-bl555__contact-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsive */
    .page-bl555__btn-primary,
    .page-bl555__btn-secondary,
    .page-bl555__game-button,
    .page-bl555__floating-button,
    .page-bl555 a[class*="button"],
    .page-bl555 a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-bl555__hero-buttons,
    .page-bl555__app-buttons,
    .page-bl555__promotion-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
    }
    .page-bl555__promotion-text .page-bl555__btn-primary,
    .page-bl555__promotion-text .page-bl555__btn-secondary {
        margin-right: 0;
        margin-bottom: 0;
    }

    /* Games Grid Responsive */
    .page-bl555__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-bl555__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* FAQ Responsive */
    .page-bl555__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

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

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

    /* List items responsive */
    .page-bl555__guide-list-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .page-bl555__guide-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Floating button responsive */
    .page-bl555__floating-login {
        width: calc(100% - 30px);
        left: 50%;
        transform: translateX(-50%);
    }
}