/* Service Learning Portal — Maris Stella College ERP */
:root {
    --sl-primary: #129793;
    --sl-primary-dark: #0e7c79;
    --sl-accent: #6366f1;
    --sl-pink: #ec4899;
    --sl-bg: #f0f4f8;
    --sl-card: rgba(255, 255, 255, 0.82);
    --sl-border: rgba(43, 55, 75, 0.10);
    --sl-text: #1e293b;
    --sl-muted: #64748b;
    --sl-shadow: 0 12px 40px rgba(18, 151, 147, 0.10);
    --sl-radius: 18px;
}

[data-sl-theme="dark"] {
    --sl-bg: #0a0f1a;
    --sl-card: rgba(16, 24, 41, 0.88);
    --sl-border: rgba(255, 255, 255, 0.08);
    --sl-text: #f1f5f9;
    --sl-muted: rgba(241, 245, 249, 0.55);
    --sl-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

body.sl-portal {
    font-family: 'Poppins', 'Roboto', system-ui, sans-serif;
    background: var(--sl-bg);
    color: var(--sl-text);
    min-height: 100vh;
}

.sl-nav {
    background: linear-gradient(90deg, var(--sl-primary-dark), var(--sl-primary), var(--sl-accent));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sl-nav .navbar-brand { font-weight: 700; color: #fff !important; }
.sl-nav .nav-link { color: rgba(255,255,255,.92) !important; font-weight: 500; font-size: .9rem; }
.sl-nav .nav-link:hover, .sl-nav .nav-link.active { color: #fff !important; background: rgba(255,255,255,.12); border-radius: 8px; }

.sl-hero {
    background: linear-gradient(135deg, var(--sl-primary-dark) 0%, var(--sl-primary) 35%, var(--sl-accent) 70%, var(--sl-pink) 100%);
    color: #fff;
    border-radius: var(--sl-radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--sl-shadow);
    position: relative;
    overflow: hidden;
}

.sl-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}

.sl-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.sl-hero p { opacity: .95; font-size: 1.05rem; max-width: 640px; margin: 0; }

.sl-glass {
    background: var(--sl-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    box-shadow: var(--sl-shadow);
    padding: 1.25rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sl-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(18, 151, 147, 0.14);
}

.sl-stat {
    text-align: center;
    padding: 1rem;
}

.sl-stat .val {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sl-primary), var(--sl-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sl-stat .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sl-muted); font-weight: 700; }

.sl-prog-card {
    border-left: 4px solid var(--sl-primary);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sl-prog-card.featured { border-left-color: var(--sl-accent); }

.sl-prog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; color: var(--sl-text); }
.sl-prog-card p { font-size: .85rem; color: var(--sl-muted); margin: 0; }

.sl-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(18, 151, 147, .12);
    color: var(--sl-primary-dark);
}

.sl-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(18, 151, 147, .12);
    overflow: hidden;
}

.sl-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sl-primary), var(--sl-accent));
}

.sl-timeline { position: relative; padding-left: 1.5rem; }
.sl-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--sl-primary), var(--sl-accent));
}

.sl-timeline-item {
    position: relative;
    padding-bottom: 1rem;
    padding-left: .75rem;
}

.sl-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.15rem;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sl-primary);
    border: 2px solid var(--sl-bg);
}

.sl-timeline-item.done::before { background: #22c55e; }
.sl-timeline-item.active::before { background: var(--sl-accent); box-shadow: 0 0 0 4px rgba(99,102,241,.25); }

.sl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.sl-gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--sl-border);
}

.sl-gallery-slideshow {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    background: var(--sl-card);
    box-shadow: var(--sl-shadow);
}

.sl-gallery-carousel .carousel-inner {
    background: #0f172a;
}

.sl-gallery-slide-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    background: #0f172a;
}

.sl-gallery-slideshow-compact .sl-gallery-slide-image {
    aspect-ratio: 16/10;
    object-fit: cover;
}

.sl-gallery-caption {
    background: linear-gradient(transparent, rgba(15, 23, 42, .85));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem .75rem;
}

.sl-gallery-control {
    width: 3rem;
    opacity: .95;
}

.sl-gallery-thumb-strip {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .65rem;
    background: var(--sl-card);
}

.sl-gallery-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    background: none;
    flex: 0 0 72px;
    cursor: pointer;
}

.sl-gallery-thumb img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.sl-gallery-thumb.active,
.sl-gallery-thumb:hover {
    border-color: var(--sl-primary);
}

.sl-breadcrumb { font-size: .82rem; color: var(--sl-muted); margin-bottom: 1rem; }
.sl-breadcrumb a { color: var(--sl-primary); text-decoration: none; }

.sl-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--sl-border);
}

.sl-section-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--sl-text);
}

.sl-search-bar {
    border-radius: 999px;
    border: 1px solid var(--sl-border);
    padding: .5rem 1rem;
    background: var(--sl-card);
    box-shadow: var(--sl-shadow);
}

@media (max-width: 768px) {
    .sl-hero { padding: 1.5rem 1.25rem; }
}

/* UNISERVITATE programme page */
.sl-uni-page {
    background: #fff;
    border-radius: var(--sl-radius);
    overflow: hidden;
    box-shadow: var(--sl-shadow);
    margin-bottom: 2rem;
}

.sl-uni-topbar {
    height: 6px;
    background: #335c71;
}

.sl-uni-banner {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid rgba(51, 92, 113, 0.12);
}

.sl-uni-logo {
    max-width: min(520px, 100%);
    height: auto;
    display: inline-block;
}

.sl-uni-body {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.75;
}

.sl-uni-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1a202c;
    margin-bottom: 1.25rem;
}

.sl-uni-body p {
    margin-bottom: 1.1rem;
    text-align: justify;
}

.sl-uni-list {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
}

.sl-uni-list li {
    margin-bottom: 0.85rem;
    text-align: justify;
}

.sl-uni-vision {
    background: linear-gradient(135deg, rgba(18,151,147,.1), rgba(99,102,241,.08));
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 1.25rem 1.5rem;
}

.sl-uni-vision blockquote {
    margin: 0;
    font-style: italic;
    line-height: 1.7;
    color: var(--sl-text);
    border-left: 4px solid var(--sl-primary);
    padding-left: 1rem;
}

[data-sl-theme="dark"] .sl-uni-page {
    background: var(--sl-card);
}

[data-sl-theme="dark"] .sl-uni-banner {
    background: var(--sl-card);
}

[data-sl-theme="dark"] .sl-uni-body,
[data-sl-theme="dark"] .sl-uni-title {
    color: var(--sl-text);
}

@media (max-width: 768px) {
    .sl-uni-body { padding: 1.25rem 1rem 1.75rem; }
    .sl-uni-banner { padding: 1.25rem 1rem; }
}

/* Small Grant Research Fund project landing */
.sl-sgrf-page { margin-bottom: 2rem; }

.sl-sgrf-vision-logo {
    background: #fff;
    border-radius: var(--sl-radius);
    overflow: hidden;
    box-shadow: var(--sl-shadow);
    border: 1px solid var(--sl-border);
}

.sl-sgrf-vision-logo-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.sl-sgrf-top-logo {
    max-width: min(320px, 100%);
    height: auto;
}

[data-sl-theme="dark"] .sl-sgrf-vision-logo {
    background: var(--sl-card);
}

.sl-sgrf-breadcrumb {
    font-size: .82rem;
    color: var(--sl-muted);
    margin-bottom: 1rem;
}

.sl-sgrf-breadcrumb a { color: var(--sl-primary); text-decoration: none; }

.sl-sgrf-hero {
    position: relative;
    border-radius: var(--sl-radius);
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.75rem;
    box-shadow: var(--sl-shadow);
}

.sl-sgrf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 45, 58, 0.88) 0%, rgba(18, 151, 147, 0.55) 100%);
}

.sl-sgrf-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2.5rem 2rem;
    max-width: 820px;
}

.sl-sgrf-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}

.sl-sgrf-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.sl-sgrf-subtitle {
    font-size: 1.05rem;
    opacity: .95;
    margin-bottom: 1.5rem;
}

.sl-sgrf-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sl-sgrf-stat {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: .65rem 1rem;
    min-width: 140px;
}

.sl-sgrf-stat i { font-size: 1.25rem; opacity: .9; }
.sl-sgrf-stat strong { display: block; font-size: 1rem; line-height: 1.2; }
.sl-sgrf-stat span { font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }

.sl-sgrf-intro {
    background: var(--sl-card);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 1.5rem;
    box-shadow: var(--sl-shadow);
}

.sl-sgrf-intro h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.sl-sgrf-intro p { text-align: justify; line-height: 1.75; margin-bottom: 1rem; color: var(--sl-text); }
.sl-sgrf-intro p:last-child { margin-bottom: 0; }

.sl-sgrf-glance {
    background: linear-gradient(180deg, rgba(18,151,147,.08), var(--sl-card));
    border: 1px solid rgba(18,151,147,.2);
    border-radius: var(--sl-radius);
    padding: 1.25rem;
    box-shadow: var(--sl-shadow);
    height: 100%;
}

.sl-sgrf-glance h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--sl-primary-dark); }
.sl-sgrf-glance dl div { margin-bottom: .85rem; padding-bottom: .85rem; border-bottom: 1px solid var(--sl-border); }
.sl-sgrf-glance dl div:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sl-sgrf-glance dt { font-size: .78rem; font-weight: 700; color: var(--sl-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem; }
.sl-sgrf-glance dt i { margin-right: .35rem; color: var(--sl-primary); }
.sl-sgrf-glance dd { margin: 0; font-size: .9rem; line-height: 1.5; }

.sl-sgrf-status-done {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    font-size: .82rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.sl-sgrf-cards { margin-top: .5rem; margin-bottom: 2rem; }

.sl-sgrf-repository-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.sl-sgrf-card {
    border-radius: var(--sl-radius);
    padding: 1.15rem;
    height: 100%;
    border: 1px solid var(--sl-border);
    background: var(--sl-card);
    box-shadow: var(--sl-shadow);
    display: flex;
    flex-direction: column;
}

.sl-sgrf-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.sl-sgrf-card-green { border-top: 4px solid #22c55e; }
.sl-sgrf-card-purple { border-top: 4px solid #a855f7; }
.sl-sgrf-card-blue { border-top: 4px solid #3b82f6; }
.sl-sgrf-card-orange { border-top: 4px solid #f97316; }

.sl-sgrf-card-list { flex: 1; margin-bottom: .75rem; }

.sl-sgrf-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid var(--sl-border);
    font-size: .82rem;
    text-decoration: none;
    color: inherit;
}

.sl-sgrf-doc-item:last-child { border-bottom: 0; }
.sl-sgrf-doc-item.sl-sgrf-muted { color: var(--sl-muted); }

.sl-sgrf-btn-green { background: #22c55e; color: #fff; border: 0; font-weight: 600; }
.sl-sgrf-btn-purple { background: #a855f7; color: #fff; border: 0; font-weight: 600; }
.sl-sgrf-btn-blue { background: #3b82f6; color: #fff; border: 0; font-weight: 600; }
.sl-sgrf-btn-orange { background: #f97316; color: #fff; border: 0; font-weight: 600; }

.sl-sgrf-gallery-main img { width: 100%; border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; }
.sl-sgrf-gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sl-sgrf-gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

.sl-sgrf-gallery-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--sl-muted);
    background: rgba(168,85,247,.06);
    border-radius: 10px;
    flex: 1;
}

.sl-sgrf-video-preview {
    background: #1e293b;
    border-radius: 10px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: .5rem;
}

.sl-sgrf-video-item {
    font-size: .82rem;
    padding: .35rem 0;
    border-bottom: 1px solid var(--sl-border);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sl-sgrf-video-item i { color: #3b82f6; }
.sl-sgrf-video-item small { margin-left: auto; color: var(--sl-muted); }

.sl-sgrf-impact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
    flex: 1;
}

.sl-sgrf-impact-list li {
    font-size: .82rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--sl-border);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sl-sgrf-impact-list li i { color: #f97316; width: 18px; text-align: center; }

.sl-sgrf-footer { margin-top: 1rem; }

.sl-sgrf-vision {
    background: linear-gradient(135deg, rgba(18,151,147,.1), rgba(99,102,241,.08));
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 1.5rem;
}

.sl-sgrf-vision-top {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.sl-sgrf-vision-top blockquote {
    margin: 0;
    font-style: italic;
    line-height: 1.7;
    color: var(--sl-text);
    border-left: 4px solid var(--sl-primary);
    padding-left: 1rem;
}

.sl-sgrf-vision h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.sl-sgrf-vision blockquote {
    margin: 0;
    font-style: italic;
    line-height: 1.7;
    color: var(--sl-text);
    border-left: 4px solid var(--sl-primary);
    padding-left: 1rem;
}

.sl-sgrf-footer-logo { max-width: min(320px, 100%); height: auto; }

/* ── Repository v2 (2×2 grid) ── */
.sl-repo { margin-bottom: 2.5rem; }
.sl-repo-header { margin-bottom: 1.5rem; }
.sl-repo-subtitle { color: var(--sl-muted); margin: .35rem 0 0; font-size: .95rem; }

.sl-glass-card {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sl-glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

.sl-repo-card-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
    color: #fff;
}

.sl-repo-card-head i { font-size: 1.35rem; opacity: .95; }
.sl-repo-card-head h3 { font-size: 1rem; font-weight: 700; margin: 0; color: #fff; }
.sl-repo-card-head span { font-size: .78rem; opacity: .9; display: block; }

.sl-repo-head-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sl-repo-head-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.sl-repo-head-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sl-repo-head-orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.sl-repo-card-body { flex: 1; padding: 1rem 1.15rem; min-height: 280px; }
.sl-repo-card-foot { padding: .85rem 1.15rem 1.15rem; margin-top: auto; }

.sl-repo-doc-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid var(--sl-border);
}

.sl-repo-doc-row:last-child { border-bottom: 0; }
.sl-repo-doc-icon { font-size: 1.35rem; width: 28px; text-align: center; }
.sl-repo-doc-title { display: block; font-size: .88rem; line-height: 1.3; }
.sl-repo-doc-sub { display: flex; flex-wrap: wrap; gap: .35rem .65rem; font-size: .72rem; color: var(--sl-muted); margin-top: .2rem; }
.sl-repo-doc-actions { display: flex; gap: .35rem; }

.sl-repo-gallery-wrap { position: relative; }
.sl-repo-carousel .carousel-inner { border-radius: 14px; overflow: hidden; background: #0f172a; min-height: 320px; }
.sl-repo-gallery-image { width: 100%; height: 320px; object-fit: cover; display: block; }
.sl-repo-gallery-slide-btn {
    border: 0; padding: 0; width: 100%; position: relative; background: none; cursor: zoom-in;
}
.sl-repo-gallery-zoom-hint {
    position: absolute; right: .75rem; bottom: .75rem;
    background: rgba(0,0,0,.45); color: #fff; border-radius: 999px;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.sl-repo-gallery-counter {
    position: absolute; top: .65rem; right: .65rem; z-index: 3;
    background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 700;
    padding: .25rem .55rem; border-radius: 999px;
}
.sl-repo-thumb-strip {
    display: flex; gap: .45rem; overflow-x: auto; padding: .65rem 0 0;
}
.sl-repo-thumb {
    border: 2px solid transparent; border-radius: 8px; padding: 0; background: none;
    flex: 0 0 64px; cursor: pointer;
}
.sl-repo-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.sl-repo-thumb.active, .sl-repo-thumb:hover { border-color: #a855f7; }

.sl-repo-video-feature { margin-bottom: .75rem; }
.sl-repo-video-player { width: 100%; min-height: 220px; border-radius: 12px; background: #0f172a; object-fit: cover; }
.sl-repo-video-empty { min-height: 220px; }
.sl-repo-video-item {
    display: flex; align-items: center; gap: .65rem; width: 100%;
    border: 1px solid var(--sl-border); border-radius: 10px;
    padding: .5rem .65rem; margin-bottom: .45rem; background: #fff;
    text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.sl-repo-video-item.active, .sl-repo-video-item:hover { border-color: #3b82f6; background: rgba(59,130,246,.06); }
.sl-repo-video-thumb {
    width: 36px; height: 36px; border-radius: 8px; background: #dbeafe; color: #2563eb;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sl-repo-video-info strong { display: block; font-size: .82rem; }
.sl-repo-video-info small { color: var(--sl-muted); font-size: .72rem; }

.sl-repo-impact-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem;
}
.sl-repo-impact-widget {
    background: linear-gradient(180deg, rgba(249,115,22,.08), rgba(255,255,255,.9));
    border: 1px solid rgba(249,115,22,.15); border-radius: 12px;
    padding: .75rem; text-align: center; transition: transform .2s;
}
.sl-repo-impact-widget:hover { transform: scale(1.02); }
.sl-repo-impact-widget i { color: #f97316; font-size: 1.1rem; margin-bottom: .25rem; }
.sl-repo-impact-widget strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.sl-repo-impact-widget span { font-size: .68rem; color: var(--sl-muted); text-transform: uppercase; letter-spacing: .03em; }

.sl-lightbox-modal .modal-content { background: #0f172a; border: 0; }
.sl-lightbox-toolbar { border-bottom: 1px solid rgba(255,255,255,.1); }
.sl-lightbox-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 70vh; position: relative; overflow: hidden; background: #0f172a;
}
.sl-lightbox-image {
    max-width: 100%; max-height: 78vh; object-fit: contain;
    transition: transform .2s ease;
}
.sl-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: 0; color: #fff;
    width: 44px; height: 44px; border-radius: 999px; z-index: 2;
}
.sl-lightbox-prev { left: 1rem; }
.sl-lightbox-next { right: 1rem; }
.sl-doc-preview-frame { width: 100%; min-height: 70vh; border: 0; }

.text-purple { color: #a855f7 !important; }

@media (max-width: 768px) {
    .sl-sgrf-hero-content { padding: 1.5rem 1.25rem; }
    .sl-sgrf-stats { flex-direction: column; }
    .sl-repo-gallery-image, .sl-repo-carousel .carousel-inner { min-height: 220px; }
    .sl-repo-gallery-image { height: 220px; }
    .sl-repo-impact-grid { grid-template-columns: 1fr; }
}
