:root {
    --primary-bg: #e0f2f1;
    --accent-teal: #1B8387;
    --accent-light: #80cbc4;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8fbfb;
    color: var(--text-dark);
    line-height: 1.6;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(to right, rgba(217,199,199,0.03), rgba(27,131,135,0.59));
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    width: 120px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #2a8f85;
}

.nav-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.7);
}

.profile-circle {
    width: 32px;
    height: 32px;
    background: var(--accent-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 25px;
}

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

.continue-banner {
    background: linear-gradient(135deg, #ffffff, #e0f2f1);
    border-radius: 20px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 1px solid rgba(27, 131, 135, 0.1);
    transition: var(--transition);
}

.continue-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(27, 131, 135, 0.15);
}

.banner-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.banner-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-continue {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-continue:hover {
    background: #156d70;
    transform: scale(1.05);
}

.course-main-card {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.course-header h4 {
    font-size: 20px;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.percentage {
    color: var(--accent-teal);
    font-weight: 700;
}

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

.course-item {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid #f1f5f9;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-item:not(.disabled):hover {
    transform: translateY(-10px);
    border-color: var(--accent-light);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

.card-img-container {
    height: 160px;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-item:hover .course-img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h5 {
    font-size: 17px;
    margin-bottom: 15px;
}

.progress-bar {
    background: #f1f5f9;
    height: 8px;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    background: linear-gradient(to right, var(--accent-light), var(--accent-teal));
    height: 100%;
    border-radius: 10px;
    width: 0; /* Akan dianimasikan oleh JS */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.label-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.float-right {
    float: right;
    color: var(--text-dark);
}

.sub-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.last-activity {
    margin-top: auto;
    font-size: 11px;
    background: #f0fdfa;
    color: #115e59;
    padding: 5px 12px;
    border-radius: 8px;
    width: fit-content;
}

.course-item.disabled {
    opacity: 0.8;
    filter: grayscale(0.5);
    background: #fafafa;
}

.coming-soon-btn {
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    margin-top: auto;
    border: 1px dashed #cbd5e1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-item {
    animation: fadeInUp 0.5s ease forwards;
}

@media (max-width: 768px) {
    .navbar { padding: 10px 20px; }
    .nav-menu { display: none; } /* Sembunyikan menu di mobile atau gunakan burger */
    .continue-banner { flex-direction: column; text-align: center; gap: 20px; }
    .course-grid { grid-template-columns: 1fr; }
}