﻿@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-Regular.ttf') format('truetype'), url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-Medium.ttf') format('truetype'), url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-SemiBold.ttf') format('truetype'), url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-Light.ttf') format('truetype'), url('/fonts/IBMPlex/alfont_com_IBMPlexSansArabic-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}
/* new redsign styles */
.rp-primary-btn {
    font-size: 1rem !important;
    border-radius: 0.3em !important;
    color: #ffff !important;
    background-color: #1b8354 !important;
    border-color: #1b8354 !important;
    font-weight: 500 !important;
    padding: .5rem 1rem !important;
    .icon-img

{
    filter: brightness(0) invert(1) !important;
}

}

.rp-primary-btn:hover,
.rp-primary-btn:active {
    color: #ffff !important;
    background-color: #166a45 !important;
    border-color: #166a45 !important;
    opacity: 0.85 !important;
    .icon-img

{
    filter: brightness(0) invert(1) !important;
}

}

.rp-primary-btn:focus {
    background-color: #104631 !important;
}

.rp-primary-btn:disabled {
    background-color: #e5e7eb !important;
    color: #9da4ae !important;
    opacity: unset !important;
    border-color: transparent !important;
}

.rp-outline-primary-btn,
.rp-outline-secondary-btn {
    font-size: 1rem !important;
    border-radius: 0.3em !important;
    color: #161616;
    background-color: #ffff !important;
    font-weight: 500 !important;
    border-color: #d2d6db !important;
}

    .rp-outline-primary-btn .icon-img {
        filter: none !important;
    }


    .rp-outline-primary-btn:hover,
    .rp-outline-primary-btn:focus,
    .rp-outline-primary-btn:active,
    .rp-outline-primary-btn:disabled {
        color: #ffff !important;
        background-color: #166a45 !important;
        border-color: #166a45 !important;
        .icon-img

{
    filter: brightness(0) invert(1) !important;
}

}

.rp-outline-secondary-btn:hover,
.rp-outline-secondary-btn:disabled {
    background-color: #E5E7EB !important;
    /*    .icon-img {
    filter: brightness(0) invert(1) !important;
  }*/
}

.rp-outline-secondary-btn.active,
.rp-outline-secondary-btn:focus {
    background-color: #D2D6DB !important;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: #f3fcf6;
    border-radius: 50%;
    height: 3rem;
    width: 3rem;
    img

{
    width: 1.7rem !important;
    height: 3rem;
}

}

.search-icon-white {
    display: block;
}

.search-icon-primary-color {
    display: block;
}

.white-logo {
    display: block;
}

.colored-logo {
    display: none;
}

.scrolled .search-icon-white {
    display: none;
}

.scrolled .white-logo {
    display: none;
}

.scrolled .colored-logo {
    display: block;
}

/* .container-fluid {
  padding: 0 5rem !important;
} */

.rp-container-fluid {
    padding: 0rem 5rem;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

img {
    margin: 0 !important;
}

.card {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
    padding: 0 !important;
}

.card-icon-container {
    .card-body

{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1em !important;
    .card-title-container

{
    display: flex;
    align-items: baseline;
    width: 100%;
    .card-icon-title

{
    font-size: 1.125rem !important;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1f2a37 !important;
    margin-block: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: default;
    /* Optional: force min-height for visual consistency */
    min-height: calc(1.75rem * 2);
    word-break: break-word;
}

}

.card-details {
    font-size: 1rem;
    font-weight: 400;
    color: #161616;
    line-height: 1.5rem;
    margin-top: 0.5rem;
    /* Truncate to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: default;
    /* Optional: force min-height for visual consistency */
    min-height: calc(1.5rem * 3);
    width: -webkit-fill-available;
}

.card-buttons {
    display: flex;
    margin-top: 0.5rem;
    gap: 1rem;
    white-space: nowrap;
    width: 100%;
    button

{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}

}

.card-icons-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-block: 0.75rem;
}

.calendars-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    .creation-date, .updated-date

{
    display: flex;
    align-items: center;
}

span {
    font-size: 0.75rem;
    font-weight: 400;
    color: #161616;
    margin-inline: 0.5rem;
}

}

.custom-badge {
    padding: 0.4em;
    padding: 0.4em;
    border-radius: 0.2rem;
    font-weight: 400;
    font-size: 0.75rem;
    margin-block: 0.25rem;
    &.primary

{
    background-color: #ecfdf3;
    border: 2px solid #abefc6;
    color: #074d31;
}

&.secondary {
    background-color: #eff8ff;
    border: 1px solid #b2ddff;
    color: #1f2a37;
}

}
}
}

.card-top-img-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem !important;
    .card-body

{
    width: 100%;
    padding: 8px !important;
    color: #1f2a37 !important;
    h5

{
    font-size: 1.125rem !important;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1f2a37 !important;
    margin-block: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: default;
    min-height: calc(1.75rem * 2);
    word-break: break-word;
}

p {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.3rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3rem * 3);
    white-space: normal;
    cursor: default;
}

.cat-img {
    height: 14rem;
    /*object-fit: fill;*/
    border-radius: 0.5rem;
    width: 100%;
}

}
}

.card-right-img-container {
    padding: 1rem;
    color: #1f2a37 !important;
    .card-body

{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9em !important;
    .cat-img

{
    width: 45%;
    height: 45%;
    object-fit: contain;
    flex-shrink: 0;
}

h5 {
    color: #1f2a37 !important;
    font-size: 1.125rem !important;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.5rem;
    max-height: 2.8em;
    cursor: default;
}

p {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.3rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.3rem * 3);
    white-space: normal;
    cursor: default;
}

}
}

/*carousel*/
.owl-carousel .owl-dot span {
    margin-top: 0.5em;
    width: 1rem !important;
    height: 1rem !important;
    background: rgb(202, 202, 202) !important;
    display: block;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.owl-carousel .owl-dot.active span {
    background: #074D31 !important;
}

.owl-carousel .owl-dots {
    text-align: end;
    position: absolute;
    inset-block-start: 80%;
    inset-inline-end: 0;
    margin-block: 3em;
}

.owl-carousel .owl-nav {
    display: flex;
    align-items: center;
    .owl-prev, .owl-next

{
    width: 3rem;
    height: 3rem;
    position: relative;
    border-radius: 50% !important;
}

}

.owl-prev:hover, .owl-next:hover {
    background-color: inherit !important;
}

/* Base arrow style */
.prev-arrow,
.next-arrow {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: transparent;
    color: black;
    transition: background-color 0.3s;
}

    /* Only when active */
    .prev-arrow.active,
    .next-arrow.active {
        background-color: #218a64;
        color: white;
    }

.owl-theme .owl-nav {
    margin-top: 2rem !important;
}

.rp-header {
    margin-top: 125px;
    background: white;
}

/* للجوال الصغير */
@media (max-width: 599px) {
    .rp-header {
        margin-top: 106px;
    }

    .rp-header-container {
        min-height: 45px; /* تقليل الارتفاع أكثر للجوال */
        font-size: 13px; /* تصغير حجم النص */
    }
}

/* للتابلت */
@media (min-width: 600px) and (max-width: 1023px) {
    .rp-header {
        margin-top: 150px;
    }

    .rp-header-container {
        min-height: 50px;
        font-size: 14px;
    }
}

/* للآيباد الكبير والشاشات الصغيرة */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rp-header {
        margin-top: 140px;
    }

    .rp-header-container {
        min-height: 55px;
        font-size: 15px;
    }
}

.rp-header-container {
    position: relative;
    width: 100%;
    font-size: 15px;
    background-color: #1b8354;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50px; /* ارتفاع افتراضي */
    display: flex;
    align-items: center; /* توسيط المحتوى عمودياً */
    margin-bottom: 5px;
}

    .rp-header-container .bg-layer {
        position: absolute;
        inset: 0;
        background-color: #1b8354;
    }

    .rp-header-container .content-layer {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    /* Breadcrumb Styles */
    .rp-header-container .breadcrumb {
        padding: 0.25rem 0 !important; /* تقليل المسافة الرأسية */
        margin: 0 !important;
        background: transparent;
    }

    .rp-header-container .breadcrumb-item {
        display: flex;
        align-items: center;
        padding-right: var(--bs-breadcrumb-item-padding-x) !important;
        padding-left: 0 !important;
    }

        .rp-header-container .breadcrumb-item a {
            color: #ffffff !important;
            text-decoration: none;
            font-size: 14px; /* تصغير حجم النص */
        }

.breadcrumb-item:not(:first-child) a {
    cursor: default;
    pointer-events: none;
}

.rp-header-container .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url('/images/baseimages/arrow-left.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0 0.4rem;
    vertical-align: middle;
}

.rp-pagination .page-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .rp-pagination .page-item .page-link {
        position: relative;
        color: #000;
        background: transparent !important;
        border: 3px solid transparent !important;
        border-radius: 4px;
        cursor: pointer !important;
    }

        .rp-pagination .page-item .page-link:hover {
            background: #F3F4F6 !important;
        }

            .rp-pagination .page-item .page-link:hover::after,
            .rp-pagination .page-item .page-link:hover::before {
                background: #F3F4F6 !important;
            }

    .rp-pagination .page-item.active .page-link {
        color: #000;
        border-bottom: 3px solid #1b8354 !important;
    }

        .rp-pagination .page-item.active .page-link:hover {
            border-bottom: 3px solid #1b8354 !important;
        }

    .rp-pagination .page-item.prev .page-link {
        border: none !important;
        padding: 0;
    }

        .rp-pagination .page-item.prev .page-link::after {
            content: "<";
            position: absolute;
            inset-inline-end: -1px;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.5rem 0.75rem;
            font-size: 1.2rem;
            font-weight: 600;
            color: #000;
            border-radius: 4px;
        }

    .rp-pagination .page-item.next .page-link {
        border: none !important;
        padding: 0;
    }

        .rp-pagination .page-item.next .page-link::after {
            content: ">";
            position: absolute;
            inset-inline-start: -1px;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.5rem 0.75rem;
            font-size: 1.2rem;
            font-weight: 600;
            color: #000;
            border-radius: 4px;
        }

@media screen and (max-width: 768px) {
    .rp-container-fluid {
        padding: 0 1rem !important;
    }
}

@media screen and (max-width: 576px) {
    .rp-container-fluid {
        padding: 0 1rem !important;
        margin-top: 23px;
    }

    .rp-pagination .page-item.prev .page-link {
        padding-inline-start: 0.5rem;
    }

    .rp-pagination .page-item.next .page-link {
        padding-inline-end: 0.5rem;
    }
}



.rp-tabs .nav-tabs {
    font-size: 0.9rem !important;
    flex-flow: nowrap;
    width: max-content;
    border: none !important;
}

    .rp-tabs .nav-tabs .nav-link {
        position: relative;
        font-size: .875rem !important;
        font-weight: 500 !important;
        color: #384250 !important;
        padding: 0.5em 0em !important;
        margin: 0.1em 1em !important;
        border: none !important;
        background-color: transparent !important;
    }

.rp-tabs .nav-link.active {
    font-weight: 700 !important;
    border-bottom: 3px solid #1b8354 !important;
    color: #161616 !important;
}

.nav-item svg {
    margin-left: 0.3em;
}

.tab_header_text {
    color: #161616;
    font-weight: 400;
    font-size: 1.3rem;
    opacity: 0.8;
    text-align: justify;
    margin-bottom: 3rem !important;
}

.tab-content-wrapper {
    width: max-content;
}

.tab-content {
    display: inherit !important;
}

@media (max-width: 768px) {
    .rp-tabs .nav-tabs .nav-link {
        margin-inline: 0.5em !important;
    }
}

@media (min-width: 1200px) {
    .col-xl-2_4 {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}

@media (max-width: 992px) {
    .bottom-footer-container {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .ds-footer-body {
        padding: 2rem !important;
    }

    .ds-footer-section {
        margin-bottom: 24px;
    }

    .ds-footer-section-body {
        display: block !important;
    }

        .ds-footer-section-body.bottom-footer-links {
            display: flex !important;
        }
}

.mt-87px {
    margin-top: 87px;
}
#sh-loader {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    height: 100vh;
    width: 100vw;
    z-index: 10000;
}

.loader2 {
    width: 48px;
    height: 48px;
    border: 5px solid #d2d6db;
    border-bottom-color: #1B8354;
    border-radius: 50%;
    box-sizing: border-box;
    /* تسريع اللودر */
    /*animation: rotation 0.35s linear infinite;*/
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*#sh-loader {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    height: 100vh;
    width: 100vw;
    z-index: 10000;
}

.loader2 {
    width: 48px;
    height: 48px;
    border: 5px solid #d2d6db;
    border-bottom-color: #1B8354;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    transform: scale(2);
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }*/
}
/*section news cards*/

/* ============================
   🔹 توحيد شكل كروت أخبار المدينة
   ============================ */

/* نفس بوردر وراديوس الكروت التانية */
#staticNews .card.card-top-img-container {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
    padding: 1rem !important;
}

    /* جسم الكارت – توزيع المحتوى رأسياً */
    #staticNews .card.card-top-img-container .card-body {
        padding: 10px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

/* صورة الخبر نفس ستايل cat-img في باقي الصفحات */
#staticNews .news-projects-img .cat-img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* عنوان الخبر h3 بنفس ستايل h5 بتاع الكروت الأصلية */
#staticNews .card.card-top-img-container .card-body h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1f2a37;
    margin-block: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* سطرين فقط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    cursor: default;
    min-height: calc(1.75rem * 2); /* توحيد ارتفاع العناوين */
    word-break: break-word;
}

/* زر "قراءة المزيد" ثابت تحت العنوان */
#staticNews .card.card-top-img-container .card-body > div:last-child {
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    #staticNews .news-projects-img .cat-img {
        height: 12rem;
    }
}
