.-ycwt-recent_posts_tabs_ajax {
    --rpt-gold: var(--mah-gold, #ffc400);
    padding: 76px 0 !important;
    background: radial-gradient(circle at 86% 18%, rgb(255 196 0 / 9%), transparent 30%), radial-gradient(circle at 14% 82%, rgb(255 196 0 / 5%), transparent 28%), #090a0a;
    color: #fff;
    font-family: "Tajawal", sans-serif;
}

.-ycwt-recent_posts_tabs_ajax * {
    box-sizing: border-box;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-header {
    margin-bottom: 31px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.3;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-nav {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tab {
    min-height: 39px;
    padding: 0 16px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 9px;
    background: #111211;
    color: rgb(255 255 255 / 68%);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tab.active {
    border-color: rgb(255 196 0 / 35%);
    background: #151615;
    color: var(--rpt-gold);
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tab:disabled {
    cursor: wait;
    opacity: .55;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tab:focus-visible,
.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-read-more:focus-visible,
.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media:focus-visible,
.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body h3 a:focus-visible,
.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot:focus-visible {
    outline: 3px solid rgb(255 196 0 / 38%);
    outline-offset: 3px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-results {
    position: relative;
    transition: opacity .2s ease;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-shell.is-loading .recent-posts-tabs-results {
    opacity: .42;
    pointer-events: none;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded) {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded) .recent-posts-tabs-card {
    flex: 0 0 calc(25% - 12px);
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 14px;
    background: #151615;
    box-shadow: 0 13px 30px rgb(0 0 0 / 28%);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media {
    position: relative;
    height: 205px;
    overflow: hidden;
    display: block;
    background: linear-gradient(145deg, #0d0e0e, #101111);
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rpt-gold);
    font-size: 45px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body {
    min-height: 215px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body h3 a {
    color: #fff;
    font-weight: 900;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body p {
    margin: 8px 0 16px;
    color: rgb(255 255 255 / 65%);
    font-size: 12px;
    line-height: 1.8;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price {
    margin: 13px 0 18px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price strong {
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 25px;
    line-height: 1;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price span {
    color: rgb(255 255 255 / 54%);
    font-size: 11px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-read-more {
    min-height: 39px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgb(255 196 0 / 35%);
    border-radius: 9px;
    background: #0d0e0e;
    color: var(--rpt-gold);
    font-size: 11px;
    font-weight: 900;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-loader {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgb(255 255 255 / 65%);
    font-size: 13px;
    font-weight: 800;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-loader.is-hidden {
    display: none !important;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-loader i {
    color: var(--rpt-gold);
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-empty {
    min-height: 220px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed rgb(255 255 255 / 10%);
    border-radius: 14px;
    background: #101111;
    color: rgb(255 255 255 / 65%);
    text-align: center;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-empty strong {
    color: #fff;
    font-size: 18px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-error {
    border-color: rgb(166 36 36 / 28%);
    color: #ff8585;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dots {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgb(255 255 255 / 22%);
}

.-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot.active {
    width: 25px;
    background: var(--rpt-gold);
}

@media (min-width: 781px) {
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-stage {
        width: 100% !important;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        transform: none !important;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-item {
        width: calc(25% - 12px) !important;
        display: flex;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-stage-outer {
        overflow: visible;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-dots {
        display: none;
    }
}

@media (hover: hover) {
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tab:hover {
        border-color: rgb(255 196 0 / 35%);
        color: var(--rpt-gold);
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card:hover {
        border-color: rgb(255 196 0 / 32%);
        box-shadow: 0 18px 38px rgb(0 0 0 / 38%);
        transform: translateY(-4px);
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card:hover .recent-posts-tabs-media img {
        transform: scale(1.045);
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-read-more:hover {
        background: var(--rpt-gold);
        border-color: var(--rpt-gold);
        color: #11100d;
    }
}

@media (max-width: 1100px) {
    .-ycwt-recent_posts_tabs_ajax {
        padding: 62px 0 !important;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded) {
        flex-wrap: wrap;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded) .recent-posts-tabs-card {
        flex: 0 0 calc(50% - 8px);
    }

}

@media (min-width: 781px) and (max-width: 1100px) {
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-stage {
        gap: 16px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-item {
        width: calc(50% - 8px) !important;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .-ycwt-recent_posts_tabs_ajax .container {
        padding-inline: 24px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-header {
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-shell {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-nav {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        padding: 6px;
        scroll-padding-inline: 6px;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tab {
        min-width: 44px;
        max-width: min(85%, 320px);
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tab,
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-read-more {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        touch-action: manipulation;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card {
        width: 100%;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body {
        flex: 1;
        min-width: 0;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media {
        flex-shrink: 0;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body h3 a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card-body p {
        font-size: 14px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price {
        flex-wrap: wrap;
        align-items: baseline;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price > *,
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-read-more span {
        min-width: 0;
        max-width: 100%;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price strong {
        line-height: 1.2;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-price span {
        font-size: 13px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media:focus-visible {
        outline-offset: -4px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tab:not(:disabled):active,
    .-ycwt-recent_posts_tabs_ajax a:active {
        filter: brightness(.85);
    }

    .-ycwt-recent_posts_tabs_ajax:dir(ltr) .recent-posts-tabs-read-more i {
        transform: scaleX(-1);
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dots {
        flex-wrap: wrap;
        gap: 0;
        margin-top: 12px;
        padding: 6px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot,
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot.active {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: grid;
        place-items: center;
        background: transparent;
        touch-action: manipulation;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot span {
        display: none;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 20px;
        background: rgb(255 255 255 / 35%);
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot.active::before {
        width: 25px;
        background: var(--rpt-gold);
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider .owl-dot:active::before {
        background: #fff;
    }
}

@media (min-width: 781px) and (max-width: 1024px) {
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-item {
        /* Owl's inline margins otherwise add to the existing two-column grid gap. */
        margin: 0 !important;
    }
}

/* Mobile App Experience */
@media (max-width: 780px) {
    .-ycwt-recent_posts_tabs_ajax {
        padding: 48px 0 !important;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded) {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 6px 6px 14px;
        scroll-padding-inline: 6px;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded)::-webkit-scrollbar {
        display: none;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider:not(.owl-loaded) .recent-posts-tabs-card {
        flex: 0 0 min(84%, 330px);
        scroll-snap-align: start;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-stage-outer {
        position: relative;
        overflow: hidden;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-stage {
        display: flex;
        align-items: stretch;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-item {
        min-width: 0;
        flex-shrink: 0;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-slider.owl-loaded .owl-item:not(.cloned) {
        display: flex;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 520px) {
    .-ycwt-recent_posts_tabs_ajax {
        padding: 34px 0 !important;
    }

    .-ycwt-recent_posts_tabs_ajax .container {
        padding-inline: 14px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-header {
        margin-bottom: 23px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-header h2 {
        font-size: 25px;
    }

    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tab,
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-results,
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-card,
    .-ycwt-recent_posts_tabs_ajax .recent-posts-tabs-media img {
        transition: none;
    }
}
