/* صفحة «كورساتي» — تعتمد على أنماط profile.css (الحاوية والحالة الفارغة والأزرار) */
.courses-head {
    margin-bottom: 24px;
    padding: 28px 32px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #112e4e 0%, #1c4670 100%);
}

.courses-head h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.courses-head h1 i { color: #c9962b; }
.courses-head p { margin: 0; opacity: .85; font-size: .95rem; }

.courses-state {
    padding: 50px 20px;
    text-align: center;
    color: #5d6f85;
}

.courses-state i { font-size: 30px; color: #c9962b; }
.courses-state p { margin: 12px 0 0; }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.courses-grid[hidden],
.courses-page [hidden] { display: none; }

.course-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid #c9962b;
    box-shadow: 0 2px 10px rgba(17, 46, 78, .06);
}

.course-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.course-card-ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e9eef5;
    color: #112e4e;
    font-size: 1.2rem;
}

.course-card h3 {
    margin: 0;
    color: #112e4e;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.6;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #5d6f85;
    font-size: .85rem;
}

.course-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: #e9eef5;
    color: #112e4e;
}

.course-badge.is-active { background: #e8f7ee; color: #14693a; }
.course-badge.is-completed { background: #e9eef5; color: #112e4e; }
.course-badge.is-pending { background: #fff4dc; color: #8a5a00; }

.course-note {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #e9eef5;
    color: #374151;
    font-size: .88rem;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .courses-head { padding: 22px 20px; }
    .courses-head h1 { font-size: 1.3rem; }
    .courses-grid { grid-template-columns: 1fr; }
}
