
    /* General styling for the page-987bet container */
.page-987bet {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text on dark background */
    background-color: #1a1a2e; /* Dark background */
    line-height: 1.6;
    padding-top: var(--header-offset, 122px); /* Fallback for header offset */
}

.page-987bet__section-title {
    font-size: 2.5em;
    color: #e9c46a; /* Gold accent color */
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__subsection-title {
    font-size: 1.8em;
    color: #f4a261; /* Orange accent color */
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Hero Section */
.page-987bet__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px 60px; /* Decorative padding-top, more padding-bottom for content */
    min-height: 60vh;
    overflow: hidden;
    background-color: #0f0f1a;
}

.page-987bet__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background */
    z-index: 0;
    max-width: 100%; /* Responsive image */
}

.page-987bet__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-987bet__hero-title {
    font-size: 2.8em;
    color: #e9c46a;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.page-987bet__button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Ensure buttons are not styled as links */
    display: inline-block;
    color: #fff; /* Default button text color */
}

.page-987bet__button--primary {
    background-color: #e76f51; /* Reddish orange */
    color: #fff;
}

.page-987bet__button--primary:hover {
    background-color: #d6593a;
    transform: translateY(-2px);
}

.page-987bet__button--secondary {
    background-color: #2a9d8f; /* Teal */
    color: #fff;
}

.page-987bet__button--secondary:hover {
    background-color: #217e71;
    transform: translateY(-2px);
}

.page-987bet__promo-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-987bet__external-link {
    color: #e9c46a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-987bet__external-link:hover {
    color: #f4a261;
}

/* Floating Buttons */
.page-987bet__floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
    width: calc(100% - 30px); /* Adjust width for mobile padding */
    max-width: 400px; /* Limit width on larger screens */
    box-sizing: border-box;
}

.page-987bet__floating-button {
    flex: 1;
    padding: 15px 10px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
}

.page-987bet__floating-button--register {
    background-color: #e76f51; /* Reddish orange */
}

.page-987bet__floating-button--register:hover {
    background-color: #d6593a;
    transform: translateY(-2px);
}

.page-987bet__floating-button--login {
    background-color: #2a9d8f; /* Teal */
}

.page-987bet__floating-button--login:hover {
    background-color: #217e71;
    transform: translateY(-2px);
}

/* Section General Styling */
.page-987bet__features-section,
.page-987bet__games-section,
.page-987bet__promotions-section,
.page-987bet__payment-providers-section,
.page-987bet__faq-section,
.page-987bet__cta-section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
    background-color: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Features Section */
.page-987bet__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-987bet__feature-item {
    background-color: #264653; /* Darker teal */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__feature-item:hover {
    transform: translateY(-5px);
}

.page-987bet__feature-icon {
    width: 150px; /* Min 200x200px requirement met by GALLERY, but CSS can resize */
    height: auto;
    margin-bottom: 15px;
    max-width: 100%;
    border-radius: 5px;
}

.page-987bet__feature-title {
    font-size: 1.5em;
    color: #e9c46a;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__feature-description {
    font-size: 1em;
    color: #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Games Section */
.page-987bet__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-987bet__game-card {
    background-color: #264653;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.page-987bet__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%; /* Responsive image */
}

.page-987bet__game-title {
    font-size: 1.6em;
    color: #f4a261;
    margin: 15px 10px 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__game-description {
    font-size: 0.95em;
    color: #ccc;
    padding: 0 15px 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Promotions Section */
.page-987bet__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-987bet__promotion-card {
    background-color: #264653;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.page-987bet__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%; /* Responsive image */
}

.page-987bet__promotion-title {
    font-size: 1.6em;
    color: #e9c46a;
    margin: 15px 10px 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__promotion-description {
    font-size: 0.95em;
    color: #ccc;
    padding: 0 15px 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Payment & Providers Section */
.page-987bet__payment-methods,
.page-987bet__game-providers {
    margin-top: 40px;
}

.page-987bet__logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Min width for logos */
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 0 15px; /* Ensure padding for mobile */
}

.page-987bet__logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #315b6b; /* Slightly lighter than section background */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    height: 80px; /* Fixed height for consistent logo display */
    box-sizing: border-box;
}

.page-987bet__logo-link:hover {
    background-color: #3b7489;
}

.page-987bet__logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: auto;
    width: auto;
    max-width: 100%; /* Responsive image */
}

/* FAQ Section */
.page-987bet__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-987bet__faq-item {
    background-color: #264653;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    background-color: #2a9d8f; /* Teal for question background */
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-987bet__faq-question:hover {
    background-color: #217e71;
}

.page-987bet__faq-question-text {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
    pointer-events: none; /* Prevent text from blocking click event */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-grow: 1; /* Allow text to take available space */
}

.page-987bet__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle from blocking click event */
    transition: transform 0.3s ease;
}

.page-987bet__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #315b6b; /* Darker background for answer */
    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;
    box-sizing: border-box;
}

.page-987bet__faq-answer p {
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-987bet__faq-item.active .page-987bet__faq-answer {
    max-height: 2000px !important; /* Sufficiently large value */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-987bet__faq-item.active .page-987bet__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or rotate to -) */
}

/* CTA Section */
.page-987bet__cta-section {
    text-align: center;
    background-color: #0f0f1a;
    padding: 80px 20px;
    border-radius: 10px;
    margin-bottom: 20px; /* Smaller margin bottom to avoid clash with footer */
}

.page-987bet__cta-description {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-987bet__hero-title {
        font-size: 2.2em;
    }
    .page-987bet__section-title {
        font-size: 2em;
    }
    .page-987bet__subsection-title {
        font-size: 1.6em;
    }
    .page-987bet__features-grid,
    .page-987bet__games-grid,
    .page-987bet__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .page-987bet__logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-987bet {
        padding-top: var(--header-offset, 122px); /* Ensure body padding is honored */
    }

    .page-987bet__hero-section {
        padding: 10px 15px 120px; /* Adjust padding for floating buttons */
        min-height: 70vh;
    }

    .page-987bet__hero-title {
        font-size: 1.8em;
    }

    .page-987bet__hero-description {
        font-size: 1em;
    }

    .page-987bet__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-987bet__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .page-987bet__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-987bet__subsection-title {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    /* List items responsive */
    .page-987bet__features-grid,
    .page-987bet__games-grid,
    .page-987bet__promotions-grid {
        grid-template-columns: 1fr !important; /* Single column for all grids */
        gap: 20px !important;
        padding: 0 15px !important; /* Adjust padding for container */
    }

    .page-987bet__feature-item,
    .page-987bet__game-card,
    .page-987bet__promotion-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px !important; /* Reduce padding to fit */
    }

    .page-987bet__feature-icon {
        width: 120px;
    }

    .page-987bet__game-image,
    .page-987bet__promotion-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-987bet__logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }

    .page-987bet__logo-link {
        height: 70px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .page-987bet__faq-question {
        padding: 15px 20px;
    }

    .page-987bet__faq-question-text {
        font-size: 1.1em;
    }

    .page-987bet__faq-toggle {
        font-size: 1.5em;
    }

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

    .page-987bet__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-987bet__cta-buttons .page-987bet__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .page-987bet__hero-title {
        font-size: 1.6em;
    }
    .page-987bet__section-title {
        font-size: 1.6em;
    }
    .page-987bet__subsection-title {
        font-size: 1.2em;
    }
    .page-987bet__hero-section {
        padding-bottom: 100px; /* Ensure enough space for floating buttons */
    }
    .page-987bet__floating-buttons {
        width: calc(100% - 20px); /* Adjust width for smaller screens */
        gap: 10px;
    }
    .page-987bet__floating-button {
        font-size: 1em;
        padding: 12px 8px;
    }
    .page-987bet__logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
        gap: 10px !important;
    }
    .page-987bet__logo-link {
        height: 60px !important;
    }
}
  