.page-index-9bet-advantages {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Header offset */
.page-index-9bet-advantages__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-index-9bet-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index-9bet-advantages__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-9bet-advantages__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-index-9bet-advantages__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    background: #1a1a1a; /* Fallback dark background */
}

.page-index-9bet-advantages__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-index-9bet-advantages__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4); /* Darken video for text readability */
    cursor: pointer; /* Indicates clickability */
}

.page-index-9bet-advantages__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-index-9bet-advantages__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for title */
}

.page-index-9bet-advantages__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-index-9bet-advantages__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-index-9bet-advantages__btn-primary,
.page-index-9bet-advantages__btn-secondary,
.page-index-9bet-advantages__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-index-9bet-advantages__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-index-9bet-advantages__btn-primary:hover {
    background-color: #1e87b8;
    border-color: #1e87b8;
}

.page-index-9bet-advantages__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-index-9bet-advantages__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-index-9bet-advantages__btn-tertiary {
    background-color: #EA7C07; /* Login color for download button */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-index-9bet-advantages__btn-tertiary:hover {
    background-color: #c76706;
    border-color: #c76706;
}

/* Advantages Section */
.page-index-9bet-advantages__advantages-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
}

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

.page-index-9bet-advantages__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark card */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index-9bet-advantages__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-9bet-advantages__card-image {
    width: 100%; /* Max width for images */
    height: auto;
    max-height: 300px; /* Limit height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as a block element */
}

.page-index-9bet-advantages__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-index-9bet-advantages__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Game Categories Section */
.page-index-9bet-advantages__game-categories-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-index-9bet-advantages__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-index-9bet-advantages__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index-9bet-advantages__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-index-9bet-advantages__category-image {
    width: 100%;
    height: 200px; /* Fixed height for category images */
    object-fit: cover;
    display: block;
}

.page-index-9bet-advantages__category-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 15px 10px 10px 10px;
}

.page-index-9bet-advantages__category-description {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 15px 20px 15px;
    flex-grow: 1; /* Allow description to take available space */
}

/* CTA Section */
.page-index-9bet-advantages__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-index-9bet-advantages__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.page-index-9bet-advantages__cta-image {
    max-width: 50%;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-9bet-advantages__cta-download-text {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-index-9bet-advantages__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-index-9bet-advantages__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-9bet-advantages__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-index-9bet-advantages__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-index-9bet-advantages__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-index-9bet-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-index-9bet-advantages__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-index-9bet-advantages__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

.page-index-9bet-advantages__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-index-9bet-advantages__faq-item[open] .page-index-9bet-advantages__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth transition */
    padding-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-9bet-advantages__hero-title {
        font-size: 3em;
    }
    .page-index-9bet-advantages__hero-description {
        font-size: 1.2em;
    }
    .page-index-9bet-advantages__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-index-9bet-advantages__container,
    .page-index-9bet-advantages__hero-content,
    .page-index-9bet-advantages__cta-section .page-index-9bet-advantages__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-index-9bet-advantages__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-index-9bet-advantages__hero-title {
        font-size: 2.2em;
    }
    .page-index-9bet-advantages__hero-description {
        font-size: 1em;
    }
    .page-index-9bet-advantages__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons responsive */
    .page-index-9bet-advantages__btn-primary,
    .page-index-9bet-advantages__btn-secondary,
    .page-index-9bet-advantages__btn-tertiary,
    .page-index-9bet-advantages a[class*="button"],
    .page-index-9bet-advantages 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: 12px 20px !important; /* Adjust padding for smaller screens */
    }
    .page-index-9bet-advantages__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }

    /* Images responsive */
    .page-index-9bet-advantages img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-index-9bet-advantages__card-image,
    .page-index-9bet-advantages__category-image,
    .page-index-9bet-advantages__cta-image {
        width: 100% !important;
        height: auto !important;
        max-height: unset !important; /* Remove fixed height for mobile */
    }

    /* Videos responsive */
    .page-index-9bet-advantages video,
    .page-index-9bet-advantages__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
        position: static !important; /* Remove absolute positioning on mobile */
        transform: none !important;
        filter: brightness(0.6) !important; /* Slightly less dark for mobile */
    }
    .page-index-9bet-advantages__hero-video-wrapper {
        position: relative !important;
        height: auto !important;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        background-color: #000;
    }
    .page-index-9bet-advantages__hero-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Sections padding */
    .page-index-9bet-advantages__advantages-section,
    .page-index-9bet-advantages__game-categories-section,
    .page-index-9bet-advantages__cta-section,
    .page-index-9bet-advantages__faq-section {
        padding: 40px 0;
    }

    .page-index-9bet-advantages__section-intro {
        margin-bottom: 20px;
    }

    /* Card grid for mobile */
    .page-index-9bet-advantages__advantage-grid,
    .page-index-9bet-advantages__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-9bet-advantages__card,
    .page-index-9bet-advantages__category-card {
        padding: 20px;
    }

    .page-index-9bet-advantages__cta-image {
        max-width: 80%;
    }

    .page-index-9bet-advantages__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-index-9bet-advantages__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-index-9bet-advantages__hero-title {
        font-size: 1.8em;
    }
    .page-index-9bet-advantages__section-title {
        font-size: 1.8em;
    }
    .page-index-9bet-advantages__card-title {
        font-size: 1.5em;
    }
    .page-index-9bet-advantages__category-title {
        font-size: 1.3em;
    }
    .page-index-9bet-advantages__btn-primary,
    .page-index-9bet-advantages__btn-secondary,
    .page-index-9bet-advantages__btn-tertiary {
        font-size: 0.9em;
        padding: 10px 15px !important;
    }
}