/* ========================================
   Top Bar Menu RTL
   ======================================== */

/* کل عرض Top Bar در اختیار منو */
.space-header-top-menu {
    width: 100% !important;
    float: none !important;
    direction: rtl;
    text-align: right;
}

/* بخش خالی Social فعلاً حذف شود */
.space-header-top-soc {
    display: none !important;
}

/* منو از راست شروع شود و ترتیب وردپرس حفظ شود */
.space-header-top-menu ul.space-top-menu {
    display: flex !important;
    flex-direction: row !important;
    direction: rtl;
    justify-content: flex-start !important;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Mercury روی liها float نداشته باشد */
.space-header-top-menu ul.space-top-menu > li {
    float: none !important;
}

/*فونت ها و جهت لینک ها*/
.space-header-top-menu ul.space-top-menu > li > a {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}

/* ========================================
   Header Menu Active / Hover Color
   ======================================== */

.space-header-height .space-header-menu ul.main-menu li a:hover,
.space-header-height .space-header-menu ul.main-menu li:hover > a,
.space-header-height .space-header-menu ul.main-menu li.current-menu-item > a,
.space-header-height .space-header-menu ul.main-menu li.current_page_item > a {
    color: #03933d !important;
    border-bottom: 2px solid #03933d !important;
}

/* ========================================
   BetPro Custom Styles
   ======================================== */


/* Persian Font */
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/uploads/fonts/YekanBakh-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/uploads/fonts/YekanBakh-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* Global Font */
html,
body,
button,
input,
textarea,
select {
    font-family: 'YekanBakh', Tahoma, sans-serif;
}


/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    font-family: 'YekanBakh', Tahoma, sans-serif;
}


/* ========================================
  all Page H1 to rtl and edit fonts
   ======================================== */
.space-title-box-h1 h1,
.space-archive-title-box-h1 h1 {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}

/* RTL justified paragraphs */
.space-taxonomy-description .space-page-content p,
.space-taxonomy-description .space-page-content li {
    direction: rtl;
    text-align: justify !important;
}



/* RTL headings */
.space-taxonomy-description .space-page-content h1,
.space-taxonomy-description .space-page-content h2,
.space-taxonomy-description .space-page-content h3,
.space-taxonomy-description .space-page-content h4,
.space-taxonomy-description .space-page-content h5,
.space-taxonomy-description .space-page-content h6 {
    direction: rtl;
    text-align: right;
}

/* ========================================
   Breadcrumb RTL
   ======================================== */

.space-single-aces-breadcrumbs,
.space-single-aces-breadcrumbs .space-breadcrumbs {
    direction: rtl;
    text-align: right;
    font-family: 'YekanBakh', Tahoma, sans-serif;
}

/*جلوگیری از بهم ریختگی بردکرامب*/
.space-single-aces-breadcrumbs .space-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}


/* ========================================
   Header Menu Font
   ======================================== */

.space-header-menu .main-menu > li > a,
.space-header-menu .sub-menu li a {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 400;
}



/* ========================================
   Desktop Main Menu Direction
   ======================================== */

@media screen and (min-width: 1025px) {
    .space-header-menu .main-menu > li {
        float: right !important;
    }
}


/* Mobile menu */
.space-mobile-menu .mobile-menu > li {
    position: relative;
}

/* menu text */
.space-mobile-menu .mobile-menu > li > a {
    display: block;
    width: 100%;
    direction: rtl;
    text-align: right;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 700;
    padding-left: 55px;
}

/* badges */
.space-mobile-menu .mobile-menu > li::before,
.space-mobile-menu .mobile-menu > li::after {
    right: auto !important;
    left: 0 !important;
}


/* ========================================
   RTL for Page Text Content
   Important: Do NOT set direction on the main wrapper
   ======================================== */


/* Paragraphs */
.space-page-content.page-template p {
    direction: rtl;
    text-align: justify !important;
}


/* Headings */
.space-page-content.page-template h1,
.space-page-content.page-template h2,
.space-page-content.page-template h3,
.space-page-content.page-template h4,
.space-page-content.page-template h5,
.space-page-content.page-template h6 {
    direction: rtl;
    text-align: right;
}


/* Lists */
.space-page-content.page-template ul,
.space-page-content.page-template ol {
    direction: rtl;
    text-align: justify;
}


/* List items */
.space-page-content.page-template li {
    direction: rtl;
    text-align: justify;
}


/* Tables */
.space-page-content.page-template table {
    direction: rtl;
}


/* Blockquotes */
.space-page-content.page-template blockquote {
    direction: rtl;
    text-align: right;
}

/* ========================================
   Single Bonus Pages - RTL + Justify
   ======================================== */

/* Bonus excerpt */
.space-offer-content-excerpt {
    direction: rtl;
    text-align: right;
    font-family: 'YekanBakh', Tahoma, sans-serif;
}

/* Bonus excerpt paragraphs */
.space-offer-content-excerpt p {
    direction: rtl;
    text-align: justify !important;
    text-align-last: right;
}

/* Main bonus content paragraphs */
.space-page-content-box-wrap > .space-page-content p {
    direction: rtl;
    text-align: justify !important;
    text-align-last: right;
}

/* Main bonus content headings */
.space-page-content-box-wrap > .space-page-content h1,
.space-page-content-box-wrap > .space-page-content h2,
.space-page-content-box-wrap > .space-page-content h3,
.space-page-content-box-wrap > .space-page-content h4,
.space-page-content-box-wrap > .space-page-content h5,
.space-page-content-box-wrap > .space-page-content h6 {
    direction: rtl;
    text-align: right;
}

/* Lists inside bonus content */
.space-page-content-box-wrap > .space-page-content ul,
.space-page-content-box-wrap > .space-page-content ol,
.space-page-content-box-wrap > .space-page-content li {
    direction: rtl;
    text-align: right;
}
/* Bonus hero background size */
.space-aces-single-offer-info {
    background-size: contain !important;
}


/* ========================================
   Homepage Mercury Shortcode Titles
   ======================================== */

.home .space-block-title {
    width: 100%;
    direction: rtl;
    text-align: right;
}


/* H2 */
.home .space-block-title .betpro-home-shortcode-title {
    margin: 0 !important;
    padding: 0 !important;

    direction: rtl;
    text-align: right;

    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 700;

    font-size: inherit;
    line-height: inherit;
}


/* ========================================
   Homepage Mercury Shortcode Title
   Icon on RIGHT side
   ======================================== */

.home .space-block-title .betpro-home-shortcode-title {
    margin: 0 !important;
    padding: 0 !important;

    direction: rtl !important;
    text-align: right !important;

    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
}


/* Title text + space reserved for Mercury icon */
.home .space-block-title .betpro-home-shortcode-title > span {
    position: relative !important;
    display: inline-block !important;

    direction: rtl !important;
    text-align: right !important;
}
/* ========================================
   Game Category Breadcrumb
   ======================================== */

.tax-game-category .space-single-aces-breadcrumbs .space-breadcrumbs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    direction: rtl;
    text-align: right;

    gap: 7px;

    font-family: 'YekanBakh', Tahoma, sans-serif;
}


/* تمام اجزای Breadcrumb */
.tax-game-category .betpro-breadcrumb-item {
    direction: rtl;
    white-space: nowrap;
}


/* Home */
.tax-game-category .betpro-breadcrumb-home a {
    font-family: 'YekanBakh', Tahoma, sans-serif;
}


/* Current category */
.tax-game-category .betpro-breadcrumb-current {
    font-family: 'YekanBakh', Tahoma, sans-serif;
}


/* > */
.tax-game-category .betpro-breadcrumb-separator {
    direction: ltr;
    unicode-bidi: isolate;

    display: inline-block;
}

/* ========================================
   Bet Magazine Title
   ======================================== */

body .space-title-box-h1 h1 {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}


/* ========================================
   Footer Payment Methods
   ======================================== */

.betpro-payment-strip {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 30px;
    overflow: hidden;
}


/* Icons row */
.betpro-payment-icons {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    direction: ltr;
}


/* Individual icons */
.betpro-payment-icons img {
    display: block;

    width: auto;
    height: 30px;

    max-width: 70px;

    object-fit: contain;

    opacity: 0.75;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


/* Hover */
.betpro-payment-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
}
/* ========================================
   Footer Payment Methods - Mobile
   ======================================== */

@media screen and (max-width: 767px) {

    .betpro-payment-strip {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;

        padding: 14px 16px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .betpro-payment-strip::-webkit-scrollbar {
        display: none;
    }


    .betpro-payment-icons {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: max-content !important;
        min-width: 100% !important;

        gap: 20px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        direction: ltr;
    }


    .betpro-payment-icons img {
        display: block !important;
        flex: 0 0 auto !important;

        width: auto !important;
        height: 28px !important;
        max-width: 65px !important;

        object-fit: contain;

        opacity: 0.8;
    }
}
/* ========================================
   Footer +18 Notice
   ======================================== */

.betpro-footer-age-note {
    text-align: center;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 0.7rem;
}

.betpro-footer-age-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.betpro-footer-age-note p {
    margin: 0;
    text-align: center;
}

/* ========================================
   Footer - From Bet Magazine Title
   ======================================== */

.space-posts-shortcode-1 .space-block-title {
    width: 100%;
    direction: rtl;
    text-align: right !important;
}


/* Title */
.space-posts-shortcode-1 .space-block-title > span {
    position: relative !important;
    display: inline-block !important;

    direction: rtl !important;
    text-align: right !important;

    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 700;
}
/* ========================================
   Sidebar - Live Casino Title
   ======================================== */

.space-shortcode-wrap.space-shortcode-2 .space-block-title {
    width: 100%;
    direction: rtl;
    text-align: right !important;
}


/* Title */
.space-shortcode-wrap.space-shortcode-2 .space-block-title > span {
    position: relative !important;
    display: inline-block !important;

    direction: rtl !important;
    text-align: right !important;

    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 700;
}

/* ========================================
   Footer - Bet Magazine Article Titles
   ======================================== */

/* Text area of each article */
.space-posts-shortcode-1 .space-news-1-item-title-box,
.space-posts-shortcode-1 .space-news-1-item-title-box-ins {
    text-align: right !important;
}


/* Article title */
.space-posts-shortcode-1 .space-news-1-item-title {
    text-align: right !important;
}


/* Article title link */
.space-posts-shortcode-1 .space-news-1-item-title > a {
    display: block;

    text-align: right !important;

    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-weight: 700;
    line-height: 1.6;
}


/* Date / Meta */
.space-posts-shortcode-1 .space-news-1-item-meta {
    text-align: right !important;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

/* ========================================
   Footer - Bet Magazine Post Date
   Full RTL Alignment
   ======================================== */

.space-posts-shortcode-1 .space-news-1-item-meta {
    display: flex !important;
    width: 100% !important;

    direction: rtl !important;
    text-align: right !important;

    justify-content: flex-start !important;
    align-items: center;

    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}


/* Date + icon */
.space-posts-shortcode-1 .space-news-1-item-meta > span {
    display: inline-flex !important;
    width: max-content !important;
    direction: rtl !important;
    text-align: right !important;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0 !important;
    margin-left: 0 !important;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

/* Clock icon */
.space-posts-shortcode-1 .space-news-1-item-meta i {
    margin: 0 0 0 5px !important;
}