/*=========================================================
ROOT
=========================================================*/

:root{

    --academy-primary:#4f46e5;

    --academy-primary-dark:#3730a3;

    --academy-success:#10b981;

    --academy-danger:#ef4444;

    --academy-bg:#f5f7fb;

    --academy-card:#ffffff;

    --academy-border:#e8edf5;

    --academy-text:#1f2937;

    --academy-muted:#6b7280;

    --academy-shadow:
    0 18px 45px rgba(15,23,42,.08);

}

/*=========================================================
BODY
=========================================================*/

body{

    background:var(--academy-bg) !important;

    font-family:
    Inter,
    "Segoe UI",
    sans-serif;

    color:var(--academy-text);

}

/*=========================================================
PAGE
=========================================================*/

.academy-resource-page{

    padding-top:10px;

    padding-bottom:80px;

}


/*=========================================================
PAGE
=========================================================*/

.academy-resource-page{

    padding:8px 0 45px;

}

/*=========================================================
BREADCRUMB
=========================================================*/

.academy-breadcrumb{

    display:flex;

    align-items:center;

    gap:6px;

    flex-wrap:wrap;

    margin-bottom:14px;

    font-size:.82rem;

}

.academy-breadcrumb a{

    color:#64748b;

    text-decoration:none;

    transition:.2s;

}

.academy-breadcrumb a:hover{

    color:var(--academy-primary);

}

.academy-breadcrumb span{

    color:#cbd5e1;

}

.academy-breadcrumb .active{

    color:var(--academy-primary);

    font-weight:700;

}

/*=========================================================
BACK BUTTON
=========================================================*/

.resource-back-wrapper{

    display:flex;

    justify-content:flex-end;

    margin-bottom:14px;

}

.resource-back-btn{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:8px 16px;

    background:#fff;

    border:1px solid var(--academy-border);

    border-radius:12px;

    color:#334155;

    font-size:.84rem;

    font-weight:600;

    text-decoration:none;

    transition:.25s;

    box-shadow:0 4px 12px rgba(15,23,42,.05);

}

.resource-back-btn:hover{

    color:var(--academy-primary);

    transform:translateY(-2px);

}

/*=========================================================
MAIN CARD
=========================================================*/

.resource-card{

    background:#fff;

    border:1px solid var(--academy-border);

    border-radius:18px;

    padding:22px;

    box-shadow:0 8px 24px rgba(15,23,42,.05);

}

/*=========================================================
HEADER
=========================================================*/

.resource-header{

    display:flex;

    align-items:flex-start;

    gap:18px;

}

/*=========================================================
RESOURCE COVER
=========================================================*/

.resource-cover{

    width:90px;

    height:90px;

    border-radius:18px;

    background:linear-gradient(135deg,#fff5f5,#ffeaea);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:42px;

    flex-shrink:0;

    box-shadow:0 8px 20px rgba(239,68,68,.10);

}

/*=========================================================
TITLE
=========================================================*/

.resource-title-area{

    flex:1;

}

.resource-type-badge{

    display:inline-flex;

    align-items:center;

    padding:4px 12px;

    border-radius:999px;

    background:#fee2e2;

    color:#dc2626;

    font-size:.70rem;

    font-weight:700;

    letter-spacing:.4px;

    text-transform:uppercase;

    margin-bottom:8px;

}

.resource-title-area h1{

    margin:0 0 6px;

    font-size:1.45rem;

    font-weight:700;

    line-height:1.3;

}

.resource-course{

    margin:0;

    color:#2563eb;

    font-size:.88rem;

    font-weight:600;

}

/*=========================================================
DESCRIPTION
=========================================================*/

.resource-description{

    margin-top:18px;

    font-size:.92rem;

    color:#475569;

    line-height:1.7;

}

.resource-divider{

    margin:20px 0;

    opacity:.08;

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media(max-width:992px){

.resource-card{

    padding:18px;

}

.resource-header{

    gap:16px;

}

}

@media(max-width:768px){

.resource-back-wrapper{

    justify-content:flex-start;

}

.resource-header{

    flex-direction:column;

    align-items:center;

    text-align:center;

}

.resource-cover{

    width:80px;

    height:80px;

    font-size:38px;

}

.resource-title-area h1{

    font-size:1.20rem;

}

.resource-description{

    margin-top:15px;

    text-align:left;

}

}

@media(max-width:576px){

.academy-breadcrumb{

    font-size:.78rem;

}

.resource-card{

    padding:16px;

    border-radius:16px;

}

.resource-back-wrapper{

    justify-content:center;

}

.resource-back-btn{

    width:auto;

    justify-content:center;

    padding:8px 18px;

}

.resource-cover{

    width:72px;

    height:72px;

    border-radius:16px;

    font-size:34px;

}

.resource-title-area h1{

    font-size:1.05rem;

}

.resource-course{

    font-size:.82rem;

}

.resource-description{

    font-size:.86rem;

    line-height:1.6;

}

}


/*=========================================================
RESOURCE ACTIONS
=========================================================*/

.resource-actions{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:14px;

}

.resource-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    height:42px;

    padding:0 16px;

    border-radius:10px;

    border:none;

    text-decoration:none;

    font-size:.84rem;

    font-weight:600;

    transition:.25s;

    box-shadow:0 4px 12px rgba(15,23,42,.06);

}

.resource-btn:hover{

    transform:translateY(-2px);

}

.resource-btn-danger{

    background:#ef4444;

    color:#fff;

}

.resource-btn-danger:hover{

    background:#dc2626;

    color:#fff;

}

.resource-btn-outline{

    background:#fff;

    border:1px solid #ef4444;

    color:#ef4444;

}

.resource-btn-outline:hover{

    background:#ef4444;

    color:#fff;

}

.resource-btn-primary{

    background:#2563eb;

    color:#fff;

}

.resource-btn-primary:hover{

    background:#1d4ed8;

    color:#fff;

}

.resource-btn-success{

    background:#10b981;

    color:#fff;

}

.resource-btn-success:hover{

    background:#059669;

    color:#fff;

}

.resource-btn-purple{

    background:#4f46e5;

    color:#fff;

}

.resource-btn-purple:hover{

    background:#4338ca;

    color:#fff;

}

/*=========================================================
RIGHT INFO CARD
=========================================================*/

.resource-info-card{

    background:#fff;

    border:1px solid var(--academy-border);

    border-radius:18px;

    padding:8px;

    box-shadow:0 8px 20px rgba(15,23,42,.05);

}

.resource-info-item{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px;

}

.resource-info-item:not(:last-child){

    border-bottom:1px solid #eef2f7;

}

.resource-info-icon{

    width:42px;

    height:42px;

    border-radius:12px;

    background:#eef4ff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:18px;

    flex-shrink:0;

}

.resource-info-item span{

    display:block;

    margin-bottom:2px;

    font-size:.72rem;

    color:#64748b;

}

.resource-info-item strong{

    display:block;

    font-size:.92rem;

    color:#0f172a;

    font-weight:700;

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media(max-width:768px){

.resource-actions{

    justify-content:center;

    gap:8px;

}

.resource-btn{

    flex:1;

    min-width:145px;

}

.resource-info-item{

    padding:12px;

}

}


/*=========================================================
RESOURCE MINI STATS
=========================================================*/

.resource-stats{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;

    margin-top:18px;

}

.resource-stat-card{

    background:#fff;

    border:1px solid var(--academy-border);

    border-radius:16px;

    padding:14px 16px;

    display:flex;

    align-items:center;

    gap:12px;

    transition:.25s;

    box-shadow:0 6px 18px rgba(15,23,42,.05);

}

.resource-stat-card:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 26px rgba(15,23,42,.08);

}

.resource-stat-icon{

    width:42px;

    height:42px;

    border-radius:12px;

    background:#eef4ff;

    color:#2563eb;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:18px;

    flex-shrink:0;

}

.resource-stat-content{

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.resource-stat-value{

    font-size:1rem;

    font-weight:700;

    color:#0f172a;

    line-height:1.2;

}

.resource-stat-label{

    margin-top:2px;

    font-size:.74rem;

    color:#64748b;

    font-weight:600;

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media(max-width:768px){

.resource-stats{

    gap:10px;

}

.resource-stat-card{

    padding:12px;

}

.resource-stat-icon{

    width:38px;

    height:38px;

    font-size:16px;

}

.resource-stat-value{

    font-size:.95rem;

}

.resource-stat-label{

    font-size:.70rem;

}

}


/*=========================================================
REPORT CARD
=========================================================*/

.resource-report-card{

    margin-top:18px;

    background:#fff;

    border:1px solid var(--academy-border);

    border-radius:16px;

    padding:18px;

    box-shadow:0 6px 18px rgba(15,23,42,.05);

}

.resource-report-card h4{

    margin-bottom:8px;

    font-size:1rem;

    font-weight:700;

}

.resource-report-card p{

    margin-bottom:14px;

    color:#64748b;

    font-size:.84rem;

    line-height:1.6;

}

.resource-report-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    height:40px;

    padding:0 18px;

    border-radius:10px;

    background:#ef4444;

    color:#fff;

    text-decoration:none;

    font-size:.84rem;

    font-weight:600;

    transition:.25s;

}

.resource-report-btn:hover{

    background:#dc2626;

    color:#fff;

    transform:translateY(-2px);

}

/*=========================================================
BACK CARD
=========================================================*/

.resource-back-card{

    margin-top:18px;

    background:#fff;

    border:1px solid var(--academy-border);

    border-radius:16px;

    padding:18px;

    text-align:center;

    box-shadow:0 6px 18px rgba(15,23,42,.05);

}

.resource-back-card a{

    display:inline-flex;

    align-items:center;

    gap:6px;

    text-decoration:none;

    color:#2563eb;

    font-weight:600;

    transition:.25s;

}

.resource-back-card a:hover{

    gap:10px;

}

/*=========================================================
GLOBAL HOVER
=========================================================*/

.resource-card,
.resource-info-card,
.resource-report-card,
.resource-back-card,
.resource-stat-card{

    transition:
    transform .25s ease,
    box-shadow .25s ease;

}

.resource-card:hover,
.resource-info-card:hover,
.resource-report-card:hover,
.resource-back-card:hover,
.resource-stat-card:hover{

    transform:translateY(-3px);

    box-shadow:0 16px 34px rgba(15,23,42,.08);

}

/*=========================================================
FADE ANIMATION
=========================================================*/

.resource-card,
.resource-info-card,
.resource-report-card,
.resource-back-card{

    animation:resourceFade .4s ease both;

}

@keyframes resourceFade{

    from{

        opacity:0;

        transform:translateY(14px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*=========================================================
SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eef2f7;

}

::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#94a3b8;

}

/*=========================================================
TABLET
=========================================================*/

@media(max-width:992px){

.resource-header{

    flex-direction:column;

}

.resource-actions{

    justify-content:flex-start;

}

.resource-info-card{

    margin-top:18px;

}

}

@media(max-width:768px){

.resource-actions{

    justify-content:center;

    gap:8px;

}

.resource-btn{

    flex:none;

    width:auto;

    min-width:unset;

}

.resource-stats{

    grid-template-columns:1fr;

}

.resource-report-card,
.resource-back-card{

    padding:16px;

}

}

@media(max-width:480px){

.resource-card{

    padding:14px;

}

.resource-cover{

    width:68px;

    height:68px;

    font-size:30px;

}

.resource-title-area h1{

    font-size:1rem;

}

.resource-actions{

    justify-content:center;

    gap:8px;

    flex-wrap:wrap;

}

.resource-btn{

    width:auto;

    min-width:unset;

    flex:none;

    padding:0 16px;

}

.resource-report-btn{

    width:auto;

}

}

/*=========================================================
FINAL SPACING
=========================================================*/

.resource-description:last-child{

    margin-bottom:0;

}

.resource-actions:last-child{

    margin-bottom:0;

}

.resource-card{

    overflow:hidden;

}



/* ==================================================
Login Message
================================================== */

.resource-login-message{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;

    margin-bottom:24px;
    padding:22px 24px;

    border:1px solid rgba(13,110,253,.15);
    border-radius:16px;

    background:#fff;

    box-shadow:
        0 10px 30px rgba(0,0,0,.06);
}

.resource-login-message__icon{
    width:52px;
    height:52px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(13,110,253,.1);

    font-size:1.25rem;
}

.resource-login-message__content{
    flex:1;
}

.resource-login-message__content h4{
    margin:0 0 5px;
}

.resource-login-message__content p{
    margin:0;

    color:#6c757d;
}

.resource-login-btn{
    flex-shrink:0;

    padding:.7rem 1.35rem;
    border-radius:10px;
}


/* ==================================================
Responsive
================================================== */

@media(max-width:767.98px){

    .resource-login-message{
        flex-direction:column;

        text-align:center;

        padding:24px 20px;
    }

    .resource-login-btn{
        width:100%;
    }

}

.resource-card{
    opacity:1 !important;
}

.resource-card.resource-card--locked{
    opacity:.04 !important;
}



    /* =========================================================
   DELETE RESOURCE
   ========================================================= */

.resource-delete-card{
    margin-top:24px;
    padding:20px;
    border:1px solid #fecaca;
    background:#fff7f7;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.resource-delete-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.resource-delete-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#fee2e2;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    flex-shrink:0;
}

.resource-delete-left h4{
    margin:0 0 4px;
    font-size:16px;
    font-weight:700;
    color:#991b1b;
}

.resource-delete-left p{
    margin:0;
    font-size:13px;
    color:#7f1d1d;
}

.resource-delete-btn{
    border:none;
    border-radius:10px;
    padding:11px 17px;
    background:#dc2626;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.2s ease;
    white-space:nowrap;
}

.resource-delete-btn:hover{
    background:#b91c1c;
    transform:translateY(-1px);
}

@media(max-width:768px){

    .resource-delete-card{
        flex-direction:column;
        align-items:stretch;
    }

    .resource-delete-btn{
        width:100%;
    }

}

    