@import "../../fonts/Cairo/stylesheet.css";

@import "../../fonts/transfonter/stylesheet.css";



* {
    font-family: Cairo,sans-serif;
}


:root {
    --main-green: #1f7a4d;
    --dark-green: #155a36;
    --gold: #d4a82a;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-light: #f0f0f0;
    --bg-light: #f8f9fa;
    --text-color: #333;
}



body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.content *
{
    font-size: inherit !important;
}


/* الهيدر الرئيسي */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* اللوجو */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-green);
    margin: 0;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--main-green);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

/* قائمة التنقل */
.navbar-nav .nav-link {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 11px !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--main-green);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--main-green);
}

/* محول اللغة */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: none;
}

.lang-switcher:hover {
    color: var(--main-green);
}

.lang-switcher i {
    font-size: 18px;
}

/* زر الموبايل */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* استجابة الموبايل */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .logo-title {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }
}


/*-----------------index---------*/





.mainSlideWebSite.swiper {
    width: 100%;
    height: 100%;
    background: #000;
}

.mainSlideWebSite .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mainSlideWebSite .swiper-slide .imageSlider {
    display: block;
    width: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.overSliderCard {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1000;
    text-align: center;
    color: #fff;
}

.mainSlideWebSite .swiper-slide video {
    display: block;
    width: 100%;
    /*position: absolute;*/
    /*z-index: 1;*/
    /*top: -107px;*/
}


.descriptionSlider
{
    font-size: 20px;
    color: #fff;
    font-weight: 300;
    line-height: 2;
    text-align: center;
    margin-top: 22px;
    margin-bottom: 10px;
    padding: 0 33px;
}


.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

/* الزر الأخضر */
.btn-explore {
    background-color: #1f7a4d;
    color: #fff;
    border: none;
    padding: 14px 38px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 122, 77, 0.25);
    min-width: 180px;
}
.btn-explore:hover {
    background-color: #15633c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 122, 77, 0.35);
}

/* الزر الشفاف */
.btn-biography {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #2c3e50;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    padding: 14px 38px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 180px;
}
.btn-biography:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: #1f7a4d;
    color: #1f7a4d;
    transform: translateY(-2px);
}

/* استجابة الموبايل */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-explore,
    .btn-biography {
        width: 100%;
        min-width: unset;
    }
}


.about-section {
    padding: 70px 0;

}

/* أيقونة القلب العلوية */
.about-icon-top {
    width: 60px;
    height: 60px;
    background: #1f7a4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(31, 122, 77, 0.2);
}

.about-icon-top i {
    color: #ffffff;
    font-size: 22px;
}

/* العنوان الرئيسي */
.about-title {
    color: #1f7a4d;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
}

/* الوصف */
.about-description {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* البطاقات */
.feature-card {
    display: block;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 28px 22px;
    height: 100%;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #e8e8e8;
    text-decoration: none;
}

/* أيقونة البطاقة */
.feature-icon {
    width: 52px;
    height: 52px;
    background: #d4a82a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.feature-icon i {
    color: #ffffff;
    font-size: 22px;
}

/* عنوان البطاقة */
.feature-title {
    color: #1f7a4d;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

/* نص البطاقة */
.feature-text {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .about-section {
        padding: 50px 0;
    }
    .about-title {
        font-size: 26px;
    }
    .about-description {
        font-size: 14px;
    }
}


.intro-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 50px 60px;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.intro-paragraph {
    color: #6c757d;
    font-size: 15px;
    line-height: 2;
    text-align: center;
    margin-bottom: 25px;
}

.intro-paragraph:last-of-type {
    margin-bottom: 35px;
}

/* مربع الحديث الشريف */
.hadith-box {
    position: relative;
    background: linear-gradient(135deg, #f5f3f8 0%, #ede9f2 100%);
    border-radius: 10px;
    padding: 30px 50px;
    overflow: hidden;
    text-align: center;
}

/* الزخارف الجانبية */
.hadith-box::before,
.hadith-box::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background-image: url('/localfile/z.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
}

.hadith-box::before {
    left: -90px;
    top: -90px;
}

.hadith-box::after {
    right: -93px;
    bottom: -93px;
}

.hadith-title {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.hadith-text {
    color: #1f7a4d;
    font-size: 16px;
    font-weight: 600;
    line-height: 2;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .intro-card {
        padding: 30px 20px;
    }
    .intro-paragraph {
        font-size: 14px;
    }
    .hadith-box {
        padding: 25px 20px;
    }
    .hadith-box::before,
    .hadith-box::after {
        width: 50px;
        height: 50px;
        opacity: 0.3;
    }
    .hadith-text {
        font-size: 14px;
    }
}



.publications-section {
    padding: 70px 0;
    background: #ffffff;
    font-family: 'Cairo', sans-serif;
    margin-top: 100px;
}

/* أيقونة العدسة العلوية */
.publications-icon-top {
    width: 60px;
    height: 60px;
    background: #d4a82a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(212, 168, 42, 0.25);
}

.publications-icon-top i {
    color: #ffffff;
    font-size: 22px;
}

/* العنوان الرئيسي */
.publications-title {
    color: #1f7a4d;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
    text-align: center;
}

/* الوصف */
.publications-description {
    color: #6c757d;
    font-size: 15px;
    text-align: center;
    margin-bottom: 50px;
}

/* الـ Swiper */
.publications-swiper {
    position: relative;
    padding: 50px 10px;
}

.publications-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgb(206 206 206 / 49%);
}

/* صورة الكتاب */
.book-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 25px;
    min-height: 340px;
}

.book-image-wrapper img {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.publications-swiper .swiper-slide:hover .book-image-wrapper img {
    transform: translateY(-8px);
}

/* اسم الكتاب */
.book-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* فئة الكتاب */
.book-category {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* أزرار التنقل */
.publications-swiper .swiper-button-prev,
.publications-swiper .swiper-button-next {
    width: 38px;
    height: 38px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #ffffff;
    color: #6c757d;
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -19px;
}

.publications-swiper .swiper-button-prev:hover,
.publications-swiper .swiper-button-next:hover {
    background: #1f7a4d;
    border-color: #1f7a4d;
    color: #ffffff;
}

.publications-swiper .swiper-button-prev::after,
.publications-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.publications-swiper .swiper-button-prev {
    right: auto;
    left: 0;
}

.publications-swiper .swiper-button-next {
    left: auto;
    right: 0;
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .publications-section {
        padding: 50px 0;
    }
    .publications-title {
        font-size: 26px;
    }
    .publications-swiper {
        padding: 0 30px;
    }
    .book-image-wrapper {
        min-height: 280px;
    }
    .book-image-wrapper img {
        max-width: 170px;
    }
    .publications-swiper .swiper-button-prev,
    .publications-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
}


.news-section {
    padding: 70px 0;
}

/* العنوان الرئيسي */
.news-title {
    color: #1f7a4d;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
    text-align: center;
}

/* الوصف */
.news-description {
    color: #6c757d;
    font-size: 15px;
    text-align: center;
    margin-bottom: 30px;
}

/* التبويبات */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.news-tab {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 4px;
    position: relative;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
}

.news-tab:hover {
    color: #1f7a4d;
}

.news-tab.active {
    color: #1f7a4d;
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1f7a4d;
}

/* الـ Swiper */
.news-swiper {
    padding-bottom: 60px !important;
}

.news-swiper .swiper-slide {
    height: auto;
}

/* بطاقة الخبر */
.news-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* صورة الخبر */
.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* محتوى البطاقة */
.news-content {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* التاريخ */
.news-date {
    color: #d4a82a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* عنوان الخبر */
.news-card-title {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 18px;
    flex: 1;
    position: relative;
    padding-left: 25px;
}

/* أيقونة السهم */
.news-card-title::before {
    content: '\f178';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0px;
    top: -32px;
    color: #131313;
    font-size: 16px;
    transform: rotate(-45deg);
}

/* رابط قراءة المزيد */
.news-read-more {
    color: #1f7a4d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: inline-block;
    text-align: left;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: #155a36;
}

/* شريط التحكم السفلي */
.news-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.news-nav-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-nav-btn:hover {
    color: #1f7a4d;
}

.news-view-all {
    color: #1f7a4d;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.news-view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #1f7a4d;
}

.news-view-all:hover {
    color: #155a36;
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .news-section {
        padding: 50px 0;
    }
    .news-title {
        font-size: 26px;
    }
    .news-tabs {
        gap: 25px;
    }
    .news-tab {
        font-size: 14px;
    }
    .news-image {
        height: 200px;
    }
    .news-bottom-controls {
        gap: 25px;
    }
}

.magazine-section {
    padding: 70px 0;
    background: #ffffff;
    font-family: 'Cairo', sans-serif;
}

/* العنوان الرئيسي */
.magazine-title {
    color: #1f7a4d;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
    text-align: center;
}

/* الوصف */
.magazine-description {
    color: #6c757d;
    font-size: 15px;
    text-align: center;
    margin-bottom: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* الخط الفاصل الأخضر */
.magazine-divider {
    width: 90px;
    height: 3px;
    background: #1f7a4d;
    margin: 0 auto 0;
    border-radius: 2px;
}

/* صورة المجلة */
.magazine-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.magazine-image-wrapper img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
}

.magazine-image-wrapper:hover img {
    transform: translateY(-5px);
}

/* محتوى النص */
.magazine-content {
    padding: 20px 0;
}

.magazine-content-title {
    color: #2c3e50;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 22px;
}

.magazine-content-text {
    color: #6c757d;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 30px;
    text-align: justify;
}

/* زر التصفح */
.btn-browse-issues {
    background: linear-gradient(90deg, #0E8742 0%, #42C178 100%);
    color: #ffffff;
    border: none;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 122, 77, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
}

.btn-browse-issues:hover {
    background-color: #155a36;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 122, 77, 0.35);
}

.btn-browse-issues i {
    font-size: 16px;
}

/* استجابة الموبايل */
@media (max-width: 991.98px) {
    .magazine-content {
        text-align: center;
        margin-top: 30px;
    }
    .btn-browse-issues {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .magazine-section {
        padding: 50px 0;
    }
    .magazine-title {
        font-size: 28px;
    }
    .magazine-content-title {
        font-size: 22px;
    }
    .magazine-divider {
        margin-bottom: 40px;
    }
}

.sections-section {
    padding: 70px 0;
    background: #f8f9fa;
    font-family: 'Cairo', sans-serif;
}

/* الأيقونة العلوية */
.sections-icon-top {
    width: 60px;
    height: 60px;
    background: #d4a82a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 4px 10px rgba(212, 168, 42, 0.25);
}

.sections-icon-top i {
    color: #ffffff;
    font-size: 22px;
}

/* العنوان الرئيسي */
.sections-title {
    color: #1f7a4d;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
}

/* الوصف */
.sections-description {
    color: #6c757d;
    font-size: 15px;
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* بطاقة القسم */
.section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 25px 25px;
    height: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

/* أيقونة البطاقة */
.section-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.section-card-icon i {
    color: #ffffff;
    font-size: 24px;
}

/* لون أخضر */
.section-card-icon.green {
    background: #1f7a4d;
}

/* لون ذهبي */
.section-card-icon.gold {
    background: #d4a82a;
}

/* عنوان البطاقة */
.section-card-title {
    color: #1f7a4d;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

/* لون عنوان البطاقة الذهبية */
.section-card-icon.gold + .section-card-title {
    color: #d4a82a;
}

/* نص البطاقة */
.section-card-text {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 28px;
    min-height: 80px;
}

/* رابط استكشف المزيد */
.section-card-link {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 700;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.section-card:hover .section-card-link {
    color: #1f7a4d;
}

.section-card:hover .section-card-link i {
    transform: translateX(3px);
}

.section-card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .sections-section {
        padding: 50px 0;
    }
    .sections-title {
        font-size: 28px;
    }
    .section-card {
        padding: 30px 20px 20px;
    }
    .section-card-text {
        min-height: auto;
    }
}

.stats-section {
    padding: 50px 0;
    background: #f8f9fa;
    font-family: 'Cairo', sans-serif;
}

/* الكارد الأخضر */
.stats-card {
    background: #2d7a3e;
    border-radius: 14px;
    padding: 35px 40px 30px;
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.15);
}

/* عنوان الإحصائيات */
.stats-card-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
}

/* عنصر الإحصائية الواحدة */
.stat-item {
    text-align: center;
    color: #ffffff;
}

/* الرقم */
.stat-number {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1;
}

/* تسمية الإحصائية */
.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .stats-card {
        padding: 25px 20px;
    }
    .stats-card-title {
        font-size: 18px;
        margin-bottom: 22px;
    }
    .stat-number {
        font-size: 30px;
    }
    .stat-label {
        font-size: 12px;
    }
    .stat-item {
        margin-bottom: 15px;
    }
}


.contact-section {
    padding: 70px 0;
}

/* الأيقونة العلوية */
.contact-icon-top {
    width: 60px;
    height: 60px;
    background: #1f7a4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 4px 10px rgba(31, 122, 77, 0.25);
}

.contact-icon-top i {
    color: #ffffff;
    font-size: 22px;
}

/* العنوان الرئيسي */
.contact-title {
    color: #1f7a4d;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
}

/* الوصف */
.contact-description {
    color: #6c757d;
    font-size: 15px;
    text-align: center;
    margin-bottom: 50px;
}

/* ============ بطاقات معلومات التواصل ============ */
.contact-info-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* أيقونة بطاقة المعلومات */
.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #d4a82a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon i {
    color: #ffffff;
    font-size: 20px;
}

.contact-info-body {
    flex: 1;
    text-align: left;
}

.contact-info-label {
    color: #1f7a4d;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-info-value {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.contact-info-sub {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* ============ بطاقة النموذج ============ */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.contact-form-title {
    color: #1f7a4d;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
}

.form-label {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.form-control:focus {
    background: #ffffff;
    border-color: #1f7a4d;
    box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

textarea.form-control {
    resize: vertical;
}

/* زر إرسال الرسالة */
.btn-send-message {
    background: #2d7a3e;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    margin-top: 8px;
}

.btn-send-message:hover {
    background: #246332;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 122, 62, 0.3);
}

.btn-send-message i {
    font-size: 14px;
}

/* استجابة الموبايل */
@media (max-width: 991.98px) {
    .contact-form-card {
        margin-bottom: 25px;
    }
}

@media (max-width: 767.98px) {
    .contact-section {
        padding: 50px 0;
    }
    .contact-title {
        font-size: 28px;
    }
    .contact-form-card {
        padding: 25px 20px;
    }
    .contact-info-card {
        padding: 22px;
    }
}


.map   {
    height: 152px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.map iframe {
    height: 100%;
    width: 100%;
}


/*----------------end index-----------------*/


/*--------footer-----------*/


.site-footer {
    background: #ffffff;
    padding: 60px 0 0;
    font-family: 'Cairo', sans-serif;
    border-top: 1px solid #f0f0f0;
}

/* ========== قسم الـ Logo والوصف ========== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-brand-name {
    color: #1f7a4d;
    font-size: 19px;
    font-weight: 800;
    margin: 0;
}

.footer-brand-sub {
    color: #6c757d;
    font-size: 12px;
    margin: 0;
}

/* وصف الفوتر */
.footer-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* بيانات التواصل */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: #1f7a4d;
}

.footer-contact-item i {
    color: #1f7a4d;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* ========== أعمدة الروابط ========== */
.footer-col-title {
    color: #1f7a4d;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 22px;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1f7a4d;
}

/* ========== الشريط السفلي ========== */
.footer-bottom {
    margin-top: 50px;
    padding: 22px 0;
    border-top: 1px solid #f0f0f0;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* أيقونات السوشل ميديا */
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social-label {
    color: #6c757d;
    font-size: 13px;
    margin-right: 6px;
}

.footer-social a {
    color: #6c757d;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #1f7a4d;
}

/* استجابة الموبايل */
@media (max-width: 991.98px) {
    .footer-col-title {
        text-align: left;
        margin-top: 25px;
    }
    .footer-links {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-top: 40px;
    }
    .footer-bottom-row {
        justify-content: center;
        text-align: center;
    }
    .footer-copyright {
        order: 2;
    }
    .footer-social {
        order: 1;
    }
}



/*--------end footer-----------*/

/*--------about------*/


.about-page {
    background: #f8f9fa;
    padding: 40px 0 70px;
    font-family: 'Cairo', sans-serif;
}

/* ===== Breadcrumb ===== */
.about-breadcrumb {
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.about-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: 'Cairo', sans-serif;
}

.about-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.about-breadcrumb .breadcrumb-item a:hover {
    color: var(--main-green);
}

.about-breadcrumb .breadcrumb-item a i {
    color: var(--main-green);
}

.about-breadcrumb .breadcrumb-item.active {
    color: var(--main-green);
    font-weight: 700;
    font-size: 14px;
}

.about-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-muted);
    font-size: 11px;
    padding: 0 8px;
    float: unset;
}

/* ===== About Card ===== */
.about-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.about-card .about-inner {
    padding: 35px 40px;
}

/* ===== Section Title داخل البطاقة ===== */
.about-section-title {
    color: var(--main-green);
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

/* أيقونة العنوان */
.about-section-icon {
    width: 42px;
    height: 42px;
    background: var(--main-green);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-section-icon i {
    color: #ffffff;
    font-size: 18px;
}

/* ===== About Image ===== */
.about-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 25px;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ===== About Text Content ===== */
.about-text {
    line-height: 2.2;
    color: var(--text-muted);
    font-size: 15px;
    text-align: justify;
}

.about-text p {
    margin-bottom: 18px;
}

.about-text h2,
.about-text h3,
.about-text h4 {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    margin: 28px 0 16px;
    font-weight: 800;
}

.about-text h2 {
    font-size: 22px;
    color: var(--main-green);
}

.about-text h3 {
    font-size: 19px;
    color: var(--main-green);
}

.about-text h4 {
    font-size: 17px;
    color: var(--gold);
}

.about-text img {
    max-width: 100% !important;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.about-text ul,
.about-text ol {
    padding-inline-start: 25px;
    margin-bottom: 18px;
}

.about-text ul li,
.about-text ol li {
    margin-bottom: 10px;
    position: relative;
}

.about-text ul {
    list-style: none;
    padding-inline-start: 0;
}

.about-text ul li {
    padding-inline-start: 28px;
}

.about-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    font-size: 13px;
}

.about-text blockquote {
    border-inline-start: 4px solid var(--gold);
    background: linear-gradient(135deg, #fdfbf3 0%, #faf6e8 100%);
    padding: 20px 28px;
    margin: 22px 0;
    border-radius: 0 10px 10px 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    line-height: 2;
}

.about-text a {
    color: var(--main-green);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--main-green);
    transition: all 0.3s ease;
}

.about-text a:hover {
    color: var(--dark-green);
    border-color: var(--dark-green);
}

.about-text strong,
.about-text b {
    color: var(--text-dark);
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .about-card .about-inner {
        padding: 28px 25px;
    }
}

@media (max-width: 767.98px) {
    .about-page {
        padding: 25px 0 50px;
    }

    .about-card .about-inner {
        padding: 22px 18px;
    }

    .about-section-title {
        font-size: 19px;
        gap: 10px;
    }

    .about-section-icon {
        width: 36px;
        height: 36px;
    }

    .about-section-icon i {
        font-size: 15px;
    }

    .about-text {
        font-size: 14px;
        line-height: 2;
    }

    .about-text h2 { font-size: 19px; }
    .about-text h3 { font-size: 17px; }
    .about-text h4 { font-size: 15px; }
}




/*---------end page -----------*/






/* ===== CATEGORIES PAGE ===== */
.categories-page {
    background: #f8f9fa;
    padding: 40px 0 70px;
    font-family: 'Cairo', sans-serif;
}

/* ===== Page Header ===== */
.categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.categories-header-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 4px 10px rgba(212, 168, 42, 0.25);
}

.categories-header-icon i {
    color: #ffffff;
    font-size: 22px;
}

.categories-header-title {
    color: var(--main-green);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.categories-header-description {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 18px;
    line-height: 1.8;
}

.categories-header-divider {
    width: 90px;
    height: 3px;
    background: var(--main-green);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== Department Card ===== */
.department_center {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
}

.department_center:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(31, 122, 77, 0.12);
    text-decoration: none;
    border-color: var(--main-green);
}

/* الصورة الخلفية */
.image_department_center {
    position: relative;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: all 0.35s ease;
}

/* تظليل متدرج خفيف فوق الصورة */
.image_department_center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(31, 122, 77, 0.3) 100%);
    transition: all 0.35s ease;
    z-index: 1;
}

.department_center:hover .image_department_center {
    transform: scale(1.03);
}

.department_center:hover .image_department_center::before {
    background: linear-gradient(180deg, rgba(31, 122, 77, 0.2) 0%, rgba(31, 122, 77, 0.55) 100%);
}

/* اسم القسم */
.name_departments_centers {
    padding: 22px 20px;
    text-align: center;
    color: var(--main-green);
    font-size: 17px;
    font-weight: 700;
    background: #ffffff;
    border-top: 3px solid transparent;
    transition: all 0.35s ease;
    position: relative;
}

.department_center:hover .name_departments_centers {
    color: var(--dark-green);
    border-top-color: var(--gold);
}

/* سهم خفيف بعد الاسم */
.name_departments_centers::after {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    font-size: 12px;
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-8px);
    display: inline-block;
    transition: all 0.35s ease;
}

.department_center:hover .name_departments_centers::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===== رسالة "لا توجد بيانات" ===== */
.no-categories {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.no-categories i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.4;
}

.no-categories p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .image_department_center {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .categories-page {
        padding: 25px 0 50px;
    }

    .categories-header-title {
        font-size: 26px;
    }

    .categories-header-description {
        font-size: 14px;
    }

    .image_department_center {
        height: 200px;
    }

    .name_departments_centers {
        font-size: 15px;
        padding: 18px 15px;
    }
}

/* ===== DETAILS PAGE (عام - قابل لإعادة الاستخدام) ===== */
.details-page {
    background: #f8f9fa;
    padding: 30px 0 70px;
    font-family: 'Cairo', sans-serif;
}

/* ===== Sidebar (البطاقة الجانبية / الكتاب) ===== */
.item-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 25px 20px 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
    transition: all 0.35s ease;
    overflow: hidden;
}

.item-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green) 0%, var(--gold) 100%);
}

.item-poster-wrapper {
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.item-poster {
    width: 100%;
    min-height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.item-sidebar-title {
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.7;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e8e8e8;
}


/* ===== Content Card (التفاصيل) ===== */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

/* ===== أزرار التحكم بالخط ===== */
.ControlText {
    display: inline-flex;
    gap: 6px;
    background: var(--bg-light);
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btnControlText {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--main-green);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.btnControlText:hover {
    background: var(--main-green);
    color: #ffffff;
    border-color: var(--main-green);
    transform: translateY(-2px);
}

/* ===== المحتوى ===== */
.content {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 2.2;
    text-align: justify;
    margin-bottom: 25px;
}

.content p {
    margin-bottom: 16px;
}

.content h2,
.content h3,
.content h4 {
    color: var(--main-green);
    font-weight: 800;
    margin: 25px 0 14px;
}

.content h2 { font-size: 22px; }
.content h3 { font-size: 19px; }
.content h4 { font-size: 17px; color: var(--gold); }

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.content blockquote {
    border-inline-start: 4px solid var(--gold);
    background: linear-gradient(135deg, #fdfbf3 0%, #faf6e8 100%);
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.content a {
    color: var(--main-green);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--main-green);
}

/* ===== شريط المشاركة والمعلومات ===== */
.post-meta-bar {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 16px 22px;
    margin-bottom: 25px;
}

.sharePost {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sharePost span {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    margin-right: 4px;
}

.sharePost a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--main-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.sharePost a:hover {
    background: var(--main-green);
    color: #ffffff;
    border-color: var(--main-green);
    transform: translateY(-3px);
}

.post-info {
    display: flex;
    gap: 18px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.post-info i {
    color: var(--gold);
    margin-right: 4px;
}

/* ===== Gallery (الصور / الفيديوهات) ===== */
.gallery-section {
    margin-top: 30px;
}

.gallery-section-title {
    color: var(--main-green);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
}

.gallery-section-title i {
    color: var(--gold);
}

.media-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    background: #ffffff;
}

.media-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.media-item video {
    width: 100%;
    display: block;
}

.media-image {
    display: block;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.media-item:hover .media-image {
    transform: scale(1.05);
}

/* ===== قسم العناصر ذات الصلة / الأكثر مشاهدة ===== */
.related-section {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 28px 25px;
    margin-top: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--gold);
    border-radius: 3px;
    flex-shrink: 0;
}

.section-title span {
    color: var(--main-green);
    font-size: 20px;
    font-weight: 800;
}

/* بطاقة العنصر (قابلة لإعادة الاستخدام) */
.item-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 22px 18px 20px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green) 0%, var(--gold) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(31, 122, 77, 0.12);
    border-color: rgba(31, 122, 77, 0.2);
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-card-img {
    display: block;
    width: 100%;
    min-height: 260px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f6f8;
    background-image: linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    transition: all 0.35s ease;
}

.item-card-title {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.6;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed #e8e8e8;
    padding-bottom: 12px;
    transition: color 0.3s ease;
}

.item-card:hover .item-card-title {
    color: var(--main-green);
}

.item-card .item-download a {
    background: transparent;
    color: var(--main-green);
    border: 1.5px solid var(--main-green);
    padding: 8px 22px;
    font-size: 13px;
    box-shadow: none;
}

.item-card .item-download a:hover {
    background: var(--main-green);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(31, 122, 77, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .item-sidebar-card {
        position: static;
        margin-bottom: 25px;
    }
}

@media (max-width: 767.98px) {
    .details-page {
        padding: 20px 0 50px;
    }
    .content-card {
        padding: 22px 18px;
    }
    .content {
        font-size: 15px;
        line-height: 2;
    }
    .post-meta-bar {
        padding: 14px 16px;
    }
    .post-info {
        gap: 12px;
        font-size: 13px;
        margin-top: 10px;
    }
    .media-image {
        height: 180px;
    }
}

/* ===== LISTING PAGE (عام - قابل لإعادة الاستخدام) ===== */
.listing-page {
    background: #f8f9fa;
    padding: 30px 0 70px;
    font-family: 'Cairo', sans-serif;
}

/* ===== Categories Sub-Grid ===== */
.sub-categories-wrap {
    margin-bottom: 50px;
}

/* ===== فاصل بين الأقسام والعناصر ===== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 40px;
}

.section-divider-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: #e0e0e0;
}

.section-divider-title {
    color: var(--main-green);
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-divider-title i {
    color: var(--gold);
    font-size: 20px;
}

/* ===== Item Card (داخل إطار) - تخص صفحة القائمة ===== */
.item-card-link {
    display: block;
    text-decoration: none;
    flex: 1;
}

/* خلفية خفيفة للصورة */
.item-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 280px;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.35s ease;
}

.item-image-wrapper img {
    max-width: 100%;
    max-height: 260px;
    height: auto;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.item-card:hover .item-image-wrapper {
    background: linear-gradient(135deg, #f0f9f4 0%, #fdf9eb 100%);
}

.item-card:hover .item-image-wrapper img {
    transform: translateY(-6px) scale(1.03);
}

.item-title {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.6;
    transition: color 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-card:hover .item-title {
    color: var(--main-green);
}

.item-category {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e8e8e8;
}

/* زر التحميل */
.item-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--main-green);
    border: 1.5px solid var(--main-green);
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
}

.item-download:hover {
    background: var(--main-green);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(31, 122, 77, 0.25);
}

.item-download i {
    font-size: 12px;
}

/* ===== Loading & Load More ===== */
.loadingItem {
    text-align: center;
    padding: 20px 0;
}

.loadingItem img {
    max-width: 60px;
}

.btnMoreLoad {
    background: var(--main-green);
    color: #ffffff;
    border: none;
    padding: 12px 38px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 122, 77, 0.2);
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btnMoreLoad:hover {
    background: var(--dark-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 122, 77, 0.3);
}

/* ===== لا توجد بيانات ===== */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.no-data i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.4;
}

.no-data p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

/* ===== المسافة بين البطاقات ===== */
.items-grid-col {
    margin-bottom: 28px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .item-image-wrapper {
        min-height: 240px;
    }
    .item-image-wrapper img {
        max-height: 220px;
    }
}

@media (max-width: 767.98px) {
    .listing-page {
        padding: 20px 0 50px;
    }
    .image_department_center {
        height: 160px;
    }
    .item-card {
        padding: 20px 15px 18px;
    }
    .item-image-wrapper {
        min-height: 220px;
        padding: 12px;
        margin-bottom: 16px;
    }
    .item-image-wrapper img {
        max-height: 200px;
    }
    .item-title {
        font-size: 14px;
        min-height: 44px;
    }
    .section-divider-title {
        font-size: 18px;
    }
}
/* ===== شريط الأخبار المتحرك (نسخة LTR للإنجليزية) ===== */
.news-ticker {
    background: linear-gradient(90deg, var(--main-green) 0%, var(--dark-green) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    height: 52px;
    box-shadow: 0 4px 12px rgba(31, 122, 77, 0.15);
    z-index: 10;
}

/* عنوان ثابت على اليسار (Breaking News) */
.news-ticker-label {
    background: var(--gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

/* شكل مائل في نهاية العنوان (جهة اليمين في LTR) */
.news-ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    right: -14px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 26px 0 26px 14px;
    border-color: transparent transparent transparent var(--gold);
}

.news-ticker-label i {
    font-size: 14px;
    animation: tickerBlink 1.2s infinite;
}

@keyframes tickerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* حاوية النص المتحرك */
.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.news-ticker-move {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 100s linear infinite;
    will-change: transform;
    flex-shrink: 0;
}

/* إيقاف الحركة عند المرور بالماوس */
.news-ticker:hover .news-ticker-move {
    animation-play-state: paused;
}

.news-ticker-item {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 30px;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.news-ticker-item:hover {
    color: var(--gold);
}

/* نقطة فاصلة قبل كل خبر (على جهة اليسار في LTR) */
.news-ticker-item::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    font-size: 6px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* الحركة (LTR: المجموعة تتحرك لليسار بمقدار نصفها) */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* استجابة الموبايل */
@media (max-width: 767.98px) {
    .news-ticker {
        height: 46px;
    }
    .news-ticker-label {
        padding: 0 14px;
        font-size: 13px;
    }
    .news-ticker-label span {
        display: none; /* تبقى الأيقونة فقط على الموبايل */
    }
    .news-ticker-item {
        font-size: 13px;
        padding: 0 22px;
    }
}
