
/* ===== الأنماط المفقودة من levels.css (غير الموجودة في النظام الموحد) ===== */
/* تنسيقات المستوى (level-card) */
.level-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,252,0.98));
    border: 1px solid rgba(20, 68, 124, 0.08);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(17, 42, 78, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.level-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), rgba(19, 82, 153, 0.2));
}
.level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(17, 42, 78, 0.12);
    border-color: rgba(20, 68, 124, 0.14);
}
.level-card.is-hidden {
    display: none !important;
}
.level-card.active .sections-container {
    display: block;
    animation: academyFadeIn 0.25s ease;
}
@keyframes academyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.level-header {
    padding: 24px 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(244,248,252,0.9), rgba(255,255,255,0.82));
    border-bottom: 1px solid rgba(20, 68, 124, 0.08);
}
.level-info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.level-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    flex-shrink: 0;
}
.level-title {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    color: var(--text-main);
}
.level-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}
.level-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 68, 124, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background 0.22s ease;
    flex-shrink: 0;
}
.level-card.active .level-toggle {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}
.sections-container {
    display: none;
    padding: 24px;
}
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
    gap: 18px;
}
.section-box {
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.09);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.section-box:hover {
    border-color: rgba(21, 76, 138, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(17, 42, 78, 0.08);
}
.section-box.is-hidden {
    display: none !important;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(246,249,252,0.96), rgba(255,255,255,0.9));
    border-bottom: 1px solid rgba(20, 68, 124, 0.08);
}
.section-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-main);
}
.section-badge {
    min-width: fit-content;
    background: rgba(21, 76, 138, 0.1);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}
.section-content {
    padding: 18px;
}
.section-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 16px;
    min-height: 28px;
}
.learning-resources {
    background: linear-gradient(180deg, rgba(245,248,251,0.9), rgba(255,255,255,0.96));
    border: 1px solid rgba(20, 68, 124, 0.06);
    border-radius: 18px;
    padding: 16px;
}
.resources-title {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.subjects-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.subject-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(20, 68, 124, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.subject-item:hover {
    border-color: rgba(21, 76, 138, 0.2);
    box-shadow: 0 10px 20px rgba(17, 42, 78, 0.06);
    transform: translateY(-1px);
}
.subject-item.is-hidden {
    display: none !important;
}
.subject-item.is-complete {
    background: rgba(18, 151, 96, 0.06);
    border-color: rgba(18, 151, 96, 0.24);
}
.subject-check {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(20, 68, 124, 0.12);
    background: rgba(21, 76, 138, 0.05);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.subject-item.is-complete .subject-check {
    background: #129760;
    border-color: #129760;
    color: #fff;
}
.subject-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    min-width: 0;
}
.subject-media {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(21, 76, 138, 0.06);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.media-link[href="#"] {
    opacity: 0.45;
    pointer-events: none;
}
.media-link:hover {
    color: #fff;
    background: var(--primary);
    transform: scale(1.06);
}
.media-link.video:hover { background: #e74c3c; }
.media-link.audio:hover { background: #8e44ad; }
.media-link.pdf:hover { background: #d97a08; }
.detailed-description {
    background: linear-gradient(180deg, rgba(21, 76, 138, 0.06), rgba(255,255,255,0.95));
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(20, 68, 124, 0.08);
    line-height: 1.9;
    color: var(--text-main);
    font-size: 1.04rem;
}
.detailed-description h3 {
    color: var(--text-main);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* تنسيقات الأكاديمية (academy-explorer, panels, progress, quick links) */
.academy-explorer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.9fr);
    gap: 18px;
}
.academy-explorer-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.98));
    border: 1px solid rgba(20, 68, 124, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(17, 42, 78, 0.08);
    padding: 22px;
}
.explorer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(22, 78, 142, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.academy-search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.75fr);
    gap: 14px;
    margin-top: 20px;
}
.academy-search-field,
.academy-select-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.12);
    border-radius: 18px;
    padding: 0 16px;
    min-height: 58px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.academy-search-field i {
    color: var(--primary);
    font-size: 1rem;
}
.academy-search-field input,
.academy-select-field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}
.academy-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.academy-action-btn {
    border: 0;
    background: linear-gradient(135deg, var(--primary), #1857a2);
    color: #fff;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(19, 82, 153, 0.18);
    font-weight: 700;
    font-family: inherit;
}
.academy-action-btn:hover {
    transform: translateY(-2px);
}
.academy-action-btn-light {
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(20, 68, 124, 0.14);
    box-shadow: none;
}
.academy-progress-card {
    background: linear-gradient(180deg, #0f3767, #174e91);
    border-radius: 22px;
    color: #fff;
    padding: 18px;
    box-shadow: 0 18px 30px rgba(12, 41, 77, 0.18);
}
.academy-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.academy-progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    overflow: hidden;
}
.academy-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9fd3ff, #ffffff);
    transition: width 0.25s ease;
}
.academy-progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.academy-progress-stats div {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 12px;
}
.academy-progress-stats strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 5px;
}
.academy-quick-links {
    margin-top: 16px;
    padding: 16px;
    background: rgba(21, 76, 138, 0.05);
    border: 1px solid rgba(20, 68, 124, 0.08);
    border-radius: 20px;
}
.academy-quick-links-title {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.academy-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.academy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.12);
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.academy-chip:hover,
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(14, 74, 138, 0.18);
}
.filter-container {
    position: sticky;
    top: 78px;
    z-index: 10;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(20, 68, 124, 0.08);
    box-shadow: 0 14px 28px rgba(17, 42, 78, 0.08);
}
.filter-title {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 12px;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.12);
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
/* تنسيقات إضافية للشاشات الصغيرة */
@media (max-width: 992px) {
    .academy-explorer-grid,
    .academy-search-wrap {
        grid-template-columns: 1fr;
    }
    .filter-container {
        position: static;
    }
}
@media (max-width: 768px) {
    .level-header,
    .section-header,
    .subject-item {
        grid-template-columns: none;
    }
    .level-header {
        padding: 20px;
        align-items: flex-start;
    }
    .level-info {
        align-items: flex-start;
    }
    .academy-progress-stats {
        grid-template-columns: 1fr;
    }
    .subject-item {
        grid-template-columns: auto 1fr;
    }
    .subject-media {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-inline-start: 52px;
    }
}
@media (max-width: 480px) {
    .academy-explorer-panel,
    .filter-container,
    .sections-container,
    .section-content,
    .learning-resources,
    .detailed-description {
        padding: 16px;
    }
    .level-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }
    .academy-chip,
    .filter-btn,
    .academy-action-btn {
        width: 100%;
    }
    .subject-media {
        padding-inline-start: 0;
    }
}
style>
/* ===== الأنماط المفقودة من levels.css (غير الموجودة في النظام الموحد) ===== */
/* تنسيقات المستوى (level-card) */
.level-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,252,0.98));
    border: 1px solid rgba(20, 68, 124, 0.08);
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(17, 42, 78, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.level-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), rgba(19, 82, 153, 0.2));
}
.level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(17, 42, 78, 0.12);
    border-color: rgba(20, 68, 124, 0.14);
}
.level-card.is-hidden {
    display: none !important;
}
.level-card.active .sections-container {
    display: block;
    animation: academyFadeIn 0.25s ease;
}
@keyframes academyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.level-header {
    padding: 24px 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(244,248,252,0.9), rgba(255,255,255,0.82));
    border-bottom: 1px solid rgba(20, 68, 124, 0.08);
}
.level-info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.level-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    flex-shrink: 0;
}
.level-title {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    color: var(--text-main);
}
.level-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}
.level-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 68, 124, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background 0.22s ease;
    flex-shrink: 0;
}
.level-card.active .level-toggle {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}
.sections-container {
    display: none;
    padding: 24px;
}
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
    gap: 18px;
}
.section-box {
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.09);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.section-box:hover {
    border-color: rgba(21, 76, 138, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(17, 42, 78, 0.08);
}
.section-box.is-hidden {
    display: none !important;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(246,249,252,0.96), rgba(255,255,255,0.9));
    border-bottom: 1px solid rgba(20, 68, 124, 0.08);
}
.section-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-main);
}
.section-badge {
    min-width: fit-content;
    background: rgba(21, 76, 138, 0.1);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}
.section-content {
    padding: 18px;
}
.section-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 16px;
    min-height: 28px;
}
.learning-resources {
    background: linear-gradient(180deg, rgba(245,248,251,0.9), rgba(255,255,255,0.96));
    border: 1px solid rgba(20, 68, 124, 0.06);
    border-radius: 18px;
    padding: 16px;
}
.resources-title {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.subjects-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.subject-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(20, 68, 124, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.subject-item:hover {
    border-color: rgba(21, 76, 138, 0.2);
    box-shadow: 0 10px 20px rgba(17, 42, 78, 0.06);
    transform: translateY(-1px);
}
.subject-item.is-hidden {
    display: none !important;
}
.subject-item.is-complete {
    background: rgba(18, 151, 96, 0.06);
    border-color: rgba(18, 151, 96, 0.24);
}
.subject-check {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(20, 68, 124, 0.12);
    background: rgba(21, 76, 138, 0.05);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.subject-item.is-complete .subject-check {
    background: #129760;
    border-color: #129760;
    color: #fff;
}
.subject-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    min-width: 0;
}
.subject-media {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(21, 76, 138, 0.06);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.media-link[href="#"] {
    opacity: 0.45;
    pointer-events: none;
}
.media-link:hover {
    color: #fff;
    background: var(--primary);
    transform: scale(1.06);
}
.media-link.video:hover { background: #e74c3c; }
.media-link.audio:hover { background: #8e44ad; }
.media-link.pdf:hover { background: #d97a08; }
.detailed-description {
    background: linear-gradient(180deg, rgba(21, 76, 138, 0.06), rgba(255,255,255,0.95));
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(20, 68, 124, 0.08);
    line-height: 1.9;
    color: var(--text-main);
    font-size: 1.04rem;
}
.detailed-description h3 {
    color: var(--text-main);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* تنسيقات الأكاديمية (academy-explorer, panels, progress, quick links) */
.academy-explorer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.9fr);
    gap: 18px;
}
.academy-explorer-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.98));
    border: 1px solid rgba(20, 68, 124, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(17, 42, 78, 0.08);
    padding: 22px;
}
.explorer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(22, 78, 142, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.academy-search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.75fr);
    gap: 14px;
    margin-top: 20px;
}
.academy-search-field,
.academy-select-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.12);
    border-radius: 18px;
    padding: 0 16px;
    min-height: 58px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.academy-search-field i {
    color: var(--primary);
    font-size: 1rem;
}
.academy-search-field input,
.academy-select-field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}
.academy-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.academy-action-btn {
    border: 0;
    background: linear-gradient(135deg, var(--primary), #1857a2);
    color: #fff;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(19, 82, 153, 0.18);
    font-weight: 700;
    font-family: inherit;
}
.academy-action-btn:hover {
    transform: translateY(-2px);
}
.academy-action-btn-light {
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(20, 68, 124, 0.14);
    box-shadow: none;
}
.academy-progress-card {
    background: linear-gradient(180deg, #0f3767, #174e91);
    border-radius: 22px;
    color: #fff;
    padding: 18px;
    box-shadow: 0 18px 30px rgba(12, 41, 77, 0.18);
}
.academy-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.academy-progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    overflow: hidden;
}
.academy-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9fd3ff, #ffffff);
    transition: width 0.25s ease;
}
.academy-progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.academy-progress-stats div {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 12px;
}
.academy-progress-stats strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 5px;
}
.academy-quick-links {
    margin-top: 16px;
    padding: 16px;
    background: rgba(21, 76, 138, 0.05);
    border: 1px solid rgba(20, 68, 124, 0.08);
    border-radius: 20px;
}
.academy-quick-links-title {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.academy-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.academy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.12);
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.academy-chip:hover,
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(14, 74, 138, 0.18);
}
.filter-container {
    position: sticky;
    top: 78px;
    z-index: 10;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(20, 68, 124, 0.08);
    box-shadow: 0 14px 28px rgba(17, 42, 78, 0.08);
}
.filter-title {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 12px;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(20, 68, 124, 0.12);
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
/* تنسيقات إضافية للشاشات الصغيرة */
@media (max-width: 992px) {
    .academy-explorer-grid,
    .academy-search-wrap {
        grid-template-columns: 1fr;
    }
    .filter-container {
        position: static;
    }
}
@media (max-width: 768px) {
    .level-header,
    .section-header,
    .subject-item {
        grid-template-columns: none;
    }
    .level-header {
        padding: 20px;
        align-items: flex-start;
    }
    .level-info {
        align-items: flex-start;
    }
    .academy-progress-stats {
        grid-template-columns: 1fr;
    }
    .subject-item {
        grid-template-columns: auto 1fr;
    }
    .subject-media {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-inline-start: 52px;
    }
}
@media (max-width: 480px) {
    .academy-explorer-panel,
    .filter-container,
    .sections-container,
    .section-content,
    .learning-resources,
    .detailed-description {
        padding: 16px;
    }
    .level-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }
    .academy-chip,
    .filter-btn,
    .academy-action-btn {
        width: 100%;
    }
    .subject-media {
        padding-inline-start: 0;
    }
}
</style>