/*
Theme Name: Resala
Theme URI: https://resala.org/
Author: Resala
Author URI: https://resala.org/
Description: Custom theme for Resala charity organization
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resala
Tags: charity, organization, responsive
*/

/* The main CSS is loaded from the assets/css directory */
swiper-slide img {
    width: 100%;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

section .head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto 2rem;
    gap: 1.5rem;
    width: fit-content;
    border-bottom: 1px solid #d0d0d0;
}
section .head i{
	color:#e31b24
}
section .head .text {
    text-align: center;
}

section .head .text h2 {
    font-size: 24px;
    font-weight: 700;
}

section .head .text h2 span {
    color: #e31b24;
}

section .head .text p {
    color: #666666;
    font-size: 16px;
}

section .head i {
    font-size: 2.5em;
    margin: 0;
    text-align: center;
    display: inline-block;
    vertical-align: sub;
    transition: all .2s ease-in-out;
}

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

article {
    width: 100%;
    text-align: center;
}

article>div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

article .img {
    width: 100%;
    display: block;
    overflow: hidden;
    height: 260px;
    border-radius: .5rem;
    border: 1px solid #d0d0d0;
    transition: all .3s ease-in;
    position: relative;
}

article .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

article .title {
    font-size: 17px;
    color: #141414;
    background-color: #ffffff;
    padding: 30px 25px;
    margin: 0px 15px -50px;
    box-shadow: 0px 10px 60px -10px rgba(0, 0, 0, 0.2);
    bottom: 70px;
    position: relative !important;
    width: 90%;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all .3s ease-in;
    z-index: 2;
}

article>div:hover .img {
    width: 96%;
    height: clamp(13.125rem, calc(-14.375rem + 40vw), 18.125rem);
}

article>div:hover .title {
    bottom: 80px;
    background: #e31b24;
    color: #fff
}

.donate {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: clamp(2rem, calc(1.0667rem + 4.2667vw), 4rem) 0 2rem;
    gap: 1rem;
}

.donate>div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: clamp(1rem, calc(0.5333rem + 2.1333vw), 2rem) 1rem;
    border-radius: 1rem;
}

.donate h2 {
    font-size: clamp(0.8125rem, calc(0.4625rem + 1.6vw), 1.5625rem);
    font-weight: 700;
    color: #fff ;
}

.donate>div a {
    background: white;
    padding: .7rem clamp(1rem, calc(0.5333rem + 2.1333vw), 2rem);
    border-radius: .7rem;
    color: #e31b24;
    text-decoration: none;
    border: 2px solid white;
    transition: all .3s ease-in
}

.donate>div:first-child {
    background: #e31b24;
    color: white;
}

.donate>div:last-child {
    background: #27318b;
    color: white;
}

.donate>div:last-child a {
    color: #27318b;
    background: white;
}

.donate>div a:hover {
    background: transparent;
    color: #fff
}

.after {
    background-color: rgba(39, 49, 139, 0.6);
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 1;
    font-size: 2rem;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all .3s ease-in;
}

article>div:hover .after {
    opacity: 1;
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {

    display: none !important;
}

.events_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.events_wrapper .img {
    border-radius: .7rem;
    border: 1px solid #cbcbcb;
    overflow: hidden;
}

.events_wrapper .img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.videos_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.videos_wrapper .video {
    max-width: 100%;
    overflow: hidden;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    position: relative;
    color: #fff;
    text-decoration: none;
    border: 6px solid #27318b;
    border-radius: 1rem;
}

.videos_wrapper .video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
}

.video .title {
    width: 90%;
    font-size: 16px;
    line-height: 26px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: block;
    z-index: 2;
    font-weight: 700;
    text-align: center;
    transition: all .3s ease-in
}

.video .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: inherit;
    background: rgba(0, 0, 0, .4);
    border: 0;
}

.video .date {
    font-size: .7em;
    color: #fff;
    z-index: 2;
}

.video:hover .title {
    transform: scale(1.1);
    box-shadow: rgba(255, 255, 255, 0.2) 0px 8px 24px;
    color: white
}

.events_wrapper .img {
    border-radius: .7rem;
    border: 1px solid #cbcbcb;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

@media (max-width: 1099px) {

    article .img {
        height: clamp(13.75rem, calc(1.5625rem + 25vw), 18.75rem);
    }

    article>div:hover .img {
        height: clamp(13.125rem, calc(0.9375rem + 25vw), 18.125rem);
    }
}


@media (max-width: 767.98px) {
    .events_wrapper {
        margin-top: 1.2rem;
        grid-template-columns: 1fr 1fr;
    }

    .videos_wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .articles_wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 1rem 1.5rem;
    }

    section .head i {
        font-size: 2em;
    }

    section .head .text h2 {
        font-size: 18px;
    }

    section .head .text p {
        font-size: 11px;
    }

    section .head {
        margin: 1rem auto 1rem;
flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .articles_wrapper {
        grid-template-columns: 1fr;
    }

    .events_wrapper {
        grid-template-columns: 1fr;
    }

    .videos_wrapper {
        grid-template-columns: 1fr;
    }
}
.page-loader {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    background: #000000a1 !important;
    backdrop-filter: blur(1px);
    display: none;
}

.custom-loader {
    --d: 22px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    color: #ff3100;
    box-shadow:
        calc(1*var(--d)) calc(0*var(--d)) 0 0,
        calc(0.707*var(--d)) calc(0.707*var(--d)) 0 1px,
        calc(0*var(--d)) calc(1*var(--d)) 0 2px,
        calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px,
        calc(-1*var(--d)) calc(0*var(--d)) 0 4px,
        calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px,
        calc(0*var(--d)) calc(-1*var(--d)) 0 6px;
    animation: s7 1s infinite steps(8);
}

@keyframes s7 {
    100% {
        transform: rotate(1turn)
    }
}

#errors {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 1.25rem * 2);
    gap: 1rem;
    z-index: 99999999999999999999;
}

footer .social {
    display: none
}

@media (max-width: 767.97px) {
    footer .social {
        display: flex;
        justify-content: center;
        list-style: none;
    }
    footer .social i {
        color: #000
    }
}
#errors>* {
    width: 100%;
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#errors .error {
    background: #e41749;
}

#errors .success {
    background: #12c99b;
}

.img {
    position: relative;
}

.img:hover .zoom_wrapper {
    opacity: 1;
}

.zoom_wrapper {
    position: absolute;
    width: 100%;
    transition: .3s ease-in all;
    height: 100%;
    background: rgba(0, 0, 0, 0.295);
    display: flex;
    top: 0;
    left: 0;
    z-index: 9;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.zoom_wrapper svg {
    width: 60px;
    height: 60px;
    stroke: white
}

.zoomed_image_wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 999999999999;
}

.zoomed_image_wrapper img {
    width: 100%;
    max-width: 600px;
    max-height: 100%;
    object-fit: contain
}

.zoomed_image_wrapper .icon-tabler-square-rounded-x {
    stroke: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.text-content h2{
	    color: #ffff;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
    background: red;
}

.post-thumbnail{
	    margin-bottom: 8px !important;
}