/* ==========================================
   PENGGUNA-PAGES.CSS
   Fasilitas, Ekstrakurikuler, Prestasi, Alumni
   — Design system selaras dengan artikel.css —
   ========================================== */

/* ── Shared: Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a2a3a 100%);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #f97316;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 10%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.35);
    color: #fb923c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.page-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}
.page-hero .hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-hero .hero-meta i { color: #f97316; }

/* Breadcrumb */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.page-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.page-breadcrumb a:hover { color: #f97316; }
.page-breadcrumb .sep { color: rgba(255,255,255,0.25); font-size: 0.7rem; }
.page-breadcrumb .current { color: #f97316; font-weight: 600; }

/* ── Shared: Main Wrap ── */
.page-main-wrap {
    background: #f8fafc;
    min-height: 60vh;
    padding: 40px 0 64px;
}

/* ── Shared: Grid Card ── */
.pg-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
.pg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.11);
    border-color: #fed7aa;
}
.pg-card .pg-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.pg-card .pg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}
.pg-card:hover .pg-img-wrap img { transform: scale(1.06); }
.pg-card .pg-no-img {
    height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 2.5rem;
}
.pg-card .pg-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pg-card .pg-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pg-card .pg-excerpt {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.pg-card .pg-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.pg-card .pg-meta-list li {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.pg-card .pg-meta-list li i { color: #f97316; width: 14px; }
.pg-card .btn-pg-read {
    align-self: flex-start;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(249,115,22,0.28);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pg-card .btn-pg-read:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateX(3px);
    box-shadow: 0 5px 14px rgba(249,115,22,0.38);
    color: white;
}

/* Badge ribbon di gambar */
.pg-card .pg-ribbon {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}

/* ── Shared: Detail Page ── */
.detail-wrap {
    background: #f8fafc;
    min-height: 60vh;
    padding: 40px 0 64px;
}

/* Detail card */
.detail-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-bottom: 32px;
}
.detail-card .detail-hero-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}
.detail-card .detail-body {
    padding: 36px 40px 40px;
}
.detail-card .detail-no-img {
    height: 260px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 4rem;
}

/* Detail title */
.detail-card h1.detail-judul {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Detail meta row */
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 28px;
    color: #64748b;
    font-size: 0.84rem;
}
.detail-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-meta-row .meta-item i { color: #f97316; font-size: 0.9rem; }

/* Detail info grid */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.detail-info-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.detail-info-item .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.detail-info-item .info-icon.navy { background: linear-gradient(135deg, #0f172a, #1e293b); }
.detail-info-item .info-icon.green { background: linear-gradient(135deg, #059669, #10b981); }
.detail-info-item .info-icon.blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.detail-info-item .info-icon.purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.detail-info-item .info-icon.pink { background: linear-gradient(135deg, #db2777, #ec4899); }
.detail-info-item .info-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.detail-info-item .info-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

/* Detail body text */
.detail-konten {
    font-size: 1rem;
    line-height: 1.85;
    color: #374151;
    margin-top: 8px;
}
.detail-konten p { margin-bottom: 1.2em; }

/* Divider */
.detail-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    color: #94a3b8;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}
.detail-divider::before,
.detail-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
.detail-divider span { white-space: nowrap; }

/* Back button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 8px;
}
.btn-back:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #f97316;
}
.btn-back i { font-size: 0.8rem; }

/* ── Alumni: avatar card ── */
.alumni-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f97316;
    flex-shrink: 0;
}
.alumni-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.alumni-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #f97316;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
}
.alumni-detail-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f97316;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(249,115,22,0.25);
}
.alumni-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.alumni-detail-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #f97316;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(249,115,22,0.2);
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}

/* Prestasi badge */
.badge-tingkat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.badge-tingkat.nasional  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-tingkat.provinsi  { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-tingkat.kabupaten { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-tingkat.default   { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* Kondisi fasilitas */
.kondisi-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.kondisi-badge.baik    { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.kondisi-badge.sedang  { background: #fef9c3; color: #713f12; border: 1px solid #fde047; }
.kondisi-badge.rusak   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Empty state ── */
.page-empty {
    text-align: center;
    padding: 64px 20px;
}
.page-empty i {
    font-size: 3.5rem;
    margin-bottom: 18px;
    color: #e2e8f0;
    display: block;
}
.page-empty p { font-size: 1rem; color: #64748b; }

/* ── Sidebar (shared) ── */
.sidebar-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}
.sidebar-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.sidebar-header i { color: #f97316; font-size: 1rem; }
.sidebar-header h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .detail-card .detail-body { padding: 24px 24px 28px; }
    .detail-card h1.detail-judul { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .page-hero { padding: 32px 0 28px; }
    .page-hero h1 { font-size: 1.3rem; }
    .detail-card .detail-body { padding: 18px 18px 22px; }
    .detail-card h1.detail-judul { font-size: 1.2rem; }
    .pg-card .pg-img-wrap, .pg-card .pg-no-img { height: 160px; }
    .detail-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .pg-card .pg-excerpt { display: none; }
    .pg-card .pg-img-wrap, .pg-card .pg-no-img { height: 130px; }
    .pg-card .pg-body { padding: 12px 12px 14px; }
    .pg-card .pg-title { font-size: 0.82rem; }
    .btn-pg-read { padding: 6px 12px; font-size: 0.72rem; }
    .detail-info-grid { grid-template-columns: 1fr; }
    .detail-card .detail-body { padding: 14px 14px 18px; }
    .detail-card .detail-hero-img { max-height: 220px; }
}

/* ==========================================
   PAGINATION FIX — Laravel 12 Tailwind
   Hilangkan SVG < > prev/next, styling nomor
   ========================================== */

/* 1. Bunuh semua SVG di dalam nav pagination */
nav[role="navigation"] svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 2. Sembunyikan baris "Showing X to Y of Z results" */
nav[role="navigation"] > div:first-child {
    display: none !important;
}

/* 3. Sembunyikan link Previous dan Next */
nav[role="navigation"] a[rel="prev"],
nav[role="navigation"] a[rel="next"] {
    display: none !important;
}

/* 4. Tengahkan wrapper nomor halaman */
nav[role="navigation"] > div:last-child {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

/* 5. Style link nomor halaman */
nav[role="navigation"] a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #1e293b;
    background: #ffffff;
}

nav[role="navigation"] a:hover {
    background: #fff7ed;
    border-color: #f97316;
    color: #f97316;
}

/* 6. Halaman aktif */
nav[role="navigation"] span[aria-current="page"] > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 1px solid #f97316;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}

/* 7. Titik "..." */
nav[role="navigation"] span:not([aria-current]) > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}