/* ===== Main Layout ===== */
.ib-content{
    direction: rtl;
}
.ib-container{
    display:grid !important;
    grid-template-columns:320px 1fr !important;
    gap:30px;
    max-width:1400px;
    margin:40px auto;
    align-items:start;
}

.ib-sidebar{
    width:100%;
}

.ib-content{
    width:100%;
    min-width:0;
}

@media(max-width:992px){
    .ib-container{
        grid-template-columns:1fr !important;
    }
}


    
    .ib-sidebar-title{
    
    margin:0 0 20px;
    
    font-size:22px;
    
    font-weight:700;
    
    }
    
    .ib-step{
    
    display:flex;
    
    gap:15px;
    
    position:relative;
    
    padding-bottom:25px;
    
    }
    
    .ib-step:last-child{
    
    padding-bottom:0;
    
    }
    

    .ib-step-number{
    
    width:34px;
    
    height:34px;
    
    border-radius:50%;
    
    background:#0d7a5f;
    
    color:#fff;
    
    display:flex;
    
    align-items:center;
    
    justify-content:center;
    
    font-weight:bold;
    
    flex-shrink:0;
    
    position:relative;
    
    z-index:2;
    
    }
    
    .ib-step-content h4{
    
    margin:0;
    
    font-size:17px;
    
    }
    
    .ib-step-content p{
    
    margin:4px 0 0;
    
    font-size:13px;
    
    color:#777;
    
    line-height:1.6;
    
    }
    
    .ib-guide{
    
    padding:0;
    
    margin:0;
    
    list-style:none;
    
    }
    
    .ib-guide li{
    
    padding:10px 0;
    
    border-bottom:1px solid #eee;
    
    font-size:14px;
    
    }
    
    .ib-guide li:last-child{
    
    border:none;
    
    }
    
    .ib-contact-btn{
    
    margin-top:15px;
    
    width:100%;
    
    background:#fff;
    
    border:1px solid #0d7a5f;
    
    color:#0d7a5f;
    
    padding:12px;
    
    border-radius:8px;
    
    cursor:pointer;
    
    transition:.3s;
    
    }
    
    .ib-contact-btn:hover{
    
    background:#0d7a5f;
    
    color:#fff;
    
    }
    
    .ib-sidebar-card{
    background:#fff;
    border:1px solid #edf0f4;
    border-radius:16px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}
    
    .ib-sidebar-title{
    
    margin:0 0 20px;
    
    font-size:22px;
    
    font-weight:700;
    
    }
    
    .ib-step{
    
    display:flex;
    
    gap:15px;
    
    position:relative;
    
    padding-bottom:25px;
    
    }
    
    .ib-step:last-child{
    
    padding-bottom:0;
    
    }
    

    .ib-step-number{
    
    width:34px;
    
    height:34px;
    
    border-radius:50%;
    
    background:#0d7a5f;
    
    color:#fff;
    
    display:flex;
    
    align-items:center;
    
    justify-content:center;
    
    font-weight:bold;
    
    flex-shrink:0;
    
    position:relative;
    
    z-index:2;
    
    }
    
    .ib-step-content h4{
    
    margin:0;
    
    font-size:17px;
    
    }
    
    .ib-step-content p{
    
    margin:4px 0 0;
    
    font-size:13px;
    
    color:#777;
    
    line-height:1.6;
    
    }
    
    .ib-guide{
    
    padding:0;
    
    margin:0;
    
    list-style:none;
    
    }
    
    .ib-guide li{
    
    padding:10px 0;
    
    border-bottom:1px solid #eee;
    
    font-size:14px;
    
    }
    
    .ib-guide li:last-child{
    
    border:none;
    
    }
    
    .ib-contact-btn{
    
    margin-top:15px;
    
    width:100%;
    
    background:#fff;
    
    border:1px solid #0d7a5f;
    
    color:#0d7a5f;
    
    padding:12px;
    
    border-radius:8px;
    
    cursor:pointer;
    
    transition:.3s;
    
    }
    
    .ib-contact-btn:hover{
    
    background:#0d7a5f;
    
    color:#fff;
    
    }
    .ib-page-header{

        margin-bottom:30px;
        
        }
        
        .ib-breadcrumb{
        
        display:flex;
        
        gap:8px;
        
        align-items:center;
        
        font-size:14px;
        
        margin-bottom:20px;
        
        color:#666;
        
        }
        
        .ib-breadcrumb a{
        
        text-decoration:none;
        
        color:#666;
        
        }
        
        .ib-header-top{
        
        display:flex;
        
        justify-content:space-between;
        
        align-items:flex-start;
        
        gap:20px;
        
        }
        
        .ib-header-top h1{
        
        margin:0;
        
        font-size:40px;
        
        font-weight:700;
        
        }
        
        .ib-header-top p{
        
        margin-top:10px;
        
        color:#666;
        
        line-height:1.9;
        
        max-width:750px;
        
        }
        
        .ib-upload-icon{
        
        width:48px;
        
        height:48px;
        
        border:1px solid #ddd;
        
        border-radius:50%;
        
        display:flex;
        
        align-items:center;
        
        justify-content:center;
        
        font-size:22px;
        
        cursor:pointer;
        
        }
        
        @media(max-width:768px){
        
        .ib-header-top{
        
        display:block;
        
        }
        
        .ib-upload-icon{
        
        margin-top:20px;
        
        }
        
        }
/* ===== Basic Information ===== */

.ib-card{
    background:#fff;
    border:1px solid #edf0f4;
    border-radius:16px;
    padding:35px;
    margin-bottom:30px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}
    
    .ib-card-header{
    
    margin-bottom:30px;
    
    }
    
    .ib-card-header>div{
    
    display:flex;
    
    align-items:center;
    
    gap:12px;
    
    margin-bottom:10px;
    
    }
    
    .ib-step-badge{
    
    width:36px;
    
    height:36px;
    
    background:#0d7a5f;
    
    border-radius:50%;
    
    color:#fff;
    
    display:flex;
    
    justify-content:center;
    
    align-items:center;
    
    font-weight:bold;
    
    }
    
    .ib-card-header h2{
    
    margin:0;
    
    font-size:28px;
    
    }
    
    .ib-card-header p{
    
    margin:0;
    
    color:#777;
    
    }
    
    .ib-form-grid{
    
    display:grid;
    
    grid-template-columns:1fr 1fr;
    
    gap:20px;
    
    }
    
    .ib-full{
    
    grid-column:1 / -1;
    
    }
    
    .ib-field{
    
    display:flex;
    
    flex-direction:column;
    
    }
    
    .ib-field label{
    
    margin-bottom:8px;
    
    font-weight:600;
    
    }
    
    .ib-field label span{
    
    color:red;
    
    }
    
.ib-field input,
.ib-field textarea,
.ib-field select{
    width:100%;
    border:1px solid #dbe2ea;
    border-radius:10px;
    background:#fff;
    padding:14px 16px;
    font-size:15px;
    transition:.3s;
}

.ib-field textarea{
    min-height:150px;
    resize:vertical;
}

.ib-field input:focus,
.ib-field textarea:focus,
.ib-field select:focus{
    outline:none;
    border-color:#0d7a5f;
    box-shadow:0 0 0 4px rgba(13,122,95,.08);
}
    
    .ib-counter{
    
    margin-top:8px;
    
    font-size:13px;
    
    color:#888;
    
    text-align:left;
    
    direction:ltr;
    
    }
    
    .ib-upload-box{
    
    border:2px dashed #d7d7d7;
    
    border-radius:12px;
    
    padding:40px;
    
    text-align:center;
    
    }
    
    .ib-upload-box h4{
    
    margin:15px 0 8px;
    
    }
    
    .ib-upload-box p{
    
    color:#666;
    
    margin-bottom:20px;
    
    }
    
    .ib-btn-outline{
    
    padding:12px 24px;
    
    border:1px solid #0d7a5f;
    
    background:#fff;
    
    color:#0d7a5f;
    
    border-radius:8px;
    
    cursor:pointer;
    
    transition:.3s;
    
    }
    
    .ib-btn-outline:hover{
    
    background:#0d7a5f;
    
    color:#fff;
    
    }
    
    @media(max-width:768px){
    
    .ib-form-grid{
    
    grid-template-columns:1fr;
    
    }
    
    }
.ib-field select{

    width:100%;

    height:52px;

    padding:0 40px 0 15px;

    border:1px solid #dcdcdc;

    border-radius:10px;

    background:#fff;

    font-size:15px;

    font-family:inherit;

    direction:rtl;

    text-align:right;

    text-align-last:right;

    box-sizing:border-box;

    appearance:none;

    -webkit-appearance:none;

    -moz-appearance:none;

    cursor:pointer;

}
    
    .ib-field select:focus,
    
    .ib-field input:focus,
    
    .ib-field textarea:focus{
    
        outline:none;
    
        border-color:#0d7a5f;
    
        box-shadow:0 0 0 3px rgba(13,122,95,.1);
    
    }

    /* Primary Medium */

.ib-medium-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.ib-medium-item input{
    display:none;
}

.ib-medium-box{
    border:2px solid #e5e7eb;
    border-radius:12px;
    padding:25px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
    font-size:28px;
}

.ib-medium-box span{
    display:block;
    margin-top:12px;
    font-size:15px;
    font-weight:600;
}

.ib-medium-item input:checked + .ib-medium-box{
    border-color:#0d7a5f;
    background:#f0faf7;
}

@media(max-width:768px){

    .ib-medium-grid{
        grid-template-columns:1fr;
    }

}
.ib-help-text{

    display:block;
    
    margin-top:8px;
    
    font-size:13px;
    
    color:#777;
    
    }
    
    .ib-checkbox{
    
    display:flex;
    
    align-items:flex-start;
    
    gap:12px;
    
    cursor:pointer;
    
    line-height:1.8;
    
    }
    
    .ib-checkbox input{
    
    margin-top:5px;
    
    }
    /* Footer */

.ib-footer{

    display:flex;
    
    justify-content:space-between;
    
    align-items:center;
    
    margin:40px 0;
    
    }
    
    .ib-btn{
    
    padding:14px 28px;
    
    border:none;
    
    border-radius:10px;
    
    cursor:pointer;
    
    font-size:15px;
    
    font-weight:600;
    
    transition:.3s;
    
    }
    
    .ib-btn-primary{
    
    background:#0d7a5f;
    
    color:#fff;
    
    }
    
    .ib-btn-primary:hover{
    
    background:#0b6650;
    
    }
    
    .ib-btn-secondary{
    
    background:#fff;
    
    border:1px solid #d1d5db;
    
    color:#444;
    
    }
    
    .ib-btn-secondary:hover{
    
    background:#f8f8f8;
    
    }
    
    @media(max-width:768px){
    
    .ib-footer{
    
    flex-direction:column;
    
    gap:15px;
    
    }
    
    .ib-footer-left,
    
    .ib-footer-right{
    
    width:100%;
    
    }
    
    .ib-btn{
    
    width:100%;
    
    }
    
    }

    .ib-admin-view{
        direction: rtl;
        text-align: right;
    }
    
    .ib-admin-view table.form-table th{
        text-align: right;
        width:220px;
        font-weight:600;
    }
    
    .ib-admin-view table.form-table td{
        text-align: right;
    }
    
    .ib-admin-view img{
        border-radius:8px;
        border:1px solid #ddd;
        padding:4px;
        background:#fff;
    }

    .ib-status{
        display:inline-block;
        padding:6px 14px;
        border-radius:30px;
        font-size:13px;
        font-weight:600;
    }
    
    .ib-status-pending{
        background:#fff3cd;
        color:#856404;
    }
    
    .ib-status-approved{
        background:#d1e7dd;
        color:#0f5132;
    }
    
    .ib-status-rejected{
        background:#f8d7da;
        color:#842029;
    }

    .ib-tags-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.ib-tag{
    display:flex;
    align-items:center;
    background:#0d6efd;
    color:#fff;
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
}

.ib-tag span{
    margin-right:8px;
    cursor:pointer;
    font-weight:bold;
}

/*==================================
Materials Grid
==================================*/

.ib-material-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:30px;
    direction:rtl;
}

/*==================================
Card
==================================*/

.ib-material-card {
    direction: rtl;
    text-align: right;

    display: flex;
    flex-direction: column;

    width: 100%;

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid #80808061;
}

.ib-material-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/*==================================
Image
==================================*/

.ib-card-image {
    position: relative;

    width: 100%;
    height: 230px;

    flex-shrink: 0;

    overflow: hidden;

    background: #f4f4f4;
}

.ib-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.ib-material-card:hover .ib-card-image img {
    transform: scale(1.04);
}

/* =========================================
   No Image
========================================= */

.ib-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 8px;

    font-size: 50px;
}

.ib-pdf-preview {
    font-size: 40px;
}

.ib-pdf-preview span:last-child {
    font-size: 15px;
    font-weight: 600;
}

/* =========================================
   Category Badge
========================================= */

.ib-category-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    direction: rtl;
    background: #C18000;
    border-radius: 20px;
    box-shadow: 0px 3px 6px 0px rgb(160 177 214);
    z-index: 2;
    padding: 5px 10px;
    color: #A9B1D6;
}

img.emoji {
    filter: brightness(0) invert(1);
}

.ib-category-label {
    display: inline-block;

    padding: 7px 11px;

    background: #f1f1f1;

    font-size: 12px;

    color: #777;

    white-space: nowrap;
}

.ib-category-name {
    display: inline-block;

    padding: 7px 14px;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}

/* =========================================
   Card Body
========================================= */

.ib-card-body {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 22px;

    direction: rtl;
    text-align: right;

    box-sizing: border-box;
}

/* =========================================
   Material Card Title
   One Line + Ellipsis
========================================= */

.ib-material-card .ib-card-body > h2 {
    display: block !important;

    width: 100% !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    margin: 0 0 12px 0 !important;
    padding: 0 !important;

    font-size: 21px !important;
    line-height: 40px !important;
    font-weight: 700 !important;

    direction: rtl !important;
    text-align: right !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
}

.ib-material-card .ib-card-body > h2 > a {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 40px !important;

    direction: rtl !important;
    text-align: right !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    line-height: 40px !important;

    word-break: normal !important;
    overflow-wrap: normal !important;

    text-decoration: none;
}


/* =========================================
   Author
========================================= */

.ib-card-author {
    display: flex;

    align-items: center;

    gap: 7px;

    min-height: 28px;

    margin-bottom: 12px;

    font-size: 14px;

    color: #666;

    direction: rtl;

    text-align: right;
}

.ib-author-icon {
    font-size: 15px;
}


/* =========================================
   Info
========================================= */

.ib-card-info {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    margin-bottom: 12px;

    direction: rtl;
}

.ib-card-info-item {
    min-width: 0;

    padding: 8px 10px;

    background: #f7f7f7;

    border-radius: 9px;

    text-align: right;

    box-sizing: border-box;
}

.ib-info-label {
    display: block;

    margin-bottom: 2px;

    font-size: 11px;

    color: #888;
}

.ib-info-value {
    display: block;

    font-size: 13px;

    font-weight: 600;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================
   Button
========================================= */

/* .ib-card-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-height: 0;

    padding: 20px 22px 22px;

    direction: rtl;
    text-align: right;

    box-sizing: border-box;
} */

.ib-card-buttons,
.ib-card-action {
    margin-top: auto;

    flex-shrink: 0;

    padding-top: 8px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    direction: rtl;
}

.ib-card-more-btn,
.ib-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    min-height: 42px;

    box-sizing: border-box;

    border-radius: 9px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    direction: rtl;
}


.ib-card-more-btn span {
    font-size: 16px;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 768px) {

    .ib-material-card {
        min-height: 480px;
    }

    .ib-card-image {
        height: 220px;
    }


}


@media (max-width: 480px) {

    .ib-card-image {
        height: 210px;
    }

    .ib-card-body {
        padding: 18px;
    }

    .ib-card-info {
        grid-template-columns: 1fr;
    }


}

/*==================================
Description
==================================*/

.ib-description{
    margin:15px 0 20px;
    color:#555;
    line-height:1.9;
}

/*==================================
Tags
==================================*/

.ib-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    width: 100%;

    direction: rtl;

    text-align: right;

    margin-bottom: 12px;
}

.ib-tags span {
    display: inline-flex;

    align-items: center;

    max-width: 100%;

    padding: 6px 11px;

    background: #f1f5ff;

    border-radius: 20px;

    font-size: 12px;

    line-height: 1.5;

    white-space: nowrap;

    box-sizing: border-box;
}

/* =========================================
   Card Buttons
========================================= */

.ib-card-buttons {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;
    padding-top: 12px;

    direction: rtl;
}

.ib-card-buttons .ib-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: auto;

    min-width: 0;

    padding: 7px 13px;

    min-height: 34px;

    border: none;
    border-radius: 7px;

    background: #0d6efd;
    color: #fff;

    font-size: 12px;
    line-height: 1.4;

    font-weight: 600;

    text-align: center;

    text-decoration: none;

    white-space: nowrap;

    box-sizing: border-box;
}

.ib-card-buttons .ib-btn:hover {
    background: #084dbd;
    color: #fff;
}

.ib-pdf-preview{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:100%;
    background:#f5f7fb;
    color:#d32f2f;
}

.ib-pdf-preview{
    font-size:90px;
}

.ib-pdf-preview span{
    margin-top:12px;
    font-size:18px;
    font-weight:700;
    color:#333;
}

/* =========================================
   Iblagh - Urdu RTL Detail Page
========================================= */

.ib-material-detail {
    direction: rtl !important;
    text-align: right !important;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 35px 50px;
    box-sizing: border-box;
}

/* Back Button */

.ib-detail-back {
    width: 100%;
    margin-bottom: 20px;
    text-align: right !important;
}

.ib-detail-back-btn {
    display: inline-block;
    text-align: right;
    direction: rtl;
    text-decoration: none;
}


/* Main Card */

.ib-detail-card {
    width: 100%;
    direction: rtl;
    text-align: right;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}


/* Preview */

.ib-detail-preview {
    position: relative;
    width: 100%;
    min-height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    direction: rtl;
    text-align: right;
    overflow: hidden;
}

.ib-detail-preview {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.ib-detail-preview img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
}


/* Detail Content */

.ib-detail-content {
    width: 100%;
    padding: 30px 0;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}


/* Title */

.ib-detail-content h1 {
    width: 100%;
    margin: 0 0 10px;
    padding: 0;

    direction: rtl;
    text-align: right !important;

    font-size: 34px;
    line-height: 1.7;
}


/* Short Title */

.ib-detail-short-title {
    width: 100%;
    margin-bottom: 15px;

    direction: rtl;
    text-align: right !important;
}


/* Author */

.ib-detail-author {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    direction: rtl;
    text-align: right;

    gap: 8px;
    margin-bottom: 30px;
}


/* Meta Boxes */

.ib-detail-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 15px;
    direction: rtl;
    text-align: right;
}

.ib-detail-meta > div {
    min-height: 90px;

    padding: 20px;

    background: #f7f7f7;
    border-radius: 12px;

    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.ib-detail-meta strong {
    display: block;
    margin-bottom: 8px;

    direction: rtl;
    text-align: right;

    font-size: 13px;
    color: #777;
}

.ib-detail-meta span {
    display: block;

    direction: rtl;
    text-align: right;

    font-size: 16px;
    font-weight: 600;
}


/* Description Sections */

.ib-detail-description {
    width: 100%;

    padding: 25px 0;

    border-top: 1px solid #e8e8e8;

    direction: rtl;
    text-align: right;
}

.ib-detail-description h2 {
    margin: 0 0 15px;

    direction: rtl;
    text-align: right !important;

    font-size: 23px;
    line-height: 1.7;
}

.ib-detail-description-text {
    width: 100%;

    direction: rtl;
    text-align: right !important;

    font-size: 16px;
    line-height: 2.2;
    white-space: normal;
}


/* Tags */

.ib-detail-tags {
    width: 100%;

    padding-top: 25px;

    direction: rtl;
    text-align: right;
}

.ib-detail-tags > strong {
    display: block;

    margin-bottom: 12px;

    direction: rtl;
    text-align: right;
}

.ib-detail-tags > div {
    display: flex;

    flex-direction: row;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 8px;

    direction: rtl;
}

.ib-detail-tags span {
    display: inline-block;

    padding: 7px 14px;

    background: #f2f2f2;
    border-radius: 20px;

    direction: rtl;
    text-align: right;
}


/* Buttons */

.ib-detail-buttons {
    display: flex;

    flex-direction: row;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;

    direction: rtl;
}

.ib-detail-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    direction: rtl;

    padding: 12px 22px;

    border-radius: 9px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;
}

/* category label */

.ib-detail-category {
    position: absolute;
    top: 20px;
    right: 20px;

    display: inline-flex;
    align-items: center;

    direction: rtl;

    background: #fff;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

    z-index: 5;
}

.ib-category-label {
    display: inline-block;

    padding: 7px 12px;

    background: #f1f1f1;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;
}

.ib-category-value {
    display: inline-block;

    padding: 7px 14px;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .ib-material-detail {
        padding: 20px 15px 40px;
    }

    .ib-detail-content h1 {
        font-size: 27px;
    }

    .ib-detail-meta {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 480px) {

    .ib-material-detail {
        padding: 15px 10px 30px;
    }

    .ib-detail-meta {
        grid-template-columns: 1fr;
    }

    .ib-detail-content h1 {
        font-size: 24px;
    }

    .ib-detail-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ib-detail-btn {
        width: 100%;
        box-sizing: border-box;
    }

}

/* =========================================
   Card Basic Info
========================================= */

.ib-card-basic-info {
    direction: rtl;
    text-align: right;
}

.ib-card-author,
.ib-card-category {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 5px;

    font-size: 14px;
    line-height: 1.6;

    direction: rtl;
}

.ib-card-category {
    margin-bottom: 0;
}

.ib-card-category strong {
    font-weight: 600;
}


/* =========================================
   Card Description
   Maximum 2 Lines
========================================= */

.ib-card-description {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;

    overflow: hidden;
    border-top: 1px solid #e5e5e5;

    padding-top:6px;

    margin-top: 8px;

    font-size: 14px;
    line-height: 25px;

    color: #666;

    direction: rtl;
    text-align: right;
}

/* audio */
.ib-detail-audio {
    width: 100%;
    margin-top: 20px;
}

.ib-detail-audio audio {
    width: 100%;
    display: block;
}

/* --------------------------------------------------------------------------
| Submit Button Loader
| -------------------------------------------------------------------------- */

#submit_material.iblagh-submitting {
    opacity: 0.7;
    cursor: not-allowed !important;
    pointer-events: none;
}

#submit_material .ib-submit-loader {
    display: none;
}

#submit_material.iblagh-submitting .ib-submit-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    vertical-align: -2px;

    border: 2px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;

    animation: iblagh-submit-spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
| Full Screen Submit Loader + Progress Bar
| -------------------------------------------------------------------------- */

.iblagh-fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.78);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 999999;

    padding: 20px;

    box-sizing: border-box;
}

.iblagh-fullscreen-loader.is-active {
    display: flex;
}


/* =========================================
   Loader Content
========================================= */

.iblagh-loader-content {

    width: 100%;
    max-width: 520px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    direction: rtl;

    background: #ffffff;

    padding: 35px 30px;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    box-sizing: border-box;

}


/* =========================================
   Upload Icon
========================================= */

.iblagh-loader-icon {

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0faf7;

    font-size: 32px;

    margin-bottom: 18px;

    animation: iblagh-loader-pulse 1.5s ease-in-out infinite;

}


/* =========================================
   Loader Text
========================================= */

.iblagh-loader-text {

    color: #222;

    font-size: 21px;

    font-weight: 700;

    line-height: 1.6;

    margin-bottom: 22px;

}


/* =========================================
   Progress Wrapper
========================================= */

.iblagh-progress-wrapper {

    width: 100%;

    direction: rtl;

}


/* =========================================
   Progress Bar Background
========================================= */

.iblagh-progress-bar {

    width: 100%;

    height: 18px;

    background: #e9ecef;

    border-radius: 50px;

    overflow: hidden;

    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.12);

}


/* =========================================
   Progress Fill
========================================= */

.iblagh-progress-fill {

    width: 0%;

    height: 100%;

    background: #0d7a5f;

    border-radius: 50px;

    transition: width 0.25s ease;

    position: relative;

    overflow: hidden;

}


/*
Animated shine effect
*/

.iblagh-progress-fill::after {

    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );

    animation:
        iblagh-progress-shine 1.5s linear infinite;

}


/* =========================================
   Progress Information
========================================= */

.iblagh-progress-info {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 10px;

    direction: rtl;

}


/* Percentage */

#iblagh-progress-percent {

    font-size: 15px;

    font-weight: 700;

    color: #0d7a5f;

    direction: ltr;

}


/* Status */

#iblagh-progress-status {

    font-size: 13px;

    color: #777;

    text-align: right;

}


/* =========================================
   Hint
========================================= */

.iblagh-loader-hint {

    margin-top: 22px;

    font-size: 12px;

    color: #999;

    line-height: 1.7;

}


/* =========================================
   Animations
========================================= */

@keyframes iblagh-loader-pulse {

    0%,
    100% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.06);

        opacity: 0.8;

    }

}


@keyframes iblagh-progress-shine {

    0% {

        left: -100%;

    }

    100% {

        left: 100%;

    }

}


/* =========================================
   Prevent Page Scrolling
========================================= */

body.iblagh-loading {

    overflow: hidden !important;

}


/* =========================================
   Mobile
========================================= */

@media (max-width: 480px) {

    .iblagh-loader-content {

        padding: 28px 20px;

        border-radius: 15px;

    }

    .iblagh-loader-icon {

        width: 60px;

        height: 60px;

        font-size: 28px;

    }

    .iblagh-loader-text {

        font-size: 18px;

    }

    .iblagh-progress-bar {

        height: 16px;

    }

    .iblagh-progress-info {

        gap: 10px;

    }

    #iblagh-progress-status {

        font-size: 12px;

    }

    #iblagh-progress-percent {

        font-size: 14px;

    }

}


/* Detail Preview - Full Width */
.ib-detail-preview {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* YouTube Video */
.ib-detail-video {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 10px;
}

.ib-detail-video iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: 0;
}

/* PDF Viewer */
.ib-detail-pdf {
    width: 100% !important;
    max-width: 100% !important;
    height: 700px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

.ib-detail-pdf iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .ib-detail-pdf {
        height: 500px;
    }
}

.ib-materials-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

.iblagh-filter-sidebar {
    width: 260px;
    flex: 0 0 260px;
    direction: rtl;
}

.iblagh-filter-sidebar form {
    display: block;
}

.ib-filter-section {
    display: block;
    margin-bottom: 25px;
}

.ib-filter-section h4 {
    margin-bottom: 12px;
}

.ib-filter-section label {
    display: block;
    margin-bottom: 8px;
}

.ib-material-grid {
    flex: 1;
    min-width: 0;
}

/* =========================================
   Material Pagination
========================================= */

.ib-material-pagination {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}


.ib-material-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}


.ib-material-pagination li {
    margin: 0;
    padding: 0;
}


.ib-material-pagination a,
.ib-material-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    text-decoration: none;

    font-size: 15px;
    line-height: 1;

    transition: all 0.2s ease;
}


.ib-material-pagination a:hover {
    background: #f5f5f5;
}


.ib-material-pagination .current {
    background: #222;
    color: #fff;
    border-color: #222;
}


/* =========================================
   Result Count
========================================= */

.ib-material-result-count {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;

    text-align: center;

    font-size: 14px;
    color: #777;
}


/* =========================================
   Material Content
========================================= */

.ib-material-content {
    flex: 1;
    min-width: 0;
}

.ib-author-page {
    width: 100%;
}

.ib-author-header {
    margin-bottom: 25px;
}

.ib-author-header h1 {
    margin: 0;
}

.ib-author-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.ib-author-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.ib-author-pagination a.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Multiple Material Upload */

#ib-material-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ib-material-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ib-material-file-row input[type="file"] {
    flex: 1;
    width: 100%;
}

.ib-remove-file {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
}

.ib-add-material-file {
    margin-top: 12px;
    padding: 9px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button#ib-add-material-file {
    margin: 15px 0;
    width: fit-content;
}
button.ib-remove-file{
    margin: 15px 0;
    width: fit-content;
}
.ib-material-file-row {
    margin-bottom: 15px;
}