:root {
    --primary-blue: #2563eb;
    --primary-violet: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}
* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 20% 30%, rgba(191, 219, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 181, 253, 0.25) 0%, transparent 50%),
        #f8fafc;
    background-attachment: fixed;
    color: #0f172a;
    margin: 0; min-height: 100vh;
}
.heading-font { font-family: 'Inter'; font-weight: 800; }

.container { width: 100%; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.25rem; } }
@media (min-width: 1024px) { .container { padding: 0 1.5rem; max-width: max(640px, 50vw); } }
@media (min-width: 1440px) { .container { max-width: max(640px, 42vw); } }
@media (min-width: 1800px) { .container { max-width: max(640px, 38vw); } }

.llos-nav { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.llos-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; gap: 0.75rem; }
@media (min-width: 1024px) { .llos-nav-inner { padding: 0.75rem 1.5rem; } }
.llos-nav-brand { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.llos-nav-logo { font-size: 1.25rem; font-weight: 900; line-height: 1; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
@media (min-width: 768px) { .llos-nav-logo { font-size: 1.375rem; } }
.llos-nav-section { font-size: 0.75rem; font-weight: 700; color: #475569; padding: 0.25rem 0.625rem; background: #f1f5f9; border-radius: 99px; letter-spacing: 0.04em; }
@media (max-width: 480px) { .llos-nav-section { display: none; } }
.llos-nav-burger { display: flex; flex-direction: column; background: none; border: none; cursor: pointer; padding: 0.5rem; gap: 0.25rem; border-radius: 0.5rem; }
.llos-nav-burger:hover { background: #f1f5f9; }
.llos-nav-burger span { width: 1.25rem; height: 2px; background: #334155; border-radius: 2px; transition: all 0.25s ease; }
.llos-nav.is-open .llos-nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.llos-nav.is-open .llos-nav-burger span:nth-child(2) { opacity: 0; }
.llos-nav.is-open .llos-nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .llos-nav-burger { display: none; } }
.llos-nav-links { list-style: none; margin: 0; padding: 0; display: none; }
.llos-nav-links li { position: relative; }
.llos-nav-links a { display: flex; align-items: center; gap: 0.375rem; padding: 0.625rem 0.875rem; color: #1e293b; font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-radius: 0.5rem; transition: all 0.18s ease; }
.llos-nav-links a:hover { background: #f1f5f9; color: #1d4ed8; }
.llos-nav-links a.active { color: #1d4ed8; }
@media (min-width: 1024px) { .llos-nav-links { display: flex; align-items: center; gap: 0.25rem; } }
@media (max-width: 1023px) {
    .llos-nav.is-open .llos-nav-links { display: block; position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 1px solid #e2e8f0; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12); padding: 0.5rem; max-height: calc(100vh - 60px); overflow-y: auto; }
    .llos-nav.is-open .llos-nav-links li { display: block; }
}

.hero { padding: 1.25rem 0; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #faf5ff 100%); border-bottom: 1px solid rgba(226,232,240,0.5); }
@media (min-width: 768px) { .hero { padding: 1.75rem 0; } }
.hero-title { font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.2; }
@media (min-width: 768px) { .hero-title { font-size: 1.875rem; } }
.hero-meta { font-size: 0.875rem; color: #64748b; margin-top: 0.25rem; }

.search-row { display: flex; gap: 0.5rem; margin-top: 0.875rem; }
.search-input {
    flex: 1; padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    background: white; border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.18s ease;
}
.search-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-wrap { position: relative; flex: 1; }
.search-wrap::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 0.875rem;
}

.chip-row { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.875rem; }
.chip {
    padding: 0.375rem 0.75rem;
    background: white; border: 1.5px solid #e2e8f0;
    border-radius: 99px;
    font-size: 0.75rem; font-weight: 600; color: #475569;
    cursor: pointer;
    transition: all 0.18s ease;
}
.chip:hover { border-color: #93c5fd; }
.chip.selected {
    background: var(--primary-gradient); color: white; border-color: transparent;
}

.exam-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0;
}
@media (min-width: 768px) { .exam-list { grid-template-columns: 1fr 1fr; gap: 0.625rem; } }

.exam-row {
    display: flex; align-items: center; gap: 0.875rem;
    background: rgba(255,255,255,0.85);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none; color: inherit;
    transition: all 0.18s ease;
}
.exam-row:hover { background: white; border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgba(37,99,235,0.15); }
.exam-row-emoji {
    width: 2.25rem; height: 2.25rem; flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.exam-row-body { flex: 1; min-width: 0; }
.exam-row-name { font-size: 0.9375rem; font-weight: 700; color: #0f172a; line-height: 1.2; margin-bottom: 0.125rem; }
.exam-row-meta { font-size: 0.75rem; color: #64748b; line-height: 1.3; }
.exam-row-cat {
    font-size: 0.625rem; font-weight: 700; color: #2563eb;
    text-transform: uppercase; letter-spacing: 0.06em;
    white-space: nowrap;
}

.group-head {
    font-size: 0.75rem; font-weight: 800; color: #475569;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin: 1rem 0 0.5rem;
    grid-column: 1 / -1;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(203,213,225,0.6);
}
.group-head:first-child { border-top: none; padding-top: 0; }

.empty {
    text-align: center; padding: 3rem 1rem; color: #64748b;
}
.empty i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 0.625rem; display: block; }
