
    /* General Styling for 888 Page */
.page-888 {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark background */
    background-color: #1a1a1a; /* Dark background */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
}

.page-888__highlight {
    color: #ffcc00; /* Gold/yellow for highlights */
}

/* Section Titles */
.page-888__section-title,
.page-888__cta-title {
    font-size: 2.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    padding: 0 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-888__section-subtitle,
.page-888__cta-description {
    font-size: 1em;
    color: #cccccc;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

/* Buttons */
.page-888__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    white-space: nowrap;
}

.page-888__button--primary {
    background-color: #ffcc00; /* Gold */
    color: #1a1a1a;
    border: none;
}

.page-888__button--primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-888__button--secondary {
    background-color: #333333;
    color: #ffcc00;
    border: 1px solid #ffcc00;
}

.page-888__button--secondary:hover {
    background-color: #444444;
    transform: translateY(-2px);
}

/* Floating Buttons (Register/Login) */
.page-888__floating-buttons {
    position: fixed;
    top: 70px; /* Adjusted to be below header, but still floating */
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-888__button--register,
.page-888__button--login {
    width: 100px; /* Fixed width for floating buttons */
    padding: 10px 0;
    font-size: 0.9em;
    border-radius: 20px;
}

.page-888__button--register {
    background-color: #007bff; /* Blue for register */
    color: #ffffff;
    border: none;
}

.page-888__button--register:hover {
    background-color: #0056b3;
}

.page-888__button--login {
    background-color: #28a745; /* Green for login */
    color: #ffffff;
    border: none;
}

.page-888__button--login:hover {
    background-color: #1e7e34;
}

/* Hero Section */
.page-888__hero-section {
    position: relative;
    width: 100%;
    height: 60vh; /* Responsive height */
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-888__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    max-width: 100%; /* Ensure responsiveness */
}

.page-888__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-888__hero-content {
    position: relative;
    z-index: 3;
    max-width: 90%;
    padding: 20px;
    box-sizing: border-box;
}

.page-888__hero-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-888__hero-description {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Game Categories */
.page-888__game-categories {
    padding: 40px 15px;
    background-color: #222222;
    margin-bottom: 40px;
}

.page-888__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-888__category-item {
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-888__category-item:hover {
    transform: translateY(-5px);
}

.page-888__category-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
}

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

.page-888__category-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px;
    flex-grow: 1; /* Allows description to take up available space */
    word-wrap: break-word; /* Ensure text wraps */
    overflow-wrap: break-word; /* Ensure text wraps */
}

/* Promotions Section */
.page-888__promotions-section {
    padding: 40px 15px;
    margin-bottom: 40px;
}

.page-888__promotion-cards {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-888__promotion-card {
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex: 1 1 calc(50% - 30px); /* Two cards per row on larger screens */
    max-width: calc(50% - 15px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

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

.page-888__promotion-image {
    width: 100%;
    height: 220px; /* Consistent image height */
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
}

.page-888__promotion-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-888__promotion-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-888__promotion-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Why Us Section */
.page-888__why-us-section {
    padding: 40px 15px;
    background-color: #222222;
    margin-bottom: 40px;
}

.page-888__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-888__advantage-item {
    background-color: #333333;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-888__advantage-item:hover {
    transform: translateY(-5px);
}

.page-888__advantage-icon {
    width: 100px; /* Larger icon size */
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
}

.page-888__advantage-title {
    font-size: 1.4em;
    color: #ffcc00;
    margin-bottom: 10px;
}

.page-888__advantage-description {
    font-size: 0.95em;
    color: #cccccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* FAQ Section */
.page-888__faq-section {
    padding: 40px 15px;
    margin-bottom: 40px;
}

.page-888__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-888__faq-item {
    background-color: #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

.page-888__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #444444;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-888__faq-question:hover {
    background-color: #555555;
}

.page-888__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    flex-grow: 1;
    pointer-events: none; /* Prevent h3 from intercepting click */
}

.page-888__faq-question-text {
    pointer-events: none; /* Ensure text doesn't block click */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-888__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffcc00;
    margin-left: 15px;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevent toggle from intercepting click */
}

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

.page-888__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    color: #cccccc;
    font-size: 0.95em;
    box-sizing: border-box;
}

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

.page-888__faq-answer p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Call to Action Section */
.page-888__cta-section {
    padding: 60px 15px;
    background-color: #1a1a1a;
    text-align: center;
}

.page-888__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-888__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}


/* Responsive Design - Mobile first, then adjust for larger screens */
@media (max-width: 768px) {
    .page-888__section-title,
    .page-888__cta-title {
        font-size: 1.8em;
    }

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

    .page-888__hero-description {
        font-size: 1em;
    }

    .page-888__button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-888__floating-buttons {
        top: 60px; /* Adjust for potentially smaller header on mobile */
        right: 10px;
        gap: 8px;
    }
    .page-888__button--register,
    .page-888__button--login {
        width: 90px;
        padding: 8px 0;
        font-size: 0.85em;
    }

    .page-888__category-grid,
    .page-888__advantages-grid {
        grid-template-columns: 1fr; /* Stack items on mobile */
    }

    .page-888__category-item,
    .page-888__advantage-item {
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .page-888__category-image,
    .page-888__promotion-image,
    .page-888__advantage-icon {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-888__promotion-card {
        flex: 1 1 100%; /* Stack promotions on mobile */
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .page-888__faq-question h3 {
        font-size: 1.1em;
    }

    .page-888__faq-answer {
        padding: 0 15px; /* Adjust padding for mobile */
    }

    .page-888__faq-item.active .page-888__faq-answer {
        padding: 15px 15px !important; /* Adjust expanded padding for mobile */
    }
    .page-888__faq-toggle {
        font-size: 1.5em;
    }

    .page-888__faq-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important; /* Add some padding to container */
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .page-888__category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-888__advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-888__promotion-card {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 15px);
    }
}
  