* { /* These values are used here specifically to keep the menu in the proper spot on the display and are not required to create the menu.*/
    padding: 0;
    margin: 0;
}

#nav ul {
    list-style: none;
    font-weight: bold;
    text-align: right;
    width: 350px;
}

    #nav ul li {
        width: 350px;
    }

#nav a:link, #nav a:visited {
    background-color: #DB9E30;
    border-bottom: 1px solid #efecca;
    color: #efecca;
    display: block;
    text-decoration: none;
    padding: 8px 15px;
}

#nav a:hover {
    background-color: #efecca;
    color: #DB9E30;
}

#nav a:active {
    background-color: #a7a37e;
}


.qframe {
    --size: 645px; /* دەتوانیت بگۆڕیت */
    width: var(--size);
    aspect-ratio: 1 / 1;
    position: relative;
    display: inline-block;
}

/* ================================
   SVG-mask fallback (Box B style)
   Use when CSS mask-image is blocked/overridden in the main site.
   Just add: class="qframe qframe--svg" and the inner <svg> + border <img>.
================================ */
.qframe--svg::before,
.qframe--svg::after {
    content: none !important;
    display: none !important;
}

.qframe--svg .qframe__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.qframe--svg .qframe__border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* وێنەکە (لە ژێر فریم) */
.qframe::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* کاتکردنی وێنەکە بە شێوەکە */
    -webkit-mask-image: url("../images/quatrefoil_mask_filled.png");
    mask-image: url("../images/quatrefoil_mask_filled.png");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* فریم/دیزاین (لە سەرەوە) */
.qframe::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/quatrefoil_frame_overlay_filled.png") center/contain no-repeat;
    pointer-events: none;
}

.tq-post-cap a {
    color: #0e4d3c
}

.tq-post-box:hover a {
    color: #1eb088
}


/* Multimedia 4 blocks (inside "مەڵتیمیدیا" section) */
.tq-support-cause-box {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

    .tq-support-cause-box .tq-mm-thumb {
        display: block;
        width: 100%;
        overflow: hidden;
        border-radius: 4px;
        box-shadow: 0 10px 25px rgba(0,0,0,.25);
    }

        .tq-support-cause-box .tq-mm-thumb img {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }

    .tq-support-cause-box .tq-mm-item-title {
        max-width: 100%;
        font-family: 'Vazirmatn', sans-serif;
        font-weight: 600;
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
        color: #fff;
    }

        .tq-support-cause-box .tq-mm-item-title a {
            color: inherit;
            text-decoration: none;
        }

            .tq-support-cause-box .tq-mm-item-title a:hover {
                text-decoration: underline;
            }

@media (max-width: 991.98px) {
    .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: 1fr;
    }

    .tq-support-cause-box .tq-mm-thumb,
    .tq-support-cause-box .tq-mm-item-title {
        max-width: 100%;
    }
}

.tq-support-cause-box .tq-support-cause-cap {
    width: 100%;
    max-width: none !important;
}

.tq-support-cause-box .tq-mm-grid {
    direction: rtl;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 32px auto 0;
    padding: 0 50px;
}

.tq-support-cause-box .tq-mm-item {
    align-items: stretch;
}

}

/* ================================
   Multimedia (FIX)
   - Don't stretch the green frame
   - Make the 4 items fill the available box
================================ */
#mm-section .tq-support-cause-wrapper { /* keep theme sizing */
}

#mm-section .tq-support-cause-box .tq-mm-grid {
    max-width: 100% !important;
    padding: 0 50px !important;
    gap: 22px !important;
}

#mm-section .tq-support-cause-box .tq-mm-item {
    width: 100%;
    align-items: stretch;
}

#mm-section .tq-support-cause-box .tq-mm-thumb,
#mm-section .tq-support-cause-box .tq-mm-item-title {
    max-width: none !important; /* <-- this is what was keeping them small */
    width: 100% !important;
}

#mm-section .tq-support-cause-box .tq-mm-item-title {
    font-size: 16px;
}

@media (max-width: 1199.98px) {
    .tq-support-cause-box .tq-mm-grid,
    #mm-section .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 32px !important;
    }
}

@media (max-width: 991.98px) {
    #mm-section .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    #mm-section .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: 1fr;
        padding: 0 20px !important;
    }
}



/* === Miracle Section (like screenshot) === */
.tq-miracle-section {
    position: relative;
    overflow: hidden;
}

.tq-miracle-left {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 60px 20px;
}

    .tq-miracle-left .tq-miracle-img {
        max-width: 520px;
        width: 100%;
        height: auto;
    }

.tq-miracle-right {
    position: relative;
    min-height: 520px;
    padding: 60px 60px;
    background: #0f4f3c; /* base green */
    color: #fff;
    direction: rtl;
    text-align: right;
}

    /* pattern layer */
    .tq-miracle-right::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--tqPattern);
        background-repeat: repeat;
        background-size: auto;
        opacity: .14; /* pattern opacity */
        pointer-events: none;
    }

    /* soft glow toward the middle (like screenshot) */
    .tq-miracle-right::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 0% 50%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%);
        pointer-events: none;
    }

.tq-miracle-right-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-right: 0;
    margin-left: auto; /* keep content near right side */
}

.tq-miracle-title {
    display: flex;
    flex-direction: row-reverse; /* icon on the right */
    align-items: center;
    gap: 14px;
    margin: 0 0 26px 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff
}

    .tq-miracle-title .tq-title-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

.tq-miracle-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .tq-miracle-list li {
        display: flex;
        flex-direction: row-reverse; /* icon on the right */
        align-items: center;
        gap: 14px;
        line-height: 1.9;
        font-size: 18px;
        font-weight: 600;
    }

        .tq-miracle-list li a {
            color: #fff
        }

            .tq-miracle-list li a:hover {
                color: #DB9E30
            }

    .tq-miracle-list .tq-li-icon {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        opacity: .95;
    }

@media (max-width: 991.98px) {
    .tq-miracle-right, .tq-miracle-left {
        min-height: auto;
        padding: 40px 20px;
    }

    .tq-miracle-title {
        font-size: 28px;
    }

    .tq-miracle-right-inner {
        max-width: 100%;
    }

    .tq-miracle-left .tq-miracle-img {
        max-width: 420px;
    }
}




/* === Namaz boxes: base + hover colors (scoped) === */
:root {
    --namaz_box_bg: #a7e4e9; /* ئەم ڕەنگە: ڕەنگی بنەڕەت (کرێمی) */
    --namaz_box_hover: #17799a; /* ئەم ڕەنگە: ڕەنگی hover (زەرد/قاوەیی) */
}

/* ڕەنگی بنەڕەتی قڵپەکان (SVG ـی یەکەم) */
.tq-namaz-timing-box > svg.fill-tq-color2x path {
    fill: var(--namaz_box_bg) !important;
}

/* ڕەنگی hover (SVG ـی دووەم: fill-theme) */
.tq-namaz-timing-box > svg.fill-themex path {
    fill: var(--namaz_box_hover) !important;
}

/* Keep the 2 homepage life cards side by side on large screens */
.tq-namaz-timing-boxes .row.home-life-grid {
    justify-content: center !important;
    gap: 24px !important;
}

.tq-namaz-timing-boxes .row.home-life-grid > .home-life-grid__item {
    width: 100% !important;
    max-width: 320px !important;
    padding: 0 !important;
    float: none !important;
    flex: 0 1 300px !important;
}

@media (max-width: 767.98px) {
    .tq-namaz-timing-boxes .row.home-life-grid {
        gap: 16px !important;
    }

    .tq-namaz-timing-boxes .row.home-life-grid > .home-life-grid__item {
        flex-basis: 100% !important;
        max-width: 320px !important;
    }
}










/* ===== Extend GREEN background of the "upcoming/miracle" block to the left ===== */
/* Adjust this number until it reaches the red-arrow point */
:root {
    --green-extend-left: 425px; /* زیاد/کەم بکە (مثلاً 80px یا 140px) */
}

/* scope it to that widget/section only */
.elementor-element-ce506e9 .tq-upcoming-wrapper {
    position: relative;
    overflow: visible;
}

/* green slab behind the right half, extended to the left */
@media (min-width: 992px) {
    .elementor-element-ce506e9 .tq-upcoming-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        /* start point = middle (50%) shifted left */
        left: calc(50% - var(--green-extend-left));
        background: #0f4f3c;
        z-index: 0;
    }

    /* pattern layer: clip it to the same green slab */
    .elementor-element-ce506e9 .tq-upcoming-wrapper > .tq-fixed-bg {
        /* override theme defaults */
        left: calc(50% - var(--green-extend-left)) !important;
        right: -30% !important;
        width: auto !important;
        top: 0 !important;
        height: 100% !important; /* important because theme sets 494px */
        z-index: 1;
    }

    /* keep the content above green+pattern */
    .elementor-element-ce506e9 .tq-upcoming-wrapper > .row {
        position: relative;
        z-index: 2;
    }
}


/* ===============================
   MIRACLE/UPCOMING (Responsive)
   - Hide image
   - Make ALL titles/list area on GREEN background
================================ */
@media (max-width: 991.98px) {

    /* 1) Hide the picture on mobile */
    .elementor-element-ce506e9 .tq-upcoming-img,
    .elementor-element-ce506e9 .qframe {
        display: none !important;
    }

    /* 2) Force the whole block background to GREEN on mobile */
    .elementor-element-ce506e9 .tq-upcoming-wrapper {
        position: relative !important;
        overflow: hidden !important;
    }

        .elementor-element-ce506e9 .tq-upcoming-wrapper::before {
            content: "";
            position: absolute;
            inset: 0;
            background: #0f4f3c;
            z-index: 0;
        }

        /* 3) Make the pattern cover full width/height on mobile */
        .elementor-element-ce506e9 .tq-upcoming-wrapper > .tq-fixed-bg {
            left: 0 !important;
            right: 0 !important;
            top: 0 !important;
            bottom: 0 !important;
            width: auto !important;
            height: 100% !important;
            opacity: .14;
            z-index: 1;
        }

        /* 4) Keep the content above the green/pattern */
        .elementor-element-ce506e9 .tq-upcoming-wrapper > .row {
            position: relative;
            z-index: 2;
        }

    /* 5) Make sure title + list text stays WHITE on green */
    .elementor-element-ce506e9 .tq-upcoming-cap,
    .elementor-element-ce506e9 .tq-upcoming-cap > h3,
    .elementor-element-ce506e9 .tq-upcoming-cap > ul li,
    .elementor-element-ce506e9 .tq-upcoming-cap a {
        color: #fff !important;
    }

    /* optional: spacing after hiding image */
    .elementor-element-ce506e9 .tq-upcoming-cap {
        padding: 32px 16px !important;
    }
}







.accordion--container {
    width: 100%;
    margin: auto;
    display: block;
}

li.accordion ul {
    margin: 0;
    padding: 0;
    background: #fff;
    margin: 0 !important;
    border-top: 1px solid #fff;
    display: none;
    color: black;
}

    li.accordion ul .txt {
        padding: 10px 20px;
        margin: 0;
        font-size: 18px;
        text-align: right;
    }

li.accordion span {
    display: block;
    border-bottom: 1px #DB9E30 solid;
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    margin-top: 5px;
    color: #000;
    cursor: pointer;
    position: relative;
    text-align: right;
}

li.accordion {
    border-right: 3px solid #DB9E30;
    list-style: none;
}

    li.accordion span i {
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        height: fit-content;
        margin: auto;
        color: #DB9E30;
        transition: .3s;
    }

    li.accordion.open span i {
        transform: rotate(540deg);
        transition: .3s;
    }









/* =========================
   RTL MENU FIX (Desktop + Submenus)
   ========================= */

/* Main UL */
#menu-main-menu-1 {
    direction: rtl;
    text-align: right;
    float: right; /* بۆ ئەوەی لیستەکە لە ڕاست دەست پێ بکات */
}

    /* Top-level items order (right -> left) */
    #menu-main-menu-1 > li {
        float: right;
    }

/* If theme uses nav > div wrapper, keep it RTL too */
nav > div > ul#menu-main-menu-1 {
    float: right;
}

/* First-level dropdown (align to the RIGHT of parent <li>) */
#menu-main-menu-1 ul.sub-menu,
#menu-main-menu-1 ul ul {
    right: 0;
    left: auto;
    direction: rtl;
    text-align: right;
}

    /* Second-level dropdown (open to LEFT in RTL) */
    #menu-main-menu-1 ul.sub-menu ul.sub-menu {
        right: 100%;
        left: auto;
        top: 0;
    }

    /* Make submenu links align nicely */
    #menu-main-menu-1 ul.sub-menu li,
    #menu-main-menu-1 ul.sub-menu li a {
        float: right;
        text-align: right;
    }

/* Move dropdown arrow/icon to the LEFT side (RTL) */
#menu-main-menu-1 li.menu-item-has-children {
    padding-right: 0;
    padding-left: 15px;
}

    #menu-main-menu-1 li.menu-item-has-children > i {
        right: auto;
        left: 0;
    }

#menu-main-menu-1 ul.sub-menu li.menu-item-has-children > i {
    right: auto;
    left: 25px;
}

/* Better mixed Kurdish/English direction per item */
#menu-main-menu-1 a {
    unicode-bidi: plaintext;
}

/* =========================
   RTL FIX (Mobile menu .rsnp-mnu)
   ========================= */
.rsnp-mnu,
.rsnp-mnu * {
    direction: rtl;
    text-align: right;
}

    .rsnp-mnu > ul ul {
        padding-left: 0;
        padding-right: 20px;
    }

    .rsnp-mnu > ul li.menu-item-has-children a::before {
        right: auto;
        left: 25px;
    }

/* DataPager style (RTL, red bar) */
.bz-pager-wrap {
    margin: 22px 0;
    text-align: center;
    clear: both;
    background-color: #eee;
    padding: 10px;
    color: blue !important
}


/* wrapper */
.bz-dp {
    direction: rtl;
    text-align: center;
    color: #fff !important
}

    .bz-dp table {
        margin: 0 auto;
        border-collapse: separate;
        border-spacing: 3px;
        color: #fff !important
    }

    /* buttons (numbers + prev/next) */
    .bz-dp a, .bz-dp span {
        display: inline-block;
        min-width: 34px;
        padding: 8px 10px;
        background: #b30000;
        color: #fff !important;
        text-decoration: none;
        border: 2px solid #fff;
        font-weight: 700;
        line-height: 1;
    }

.num {
    padding: 0 5px !important;
    background-color: #ccc;
    color: #000
}

    .num:hover {
        padding: 0 5px !important;
        background-color: #DB9E30;
        color: #fff
    }
/* current page */
.bz-dp .active, .bz-dp .current {
    background-color: red !important;
    color: #fff !important
}

/* prev/next */
.bz-dp .nav {
    min-width: 60px;
    color: #fff !important
}

/* disabled (label/span instead of link) */
.bz-dp span.nav,
.bz-dp span {
    opacity: .55;
    cursor: default;
    color: #fff !important
}
.ArchiveDiv1 {
    width: 170px;
    height: 30px;
    float: right;
    padding-top: 2px
}

.ArchiveDiv {
    width: 580px;
    height: 30px;
    background-color: #9b9929;
    padding-top: 7px;
    border-radius: 10px;
    padding-right: 10px;
    margin-bottom: 10px;
    color: #000
}

.ArchiveItemDiv {
    width: 580px;
}

.ArchiveItemDiv2:hover {
    background-color: #dcdb8c
}

.ArchiveItemDiv1 {
    width: 3px;
    float: right;
    padding-top: 10px
}

.ArchiveItemDiv2 {
    width: 567px;
    float: right;
    padding-right: 10px;
    border-bottom: 1px #ccc dotted;
    padding-bottom: 5px;
    padding-top: 3px
}

.Datapagerdiv {
    width: 600px;
    margin-top: 10px;
}

.ArchiveIconDiv {
    width: 100px;
    height: 22px;
    float: right;
    padding-top: 2px
}
/* Multimedia 4 blocks (inside "مەڵتیمیدیا" section) */
.tq-support-cause-box .tq-support-cause-cap {
    width: 100%;
    max-width: none !important;
}

.tq-support-cause-box .tq-mm-grid {
    direction: rtl;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 32px auto 0;
    padding: 0 50px;
}

.tq-support-cause-box .tq-mm-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.tq-support-cause-box .tq-mm-thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

    .tq-support-cause-box .tq-mm-thumb img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

.tq-support-cause-box .tq-mm-item-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: #fff;
    max-width: 100%;
}

    .tq-support-cause-box .tq-mm-item-title a {
        color: inherit;
        text-decoration: none;
    }

        .tq-support-cause-box .tq-mm-item-title a:hover {
            text-decoration: underline;
        }

@media (max-width: 1199.98px) {
    .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 32px;
    }
}

@media (max-width: 991.98px) {
    .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .tq-support-cause-box .tq-mm-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .tq-support-cause-box .tq-mm-thumb,
    .tq-support-cause-box .tq-mm-item-title {
        max-width: 100%;
    }
}
.tq-about-img .home-video-hitbox {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    cursor: pointer;
}

.tq-about-img .tq-play-btn2 {
    z-index: 3;
}

.home-video-popup {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    background: #000;
}

.home-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

    .home-video-modal.is-open {
        display: flex;
    }

.home-video-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.home-video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.home-video-modal__body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

    .home-video-modal__body iframe,
    .home-video-modal__body video {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: #000;
    }

@media (max-width: 575.98px) {
    .home-video-modal {
        padding: 12px;
    }

    .home-video-modal__dialog {
        border-radius: 14px;
    }
}

.tq-namaz-timing-boxes .row.home-life-grid {
    justify-content: center !important;
    gap: 24px !important;
}

    .tq-namaz-timing-boxes .row.home-life-grid > .home-life-grid__item {
        width: 100% !important;
        max-width: 320px !important;
        padding: 0 !important;
        float: none !important;
        flex: 0 1 300px !important;
    }

@media (max-width: 767.98px) {
    .tq-namaz-timing-boxes .row.home-life-grid {
        gap: 16px !important;
    }

        .tq-namaz-timing-boxes .row.home-life-grid > .home-life-grid__item {
            flex-basis: 100% !important;
            max-width: 320px !important;
        }
}
