 .services-box .service-item {
        background: white;
        border-radius: 15px;
        padding: 20px 15px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 2px solid #f0f0f0;
		margin-bottom:5px;
    }
    
    .services-box .service-item.active {
        border-color: #00A8E0;
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,168,224,0.2);
    }
    
    .services-box .service-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,168,224,0.3);
        border-color: #00A8E0;
    }
    
    .services-box .service-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #00A8E0, #0288d1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 10px auto;
        transition: all 0.3s ease;
    }
    
    .services-box .service-icon i {
        font-size: 16px;
        color: white;
    }
    
    .services-box .service-item:hover .service-icon {
        transform: scale(1.1);
    }
    
    .services-box .service-item h5 {
        font-size: 16px;
        font-weight: 600;
        color: #2d3748;
        margin: 0;
    }

     .news-section .nav-tabs .nav-link {
            background: #f8fafc !important;
            color: #64748b !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 25px !important;
            padding: 15px 35px !important;
            font-size: 18px !important;
            font-weight: 700 !important;
            transition: all 0.3s ease !important;
            margin: 0 15px !important;
          }
          
          .news-section .nav-tabs .nav-link.active {
            background: linear-gradient(135deg, #00A8E0, #0288d1) !important;
            color: white !important;
            border: none !important;
            box-shadow: 0 4px 15px rgba(0,168,224,0.3) !important;
          }
          
          .news-section .nav-link:not(.active):hover {
            background: linear-gradient(135deg, #00A8E0, #0288d1) !important;
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,168,224,0.4) !important;
          }
          
          .news-section .lessons-list {
            padding: 20px 0;
          }
          
          .news-section .lesson-item {
            display: flex !important;
            align-items: center !important;
            padding: 20px !important;
            margin-bottom: 15px !important;
            background: #f8fafc !important;
            border-radius: 15px !important;
            transition: all 0.3s ease !important;
            cursor: pointer !important;
            border: 1px solid #e2e8f0 !important;
          }
          
          .news-section .lesson-item:hover {
            background: white !important;
            transform: translateY(-3px) !important;
            box-shadow: 0 8px 25px rgba(0,168,224,0.15) !important;
            border-color: #00A8E0 !important;
          }
          
          .news-section .lesson-actions {
            display: flex !important;
            gap: 10px !important;
            margin-left: 20px !important;
          }
          
          .news-section .lesson-icon {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 40px !important;
            height: 40px !important;
            border-radius: 50% !important;
            background: #e3f2fd !important;
            color: #00A8E0 !important;
            font-size: 16px !important;
            transition: all 0.3s ease !important;
            cursor: pointer !important;
          }
          .news-section .lesson-icon.disabled {
			  pointer-events: none; 
			  opacity: 0.5;         
			  cursor: not-allowed;
			}
          .news-section .lesson-icon:hover {
            background: #00A8E0 !important;
            color: white !important;
            transform: scale(1.1) !important;
          }
          
          .news-section .lesson-content {
            flex: 1 !important;
            text-align: right !important;
            padding: 0 20px !important;
          }
          
          .news-section .lesson-content h5 {
            font-size: 20px !important;
            font-weight: 700 !important;
            color: #2d3748 !important;
            margin: 0 0 5px 0 !important;
          }
          
          .news-section .lesson-content p {
            font-size: 14px !important;
            color: #64748b !important;
            margin: 0 !important;
          }
          
          .news-section .lesson-meta {
            display: flex ;
            flex-direction: column !important;
            align-items: flex-end !important;
            gap: 8px !important;
          }
          
          .news-section .lesson-date {
            background: linear-gradient(135deg, #00A8E0, #0288d1) !important;
            color: white !important;
            padding: 6px 15px !important;
            border-radius: 20px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
          }
          
          .news-section .lesson-views {
            color: #64748b !important;
            font-size: 13px !important;
            font-weight: 500 !important;
          }
          
          .news-section .lesson-views i {
            margin-left: 5px !important;
            color: #00A8E0 !important;
          }
          
          @media (max-width: 768px) {
            .lesson-item {
              flex-direction: column;
              text-align: center;
              gap: 15px;
            }
            .lesson-actions {
              margin-left: 0;
            }
            .lesson-content {
              text-align: center;
              padding: 0;
            }
            .lesson-meta {
              align-items: center;
			  display: none !important;
            }
          }

          .gallery-section .gallery-img {transition:transform 0.2s, box-shadow 0.2s; cursor:pointer;}
      .gallery-section .gallery-img:hover {transform:scale(1.04); box-shadow:0 6px 24px rgba(0,168,224,0.13);}
      @media (max-width: 575px) {.gallery-section .gallery-img {height:110px;}}

      @media (max-width: 575px) {
        .fatwa-section .fatwa-header {font-size:18px; padding:20px 15px;}
        .fatwa-section .fatwa-text {font-size:14px;}
        .fatwa-section .fatwa-item {padding:15px 15px;}
        .fatwa-section .fatwa-icon {width: 30px; height: 30px; margin-left: 10px;}
        .fatwa-section .fatwa-answer {font-size: 13px; padding: 12px;}
      }

       .books-swiper {
     padding: 50px 0 80px 0;
     overflow: visible;
   }
   
   .books-swiper .swiper-wrapper {
     overflow: visible;
   }
   
   .books-swiper .swiper-slide {
     overflow: visible;
   }
   
   .books-swiper .swiper-pagination {
     bottom: -30px !important;
   }
   
   .books-section .book-item {
     text-align: center;
     transition: all 0.3s ease;
     cursor: pointer;
     padding: 0 10px;
     margin-top: 20px;
   }
   
   .books-section .book-cover {
     position: relative;
     width: 100%;
     /*height: 280px;*/
     margin-bottom: 15px;
     border-radius: 15px;
     overflow: hidden;
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
     transition: all 0.3s ease;
   }
   
   .books-section .book-item:hover .book-cover {
     transform: translateY(-10px);
     box-shadow: 0 15px 35px rgba(0,0,0,0.2);
   }
   
   .books-section .book-image {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: all 0.3s ease;
   }
   
   .books-section .book-item:hover .book-image {
     transform: scale(1.05);
   }
   
   .books-section .book-title {
     font-size: 16px;
     font-weight: 600;
     color: #2d3748;
     margin: 0;
     line-height: 1.4;
   }
   
   .books-swiper .swiper-button-next,
   .books-swiper .swiper-button-prev {
     color: #00A8E0;
   }
   
   .books-swiper .swiper-pagination-bullet-active {
     background: #00A8E0;
   }
   
   @media (max-width: 768px) {
     .books-section .book-cover {
      /* height: 220px;*/
     }
     .books-section .book-title {
       font-size: 14px;
     }
   }

   .media-section .nav-link:not(.active):hover {
    background: linear-gradient(135deg, #00A8E0, #0288d1) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,168,224,0.4) !important;
  }
  
  .media-section .media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,168,224,0.2) !important;
  }
  
  .media-section .media-card:hover .media-overlay {
    opacity: 1 !important;
  }
  
  .media-section .media-card:hover img {
    transform: scale(1.05);
  }
  
  .media-section .play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
  }
  
  .media-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,168,224,0.4) !important;
  }

  .clients .clients-logo {
        padding: 10px;
        display: inline-block;
        width: 400px;
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .clients .clients-logo img {
       /* width: 360px !important;*/
        height: auto !important;
        object-fit: contain;
        filter: grayscale(100%) opacity(0.7);
        transition: all 0.3s ease;
    }
    
    .clients .clients-logo img:hover {
        filter: brightness(1.2) !important;
        transform: scale(1.05) !important;
    }
    
    .clients .owl-item.active .clients-logo img {
        filter: grayscale(0%) opacity(1);
    }
    
    @media (max-width: 768px) {
        .clients .clients-logo {
            width: 220px;
        }
        .clients .owl-item.active .clients-logo {
            width: 250px;
        }
        .clients .clients-logo img {
            width: 200px !important;
            max-height: auto !important;
        }
        .clients .owl-item.active .clients-logo img {
            width: 230px !important;
            max-height: auto !important;
        }
    }

    .calendar-section {
      max-width: 340px;
      margin: 40px auto 0 auto;
    }
    .calendar-card {
      border: 1px solid #e0e6ed;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 2px 12px rgba(0,168,224,0.06);
      overflow: hidden;
    }
    .calendar-header {
      background: #00A8E0;
      color: #fff;
      font-weight: 700;
      font-size: 20px;
      text-align: center;
      padding: 16px 0 12px 0;
      letter-spacing: 1px;
    }
    .calendar-body {
      padding: 24px 18px 12px 18px;
      text-align: center;
    }
    .calendar-weekday {
      font-size: 28px;
      font-weight: 700;
      color: #155a6a;
      margin-bottom: 8px;
    }
    .calendar-date {
      font-size: 26px;
      font-weight: 700;
      color: #a00d2d;
      margin-bottom: 8px;
    }
    .calendar-date .month {
      color: #009e4f;
      font-weight: 700;
    }
    .calendar-divider {
      border-top: 1px solid #e0e6ed;
      margin: 16px 0 8px 0;
    }
    .calendar-footer {
      color: #888;
      font-size: 15px;
      margin-bottom: 4px;
      display: flex;
      justify-content: space-between;
      padding: 0 12px;
    }
    .calendar-footer .fa {
      margin-left: 6px;
      margin-right: 6px;
    }
    @media (max-width: 500px) {
      .calendar-section { max-width: 98vw; }
      .calendar-body { padding: 18px 4vw 8px 4vw; }
    }
    /* ...existing calendar styles... */
    .calendar-week-row {
      display: flex;
      justify-content: space-between;
      background: #f7fafd;
      padding: 8px 12px 6px 12px;
      border-bottom: 1px solid #e0e6ed;
    }
    .calendar-week-row .day {
      flex: 1;
      text-align: center;
      font-size: 15px;
      color: #155a6a;
      font-weight: 500;
      padding: 2px 0;
      border-radius: 50%;
      transition: background 0.2s, color 0.2s;
    }
    .calendar-week-row .day.today {
      background: #00A8E0;
      color: #fff;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(0,168,224,0.10);
    }
    @media (max-width: 500px) {
      .calendar-week-row { padding: 6px 2vw 4px 2vw; }
      .calendar-week-row .day { font-size: 13px; }
    }


    .audio-item {
      position: relative;
      display: flex;
      align-items: center;
      padding: 20px;
      margin-bottom: 15px;
      background: #f8fafc;
      border-radius: 15px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: 1px solid #e2e8f0;
    }
    
    .audio-item:hover {
      background: white;
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0,168,224,0.15);
      border-color: #00A8E0;
    }
    
    .audio-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #e3f2fd;
      color: #00A8E0;
      font-size: 18px;
      transition: all 0.3s ease;
      cursor: pointer;
      margin-left: 20px;
    }
    
    .audio-icon:hover {
      background: #00A8E0;
      color: white;
      transform: scale(1.1);
    }
    
    .audio-content {
      flex: 1;
      text-align: right;
      padding: 0 20px;
    }
    
    .audio-content h5 {
      font-size: 20px;
      font-weight: 700;
      color: #2d3748;
      margin: 0 0 5px 0;
    }
    
    .audio-content p {
      font-size: 14px;
      color: #64748b;
      margin: 0;
    }
    
    .audio-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }
    
    .audio-date {
      background: linear-gradient(135deg, #00A8E0, #0288d1);
      color: white;
      padding: 6px 15px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
    }
    
    .audio-duration {
      color: #64748b;
      font-size: 13px;
      font-weight: 500;
    }
    
    .audio-duration i {
      margin-left: 5px;
      color: #00A8E0;
    }
    
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      margin-top: 40px;
      flex-wrap: wrap;
    }
    
    .page-btn {
      padding: 12px 16px;
      border: 1px solid #dee2e6;
      background: #fff;
      color: #495057;
      text-decoration: none;
      border-radius: 6px;
      font-weight: 500;
      transition: all 0.2s ease;
      min-width: 45px;
      text-align: center;
    }
    
    .page-btn:hover:not(.disabled) {
      background: #f8f9fa;
      border-color: #00a8e0;
      color: #00a8e0;
      transform: translateY(-1px);
    }
    
    .page-btn.active {
      background: #00a8e0;
      color: #fff;
      border-color: #00a8e0;
    }
    
    .page-btn.disabled {
      opacity: 0.6;
      cursor: not-allowed;
      color: #6c757d;
    }
    
    @media (max-width: 768px) {
      .audio-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
      }
      
      .audio-content {
        text-align: center;
        padding: 0;
      }
      
      .audio-meta {
        align-items: center;
      }
    }

     .tree-item a:hover {
        background: rgba(255,255,255,0.25) !important;
        transform: translateX(-5px);
    }
    
    .tree-children {
        overflow: hidden;
        transition: all 0.3s ease;
		display: none; margin-right: 20px; margin-top: 8px;
    }
    .tree-search #treeSearch{
		width: 100%; padding: 12px 40px 12px 15px; border: none; border-radius: 25px; font-size: 14px; background: rgba(255,255,255,0.9);
	}
	.tree-search i{
		position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666;
	}
    .tree-arrow {
        transition: transform 0.3s ease;
    }
    
    .tree-expanded .tree-arrow {
        transform: rotate(180deg);
    }

    .fatwa-item .item:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    }
    
    .page-btn:hover:not(.active):not([style*="cursor: not-allowed"]) {
        background: #667eea !important;
        color: white !important;
        border-color: #667eea !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    
    .tree-item a:hover {
        background: rgba(255,255,255,0.25) !important;
        transform: translateX(-5px);
    }
    
    .tree-children {
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .tree-arrow {
        transition: transform 0.3s ease;
    }
    
    .tree-expanded .tree-arrow {
        transform: rotate(180deg);
    }
    
    @media (max-width: 768px) {
        .fatwa-item .item {
            padding: 25px !important;
        }
        
        .gallery-header h1 {
            font-size: 36px !important;
        }
        
        .custom-pagination {
            gap: 8px !important;
        }
        
        .page-btn {
            padding: 10px 16px !important;
            font-size: 14px !important;
        }
        
        .sidebar-tree {
            margin-top: 40px !important;
            position: relative !important;
			top:0px; margin-bottom:20px;
        }
    }

     .related-item:hover h6 a {
        color: #00A8E0 !important;
    }
    
    .share-box a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    @media (max-width: 768px) {
        .news-header h1 {
            font-size: 28px !important;
        }
        
        .news-meta {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 10px !important;
        }
        
        .article-content {
            padding: 20px !important;
        }
        
        .related-news {
            margin-top: 30px;
        }
    }

   /*********************************************************************/
   
   .fatwa-section{
	   background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
   }
   .fatwa-header{
	   background: linear-gradient(135deg, #00A8E0 0%, #0288d1 100%); color:#fff; border-radius:15px 15px 0 0; padding:25px 0; text-align:center; font-size:24px; font-weight:700; letter-spacing:-0.5px; box-shadow: 0 4px 15px rgba(0,168,224,0.3);
   }
   .fatwa-header i{
	   margin-left: 10px; font-size: 20px;
   }
   
   .fatwa-list{
	   background:#fff; border-radius:0 0 15px 15px; box-shadow:0 8px 25px rgba(0,168,224,0.1); border: 1px solid rgba(0,168,224,0.1);
   }
   
   .fatwa-item{
	  /* padding:25px 25px 15px 25px;*/
	   border-bottom: 1px solid #f0f4f8;
   }
   
   .fatwa-icon{
	   background: linear-gradient(135deg, #00A8E0 0%, #0288d1 100%); color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 15px; flex-shrink: 0; box-shadow: 0 3px 10px rgba(0,168,224,0.3);
   }
   
   .fatwa-text{
	   font-size:16px; color:#2d3748; line-height:1.8; margin-bottom: 10px;
   }
   
   .fatwa-answer{
	   background: #f7fafc; padding: 15px; border-radius: 8px; border-right: 4px solid #00A8E0; font-size: 15px; color: #4a5568;
   }
   
   .fatwa-answer i{
	   color: #00A8E0; margin-left: 8px;
   }
   
   /*****************/
   #bookModal{
	   display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5);
   }
   #bookDetails{
	   text-align: right; direction: rtl;
   }
   #bookModal .modal_body{
	   background-color: white; margin: 5% auto; padding: 30px; border-radius: 20px; width: 90%; max-width: 500px; position: relative;
   }
   #bookModal .modal_close{
	   color: #aaa; float: left; font-size: 28px; font-weight: bold; cursor: pointer;
   }
   
   /**********************************/
   #videoModal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }

    /* Modal content box */
    #videoModal .modal-content {
        background-color: #000;
        margin: 5% auto;
        padding: 20px;
        border-radius: 10px;
        width: 90%;
        max-width: 800px;
        position: relative;
    }

    /* Close button */
    #videoModal .close-btn {
        color: #fff;
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
    }

    /* Video player */
    #videoPlayer {
        width: 100%;
        border-radius: 10px;
    }
	
	
	
	  /* Lessons Tabs Wrapper */
    .lessons-tabs {
        background: #fff;
        border-radius: 24px;
        padding: 0 0 40px 0;
        box-shadow: 0 8px 32px rgba(0,168,224,0.08);
        border: 1px solid rgba(0,168,224,0.1);
    }

    /* Tabs Navigation */
    #mediaTab {
        border-bottom: none;
        padding: 20px 20px 0 20px;
    }

    #mediaTab .nav-item {
        margin: 0 10px;
    }

    #mediaTab .nav-link {
        border-radius: 25px;
        padding: 12px 10px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    #mediaTab .nav-link.active {
        background: linear-gradient(135deg, #00A8E0, #0288d1);
        color: white;
        border: none;
        box-shadow: 0 4px 15px rgba(0,168,224,0.3);
    }

    #mediaTab .nav-link i {
        margin-left: 8px;
    }

    #mediaTab .nav-link:not(.active) {
        background: #f8fafc;
        color: #64748b;
        border: 1px solid #e2e8f0;
    }

    /* Tab Content */
    #mediaTabContent {
        padding: 0 20px;
    }

    /* Media Card */
    .media-card {
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .media-card .position-relative {
        overflow: hidden;
    }

    .media-card img {
        transition: all 0.3s ease;
    }

    .media-overlay {
        background: linear-gradient(135deg, rgba(0,168,224,0.8), rgba(2,136,209,0.8));
        opacity: 0;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .media-card:hover .media-overlay {
        opacity: 1;
    }

    /*.play-btn {
        width: 70px;
        height: 70px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    .play-btn i {
        color: #00A8E0;
        font-size: 24px;
        margin-right: 3px;
    }*/

    /* Card Body */
    .media-card .card-body {
        padding: 25px;
    }

    .media-card .card-title {
        font-weight: 700;
        color: #2d3748;
    }

    .media-card .fa-calendar-alt {
        color: #00A8E0;
        margin-left: 8px;
    }

    .media-card .card-text {
        color: #64748b;
        line-height: 1.6;
    }

    /* Download Button */
    .btn-download {
        background: linear-gradient(135deg, #00A8E0, #0288d1);
        border: none;
        border-radius: 20px;
        padding: 8px 20px;
        font-weight: 600;
    }

    .btn-download i {
        margin-right: 5px;
    }

    /* Audios Card */
    .audio-card {
        border-radius: 16px;
        overflow: hidden;
    }

    .play-button {
        z-index: 2;
    }

    .play-button i {
        color: #fff;
    }
	
	.rtl{ direction: rtl;}