.grade-thumb {
    --thumb-from: #5b8fdb;
    --thumb-to: #4a7cc8;
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--thumb-from) 0%, var(--thumb-to) 100%);
    color: #fff;
}

.grade-thumb--primary {
    --thumb-from: #5b8fdb;
    --thumb-to: #4a7cc8;
}

.grade-thumb--middle {
    --thumb-from: #4faf8c;
    --thumb-to: #3d9475;
}

.grade-thumb--secondary {
    --thumb-from: #9b7fd4;
    --thumb-to: #7e63b8;
}

.grade-thumb__orb {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
}

.grade-thumb__orb--1 {
    width: 72px;
    height: 72px;
    top: -18px;
    right: 12px;
    opacity: 0.1;
}

.grade-thumb__orb--2 {
    width: 88px;
    height: 88px;
    bottom: -28px;
    left: 8px;
    opacity: 0.07;
}

.grade-thumb__orb--3 {
    width: 32px;
    height: 32px;
    top: 14px;
    left: 18px;
    opacity: 0.12;
}

.grade-thumb__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    padding: 14px 16px 12px;
    direction: rtl;
}

.grade-thumb__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
}

.grade-thumb__icon svg {
    width: 46px;
    height: 46px;
}

.grade-thumb__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.grade-thumb__number {
    font-family: Inter, 'Segoe UI', system-ui, sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}

.grade-thumb__title {
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.grade-thumb__stage {
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.94;
    margin-top: 2px;
}

.grade-thumb__line {
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
}

@media (max-width: 640px) {
    .grade-thumb {
        height: 120px;
        border-radius: 14px;
    }

    .grade-thumb__icon {
        width: 44px;
        height: 44px;
    }

    .grade-thumb__icon svg {
        width: 38px;
        height: 38px;
    }

    .grade-thumb__number {
        font-size: 42px;
    }

    .grade-thumb__title {
        font-size: 13px;
    }

    .grade-thumb__stage {
        font-size: 11px;
    }
}



.grade-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.grade-card {
    position: relative;
}

.grade-image {
    margin: 10px 12px 8px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fb;
    line-height: 0;
}

.grade-image .grade-thumb {
    display: block;
}

.grade-image-img {
    width: 100%;
    height: 140px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.grade-card-body {
    padding: 10px 14px 14px;
}

.grade-card-stage {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #0369a1;
    text-align: center;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.grade-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.35;
    margin: 0 0 10px;
}

.grade-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    margin-bottom: 5px;
}

.grade-card-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #dcfce7;
    flex-shrink: 0;
}

.grade-card-meta-text {
    font-size: 11px;
    font-weight: 500;
    color: #047857;
}

.grade-card-divider {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .grade-image {
        border-radius: 14px;
    }

    .grade-image-img {
        height: 120px;
        border-radius: 14px;
    }
}
