/* =========================================================
   Tema Website UPT PPTIK Universitas Muhammadiyah Mataram
   Biru (#0a2a5e / #0d3b7d / #10509e) + Emas (#d4af37)
   ========================================================= */

:root {
    --umm-blue-dark: #0a2a5e;
    --umm-blue: #0d3b7d;
    --umm-blue-light: #10509e;
    --umm-gold: #d4af37;
    --umm-gold-light: #f5d97c;
    --umm-soft: #f0f4fb;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155;
    background: #fff;
}

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--umm-blue-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.topbar a:hover {
    color: var(--umm-gold-light);
}

/* ---------- Navbar ---------- */
.public-navbar {
    border-bottom: 3px solid var(--umm-gold);
}

.navbar-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.navbar-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-brand strong {
    color: var(--umm-blue-dark);
    font-size: 1.05rem;
}

.navbar-brand-sub {
    font-size: 0.68rem;
}

.public-navbar .nav-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b;
    padding: 0.55rem 0.5rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.public-navbar .sso-link {
    color: var(--umm-blue);
}

.public-navbar .sso-link:hover {
    color: var(--umm-blue-dark);
    background: var(--umm-soft);
}

.public-navbar .sso-link.active {
    color: var(--umm-blue);
    background: var(--umm-soft);
}

.public-navbar .nav-link:hover {
    color: var(--umm-blue);
    background: var(--umm-soft);
}

.public-navbar .nav-link.active {
    color: var(--umm-blue);
    background: var(--umm-soft);
}

.btn-admin-sm {
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
}

.btn-admin-sm:hover {
    background: linear-gradient(135deg, var(--umm-blue-dark), var(--umm-blue));
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.28), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.15), transparent 35%),
        linear-gradient(135deg, var(--umm-blue-dark) 0%, var(--umm-blue) 55%, var(--umm-blue-light) 100%);
    color: #fff;
    padding: 5.5rem 0 6.5rem;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--umm-gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 4.5vw, 3.1rem);
    line-height: 1.2;
    margin: 1.1rem 0 1rem;
}

.hero h1 .gold {
    color: var(--umm-gold-light);
}

.hero p.lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.btn-gold {
    background: linear-gradient(135deg, #e3c34e, var(--umm-gold));
    color: var(--umm-blue-dark);
    font-weight: 700;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--umm-gold-light), #e3c34e);
    color: var(--umm-blue-dark);
}

.btn-outline-hero {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
}

.hero-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.22);
    color: var(--umm-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.hero-card h5 {
    font-weight: 700;
    font-size: 1.02rem;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- Statistik ---------- */
.stats-section {
    background: var(--umm-soft);
    padding: 3.5rem 0;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--umm-blue);
}

.stat-item .label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    background: #dbe3f0;
}

/* ---------- Section umum ---------- */
.section-title {
    font-weight: 800;
    color: var(--umm-blue-dark);
}

.section-eyebrow {
    color: var(--umm-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 640px;
}

/* ---------- Kartu layanan (divisi) ---------- */
.service-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13, 59, 125, 0.14);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    color: var(--umm-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
}

.service-card h5 {
    font-weight: 700;
    color: var(--umm-blue-dark);
}

.service-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.service-card .service-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
}

.service-card .service-list li {
    font-size: 0.86rem;
    color: #475569;
    padding: 0.25rem 0;
    display: flex;
    gap: 0.5rem;
}

.service-card .service-list i {
    color: var(--umm-gold);
}

/* ---------- Kartu berita ---------- */
.news-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(13, 59, 125, 0.13);
}

.news-card .thumb {
    height: 190px;
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    position: relative;
    overflow: hidden;
}

.news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .thumb .cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--umm-gold);
    color: var(--umm-blue-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}

.news-card .body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card .meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    gap: 0.9rem;
    margin-bottom: 0.55rem;
}

.news-card h5 {
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.45;
}

.news-card h5 a {
    color: var(--umm-blue-dark);
    text-decoration: none;
}

.news-card h5 a:hover {
    color: var(--umm-blue-light);
}

.news-card .excerpt {
    font-size: 0.88rem;
    color: #64748b;
}

.news-card .readmore {
    margin-top: auto;
    padding-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--umm-blue);
    text-decoration: none;
}

.news-card .readmore:hover {
    color: var(--umm-gold);
}

/* ---------- CTA helpdesk ---------- */
.helpdesk-cta {
    background:
        radial-gradient(circle at 90% 20%, rgba(212, 175, 55, 0.22), transparent 45%),
        linear-gradient(135deg, var(--umm-blue-dark), var(--umm-blue));
    color: #fff;
    padding: 4rem 0;
}

/* ---------- Page header (halaman dalam) ---------- */
.page-header {
    background:
        radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.2), transparent 40%),
        linear-gradient(135deg, var(--umm-blue-dark), var(--umm-blue-light));
    color: #fff;
    padding: 3.2rem 0;
}

.page-header h1 {
    font-weight: 800;
    font-size: 1.9rem;
}

.page-header .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--umm-gold-light);
}

/* ---------- Foto pimpinan ---------- */
.pimpinan-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--umm-gold);
    box-shadow: 0 8px 24px rgba(13, 59, 125, 0.18);
}

.pimpinan-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Kartu konten profil ---------- */
.content-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.8rem;
}

.content-card h3 {
    font-weight: 700;
    color: var(--umm-blue-dark);
    font-size: 1.2rem;
}

.content-card .lead-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--umm-soft);
    color: var(--umm-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.content-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* ---------- Daftar kontak pada kartu berlatar terang ---------- */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    color: #334155;
    align-items: flex-start;
}

.contact-info li:last-child {
    margin-bottom: 0;
}

.contact-info i {
    color: var(--umm-gold);
    line-height: 1.6;
    flex-shrink: 0;
}

/* ---------- Daftar dokumen ---------- */
.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.doc-item:hover {
    box-shadow: 0 8px 22px rgba(13, 59, 125, 0.1);
}

.doc-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--umm-soft);
    color: var(--umm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-item .title {
    font-weight: 700;
    color: var(--umm-blue-dark);
    font-size: 0.98rem;
    text-decoration: none;
    /* Judul panjang: maksimal 2 baris (tidak terpotong di tengah kata) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.75em; /* tinggi tetap agar baris sejajar */
    transition: color 0.15s;
}

.doc-item .title:hover {
    color: var(--umm-blue);
    text-decoration: underline;
}

.doc-item .meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.doc-item .cat-badge {
    background: var(--umm-soft);
    color: var(--umm-blue);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.btn-download {
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    color: #fff;
    border-radius: 9px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0; /* tombol tidak boleh menyusut/terdorong */
}

.btn-download:hover {
    background: var(--umm-blue-dark);
    color: #fff;
}

/* ---------- Tiket helpdesk ---------- */
.timeline {
    position: relative;
    padding-left: 1.8rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #dbe3f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--umm-gold);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--umm-gold);
}

.timeline-item.staff::before {
    background: var(--umm-blue);
    box-shadow: 0 0 0 2px var(--umm-blue);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--umm-blue-dark);
    color: rgba(255, 255, 255, 0.75);
}

.footer-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-title {
    color: var(--umm-gold-light);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--umm-gold-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--umm-gold);
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--umm-gold);
    color: var(--umm-blue-dark);
    border-color: var(--umm-gold);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
}

/* ---------- Utilitas ---------- */
.badge-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
}

.badge-open { background: #fee2e2; color: #b91c1c; }
.badge-in_progress { background: #fef3c7; color: #b45309; }
.badge-resolved { background: #dcfce7; color: #15803d; }
.badge-closed { background: #e2e8f0; color: #475569; }

.badge-priority-low { background: #e0f2fe; color: #0369a1; }
.badge-priority-medium { background: #fef3c7; color: #b45309; }
.badge-priority-high { background: #fee2e2; color: #b91c1c; }

.badge-app-active { background: #dcfce7; color: #15803d; }
.badge-app-development { background: #fef3c7; color: #b45309; }
.badge-app-maintenance { background: #e0f2fe; color: #0369a1; }

/* ---------- Tab kategori unduhan ---------- */
.download-tabs .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
}

.download-tabs .nav-link:hover {
    color: var(--umm-blue);
    background: var(--umm-soft);
}

.download-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    color: #fff;
}

.page-item.active .page-link {
    background: var(--umm-blue);
    border-color: var(--umm-blue);
}

.page-link {
    color: var(--umm-blue);
}

.page-link:hover {
    color: var(--umm-blue-dark);
}

/* ---------- Pagination rapi (Bootstrap 5) ---------- */
.pagination {
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    border-radius: 8px !important;  /* semua tombol rounded, bukan hanya ujung */
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    color: var(--umm-blue);
    box-shadow: none;
}

.pagination .page-item .page-link:hover {
    background: var(--umm-soft);
    color: var(--umm-blue-dark);
    border-color: var(--umm-blue-light);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    border-color: var(--umm-blue);
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--umm-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.2);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.btn-primary-umm {
    background: linear-gradient(135deg, var(--umm-blue), var(--umm-blue-light));
    color: #fff;
    font-weight: 600;
    border: none;
}

.btn-primary-umm:hover {
    background: linear-gradient(135deg, var(--umm-blue-dark), var(--umm-blue));
    color: #fff;
}

.bg-umm-soft { background: var(--umm-soft); }
.text-gold { color: var(--umm-gold); }
.text-umm { color: var(--umm-blue); }
