.elementor-widget-abp5-featured-games-site1-widget,
.elementor-element[data-widget_type="abp5-featured-games-site1-widget.default"],
.elementor-widget-affiliate_betportal_5_featured_games_site1,
.elementor-element[data-widget_type="affiliate_betportal_5_featured_games_site1.default"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.elementor-section:has(.abp5_featured_games_site1_widget),
.elementor-container:has(.abp5_featured_games_site1_widget) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.e-con:has(.abp5_featured_games_site1_widget),
.e-con:has(.abp5_featured_games_site1_widget) > .e-con-inner {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

.e-con:has(.abp5_featured_games_site1_widget) > .e-con-inner {
    max-width: 100% !important;
}

.e-con:has(.abp5_featured_games_site1_widget) > .e-con-inner > .elementor-widget,
.e-con:has(.abp5_featured_games_site1_widget) > .e-con-inner > .elementor-widget > .elementor-widget-container {
    height: auto !important;
}

.abp5_featured_games_site1_widget {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: #1e1e1f;
    padding: 60px 3% 80px 3%;
    overflow: hidden;
    box-sizing: border-box;
}

.abp5_featured_games_site1_inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 1px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.abp5_featured_games_site1_decor_top {
    position: absolute;
    top: 20px;
    right: 0;
    width: 280px;
    z-index: 2;
    transform: translate3d(var(--fg-decor-top-x, 0px), var(--fg-decor-top-y, 0px), 0);
    transition: transform 0.25s ease;
}

.abp5_featured_games_site1_decor_top img {
    display: block;
    width: 100%;
    height: auto;
}

.abp5_featured_games_site1_head {
    margin-bottom: 32px;
    text-align: center;
}

.abp5_featured_games_site1_eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c4c4c7;
    margin-bottom: 10px;
}

.abp5_featured_games_site1_heading {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.2;
    color: #ffffff;
}

.abp5_featured_games_site1_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.abp5_featured_games_site1_card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.abp5_featured_games_site1_card_link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.abp5_featured_games_site1_card_image {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.abp5_featured_games_site1_card_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--card-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.abp5_featured_games_site1_card:hover .abp5_featured_games_site1_card_image::before {
    transform: scale(1.1);
}

.abp5_featured_games_site1_card_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
}

.abp5_featured_games_site1_card_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
    position: relative;
    transition: padding-left 0.3s ease;
}

.abp5_featured_games_site1_card_number {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.abp5_featured_games_site1_card:hover .abp5_featured_games_site1_card_number {
    opacity: 1;
    transform: translateX(0);
}

.abp5_featured_games_site1_card:hover .abp5_featured_games_site1_card_title {
    padding-left: 32px;
}

.abp5_featured_games_site1_card_arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #888888;
    transition: color 0.25s ease;
}

.abp5_featured_games_site1_card_arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.abp5_featured_games_site1_card_arrow circle {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.abp5_featured_games_site1_card_arrow path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.abp5_featured_games_site1_card:hover .abp5_featured_games_site1_card_arrow {
    color: #ffffff;
}

.abp5_featured_games_site1_card_line {
    height: 1px;
    background-color: #888888;
    transition: background-color 0.25s ease;
    margin: 0 20px;
}

.abp5_featured_games_site1_card:hover .abp5_featured_games_site1_card_line {
    background-color: #ffffff;
}

.abp5_featured_games_site1_footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 120px;
}

.abp5_featured_games_site1_decor_bottom {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 280px;
    z-index: 1;
    transform: translate3d(var(--fg-decor-bottom-x, 0px), var(--fg-decor-bottom-y, 0px), 0);
    transition: transform 0.25s ease;
}

.abp5_featured_games_site1_decor_bottom img {
    display: block;
    width: 100%;
    height: auto;
}

.abp5_featured_games_site1_cta_wrap {
    position: relative;
    z-index: 2;
}

.abp5_featured_games_site1_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #d0021b;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.abp5_featured_games_site1_button:hover {
    background: #444444;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 1279px) {
    .abp5_featured_games_site1_widget {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 60px 4% 70px 4%;
    }

    .abp5_featured_games_site1_inner {
        padding-left: 0;
        padding-right: 0;
    }

    .abp5_featured_games_site1_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .abp5_featured_games_site1_decor_top {
        width: 220px;
    }

    .abp5_featured_games_site1_decor_bottom {
        width: 220px;
    }

    .abp5_featured_games_site1_heading {
        font-size: 36px;
    }
}

@media (max-width: 779px) {
    .abp5_featured_games_site1_widget {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 40px 4% 50px 4%;
    }

    .abp5_featured_games_site1_inner {
        padding-left: 0;
        padding-right: 0;
    }

    .abp5_featured_games_site1_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .abp5_featured_games_site1_heading {
        font-size: 32px;
    }

    .abp5_featured_games_site1_decor_top,
    .abp5_featured_games_site1_decor_bottom {
        display: none;
    }

    .abp5_featured_games_site1_footer {
        min-height: 80px;
    }
}

/* Ensure any Elementor wrapper around the widget always grows with content
   (fixes overlap on pages where the widget sits inside a fixed‑height container,
   e.g. the main d.local page) */
.elementor-section:has(.abp5_featured_games_site1_widget),
.elementor-section:has(.abp5_featured_games_site1_widget) > .elementor-container,
.elementor-section:has(.abp5_featured_games_site1_widget) .elementor-column,
.elementor-section:has(.abp5_featured_games_site1_widget) .elementor-widget-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

