@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ────────────────────────────────────────────
   CSS CUSTOM PROPERTIES – Al-Azhar Color System
   ──────────────────────────────────────────── */
:root {
    /* Brand palette extracted from Al-Azhar Medan logo */
    --green-900: #022c17;
    --green-800: #064e2b;
    --green-700: #0a7040;
    --green-600: #0d8f4f;
    --green-500: #10b360;
    --green-400: #34d575;
    --green-300: #6ee7a0;
    --green-100: #d1fae5;
    --gold-900: #78350f;
    --gold-600: #d97706;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --gold-300: #fde68a;
    --gold-100: #fef9e7;
    --red-700: #991b1b;
    --red-600: #dc2626;
    --red-100: #fee2e2;

    /* Typography */
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 0 0 4px rgba(16, 179, 96, 0.18);
}

/* ──────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--green-900);
    color: #f1f5f9;
    min-height: 100vh;
}

/* ──────────────────────────────────────────
   PAGE SHELL
   ────────────────────────────────────────── */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Animated radial blob layer */
.page-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(10, 112, 64, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(245, 158, 11, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 60% 40%, rgba(16, 179, 96, 0.12) 0%, transparent 60%),
        linear-gradient(160deg, #022c17 0%, #043a20 40%, #04321b 100%);
    z-index: -1;
    pointer-events: none;
}

/* Floating decorative shapes */
.page-shell::after {
    content: '';
    position: fixed;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1.5px solid rgba(52, 213, 117, 0.12);
    animation: spinSlow 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

/* ──────────────────────────────────────────
   HEADER / TOP-BAR
   ────────────────────────────────────────── */
.top-bar {
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

/* Left logo cluster */
.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* Right badge */
.official-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.official-badge:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

.star-icon {
    color: var(--gold-400);
    font-size: 0.85rem;
}

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 80px;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Decorative ring ornament */
.hero-ornament {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px dashed rgba(52, 213, 117, 0.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
    animation: pulseSlow 6s ease-in-out infinite;
}

@keyframes pulseSlow {

    0%,
    100% {
        transform: translate(-50%, -60%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -60%) scale(1.06);
        opacity: 0.15;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 179, 96, 0.12);
    border: 1px solid rgba(16, 179, 96, 0.25);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-400);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-400);
    animation: blink 2s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero-title-group {
    margin-bottom: 36px;
    animation: slideDown 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-subtitle {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

.hero-title {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #a7f3d0 40%,
            var(--gold-400) 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmerText 4s ease infinite alternate;
}

@keyframes shimmerText {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Tri-color accent bar */
.hero-accent {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.hero-accent span {
    height: 4px;
    border-radius: 4px;
}

.hero-accent .a1 {
    width: 48px;
    background: var(--green-500);
}

.hero-accent .a2 {
    width: 28px;
    background: var(--gold-400);
}

.hero-accent .a3 {
    width: 16px;
    background: var(--red-600);
}

/* ──────────────────────────────────────────
   SEARCH FORM
   ────────────────────────────────────────── */
.search-form-wrapper {
    width: 100%;
    max-width: 900px;
    position: relative;
    animation: slideDown 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Glow halo behind search bar */
.search-halo {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg,
            rgba(16, 179, 96, 0.35) 0%,
            rgba(245, 158, 11, 0.20) 50%,
            rgba(16, 179, 96, 0.35) 100%);
    filter: blur(16px);
    z-index: 0;
    transition: filter 0.35s ease, opacity 0.35s ease;
    opacity: 0.7;
}

.search-form-wrapper:focus-within .search-halo {
    filter: blur(22px);
    opacity: 1;
}

.search-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.search-form-wrapper:focus-within .search-card {
    border-color: rgba(16, 179, 96, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-glow);
}

/* Input segment */
.search-input-group {
    flex: 1.5;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 68px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--green-400);
    margin-right: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #ffffff;
    background: transparent;
    font-weight: 600;
    font-family: var(--font-body);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
}

/* Category select segment */
.search-select-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 22px;
    height: 68px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    position: relative;
}

.select-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-400);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
}

.search-select option {
    background: #043a20;
    color: #ffffff;
    font-weight: 600;
}

.chevron-icon {
    position: absolute;
    right: 20px;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* CTA button */
.btn-search {
    height: 68px;
    padding: 0 36px;
    background: linear-gradient(135deg, var(--gold-500) 0%, #e07b00 100%);
    color: #1a0e00;
    border: none;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    position: relative;
    transition: filter 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    min-width: 150px;
}

.btn-search svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.btn-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.btn-search:hover {
    filter: brightness(1.08) saturate(1.1);
    transform: scale(1.02);
}

.btn-search:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}

/* Keyboard hint */
.search-hint {
    margin-top: 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hint-key {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
}

/* ──────────────────────────────────────────
   STATS ROW
   ────────────────────────────────────────── */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 52px;
    animation: slideDown 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--green-400);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
}

/* ──────────────────────────────────────────
   RESULTS OVERLAY
   ────────────────────────────────────────── */
.results-section {
    padding: 0 48px 80px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2px;
}

.results-title strong {
    color: #ffffff;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 30px;
    border: 1px solid rgba(52, 213, 117, 0.3);
    box-shadow: 0 4px 14px rgba(0, 138, 71, 0.3);
}

/* Cards grid */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--green-500) 0%, var(--gold-400) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(52, 213, 117, 0.25);
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.card-item:hover::before {
    opacity: 1;
}

/* Pulse animation when returning from detail page to highlight the clicked item */
@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 213, 117, 0.7);
        border-color: var(--green-400);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(52, 213, 117, 0);
        border-color: var(--gold-400);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 213, 117, 0);
    }
}

.card-item.card-pulse-highlight {
    animation: pulseHighlight 1.5s ease-out 1;
}

/* Avatar */
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 100, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-400);
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 6px;
    font-size: 0.82rem;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-family: monospace;
    letter-spacing: 0.3px;
}

.item-badge-green {
    background: rgba(16, 179, 96, 0.12);
    color: var(--green-400);
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 6px;
    font-size: 0.82rem;
    border: 1px solid rgba(16, 179, 96, 0.22);
}

.item-dept {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-detail-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(16, 179, 96, 0.12);
    border: 1px solid rgba(16, 179, 96, 0.28);
    color: var(--green-400);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.card-item:hover .btn-detail-trigger {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    color: #ffffff;
    border-color: rgba(52, 213, 117, 0.45);
    box-shadow: 0 4px 14px rgba(0, 138, 71, 0.35);
}

.card-arrow {
    color: var(--green-400);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.card-item:hover .card-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

/* Empty state */
.no-results {
    text-align: center;
    padding: 64px 24px;
    color: rgba(255, 255, 255, 0.4);
}

.no-results-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-results-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.no-results-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.site-footer {
    padding: 24px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 500;
    margin-top: auto;
}

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 720px) {
    .top-bar {
        padding: 20px 24px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .search-card {
        flex-direction: column;
        border-radius: 14px;
    }

    .search-input-group,
    .search-select-group {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        height: 56px;
    }

    .btn-search {
        width: 100%;
        height: 54px;
        border-radius: 0 0 14px 14px;
    }

    .stats-row {
        gap: 24px;
    }

    .results-section {
        padding: 0 20px 60px;
    }

    .official-badge {
        display: none;
    }
}

/* ──────────────────────────────────────────
   HERO COMPACT STATE (after search triggered)
   ────────────────────────────────────────── */
.hero-section.hero-compact {
    padding-top: 28px;
    padding-bottom: 36px;
    flex: 0 0 auto;
}

.hero-section.hero-compact .hero-ornament,
.hero-section.hero-compact .hero-eyebrow,
.hero-section.hero-compact .stats-row,
.hero-section.hero-compact .search-hint {
    display: none;
}

.hero-section.hero-compact .hero-title-group {
    margin-bottom: 24px;
}

.hero-section.hero-compact .hero-title {
    font-size: 2.8rem;
}

.hero-section.hero-compact .hero-subtitle {
    font-size: 1rem;
}

/* ──────────────────────────────────────────
   INPUT SPINNER (visible during fetch)
   ────────────────────────────────────────── */
.input-spinner {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.input-spinner svg {
    width: 100%;
    height: 100%;
    animation: spin360 0.75s linear infinite;
    color: var(--green-400);
}

.input-spinner.active {
    opacity: 1;
}

@keyframes spin360 {
    to {
        transform: rotate(360deg);
    }
}

/* ──────────────────────────────────────────
   CARD ENTRANCE ANIMATION
   ────────────────────────────────────────── */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──────────────────────────────────────────
   SKELETON LOADER
   ────────────────────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skeleton-line {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.10) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 6px;
    display: block;
}

.skeleton-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: skeletonFadeIn 0.3s ease both;
}

@keyframes skeletonFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.06) 25%,
            rgba(255, 255, 255, 0.11) 50%,
            rgba(255, 255, 255, 0.06) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-name {
    height: 16px;
    width: 55%;
}

.skeleton-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.skeleton-badge {
    height: 22px;
    width: 120px;
    border-radius: 6px;
}

.skeleton-dept {
    height: 14px;
    width: 180px;
}

.skeleton-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ══════════════════════════════════════════
   IN-PLACE DETAIL VIEW (renders inside results-section)
   ══════════════════════════════════════════ */
.detail-view-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ── Top-bar ── */
.detail-view-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-body);
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.detail-back-btn:hover {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    border-color: rgba(52, 213, 117, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 4px 14px rgba(0, 138, 71, 0.3);
}

.detail-topbar-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── Profile hero card ── */
.detail-profile-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

/* Decorative green glow inside card */
.detail-profile-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 179, 96, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.detail-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.detail-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.1), 0 8px 28px rgba(0, 0, 0, 0.4);
    display: block;
}

.detail-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    border: 3px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.1), 0 8px 28px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    flex-shrink: 0;
}

.detail-category-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--gold-500);
    border-radius: 30px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #1a0e00;
    letter-spacing: 0.5px;
    border: 2px solid rgba(0, 0, 0, 0.4);
}

.detail-profile-info {
    flex: 1;
    min-width: 0;
}

.detail-nama {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    word-break: break-word;
}

.detail-id-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.detail-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--gold-400);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: monospace;
    letter-spacing: 0.3px;
}

.detail-badge-green {
    background: rgba(16, 179, 96, 0.1);
    border: 1px solid rgba(16, 179, 96, 0.2);
    color: var(--green-400);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.detail-jabatan {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    line-height: 1.5;
}

/* ── Section heading ── */
.detail-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--green-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(52, 213, 117, 0.15);
}

/* ── Info table ── */
.detail-info-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-info-cell {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px 18px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.detail-info-cell:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(52, 213, 117, 0.2);
}

.detail-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.detail-info-value {
    font-size: 0.94rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    word-break: break-word;
    line-height: 1.4;
}

.detail-info-value.is-address {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.detail-info-cell.full-width {
    grid-column: 1 / -1;
}

/* ── Detail skeleton ── */
.detail-skeleton-hero {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
}

.detail-skeleton-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite;
}

.detail-skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .detail-view-wrapper {
        padding: 24px 20px;
    }

    .detail-view-topbar {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .detail-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .detail-info-table {
        grid-template-columns: 1fr;
    }

    .detail-info-cell.full-width {
        grid-column: 1;
    }

    .detail-nama {
        font-size: 1.25rem;
    }
}

/* ══════════════════════════════════════════
   INSTAGRAM-STYLE LOAD MORE PAGINATION
   ══════════════════════════════════════════ */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    padding-top: 12px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(52, 213, 117, 0.28);
    color: var(--green-400);
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-load-more:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    border-color: rgba(52, 213, 117, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 138, 71, 0.35);
}

.btn-load-more:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.load-more-icon {
    transition: transform 0.3s ease;
}

.btn-load-more:hover .load-more-icon {
    transform: translateY(3px);
}

.btn-load-more.is-loading .load-more-icon {
    animation: spin360 0.75s linear infinite;
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.end-of-results {
    text-align: center;
    margin-top: 36px;
    padding: 16px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ──────────────────────────────────────────
   SEARCH CARD & DETAIL PHOTO STYLES
   ────────────────────────────────────────── */
.avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    position: relative;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.avatar-img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 2px solid rgba(16, 179, 96, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    display: block !important;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-item:hover .avatar-img {
    transform: scale(1.08);
    border-color: var(--green-400);
}

.detail-avatar-container {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.detail-avatar-container:hover .detail-avatar {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.25), 0 12px 36px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-400);
}

.detail-photo-zoom-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: scale(0.8);
    pointer-events: none;
}

.detail-avatar-container:hover .detail-photo-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ──────────────────────────────────────────
   LIGHTBOX MODAL FOR PROFILE PHOTO
   ────────────────────────────────────────── */
.photo-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.photo-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
}

.photo-lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.photo-lightbox-img {
    max-width: 85vw;
    max-height: 75vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(245, 158, 11, 0.4);
}

.photo-lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.photo-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

/* ──────────────────────────────────────────
   SINGLE ELLIPSE FAKULTAS PILL
   ────────────────────────────────────────── */
.fakultas-ellipse-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 3px 14px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: fit-content;
}

.fakultas-ellipse-pill:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: var(--gold-400);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.fakultas-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 8px var(--gold-400), 0 0 3px var(--gold-500);
    flex-shrink: 0;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.fakultas-ellipse-content {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.fakultas-name-item {
    transition: color 0.2s ease;
}

.fakultas-ellipse-pill:hover .fakultas-name-item {
    color: #ffffff;
}

.fakultas-bullet {
    color: var(--gold-400);
    opacity: 0.75;
    font-size: 0.78rem;
}

.fakultas-sep {
    color: rgba(251, 191, 36, 0.4);
    font-size: 0.75rem;
    margin: 0 1px;
}