:root {
    --brand-navy: #003150;
    --brand-yellow: #feb401;
    --text-main: #1e293b;
    --text-soft: #64748b;
    --bg-soft: #f8fafc;
    --line: #e2e8f0;
    --font-primary: "Roboto", Arial, sans-serif;
    --font-accent: "Roboto Condensed", "Roboto", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-primary); color: var(--text-main); background: #fff; line-height: 1.6; }
.container { width: min(1100px, 92%); margin-inline: auto; }

.nav { background: var(--brand-navy); color: #fff; border-bottom: 4px solid var(--brand-yellow); padding: 14px 0; }
.brand { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }

.hero { position: relative; color: #fff; min-height: 220px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.hero-inner { position: relative; z-index: 1; padding: 36px 0; }
.badge { display: inline-block; background: var(--brand-yellow); color: #111827; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .45rem; margin-bottom: 12px; }
.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.2; }
.hero-desc {
    margin: 16px 0 0;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}
/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
}
.stat-item {
    text-align: left;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--brand-yellow);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}
.layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 4rem; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); } }

.meta { font-size: .78rem; text-transform: uppercase; color: #475569; display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1rem; }
.cover { background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.cover img { width: 100%; height: auto; display: block; }

.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.article-body h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.article-body p { margin: 0 0 1em; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body blockquote { border-left: 4px solid #005eb8; background: #eef6ff; padding: .8rem 1rem; color: #334155; }
.article-body a { color: #005eb8; }
.article-body img { max-width: 100%; border-radius: 8px; }
.article-body code { background: #f1f5f9; padding: .1em .35em; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.note { border: 1px solid var(--line); background: var(--bg-soft); padding: 1rem; }
.note h3 { margin: 0 0 .5rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; }

.footer { margin-top: 2rem; background: var(--brand-navy); color: #fff; border-top: 4px solid var(--brand-yellow); }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem 0; }
.footer-logo { height: 28px; width: auto; }
.footer-ornament { width: 100%; display: block; opacity: .9; }

/* ========================================= */
/* CSS KUSTOM KELOMPOK C4A (STAF & SOP)      */
/* ========================================= */

:root {
    --navy: #003150;
    --navy-light: #004a73;
    --gold: #feb401;
    --gold-light: #ffc933;
    --gold-pale: #fff8e6;
    --shadow-sm: 0 2px 12px rgba(0, 49, 80, .08);
    --shadow-md: 0 8px 32px rgba(0, 49, 80, .14);
    --shadow-lg: 0 20px 60px rgba(0, 49, 80, .18);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* HERO SECTION CUSTOM */
.c4a-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #001a2b 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
    padding: 60px 0;
    color: #fff;
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.c4a-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--navy-light));
}

.c4a-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(254, 180, 1, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.c4a-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .c4a-hero-inner {
        padding: 0 32px;
    }
}

.c4a-hero-tag {
    color: var(--gold) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#assignment-body .c4a-hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 16px !important;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

#assignment-body .c4a-hero-title .highlight-orange {
    color: var(--gold) !important;
}

#assignment-body .c4a-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 0 32px !important;
}

/* SLEEK MINI STATS */
#assignment-body .hero-stats {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin-top: 28px !important;
}

#assignment-body .stat-item {
    text-align: left !important;
}

#assignment-body .stat-number {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--gold) !important;
    margin-bottom: 2px !important;
    font-family: var(--font-accent) !important;
    line-height: 1 !important;
}

#assignment-body .stat-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
}

#assignment-body .stat-divider {
    width: 1px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .c4a-hero {
        padding: 40px 0;
    }
}

/* CONTENT SECTIONS */
.content-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-pale);
    color: #9d6b00;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin: 0;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-soft);
    margin-top: 10px;
    line-height: 1.6;
}

/* STAFF CARDS */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.staff-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--navy));
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.staff-card-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, .2);
    overflow: hidden;
    position: relative;
}

.staff-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.staff-role {
    margin-top: 4px;
    display: inline-block;
    background: rgba(254, 180, 1, .22);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.staff-card-body {
    padding: 24px;
    flex: 1;
}

.staff-info-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.staff-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.staff-info-item .icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.staff-info-item .label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-info-item .val {
    display: block;
    color: var(--text-main);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.schedule-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.s-day {
    font-weight: 600;
    color: var(--navy);
    font-size: 13px;
}

.s-time {
    color: var(--text-main);
    font-size: 13px;
}

.s-break {
    color: var(--text-soft);
    font-size: 12px;
}

.staff-divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}

.staff-tasks-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 10px;
}

.staff-tasks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff-tasks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
}

.staff-tasks li::before {
    content: '•';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.staff-card-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
}

.btn-staff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-staff-wa {
    background: var(--navy);
    color: #fff !important;
    border-radius: 8px;
}

.btn-staff-wa:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wa-icon {
    width: 18px;
    height: 18px;
}

/* SOP SECTION */
.sop-section {
    padding: 60px 0;
    background: transparent;
    margin: 60px 0;
    border-radius: 12px;
}

.tab-nav-wrap {
    margin-bottom: 32px;
    border-bottom: 2px solid var(--line);
}

.tab-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    transition: var(--transition);
    font-family: "Roboto", Arial, sans-serif;
    margin-bottom: -2px;
    position: relative;
}

.tab-btn:hover {
    color: var(--navy);
    background: transparent;
}

.tab-btn.active {
    background: transparent;
    color: var(--navy);
    border-bottom-color: var(--navy);
    font-weight: 700;
}

.tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #e2e8f0;
    color: var(--text-soft);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.tab-btn.active .tab-num {
    background: var(--navy);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.sop-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sop-card-header-blue {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 32px;
    color: #fff;
}

.sop-header-meta {
    margin-bottom: 12px;
}

.sop-code-badge {
    display: inline-block;
    background: rgba(254, 180, 1, .2);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sop-header-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.sop-header-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}

.sop-body {
    padding: 32px;
}

.sop-block {
    margin-bottom: 24px;
}

.sop-block-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line);
}

.sop-block-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.7;
}

.sop-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.sop-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sop-list.bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

.sop-list.bullets li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy);
    flex-shrink: 0;
    margin-top: 6px;
}

.sop-list.numbered {
    counter-reset: s;
}

.sop-list.numbered li {
    counter-increment: s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

.sop-list.numbered li::before {
    content: counter(s);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.sop-staff-block {
    margin-bottom: 24px;
}

.sop-staff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.sop-staff-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.sop-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--gold-pale);
    border: 1px solid #e0c06a;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sop-info-box .iico {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sop-info-box-text {
    font-size: 14px;
    color: #5a4000;
    line-height: 1.7;
}

.sop-info-box-text strong {
    color: #3a2800;
}

.sop-card-footer {
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff !important;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-preview:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.is-hidden {
    display: none !important;
}

/* EMPTY STATE MESSAGE */
.empty-state-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-soft);
    font-size: 15px;
    font-style: italic;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    margin: 0;
}

/* FAQ SECTION */
#assignment-body .faq-section-wrap {
    background: transparent;
    padding: 60px 0;
    border-radius: 12px;
    margin: 60px 0;
}

#assignment-body .faq-section-inner {
    margin: 0;
}

#assignment-body .faq-header {
    margin-bottom: 36px;
}

#assignment-body .faq-header h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin: 8px 0 0;
}

#assignment-body .faq-header p {
    font-size: 15px;
    color: var(--text-soft);
    margin-top: 10px;
    line-height: 1.6;
}

#assignment-body .faq-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#assignment-body .faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, border-color .25s ease;
}

#assignment-body .faq-item:hover {
    box-shadow: var(--shadow-md);
}

#assignment-body .faq-item.open {
    border-color: rgba(0, 49, 80, .3);
    box-shadow: var(--shadow-md);
}

#assignment-body .faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
    user-select: none;
}

#assignment-body .faq-question-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
}

#assignment-body .faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}

#assignment-body .faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}

#assignment-body .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4,0,.2,1);
}

#assignment-body .faq-item.open .faq-answer {
    max-height: 400px;
}

#assignment-body .faq-answer-inner {
    margin: 0 24px;
    padding: 16px 0 20px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.8;
    border-top: 1px solid var(--line);
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .sop-two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-section,
    .sop-section,
    #assignment-body .faq-section-wrap {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        width: 100%;
    }

    .sop-card-header-blue,
    .sop-body,
    .sop-card-footer {
        padding: 20px;
    }

    .staff-card-actions {
        flex-direction: column;
    }

    .btn-staff {
        width: 100%;
    }

    #assignment-body .faq-question {
        padding: 16px 18px;
    }

    #assignment-body .faq-answer-inner {
        margin: 0 18px;
    }
}

/* ============================================================ */
/* SOP REDESIGN: SEARCH + FILTER + CARD GRID + MODAL           */
/* ============================================================ */

/* --- Toolbar (search + chips) --- */
.sop-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .sop-toolbar {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* --- Search Input --- */
.sop-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.sop-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    font-size: 14px;
    pointer-events: none;
}

.sop-search-input {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-soft);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.sop-search-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 49, 80, 0.1);
    background: #fff;
}

.sop-search-input::placeholder {
    color: #94a3b8;
}

/* Remove default browser X in search input */
.sop-search-input::-webkit-search-cancel-button { display: none; }

.sop-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #64748b;
    transition: background var(--transition);
}

.sop-search-clear:hover {
    background: #cbd5e1;
}

/* --- Filter Chips --- */
.sop-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--line);
    background: var(--bg-soft);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    font-family: "Roboto", Arial, sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.sop-chip:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: #f0f4f8;
}

.sop-chip.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.sop-chip.active:hover {
    background: var(--navy-light);
}

/* --- Result Info --- */
.sop-result-info {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 20px;
    font-weight: 500;
    padding-left: 2px;
}

/* --- SOP Card Grid --- */
.sop-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* --- SOP Grid Card --- */
.sop-grid-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.sop-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.sop-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 49, 80, 0.2);
}

.sop-grid-card:hover::before {
    opacity: 1;
}

/* Card header row (icon + title + category) */
.sgc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 14px;
}

.sgc-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.sgc-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.sgc-code {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
}

/* Category badge */
.sgc-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.sop-cat-akademik {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.sop-cat-praktikum {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

/* Category row (between header and description) */
.sgc-category-row {
    padding: 0 20px;
    margin-bottom: 10px;
}

/* Card title */
.sgc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card description */
.sgc-desc {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0 20px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.sgc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 18px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    gap: 8px;
}

.sgc-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 500;
}

.sgc-steps i {
    color: var(--gold);
}

/* Detail button on card */
.sgc-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    font-family: "Roboto", Arial, sans-serif;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.sgc-detail-btn:hover {
    background: var(--navy-light);
    transform: translateX(2px);
}

.sgc-detail-btn i {
    font-size: 10px;
    transition: transform var(--transition);
}

.sgc-detail-btn:hover i {
    transform: translateX(3px);
}

/* --- Empty State --- */
.sop-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sop-empty-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.sop-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}

.sop-empty-desc {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0 0 20px;
}

.sop-empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Roboto", Arial, sans-serif;
    cursor: pointer;
    transition: background var(--transition);
}

.sop-empty-reset:hover {
    background: var(--navy-light);
}

/* --- SOP Detail Modal --- */
.sop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.sop-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sop-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sop-modal-overlay.active .sop-modal-box {
    transform: scale(1) translateY(0);
}

.sop-modal-close {
    position: sticky;
    top: 16px;
    float: right;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 16px 0 0;
    z-index: 10;
    transition: background var(--transition), color var(--transition);
}

.sop-modal-close:hover {
    background: var(--navy);
    color: #fff;
}

/* Modal header */
.sop-modal-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 28px 32px 28px;
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.sop-modal-header-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sop-modal-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sop-modal-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sop-modal-badges .sgc-category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sop-modal-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 8px;
}

.sop-modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Modal body */
.sop-modal-body {
    padding: 28px 32px 32px;
}

/* Responsive modal */
@media (max-width: 600px) {
    .sop-modal-header {
        padding: 20px;
    }

    .sop-modal-header-top {
        flex-direction: column;
    }

    .sop-modal-body {
        padding: 20px;
    }

    .sop-card-grid {
        grid-template-columns: 1fr;
    }

    .sop-toolbar {
        padding: 16px;
    }
}
