:root {
    --primary: #edc98a;
    --primary-light: #eff6ff;
    --success: #10b981;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
}

body {
    background:
        radial-gradient(circle at top left, #dbeafe 0%, transparent 35%),
        radial-gradient(circle at top right, #ede9fe 0%, transparent 30%),
        #f8fafc;
}

/* ======================
   Dashboard Layout
====================== */

.dashboard-container {
    max-width: 1280px;
    margin: auto;
    padding: 24px;
}

.dashboard-header h2 {
    font-weight: 700;
    color: var(--text);
}

.dashboard-header p {
    color: var(--muted);
}

.sectionList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 18px;
    row-gap: 30px;
}

/* ======================
   Navigation
====================== */

.dashboard-nav {
    position: sticky;
    top: 20px;
    z-index: 100;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

    margin-bottom: 30px;
    padding: 16px;

    border-radius: 20px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(15px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.nav-pill {
    border: 1px solid var(--primary);
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
}

.nav-pill h4 {
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
    margin: 0;
}

.nav-pill i {
    color: #007bff;
    transition: color .3s ease;
}

.nav-pill:hover {
    background: #007bff;
    color: #fff;
}

.nav-pill:hover i,
.nav-pill:hover h4,
.nav-pill:hover span {
    color: #fff !important;
}

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

.section-card {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.section-subtitle {
    color: var(--muted);
}

/* ======================
   Resource Card
====================== */

.resource-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all .35s ease;
    height: 100%;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
}

.resource-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.resource-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.resource-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    background: #eef4ff;
    color: #2563eb;
    font-weight: 600;
}

.resource-desc {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.resource-desc img,
.resource-desc table,
.resource-desc iframe {
    max-width: 100%;
    height: auto;
}

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

.resource-files {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
}

.resource-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: #334155;
}

.file-count {
    background: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    background: white;
    padding: 14px;
    border-radius: 16px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.file-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.pdf-icon {
    border-radius: 14px;
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.download-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: Black;
    padding: 6px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .3s;
    font-size: 14px;
    white-space: nowrap;

}

/* .download-btn:hover,
.download-btn:focus {
       border: 1px solid transparent;

} */

.course-document {
    font-size: 14px;
    color: black;
}

.doc-icon {
    font-size: 28px;
    color: black;
}

/* ======================
   Search
====================== */

.search-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 1px solid #007bff;
    border-radius: 50px;
    font-size: 1.02rem;
    transition: all .3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, .15);
    outline: none;
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-box i.fa-search {
    font-size: 1.3rem;
    color: #6c757d;
}

.search-input:focus+i.fa-search,
.search-input:focus~i.fa-search {
    color: #007bff;
}

/* ======================
   Utilities
====================== */

.badge-modern {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
}

.badge-download {
    background: #e6bb73;
    color: white;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 12px;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.line-clamp-2,
.resource-desc p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ======================
   Tablet
====================== */

@media (max-width: 992px) {

    .nav-pill h4 {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ======================
   Mobile
====================== */

@media (max-width: 768px) {

    .dashboard-container {
        padding: 15px;
    }

    .dashboard-nav {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        position: static;
    }

    .nav-pill {
        padding: 14px;
    }

    .nav-pill h4 {
        font-size: 18px !important;
        line-height: 24px !important;
    }

    .section-card {
        padding: 20px;
    }

    .section-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {

    .resource-card {
        padding: 18px;
    }

    .resource-files {
        padding: 14px;
    }

    .resource-header {
        gap: 12px;
    }

    .resource-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .resource-files-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}



.header__logo--link {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    transition: all .3s ease;
}

/* Large Desktop */
@media (min-width: 1400px) {
    .logo-img {
        height: 70px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .logo-img {
        height: 55px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .logo-img {
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
  

    .logo-img {
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-img {
        height: 38px;
    }
}


.enroll-courses{
    h5{
        font-size: 22px;
        font-weight: 600;
    }
}

.course-content{
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    background: white;
    h5{
        font-size: 18px;
        font-weight: 600;
    }
    p{
        font-size: 14px;
    }
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 600;
}

.enroll-course{
    border: 1px solid #e2e8f0;
    padding: 8px 24px;
    border-radius: 12px;
    background: white;
   ul{
    text-decoration: none;
    list-style: none;
    font-size: 18px;
    font-weight: 600;
   }
}

.assignment-upload-card{
    background:#fff;
    border-radius:20px;
    padding:24px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.assignment-header{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom:25px;
}

.assignment-header h4{
    margin:0;
    font-weight:700;
}

.status-badge{
    padding:4px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.status-badge.success{
    background:#e8fff1;
    color:#0f9d58;
}

.status-badge.pending{
    background:#fff5e5;
    color:#ff9800;
}

.existing-file-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:8px 15px;
    margin-bottom:20px;
}

.file-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 10px;
    min-width: 0; /* Prevents overflow */
}



.file-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #eef2ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #4f46e5;
}

.upload-area{
    border:2px dashed #d1d5db;
    border-radius:16px;
    padding:14px 40px;
    text-align:center;
    cursor:pointer;
    width:100%;
    transition:.3s;
}

.upload-area:hover,.upload-area:focus{
    border-color:#4f46e5;
    background:#f8faff;
}

.upload-area i{
    font-size:42px;
    color:#4f46e5;
}

.previewBox{
    margin-top:20px;
    background:#f8fafc;
    border-radius:12px;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.preview-left{
    display:flex;
    align-items:center;
    gap:12px;
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.preview-left i{
    font-size:28px;
    color:#4f46e5;
}

.remove-btn{
    border:none;
    background:#fee2e2;
    color:#dc2626;
    width:36px;
    height:36px;
    border-radius:50%;
}

.submit-btn{
    width:100%;
    margin-top:20px;
    border:none;
    background:#4f46e5;
    color:#fff;
    padding:14px;
    border-radius:12px;
    font-weight:600;
}

.btn-view{
    background:#4f46e5;
    color:#fff;
    border-radius:10px;
    padding: 6px 14px;
    font-size: 14px;
}
.btn-view:hover{
    background:#4f46e5;
    color:#fff;
    border-radius:10px;
    padding: 6px 14px;
    font-size: 14px;
}

.download-btn.submitted-btn {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.file-date{
    font-size: 12px;
}

.btn-success{
    background:#132b4e;
    color:#fff;
    border-radius:10px;
    padding: 6px 14px;
    font-size: 14px;
    border: transparent;
}
.btn-success:hover{
    background:#132b4e;
    color:#fff;
    border-radius:10px;
    padding: 6px 14px;
    font-size: 14px;
}