/* ============================================================
   SUBJECTS HUB — /subjects/ — Medium → Class → Subject browser
   ============================================================ */
.up-subjects-hub { direction: rtl; max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }

.up-subjects-hub-hero {
    background: linear-gradient(135deg, #005BAC, #00A651);
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 10px;
}
.up-subjects-hub-hero h1 { color: #fff; font-size: 30px; margin: 10px 0 8px; }
.up-subjects-hub-hero p { font-size: 14px; opacity: 0.92; margin: 0; }

/* --- Medium tabs --- */
.up-hub-medium-tabs {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
    padding: 24px 20px 0;
}
.up-hub-medium-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 30px; font-weight: 700; font-size: 15px;
    background: #fff; border: 2px solid #E2E8F0; color: #64748B;
}
.up-hub-medium-tab.active {
    border-color: #005BAC; color: #005BAC; background: #EAF1FB;
    box-shadow: 0 6px 16px rgba(0,91,172,0.15);
}
.up-hub-medium-icon { font-size: 18px; }
.up-hub-medium-soon { opacity: 0.65; }
.up-hub-soon-badge {
    background: #F9A825; color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; margin-inline-start: 4px;
}

/* --- Class blocks --- */
.up-hub-classes { padding: 20px 20px 10px; }
.up-hub-class-block { margin-bottom: 36px; }
.up-hub-class-title {
    font-size: 24px; color: #0F172A; margin: 0 0 16px;
    padding-inline-start: 14px; border-inline-start: 6px solid #00A651;
}
.up-hub-subject-cards { display: flex; flex-wrap: wrap; gap: 18px; }

.up-hub-subject-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 16px; padding: 20px 22px;
    min-width: 230px; flex: 1 1 230px; max-width: 320px;
    text-decoration: none; color: #0F172A;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    border: 2px solid transparent;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.up-hub-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
    border-color: #005BAC;
}
.up-hub-subject-card-icon {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: linear-gradient(135deg, #EAF1FB, #DCEBFF);
}
.up-hub-subject-card-name { font-size: 18px; font-weight: 800; flex: 1; }
.up-hub-subject-card-arrow { font-size: 20px; color: #94A3B8; transition: transform 200ms ease; }
.up-hub-subject-card:hover .up-hub-subject-card-arrow { transform: translateX(-4px); color: #005BAC; }

/* --- Quick links footer --- */
.up-hub-quick-links {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
    padding: 20px 20px 10px;
}
.up-hub-quick-links .up-btn { padding: 14px 26px; border-radius: 40px; }

@media (max-width: 600px) {
    .up-subjects-hub-hero h1 { font-size: 24px; }
    .up-hub-class-title { font-size: 20px; }
    .up-hub-subject-card { min-width: 100%; max-width: 100%; }
}
