@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* :root{
    --primary-gradient: linear-gradient(135deg, #006B5E 0%, var(--primary-dark-color) 100%);
    --secondary-gradient: linear-gradient(135deg, #00897B 0%, #006B5E 100%);
    --accent-gradient: linear-gradient(135deg, #26A69A 0%, #00897B 100%);
    --header-gradient: linear-gradient(90deg, var(--primary-dark-color) 0%, var() 50%, var(--primary-dark-color) 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(224, 242, 241, 0.9) 100%);
    --sidebar-gradient: linear-gradient(54deg, var(--primary-dark-color) 0%, #01c188 100%);
    --primary-color: #006B5E;
    --primary-dark-color: var(--primary-dark-color);
    --accent-color: #00897B;
    --text-color: var(--primary-dark-color);
    --bg-color: var(--light-gold);
    --white-color: #ffffff;
    --black-color: #002419;
    --arabic-font: "Tajawal", sans-serif;
    --transition: 0.5s;
    --border-color: rgba(231, 231, 231, 0.729);
    --border-radius: 16px;
    --card-shadow: 0 2px 4px rgba(0, 77, 64, 0.1);
    --success-color: var();
    --warning-color: #00796B;
    --danger-color: var();
    --secondary-color: #26A69A;
    --light-green: var(--light-gold);
    --menu-bg: rgba(0, 77, 64, 0.9);
    --card-bg: rgba(224, 242, 241, 0.9);
} */
:root {
    /* التدرجات */
    --primary-gradient: linear-gradient(135deg, #D4AF37 0%, #151414 100%);
    --secondary-gradient: linear-gradient(135deg, #D4AF37 0%, #151414 100%);
    --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #151414 100%);
    --header-gradient: linear-gradient(135deg, #D4AF37 0%, #151414 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 0%);
    --sidebar-gradient: linear-gradient(135deg, #D4AF37 0%, #151414 100%);

    /* الألوان الأساسية */
    --primary-color: #D4AF37;
    --primary-dark-color: #B8860B;
    --accent-color: #7e5c19;
    --text-color: #151414;
    --bg-color: #FFFFFF;
    --white-color: #FFFFFF;
    --black-color: #000000;
    --arabic-font: "Tajawal", sans-serif;
    --transition: 0.5s;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --success-color: #D4AF37;
    --danger-color: #B8860B;
    --light-gold: #FFF8E7;
    --menu-bg: rgba(0, 0, 0, 0.9);
    --card-bg: rgba(255, 255, 255, 0.9);
}

/* للعنصر اللي فيه Scroll مثلاً body أو div معين */
::-webkit-scrollbar {
    width: 10px; /* عرض الشريط */
    height: 10px;
}
  
  /* الخلفية وراء الشريط */
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
  
  /* الشريط نفسه */
::-webkit-scrollbar-thumb {
    background: var(--accent-color); /* لون الشريط */
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid var(--bg-color); /* فراغ حول الشريط */
}
/* عند تمرير الماوس عليه */
::-webkit-scrollbar-thumb:hover {
    background: var(--black-color);
}
html , body{
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
}
*{
    font-family: var(--arabic-font);
}
a{
    text-decoration: none !important;
}
ul{
    list-style: none;
    padding: 0;
    margin: 0;
}


.topbar{
    padding: 10px 0;
    background: var(--light-gold);
}
.topbar .container , #nav .container{
    max-width: 1600px !important;
}
.top_bar_content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
#logo_topbar{
    font-size: 20px;
    font-weight: 600;
    color: var(--black-color);
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    /* gap: 10px; */
}
#logo_topbar span{
    font-size: 14px;
    font-weight: 400;
    color: var(--black-color);
}
.form_topbar_category , .search_mobile{
    background: var(--white-color);
    border-radius: 10px; 
    padding: 0;
    gap: 0;
    box-shadow: var(--card-shadow);
    width: 100%;
}

.form_search{
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--white-color);
    /* box-shadow: var(--card-shadow); */
    border-radius: 12px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: 0;
    /* border: 1px solid var(--border-color); */
}
.form_search input{
    width: 100%;
    padding: 0 10px;
    border: 0 !important;
    border-radius: 5px;
    box-shadow: none !important;
    padding-right: 125px;
    font-size: 18px;
    font-weight: 500;
}
.form-control.input_search{
    border-radius: 5px;
}
.form_search button{
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    width: max-content;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--header-gradient);
    gap: 10px;
    border-radius: 0;
}

.btn_result{
    background: var(--white-color);
    /* box-shadow: var(--card-shadow); */
    border-radius: 0;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    outline: 0;
    min-width: 100px;
    width: max-content;
    border: 0;
    border-right: 1px solid var(--border-color);
    font-size: 15px;
    height: 100%;
    font-weight: 600;
}
.btn_account{
    /* background: var(--header-gradient); */
    color: var(--black-color) !important; 
    box-shadow: var(--card-shadow);
    border-radius: 2px;
    padding: 15px 25px !important;
    font-size: 15px;
    /* height: 100%; */
    /* width: max-content; */
    font-weight: 600;
    /* height: 60px; */
    display: flex;
    align-items: center;
}
.dropdown-menu{
    border-radius: 5px;
    padding: 0;
    text-align: right;
    border: 1px solid var(--border-color);
    overflow: hidden;
    left: auto !important;
    right: 0 !important;
}
/* #dropdown_location{
    height: 55px;
} */
.dropdown-menu li{
    cursor: pointer;
}
.dropdown-item{
    font-size: 18px;
    font-weight: 500;
    color: var(--black-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 8px 15px;
}
.dropdown-item:hover{
    background: var(--primary-color);
    color: var(--white-color);
}
.dropdown-item:last-child{
    border: 0;
}
#nav-item{
    font-size: 17px;
    font-weight: 500;
    color: var(--black-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#nav-item:hover{
    color: var(--primary-color);
}
#nav-item i{
    font-size: 14px;
    color: var(--black-color);
    transition: var(--transition);
}
#nav-item:hover i{
    color: var(--primary-color);
}

.accoun_social{
    gap: 10px;
}
.social_ul{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.social_ul li a{
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--header-gradient);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social_ul li a:hover{
    margin-top: -10px;
}



#nav{
    /* border: 1px solid var(--border-color); */
    padding: 0;
    background: var(--white-color);
    box-shadow: var(--card-shadow);
}






.main-banner {
    background: url(../img/mosque-building-with-intricate-architecture.jpg) center center/cover no-repeat;
    color: var(--white-color);
    padding: 60px 0 40px 0;
    min-height: 50vh;
    position: relative;
    align-content: center;
    overflow: hidden;
}

.main-banner::before{
    content: "";
    position: absolute;
    inset: 0;
    background: #0a0a01d1;
}
.main-banner *{
    z-index: 1;
}
.main-banner .container {
    max-width: 1600px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
/* .banner-content {
    max-width: 600px;
} */
.banner-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--white-color);
}
.banner-content p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--light-gold);
}
.banner-btn {
    background: var(--card-gradient);
    color: var(--black-color);
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s;
    box-shadow: var(--card-shadow);
    border: none;
    outline: none;
    display: inline-block;
}
.banner-btn:hover {
    background: var(--secondary-gradient);
    color: var(--white-color);
    text-decoration: none;
}
.banner-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
}


.media_content_section , .top_data_media_content{
    padding: 50px 0;
    background: var(--white-color);
    position: relative;
}
.top_data_media_content .container{
    max-width: 1600px !important
}
.title_sectio_media{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 20px;
    border: none !important;
    /* cursor: pointer; */
    transition: var(--transition);
    border-radius: var(--border-radius)!important;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    color: var(--white-color) !important;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.2);
}
.media_images{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.audio-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px;
    position: relative;
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.link_abs{
    position: absolute;
    inset: 0;
}
.audio-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.audio-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.audio-title {
    flex: 1;
}

.audio-title h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.audio-title .speaker {
    margin: 0;
    color: #666;
    font-size: 14px;
}






/* Books Section Styles */
.books-section {
    padding: 20px 0 40px;
}
.storage-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.storage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(77 60 0 / 16%);
}

.storage-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-dark-color);
    font-weight: 600;
}

.storage-info p {
    color: var(--text-color);
    margin-bottom: 15px;
}
.book-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-meta i {
    color: var(--accent-color);
}

.book-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.download-btn, .read-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn {
    background: var(--primary-color);
    color: #fff;
}

.download-btn:hover {
    background: var(--primary-dark-color);
    transform: translateY(-2px);
    color: var(--white-color);
}

.read-btn {
    background: var(--accent-gradient) !important;
    color: var(--white-color);
}

.read-btn:hover {
    background: var(--accent-dark-color);
    transform: translateY(-2px);
    color: var(--white-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-title {
        font-size: 16px;
    }
    
    .book-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .book-actions {
        flex-direction: column;
    }
}

/* صفحة رسائل الجوال */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    color: var(--primary-dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary-color);
    font-size: 2rem;
}

.page-description {
    color: var(--accent-color);
    font-size: 1rem;
}





#swiper-sweip-books{
    padding: 0 !important;
    cursor: grab;
}
#swiper-sweip-books:active{
    cursor: grabbing;
}
.mySwiper-books{
    position: relative;
}
#btns-booksSwiper {
    position: relative;
    justify-content: space-between;
    padding: 0;
    max-width: 300px;
    width: 100%;
    /* overflow: hidden; */
    margin: auto;
    margin-top: 20px;
    gap: 5px;
}
#btns-booksSwiper .read-btn{
    border-radius: 5px;
    height: 100%;
    transform: translateY(0) !important;
}
#btns-booksSwiper .swiper-button-next:after,
#btns-booksSwiper .swiper-button-prev:after{
    font-size: 18px;
    font-weight: 900;
}
#btns-booksSwiper .swiper-button-prev,
#btns-booksSwiper .swiper-button-next{
    color: var(--primary-dark-color);
}
#btns-booksSwiper .swiper-button-prev{
    border-radius: 5px 8px 8px 5px;
    border-left: 1px solid var(--accent-color);
}
#btns-booksSwiper .swiper-button-next{
    border-radius: 8px 5px 5px 8px;
    border-right: 1px solid var(--accent-color);
}
#btns-booksSwiper .swiper-button-next,
#btns-booksSwiper .swiper-button-prev{
    position: static;
    font-size: 30px;
    width: 50px;
    transition: 0.3s;
    border: 1px solid var(--accent-color);
    height: 41px;

    margin: 0;
}

#btns-booksSwiper .swiper-button-next:hover,
#btns-booksSwiper .swiper-button-prev:hover{
    background-color: var(--accent-color);
    color: var(--white-color);
}
#btns-booksSwiper .swiper-button-next::after,
#btns-booksSwiper .swiper-button-prev::after{
    font-size: 12px;
}

/* Ask Question */
.ask_question{
    padding: 50px 0;
}
.ask_question .container{
    max-width: 1600px !important;
}
#askQuestionForm , .page-header{
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    border: 1px solid var(--border-color);
}
#askQuestionForm .form-control , #askQuestionForm .custom-select{
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
#askQuestionForm .form-control:focus , #askQuestionForm .custom-select:focus{
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(251 195 27 / 18%);
}
#askQuestionForm .form-control::placeholder , #askQuestionForm .custom-select::placeholder{
    color: #999;
}

#askQuestionForm .submit-btn{
    background: var(--primary-gradient);
    border: none;
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}
#askQuestionForm .submit-btn:hover{
    background: var(--header-gradient);
    transform: translateY(-2px);
}

.data_success_ask{
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0 auto;
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
}





/* Content Tabs Styles */
/* Content Tabs Styles */
.content-tabs {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}
.media_images{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.tab-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    border: none;
    padding: 2px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 18px;
    border: none !important;
    background: transparent;
    color: var(--black-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius)!important;
    width: max-content;
}
.tab-btn.active {
    background: var(--primary-gradient);
    color: var(--white-color) !important;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.2);
}
.count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
}

/* 
.faq-container {
    max-width: 900px;
    margin: 0 auto;
} */
.faq-container , .lessons_cards_tab , .audio-section , .videos-section{
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 12px;
}
@media (max-width: 767px) {
    .faq-container , .lessons_cards_tab , .audio-section , .videos-section{
        grid-template-columns: repeat(1, minmax(300px, 1fr));
    }
}
.more-visit-section , .more-download-section{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.faq-item {
    /* margin-bottom: 13px; */
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: max-content;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 15px 20px;
    background: var(--white-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question i {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 500;
    transition: all 0.4s ease;
    background: rgba(52, 152, 219, 0.1);
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    padding: 0 25px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.faq-item.active .faq-question h4 {
    color: #fff;
}

.faq-item.active .faq-question i {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}



.faq-item.active .faq-answer p {
    animation: slideDown 0.4s ease forwards;
}

.card_ask_shikh{
    border: 1px solid var(--border-color);
    background: var(--card-gradient);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
}
.card_ask_shikh h3{
    font-size: 16px;
    font-weight: 500;
}
.card_ask_shikh .read-btn{
    font-size: 16px;
    font-weight: 500;
}
.read-btn img{
    width: 34px;
    height: 34px;
}



.lesson-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lesson-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lesson-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.lesson-date i {
    font-size: 16px;
}

.lesson-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.lesson-teacher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.lesson-teacher i {
    color: var(--accent-color);
}

.lesson-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.lesson-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.lesson-actions .top-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lesson-actions .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.lesson-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.lesson-actions .btn-accent {
    background: var(--accent-color);
    color: var(--white-color);
}

.lesson-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.lesson-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lesson-actions .bottom-button {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-title {
        font-size: 16px;
    }
    
    .lesson-actions .top-buttons {
        flex-direction: column;
    }
    
    .lesson-actions .btn {
        width: 100%;
    }
}





/* Fatwa Categories Styling */
.categories-section {
    margin-bottom: 1rem;
}

.categories-section .categories-header {
    margin-bottom: 1.5rem;
}

.categories-section .categories-grid {
    display: flex;
    align-items: center;
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 1rem !important;
}

.categories-section .category-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    /* min-width: 200px; */
    /* max-width: 250px; */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 190px;
    /* max-width: max-content; */
    width: 100%;
    /* min-width: 150px; */
    padding: 1rem;
    /* min-width: calc(20% - 1rem); */
    /* max-width: none; */
}

.categories-section .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.categories-section .category-card:hover::before {
    opacity: 1;
}

.categories-section .category-card:hover {
    transform: translateY(-5px);
}

.categories-section .category-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin: 0;
    width: 50px;
    height: 50px;
}

.categories-section .category-card:hover .category-icon {
    background: #fff;
}

.categories-section .category-icon i {
    font-size: 20px;
    color: var(--primary-dark-color);
    transition: all 0.3s ease;
}

.categories-section .category-card:hover .category-icon i {
    color: var(--primary-dark-color);
}

.categories-section .category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-wrap: nowrap;
    transition: all 0.3s ease;
}

.categories-section .category-card:hover .category-title {
    color: #fff;
}

.categories-section .category-count {
    color: #666;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-wrap: nowrap;
}

.categories-section .category-card:hover .category-count {
    color: var(--light-gold);
}

.categories-section .category-card.active {
    background: var(--primary-gradient);
}

.categories-section .category-card.active .category-icon {
    background: #fff;
}

.categories-section .category-card.active .category-title {
    color: #fff;
}

.categories-section .category-card.active .category-count {
    color: var(--light-gold);
}


/* Fatwas List */
/* .fatwas-section {
    margin-top: 1.2rem;
} */
.fatwas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fatwa-item {
    background: white;
    border-radius: 15px;
    padding: 0.6rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fatwa-item:hover {
    transform: translateY(-5px);
}

.fatwa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.fatwa-category, .fatwa-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.fatwa-question h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 500;
    align-content: center;
}

.fatwa-answer {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.fatwa-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.fatwas-section .share-btn , .fatwas-section .copy-btn{
    background: var(--white-color) !important;
    border: none;
    color: var(--primary-dark-color);
    padding: 5px;
    border-radius: 5px;
    max-width: max-content;
    width: 30px;
    height: 30px;
    gap: 0.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }


    .fatwa-actions {
        justify-content: center;
    }
}
.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    margin: 0 auto 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.load-more-btn:hover {
    transform: translateY(-2px);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.2);
}
/* رسالة لا يوجد المزيد */
.no-more-messages {
    text-align: center;
    padding: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    margin: 1rem auto;
    background: rgb(251 195 27 / 18%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.no-more-messages i {
    color: var(--success-color);
    font-size: 1.2rem;
}



/* * Footer Styles */
.footer-section {
    background: var(--header-gradient);
    padding: 80px 0 30px;
    color: var(--white-color);
}
.footer-section .back-ground{
    background: rgba(255, 255, 255, 0.1); /* شفاف شويه */
    backdrop-filter: blur(60px); /* هنا البلور */
    -webkit-backdrop-filter: blur(60px);
    padding: 2rem;
    border-radius: var(--border-radius);
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); */
}
.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--white-color);
    transform: translateX(-5px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info i {
    font-size: 20px;
    color: var(--white-color);
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white-color);
}

@media (max-width: 768px) {
    .footer-section {
        padding: 60px 0 0;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright-text {
        text-align: center;
    }
}

/* Biography Section Styles */
.biografy-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.biography-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.biography-card:hover {
    transform: translateY(-5px);
}

.biography-image {
    height: 250px;
    overflow: hidden;
}

.biography-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biography-content {
    padding: 20px;
}

.biography-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--black-color);
}

.biography-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.biography-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.biography-meta span {
    color: #666;
    font-size: 0.9rem;
}

.biography-meta i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* Biography Details Page Styles */
.biografy_details_section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.biography-details {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.biography-image {
    border-radius: 10px;
    overflow: hidden;
}

.biography-name {
    font-size: 2rem;
    color: var(--black-color);
    margin-bottom: 20px;
}

.biography-meta p {
    color: #666;
    margin-bottom: 10px;
}

.biography-meta i {
    color: var(--accent-color);
    margin-right: 10px;
}

.biography-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.content-section {
    margin-bottom: 30px;
}

.section-title {
    color: var(--black-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.books-list {
    list-style: none;
    padding: 0;
}

.books-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.books-list i {
    color: var(--accent-color);
    margin-left: 10px;
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.lecture-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.lecture-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.lecture-icon i {
    color: var(--white-color);
}

.lecture-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--black-color);
}

.lecture-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .biography-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 10px;
    }
    
    .lectures-grid {
        grid-template-columns: 1fr;
    }
}



/* Biography Details Page Styles */
.book_details_section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.book_details {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.book_details_image {
    border-radius: 10px;
    overflow: hidden;
}

.book_details_name {
    font-size: 2rem;
    color: var(--black-color);
    margin-bottom: 20px;
}

.book_details_meta p {
    color: #666;
    margin-bottom: 10px;
}

.book_details_meta i {
    color: var(--accent-color);
    margin-right: 10px;
}

.book_details_stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}


/* Benefits Section Styles */
.benefits-section {
    padding: 30px 0 40px;
}

.benefit-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.benefit-text {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.benefit-text i {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.3;
}

.benefit-text p {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.benefit-source {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.source-type {
    color: #666;
    font-size: 14px;
}

.source-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.source-author {
    color: #666;
    font-size: 14px;
}

.benefit-meta {
    display: flex;
    justify-content: start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.benefit-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.benefit-meta i {
    color: var(--accent-color);
}

.benefit-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.copy-btn , .share_btn_mobile{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn  , .share_btn_mobile{
    background: var(--primary-color);
    color: #fff;
}

.copy-btn:hover  , .share_btn_mobile:hover{
    background: var(--primary-dark-color);
    transform: translateY(-2px);
    /* color: var(--white-color); */
}

.share-btn {
    background: var(--accent-color);
    color: #fff;
}

/* .share-btn:hover {
    background: var(--accent-dark-color);
    transform: translateY(-2px);
} */

/* Responsive Design */
@media (max-width: 768px) {
    .benefit-text p {
        font-size: 15px;
    }
    
    .benefit-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .benefit-actions {
        flex-direction: column;
    }
}

/* Weekly Lessons Section Styles */
.weekly-lessons-section {
    padding: 30px 0 40px;
}

.lesson-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lesson-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lesson-header {
    margin-bottom: 20px;
}

.lesson-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.lesson-date i {
    font-size: 16px;
}

.lesson-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.lesson-teacher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.lesson-teacher i {
    color: var(--accent-color);
}

.lesson-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.lesson-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.lesson-actions .top-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lesson-actions .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.lesson-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.lesson-actions .btn-accent {
    background: var(--accent-color);
    color: var(--white-color);
}

.lesson-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.lesson-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lesson-actions .bottom-button {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-title {
        font-size: 16px;
    }
    
    .lesson-actions .top-buttons {
        flex-direction: column;
    }
    
    .lesson-actions .btn {
        width: 100%;
    }
}
/* تنسيقات صفحة تفاصيل الدروس الأسبوعية */

.lesson-details .lesson-title {
    font-size: 2rem;
    color: var(--primary-dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}

.lesson-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--light-gold);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.lesson-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--white-color);
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 0;
}

.lesson-meta .meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.lesson-content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    /* margin-bottom: 2rem; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.lesson-details .content-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: right;
}

.lesson-details .lesson-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: right;
    font-size: 1.1rem;
}

.lesson-list {
    list-style: none;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.lesson-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.5rem;
    text-align: right;
}

.lesson-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
}

.lesson-attachments {
    margin-bottom: 2rem;
}

.attachments-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: right;
}

.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* .attachment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.attachment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.attachment-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
} */

.lesson-details .lesson-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    width: fit-content;
    margin: 0 auto;
}


/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .lesson-details {
        padding: 1rem;
    }

    .lesson-title {
        font-size: 1.5rem;
    }

    .lesson-meta {
        gap: 1rem;
        padding: 0.75rem;
    }

    .lesson-meta .meta-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .lesson-content {
        padding: 1rem;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .lesson-content p {
        font-size: 1rem;
    }

    .lesson-details .lesson-actions .action-btn {
        width: 100%;
        min-width: auto;
    }

    .attachments-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}



/* تنسيقات شرح الدرس */
.lesson-explanation {
    background: var(--light-gold);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.explanation-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: right;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.explanation-section {
    background: var(--white-color);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.explanation-section h4 {
    color: var(--primary-dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.explanation-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    text-align: right;
    font-size: 1rem;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .lesson-explanation {
        padding: 1rem;
    }

    .explanation-title {
        font-size: 1.1rem;
    }

    .explanation-section {
        padding: 1rem;
    }

    .explanation-section h4 {
        font-size: 1rem;
    }

    .explanation-section p {
        font-size: 0.9rem;
    }
}


/* تنسيقات modal الفيديو */
.modal-dialog {
    display: flex;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.modal-header {
    background: var(--light-gold);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* نسبة 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.btn-close {
    margin-right: auto;
    margin-left: 0;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .modal-title {
        font-size: 1rem;
    }
}


.modal-header .close{
    margin: 0 !important;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* News Section Styles */
.news-section {
    padding: 60px 0 40px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-date {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: var(--accent-color);
}
/* 
.read-more {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.read-more i {
    font-size: 12px;
} */

/* Responsive Design */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-excerpt {
        font-size: 13px;
    }
}
/* Articles Section Styles */
.articles-section {
    padding: 30px 0 40px;
}


.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.download-btn:hover
.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--accent-color);
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.read-more i {
    font-size: 12px;
}


/* Responsive Design */
@media (max-width: 768px) {
   
    
    .article-title {
        font-size: 16px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.fatwa_section{
    position: relative;
    padding: 30px 0 40px;
}
.fatwa_section .container , .fatwa_details_section .container{ 
    max-width: 1600px !important;
}
/* Video Cards Section */
.video_section {
    padding: 30px 0 40px;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    color: var(--primary-color);
    font-size: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .play-button {
    background: var(--primary-color);
}

.video-card:hover .play-button i {
    color: #fff;
} */


.video-info {
    padding: 15px;
}

.video-info h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-card {
        margin-bottom: 20px;
    }
    
    .video-info h3 {
        font-size: 15px;
        height: 40px;
    }
    
    /* .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 25px;
    } */
}


/* Sermons Section Styles */
.sermons-section {
    padding: 30px 0 40px;
}
.sermons-section .container{
    max-width: 1600px !important;
}
.sermon-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sermon-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sermon-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.sermon-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.sermon-title {
    flex: 1;
}

.sermon-title h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.sermon-title .preacher {
    margin: 0;
    color: #666;
    font-size: 14px;
}


.sermon-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.sermon-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.sermon-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sermon-meta i {
    color: var(--accent-color);
}

.sermon-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.download-btn, .watch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn {
    background: var(--primary-color);
    color: #fff;
}

.download-btn:hover {
    background: var(--primary-dark-color);
    transform: translateY(-2px);
}

.watch-btn {
    background: var(--accent-color);
    color: #fff;
}

.watch-btn:hover {
    background: var(--accent-dark-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sermon-title h3 {
        font-size: 16px;
    }
    
    .sermon-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .sermon-actions {
        flex-direction: column;
    }
}



/* تصنيفات الرسائل */
.message-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--white-color);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.2);
}

/* شبكة الرسائل */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.message-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(77 60 0 / 16%);
}

.message-content {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.message-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

.message-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.message-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgb(251 195 27 / 18%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.phone_message_section{
    padding: 30px 0 40px;
}
.phone_message_section .container{
    max-width: 1600px !important;
}





/* Tafsir Section Styles */
.tafsir-section {
    padding: 30px 0 2rem;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    /* background: var(--header-gradient); */
    border-radius: 15px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
}

.tafsir-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* .tafsir-section .section-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.tafsir-section .section-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: #3498db;
    bottom: -10px;
    left: 25%;
    border-radius: 3px;
}

.tafsir-section .section-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
} */

/* Surah Selection */
.surah-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--card-gradient);
    /* background: var(--header-gradient); */
    padding: 20px;
    border-radius: var(--border-radius);
    font-family: auto;
}
.surah-dropdown  ,.search-box{
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white-color);
    border-radius: 30px;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    min-width: 250px;
}

.surah-dropdown select , .ayah-selection select , .search-box input{
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 30px;
    padding: 8px 20px;
    width: 100%;
    color: var(--text-color);
    border: 0;
    transition: var(--transition);
    /* box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important; */
    box-shadow: none !important;
    cursor: pointer;
}
.search-box input::placeholder ,.search-box i{
    color: var(--primary-color);
}
.surah-dropdown select option , .ayah-selection select option{
    cursor: pointer;
    color: var(--primary-color);
}
.surah-dropdown select:focus , .ayah-selection select:focus , .search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Tafsir Display */
.tafsir-display {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ayah-text {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.ayah-text h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    line-height: 1.6;
    margin: 0;
}

/* Source Tabs */
.source-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.source-tab {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #7f8c8d;
}

.source-tab:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.source-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.source-tab i {
    font-size: 1.2rem;
}

/* Source Content */
.source-content {
    margin-bottom: 2rem;
}

.source-text {
    display: none;
    animation: fadeIn 0.3s ease;
}

.source-text.active {
    display: block;
}

.tafsir-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.tafsir-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tafsir-text {
    color: #34495e;
    line-height: 1.8;
    font-size: 1.1rem;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .surah-selection {
        flex-direction: column;
    }
    
    
    .surah-dropdown {
        width: 100%;
    }
    
    .source-tabs {
        flex-direction: column;
    }
    
    .source-tab {
        width: 100%;
    }
    
   
}


.login-section {
    padding: 70px 0 60px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: var(--bg-color);
}
.login-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.login-header p {
    color: var(--text-color);
    font-size: 1rem;
}
.login-card .form-group {
    margin-bottom: 1.5rem;
}
.login-card .form-control {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}
.login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 107, 94, 0.1);
}
.login-card .form-control::placeholder {
    color: #999;
}
.login-btn {
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    margin-bottom: 1rem;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.2);
}
.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.register-link p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.register-link a:hover {
    color: var(--accent-color);
}
/* .social-login {
    margin-top: 2rem;
    text-align: center;
}
.social-login p {
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}
.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}
.social-login p::before {
    right: 0;
}
.social-login p::after {
    left: 0;
}
.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition);
    border: none;
}
.social-btn:hover {
    transform: translateY(-3px);
}
.facebook-btn {
    background: #1877f2;
}
.google-btn {
    background: #db4437;
}
.twitter-btn {
    background: #1da1f2;
} */

.policy-section {
    background-color: var(--bg-color);
    min-height: calc(100vh - 400px);
}
.policy-content {
    max-width: 900px;
    margin: 0 auto;
}
.policy-section .section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}
.policy-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}
.policy-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.policy-item p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.policy-list {
    list-style: none;
    margin-bottom: 1rem;
}
.policy-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.5rem;
}
.policy-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .policy-card {
        padding: 1.5rem;
    }
    .policy-section .section-title {
        font-size: 2rem;
    }
    .policy-subtitle {
        font-size: 1.3rem;
    }
}

.terms-section {
    background-color: var(--bg-color);
    min-height: calc(100vh - 400px);
}
.terms-content {
    max-width: 900px;
    margin: 0 auto;
}
.terms-section.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}
.terms-card {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}
.terms-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.terms-item p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.terms-list {
    list-style: none;
    margin-bottom: 1rem;
}
.terms-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.5rem;
}
.terms-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .terms-card {
        padding: 1.5rem;
    }
    .terms-section .section-title {
        font-size: 2rem;
    }
    .terms-subtitle {
        font-size: 1.3rem;
    }
}