
    :root {
        --primary-color: #ffcc00; /* Vàng đậm */
        --secondary-color: #3366ff; /* Xanh dương */
        --accent-color: #ff3366; /* Hồng */
        --dark-bg: #1a1a1a; /* Nền tối */
        --light-text: #f0f0f0; /* Chữ sáng */
        --dark-text: #333333; /* Chữ tối */
        --card-bg: #2a2a2a; /* Nền thẻ */
        --border-color: #444444; /* Màu viền */
        --header-offset: 122px; /* Default offset, will be overridden by shared.css */
    }

    body {
        font-family: 'Arial', sans-serif;
        line-height: 1.6;
        color: var(--light-text);
        background-color: var(--dark-bg);
        margin: 0;
        padding: 0;
    }

    .page-5-fun {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 15px; /* Minimal padding-top, as body handles header offset */
        box-sizing: border-box;
    }

    /* Fallback for header offset if shared.css doesn't apply it to body */
    .page-5-fun:first-child {
        padding-top: var(--header-offset, 122px);
    }

    .page-5-fun__section {
        padding: 40px 20px;
        margin-bottom: 30px;
        border-radius: 10px;
        background-color: var(--card-bg);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        text-align: center;
        box-sizing: border-box;
    }

    .page-5-fun__section--dark {
        background-color: var(--dark-bg);
        color: var(--light-text);
    }

    .page-5-fun__section-title {
        font-size: 2.5em;
        color: var(--primary-color);
        margin-bottom: 25px;
        font-weight: bold;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .page-5-fun__section-subtitle {
        font-size: 1.8em;
        color: var(--light-text);
        margin-bottom: 20px;
    }

    .page-5-fun__text {
        font-size: 1.1em;
        color: var(--light-text);
        margin-bottom: 15px;
    }

    .page-5-fun__button {
        display: inline-block;
        background-color: var(--primary-color);
        color: var(--dark-text);
        padding: 12px 25px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1em;
        transition: background-color 0.3s ease, transform 0.2s ease;
        border: none;
        cursor: pointer;
        margin: 10px;
    }

    .page-5-fun__button:hover {
        background-color: #ffd740; /* Slightly lighter yellow */
        transform: translateY(-2px);
    }

    .page-5-fun__button--secondary {
        background-color: var(--secondary-color);
        color: var(--light-text);
    }

    .page-5-fun__button--secondary:hover {
        background-color: #5c85ff;
    }

    /* Hero Section */
    .page-5-fun__hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:gaming,casino,promotion,5fun_win]') no-repeat center center/cover;
        color: var(--light-text);
        padding: 80px 20px 60px;
        text-align: center;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
        margin-bottom: 30px;
    }

    .page-5-fun__hero-title {
        font-size: 3.5em;
        margin-bottom: 15px;
        color: var(--primary-color);
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
        line-height: 1.2;
    }

    .page-5-fun__hero-description {
        font-size: 1.4em;
        margin-bottom: 30px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        color: var(--light-text);
    }

    /* Product Display */
    .page-5-fun__product-display {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 40px 0;
        flex-wrap: wrap;
        gap: 20px;
    }

    .page-5-fun__product-image-wrapper {
        width: 100%;
        max-width: 800px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        box-sizing: border-box;
    }

    .page-5-fun__product-image {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .page-5-fun__product-image:hover {
        transform: scale(1.03);
    }

    /* Game Categories */
    .page-5-fun__game-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        margin-top: 30px;
        text-align: center;
    }

    .page-5-fun__category-card {
        background-color: var(--dark-bg);
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .page-5-fun__category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .page-5-fun__category-image-wrapper {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .page-5-fun__category-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .page-5-fun__category-title {
        font-size: 1.5em;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .page-5-fun__category-description {
        font-size: 1em;
        color: var(--light-text);
    }

    /* Promotions */
    .page-5-fun__promotions-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        margin-top: 30px;
    }

    .page-5-fun__promotion-card {
        background-color: var(--dark-bg);
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
    }

    .page-5-fun__promotion-image-wrapper {
        width: 100%;
        max-width: 400px;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .page-5-fun__promotion-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .page-5-fun__promotion-title {
        font-size: 1.6em;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .page-5-fun__promotion-description {
        font-size: 1em;
        color: var(--light-text);
        margin-bottom: 15px;
        flex-grow: 1;
    }

    /* Payment Methods & Providers */
    .page-5-fun__logo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        margin-top: 30px;
        align-items: center;
        justify-items: center;
    }

    .page-5-fun__logo-item {
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
        box-sizing: border-box;
        transition: transform 0.2s ease;
    }

    .page-5-fun__logo-item:hover {
        transform: translateY(-3px);
    }

    .page-5-fun__logo-image {
        max-width: 100%;
        max-height: 70px;
        height: auto;
        display: block;
    }

    /* Benefits */
    .page-5-fun__benefits-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        margin-top: 30px;
        text-align: left;
    }

    .page-5-fun__benefit-card {
        background-color: var(--dark-bg);
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
    }

    .page-5-fun__benefit-title {
        font-size: 1.4em;
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .page-5-fun__benefit-text {
        font-size: 1em;
        color: var(--light-text);
    }

    /* Floating Buttons */
    .page-5-fun__floating-buttons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 1000;
    }

    .page-5-fun__floating-button {
        background-color: var(--primary-color);
        color: var(--dark-text);
        padding: 12px 20px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1em;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        transition: background-color 0.3s ease, transform 0.2s ease;
        text-align: center;
        white-space: nowrap;
        border: none;
        cursor: pointer;
    }

    .page-5-fun__floating-button:hover {
        background-color: #ffd740;
        transform: translateY(-3px);
    }

    /* FAQ Section */
    .page-5-fun__faq-section {
        text-align: left;
    }

    .page-5-fun__faq-list {
        margin-top: 30px;
    }

    .page-5-fun__faq-item {
        background-color: var(--card-bg);
        border-radius: 8px;
        margin-bottom: 15px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
    }

    .page-5-fun__faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background-color: var(--dark-bg);
        color: var(--light-text);
        cursor: pointer;
        user-select: none;
        font-size: 1.2em;
        font-weight: bold;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .page-5-fun__faq-question:hover {
        background-color: #2e2e2e;
    }

    .page-5-fun__faq-question h3 {
        margin: 0;
        color: var(--primary-color);
        font-size: 1em; /* Adjust to fit parent font size */
        pointer-events: none; /* Prevent h3 from interfering with click event */
    }

    .page-5-fun__faq-toggle {
        font-size: 1.5em;
        font-weight: bold;
        color: var(--primary-color);
        transition: transform 0.3s ease;
        pointer-events: none; /* Prevent toggle icon from interfering with click event */
    }

    .page-5-fun__faq-answer {
        max-height: 0;
        overflow: hidden;
        padding: 0 25px;
        color: var(--light-text);
        background-color: var(--card-bg);
        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-5-fun__faq-item.active .page-5-fun__faq-answer {
        max-height: 2000px !important; /* Sufficiently large to contain content */
        padding: 20px 25px !important;
        opacity: 1;
    }

    .page-5-fun__faq-item.active .page-5-fun__faq-toggle {
        transform: rotate(45deg); /* Visually indicates open state */
    }
    .page-5-fun__faq-item .page-5-fun__faq-toggle::before {
        content: "+";
    }
    .page-5-fun__faq-item.active .page-5-fun__faq-toggle::before {
        content: "−"; /* Change + to - when active */
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .page-5-fun {
            padding: 10px 10px;
        }

        .page-5-fun__section {
            padding: 30px 15px;
            margin-bottom: 20px;
        }

        .page-5-fun__hero-section {
            padding: 60px 15px 40px;
        }

        .page-5-fun__hero-title {
            font-size: 2.5em;
        }

        .page-5-fun__hero-description {
            font-size: 1.2em;
        }

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

        .page-5-fun__section-subtitle {
            font-size: 1.5em;
        }

        .page-5-fun__game-categories,
        .page-5-fun__promotions-list,
        .page-5-fun__logo-grid,
        .page-5-fun__benefits-list {
            grid-template-columns: 1fr; /* Single column layout for most grids */
            gap: 15px;
        }

        /* Ensure list items and cards take full width on mobile */
        .page-5-fun__category-card,
        .page-5-fun__promotion-card,
        .page-5-fun__logo-item,
        .page-5-fun__benefit-card,
        .page-5-fun__faq-item {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 15px !important; /* Adjust padding for smaller screens */
        }

        /* List container optimization */
        .page-5-fun__game-categories,
        .page-5-fun__promotions-list,
        .page-5-fun__logo-grid,
        .page-5-fun__benefits-list,
        .page-5-fun__faq-list {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            padding: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .page-5-fun__text,
        .page-5-fun__category-description,
        .page-5-fun__promotion-description,
        .page-5-fun__benefit-text,
        .page-5-fun__faq-answer p {
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            word-break: break-word !important;
        }

        .page-5-fun__floating-buttons {
            flex-direction: row;
            width: calc(100% - 40px); /* Adjust for padding */
            left: 20px;
            right: 20px;
            justify-content: space-around;
            bottom: 15px;
            gap: 8px;
        }

        .page-5-fun__floating-button {
            flex: 1;
            font-size: 0.9em;
            padding: 10px 15px;
        }

        .page-5-fun__faq-question {
            font-size: 1em;
            padding: 15px 20px;
        }

        .page-5-fun__faq-answer {
            padding: 15px 20px !important;
        }
    }

    @media (max-width: 480px) {
        .page-5-fun__hero-title {
            font-size: 2em;
        }
        .page-5-fun__hero-description {
            font-size: 1em;
        }
        .page-5-fun__section-title {
            font-size: 1.8em;
        }
    }

    /* Image responsive styles */
    .page-5-fun__product-image,
    .page-5-fun__category-image,
    .page-5-fun__promotion-image,
    .page-5-fun__logo-image {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .page-5-fun__product-image-wrapper,
    .page-5-fun__category-image-wrapper,
    .page-5-fun__promotion-image-wrapper,
    .page-5-fun__logo-item {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    @media (max-width: 768px) {
        .page-5-fun__product-image,
        .page-5-fun__category-image,
        .page-5-fun__promotion-image,
        .page-5-fun__logo-image {
            max-width: 100% !important;
            height: auto !important;
        }

        .page-5-fun__product-image-wrapper,
        .page-5-fun__category-image-wrapper,
        .page-5-fun__promotion-image-wrapper,
        .page-5-fun__logo-item {
            width: 100% !important;
            max-width: 100% !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }
    }
  