﻿
@media (min-width: 992px) {
    .topbar-nav .metismenu > li {
        flex-direction: column;
        text-align: center !important;
    }
}

.rgc-card img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
}



.carousel-item .picture img {
    height: 100% !important;
}

.image-link-box {
    position: relative;
    width: 100%;
    height: unset !important;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 13px;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.2);
}

    .image-link-box .image-link-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
    }

    .image-link-box .title {
        position: absolute;
        z-index: 100;
        bottom: 0;
        color: #fff;
        font-size: 15px;
        left: 5%;
        color: #fff;
        font-size: 15px;
        right: 5%;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .image-link-box::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%; /* میزان پوشش گرادیانت (نصف پایین) */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
        pointer-events: none; /* مانع کلیک روی گرادیانت نشود */
    }

.image-link-btn {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #007bff;
    border-radius: 5px;
    padding: 6px;
    color: #fff !important;
}

    .image-link-btn:hover {
        color: #fff !important;
        text-decoration: none !important;
    }

.image-link-box:hover .image-link-img {
    opacity: 0.2;
}

.image-link-box:hover .image-link-btn {
    opacity: 1;
}

.rgc-moduletable {
    border-radius: 5px;
    padding: 1em;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.weather-bg {
    position: relative !important;
    overflow: hidden;
    padding: 0;
}

    .weather-bg::before {
        content: "";
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('../../img/weatherIcon.jpg');
        background-size: contain;
        background-position: center;
        opacity: 0.06;
        z-index: 2;
        background-repeat: no-repeat;
    }



    .weather-bg .rgc-moduletable {
        position: relative;
        z-index: 3;
        padding: 20px;
    }


.oghatsharee-bg {
    position: relative !important;
    overflow: hidden;
    padding: 0;
}

    .oghatsharee-bg::before {
        content: "";
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('../../img/mosque.png');
        background-size: cover;
        background-position: center;
        opacity: 0.1;
        z-index: 2;
        background-repeat: no-repeat;
    }



    .oghatsharee-bg .rgc-moduletable {
        position: relative;
        z-index: 3;
        padding: 20px;
    }






#weather {
    margin: 20px auto;
}

    #weather  h2 {
        color: #0078d7;
    }

    #weather  p {
        font-size: 14px;
        margin: 5px 0;
    }

    #weather .weather-icon {
        display: inline-block;
    }

.card-h-equel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    flex-grow: 1;
    min-height: 1px;
}

@media (max-width : 992px) {
    .card-h-equel {
        display: block;
        height: auto;
    }

    .rgc-card img {
        aspect-ratio: 2 / 1 !important;
    }

    .rgc-card .card-title {
        font-size: 1rem !important;
    }

    .rgc-card .card-text {
        font-size: .7rem !important;
        margin-bottom: 0 !important;
    }

}

.topbar-nav .metismenu > li {
    flex: unset !important;
}

.topbar-nav .metismenu {
    justify-content: center;
    gap: 5px;
}

.rgc-card .card-text {
    display: -webkit-box; /* استفاده از ویژگی‌های Webkit برای محدود کردن خطوط */
    -webkit-line-clamp: 3; /* تعداد خطوطی که باید نمایش داده شود */
    -webkit-box-orient: vertical; /* جهت چیدمان خطوط عمودی */
    overflow: hidden; /* مخفی کردن متن اضافی */
    text-overflow: ellipsis;
}

.leader-img {
    height: 3em;
}

#menu-hamberger-container {
    border-bottom-left-radius: 1em !important;
    border-bottom-right-radius: 1em !important;
}


.header-logo-body {
    position: relative;
    background-color: #BBC6C8 !important;
}

.topbar-nav, .topbar-nav ul {
    background-color: #469597 !important;
}

.color-bg-navbar {
    background-color: #469597 !important;
}

.topbar-nav .metismenu a {
    color: #fff !important;
}

#menu-hamburger-expand {
    color: #fff !important;
}

.header-logo-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../img/pattern.png');
    background-size: cover;
    background-position: center;
    z-index: 0 !important;
    background-repeat: no-repeat;
}

.typeahead__query #search-input {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.typeahead__container button {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.color-text1 {
    color: #000 !important;
}

#essential-links {
    height: auto !important;
}

.lSSlideOuter .lSPager {
    position: absolute;
    bottom: 36px;
    transform: translate(-50%, -50%);
    left: 50%;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    display: flex;
    transition-timing-function: ease-in-out;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

