/*==================================================
Portfolio
==================================================*/
.portfolio-header{

    background:#b71c1c;

    border-radius:18px;

    padding:25px 30px;

    color:#fff;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.portfolio-header-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

    flex-wrap:wrap;

}

.portfolio-user{

    display:flex;

    align-items:center;

    gap:25px;

}

.portfolio-avatar img{

    width:105px;

    height:105px;

    border-radius:50%;

    border:4px solid rgba(255,255,255,.2);

}

.portfolio-user-details h1{

    margin:0;

    font-size:30px;

    color:#fff;

}

.portfolio-role{

    display:inline-block;

    margin-top:12px;

    background:rgba(255,255,255,.15);

    padding:8px 16px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

}

.portfolio-course{

    flex:1;

    min-width:320px;

}

.portfolio-course h2{

    margin:8px 0 0;

    font-size:22px;

    color:#fff;

    line-height:1.4;

}

.portfolio-label{

    margin:0;

    font-size:13px;

    letter-spacing:1px;

    text-transform:uppercase;

    opacity:.75;

}

.portfolio-status{

    text-align:right;

}

.status-badge{

    display:inline-block;

    margin-top:10px;

    padding:12px 22px;

    border-radius:40px;

    font-weight:600;

}
.bg-pending {
	 background:#c8102e!important;
}
.bg-error {
    background: rgba(255, 255, 255, .15);
}
.bg-warning{
	background:orange;
}
.bg-sucess {
    background:#2ecc71;
    color:#fff;
}

.portfolio-progress{
    margin-top:30px;
}

.portfolio-progress-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    font-size:16px;
}

.progress-bar{
    width:100%;
    height:12px;
    border-radius:20px;
    overflow:hidden;
    background:rgba(255,255,255,.25);
}

.progress-fill{
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s;
}

.portfolio-course-list{
    margin-top:30px;
}

.portfolio-course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:25px;
    margin-top:25px;
}

.qualification-card{
    background:#fff;
    border-radius:16px;
    padding:25px;
    border:1px solid #ececec;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.qualification-card:hover{
    transform:translateY(-4px);
}

.qualification-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.qualification-card h3{
    margin:0;
    font-size:20px;
    line-height:1.4;
}

.qualification-progress{

    margin-top:25px;

}

.qualification-progress strong{

    display:block;

    margin-top:10px;

}

.qualification-status{

    white-space:nowrap;

    border-radius:30px;

    padding:8px 16px;

    color:#fff;

    font-size:13px;

}

.qualification-status.completed{

    background:#27ae60;

}

.qualification-status.progress{

    background:#f39c12;

}

.qualification-status.pending{

    background:#d63031;

}


/*==================================================
Responsive
==================================================*/

@media(max-width:991px){

    .portfolio-header-top{

        flex-direction:column;

        align-items:flex-start;

    }

    .portfolio-status{

        text-align:left;

    }

}

@media(max-width:768px){

    .portfolio-user{
		flex-direction:column;
		align-items:flex-start;
		margin: 0 auto;
		text-align: center;
    }

    .portfolio-user-details h1{

        font-size:22px;

    }

    .portfolio-course h2{

        font-size:18px;

    }

}



/* Phase 2 */

/*======================================
Summary Cards
======================================*/

.portfolio-summary{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    margin-top:30px;

}

.portfolio-card{

    background:#fff;

    border-radius:15px;

    padding:30px;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.25s;

    position:relative;

    overflow:hidden;

}

.portfolio-card::before{

    content:'';

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

    background:#b71c1c;

}

.portfolio-card:hover{

    transform:translateY(-6px);

}

.card-icon{

    font-size:34px;

    margin-bottom:18px;

}

.card-number{

    font-size:34px;

    font-weight:700;

    color:#b71c1c;

    line-height:1;

}

.card-title{

    margin-top:10px;

    color:#555;

    font-size:15px;

    font-weight:500;

}

@media(max-width:1200px){

    .portfolio-summary{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:600px){

    .portfolio-summary{

        grid-template-columns:1fr;

    }

}

/*=====================================
Portfolio Timeline
======================================*/

.portfolio-timeline{

    margin-top:30px;

    background:#fff;

    padding:30px;

    border-radius:18px;

    box-shadow:0 6px 20px rgba(0,0,0,.08);

}

.section-heading{
    margin-bottom:15px;
}

.section-heading h2{
    margin:0;
    color:#b71c1c;
    font-size:26px;
}

.section-heading p{
    margin-top:8px;
    color:#777;
}

.timeline{
    position:relative;
    margin-left:18px;
    padding-left:30px;
}

.timeline:before{
    content:"";
    position:absolute;
    left:0px;
    top:0;
    bottom:0;
    width:3px;
    background:#e5e5e5;
}

.timeline-item{
    position:relative;
    padding-bottom:30px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 30%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.timeline-item.completed .timeline-dot{
    background:#2ecc71;
}

.timeline-item.pending .timeline-dot{
    background:#f39c12;
}

.timeline-content{
    background:#fafafa;
    border-radius:12px;
    padding:18px 22px;
    border-left:4px solid #b71c1c;
}

.timeline-content h3{

    margin:0 0 8px;

    font-size:18px;

    color:#222;

}

.timeline-content p{

    margin:0;

    color:#666;

    line-height:1.6;

}

.timeline-item:last-child{

    padding-bottom:0;

}


/* ===============================
   Portfolio Evidence
==================================*/

.portfolio-evidence{
    margin-top:30px;
}

/* ===============================
   Course Card
==================================*/

.portfolio-course-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 25px;
    background:#c8102e;
    color:#fff;
}

.portfolio-course-header h2{
    margin:0;
    font-size:22px;
    font-weight:700;
}

.portfolio-course-header span{
    background:#fff;
    color:#c8102e;
    padding:7px 14px;
    border-radius:30px;
    font-weight:700;
    font-size:14px;
}

/* ===============================
   Lesson Accordion
==================================*/

.portfolio-lesson{
    border-top:1px solid #ececec;
}

.portfolio-lesson summary{
    list-style:none;
    cursor:pointer;
    padding:18px 24px;
    font-size:17px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:12px;
    transition:.3s;
    user-select:none;
}

.portfolio-lesson summary:hover{
    background:#fafafa;
}

.portfolio-lesson summary::-webkit-details-marker{
    display:none;
}

.portfolio-lesson summary::after{
    content:"+";
    margin-left:auto;
    font-size:24px;
    font-weight:bold;
    color:#999;
    transition:.3s;
}

.portfolio-lesson[open] summary::after{
    content:"−";
}

.portfolio-lesson-body{
    padding:25px;
    background:#fafafa;
    border-top:1px solid #ececec;
}

/* ===============================
   Status Box
==================================*/

.portfolio-status{
    display:inline-block;
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.status-completed{
    background:#e8f8ef;
    color:#1b8f4d;
}

.status-pending{
    background:#fff4e5;
    color:#c97900;
}

.status-failed{
    background:#fdeaea;
    color:#d62828;
}

/* ===============================
   Section Headings
==================================*/

.portfolio-lesson-body h4{
    margin-top:28px;
    margin-bottom:12px;
    font-size:18px;
    color:#222;
}

/* ===============================
   Feedback Card
==================================*/

.portfolio-feedback{
    background:#fff;
    border-left:5px solid #c8102e;
    border-radius:8px;
    padding:18px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
}

/* ===============================
   Tutor Reply
==================================*/

.portfolio-reply{
    background:#eef5ff;
    border-left:5px solid #2c6bed;
    padding:16px;
    border-radius:8px;
    margin-bottom:15px;
}

.portfolio-reply strong{
    display:block;
    margin-bottom:8px;
    color:#2c6bed;
}

/* ===============================
   Evidence Files
==================================*/

.portfolio-evidence-files{
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:10px;
    padding:18px;
}

.portfolio-file{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 0;
    border-bottom:1px solid #f1f1f1;
}

.portfolio-file:last-child{
    border-bottom:none;
}

.portfolio-file a{
    text-decoration:none;
    color:#c8102e;
    font-weight:600;
}

.portfolio-file a:hover{
    text-decoration:underline;
}

/* ===============================
   Info Rows
==================================*/

.portfolio-info{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:15px;
    margin-bottom:15px;
}

.portfolio-info strong{
    color:#444;
}

/* ===============================
   Empty State
==================================*/

.portfolio-empty{
    text-align:center;
    padding:30px;
    color:#999;
    background:#fff;
    border-radius:10px;
}

/* ===============================
   Responsive
==================================*/

@media(max-width:768px){

    .portfolio-course-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .portfolio-course-header span{
        align-self:flex-start;
    }

    .portfolio-info{
        grid-template-columns:1fr;
    }

    .portfolio-lesson summary{
        font-size:15px;
        padding:16px;
    }

    .portfolio-lesson-body{
        padding:18px;
    }

}

/* Assesment by tutor */
.portfolio-section.final-assessment .section-heading,.portfolio-downloads .section-heading{
    margin-top:30px!important;
    padding:20px!important;
    border-top:2px solid #ececec!important;
}
.final-assessment-card{
    background:#fff;
    border-radius:20px;
    margin-top:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    border-left:6px solid #b61f1f;
}

.assessment-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
	margin-bottom:10px;
}

.assessment-top h3{
    margin:0;
    font-size:26px;
    font-weight:600;
}

.assessment-top p{
    margin-top:6px;
    color:#777;
}

.assessment-result{
    padding:8px 25px;
    border-radius:50px;
    font-size:16px;
    font-weight:700;
}

.result-pass{
    background:#2ecc71;
}

.result-fail{
    background:#d63031;
}

.result-refer{
    background:#f39c12;
}

.result-pending{
    background:#95a5a6;
}

.assessment-details{
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
    padding:20px 0;
}

.assessment-row{
    display:flex;
    justify-content:space-between;
    padding:12px 0;
}

.assessment-row span{
    color:#666;
}

.assessment-row strong{
    font-weight:600;
}

.assessment-summary{
    margin-top:30px;
}

.assessment-summary h4{
    margin-bottom:15px;
    color:#b61f1f;
}


.portfolio-download-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
    gap:30px;
}

.download-card{
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.download-card h3{
    margin-bottom:25px;
}

.download-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid #eee;
}

.download-item:last-child{
    border-bottom:none;
}

.download-item small{
    display:block;
    color:#888;
    margin-top:4px;
}

.download-btn{
    background:#bf1f23;
    color:#fff;
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
}

.download-btn:hover{
    background:#99191d;
}

.download-disabled{
    background:#e7e7e7;
    color:#777;
    padding:10px 18px;
    border-radius:8px;
}


/* Admin ASsesement Section Design */
/*==================================================
=            Final Assessment (Admin)              =
==================================================*/

.final-assessment-card{
    background:#fff;
    border-radius:18px;
    padding:30px 25px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    border-left:6px solid #bf1e1e;
}

.assessment-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
    padding-bottom:5px;
    border-bottom:1px solid #ececec;
}

.assessment-top h3{
    margin:0;
    font-size:26px;
    font-weight:700;
    color:#1f2937;
}

.assessment-top p{
    margin:8px 0 0;
    color:#777;
    font-size:15px;
}

.assessment-select{
    min-width:190px;
    height:48px;
    border-radius:10px;
    border:1px solid #d9d9d9;
    padding:0 15px;
    font-size:15px;
    font-weight:600;
    background:#fff;
}

/*=============================
Rows
=============================*/

.assessment-details{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.assessment-row{
    display:grid;
    grid-template-columns:450px 1fr;
}

.assessment-row>span{
    font-size:15px;
    font-weight:600;
    color:#666;
}

.assessment-row strong{
    font-size:15px;
    color:#1f2937;
}

/*=============================
Textarea
=============================*/

.assessment-row textarea{
    width:100%;
    min-height:170px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:18px;
    resize:vertical;
    font-size:15px;
    line-height:1.7;
    transition:.2s;
}

.assessment-row textarea:focus{
    outline:none;
    border-color:#bf1e1e;
    box-shadow:0 0 0 3px rgba(191,30,30,.12);
}

/*=============================
Action Area
=============================*/

.assessment-summary{
    margin-top:30px;
    padding-top:30px;
    border-top:1px solid #ececec;
}

.assessment-summary h4{
    margin:0 0 20px;
    font-size:15px;
}

.assessment-actions .button{
    min-width:220px;
    height:50px;
    border:none;
    border-radius:10px;
    background:#bf1e1e;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.assessment-actions .button:hover{
    background:#9f1818;
}

/*=============================
Result Badge
=============================*/

.assessment-result{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:170px;
    height:46px;
    padding:0 20px;
    border-radius:999px;
    color:#fff;
    font-weight:700;
    font-size:14px;
}

.bg-success{
    background:#16a34a;
}

.bg-warning{
    background:#d97706;
}

.bg-danger{
    background:#dc2626;
}

.bg-pending{
    background:#6b7280;
}

/*=============================
Responsive
=============================*/

@media(max-width:900px){

    .assessment-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .assessment-row{
        grid-template-columns:1fr;
        gap:10px;
    }

    .assessment-actions{
        justify-content:stretch;
    }

    .assessment-actions .button{
        width:100%;
    }

}