/* SDGS UNESA — thin layer on top of Vuexy. Only what Vuexy does not already provide. */

:root {
    --sdgs-navbar-height: 62px;
}

body.sdgs-public {
    background-color: #f8f8f8;
}

/* ---------- Public top navigation ---------- */
.sdgs-navbar {
    background: #fff;
    box-shadow: 0 4px 24px rgba(34, 41, 47, 0.06);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.sdgs-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sdgs-brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #5e5873;
}

.sdgs-brand-sub {
    font-size: 0.72rem;
    color: #b9b9c3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sdgs-nav-link {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6e6b7b !important;
    border-radius: 0.358rem;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
}

.sdgs-nav-link:hover {
    background: rgba(115, 103, 240, 0.08);
    color: #7367f0 !important;
}

.sdgs-nav-link.active {
    background: linear-gradient(118deg, #7367f0, rgba(115, 103, 240, 0.7));
    color: #fff !important;
    box-shadow: 0 0 6px 1px rgba(115, 103, 240, 0.6);
}

.sdgs-content {
    margin-left: 0 !important;
    padding: 1.5rem 0 0 !important;
}

.sdgs-content .content-wrapper {
    padding: 0 1.5rem;
}

/* ---------- Hero ---------- */
.sdgs-hero {
    background: linear-gradient(118deg, #7367f0, #9c8cfc);
    border-radius: 0.6rem;
    color: #fff;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.sdgs-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.sdgs-hero h1 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.sdgs-hero p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    max-width: 62ch;
}

.sdgs-hero-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sdgs-hero-chip {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ---------- SDG cards ---------- */
.sdg-card {
    border-top: 4px solid var(--sdg-color, #7367f0);
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sdg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 26px rgba(34, 41, 47, 0.12);
}

.sdg-number {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--sdg-ink, #fff);
    background: var(--sdg-color, #7367f0);
    flex-shrink: 0;
}

.sdg-fact-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #ebe9f1;
    font-size: 0.82rem;
}

.sdg-fact-row:last-child {
    border-bottom: 0;
}

.sdg-fact-row .sdg-fact-value {
    font-weight: 600;
    color: #5e5873;
    white-space: nowrap;
}

/* SDG chip used to tag news / publications / activities */
.sdg-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.16rem 0.5rem;
    border-radius: 2rem;
    color: var(--sdg-ink, #fff);
    background: var(--sdg-color, #7367f0);
    line-height: 1.4;
}

/* ---------- SDG picker ----------
   Dipakai bersama oleh navigasi "Lompat ke SDG" dan tombol filter tujuan.
   Nomor selalu putih di atas warna resmi tujuannya, sehingga tetap terbaca
   pada warna gelap seperti SDG 16 (#00689D) dan SDG 17 (#19486A). */
.sdg-pick-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sdg-pick {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 0.45rem;
    background: var(--sdg-color, #7367f0);
    color: var(--sdg-ink, #fff) !important;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.88;
    transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sdg-pick:hover,
.sdg-pick:focus-visible {
    opacity: 1;
    color: var(--sdg-ink, #fff) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 41, 47, 0.22);
}

.sdg-pick:focus-visible {
    outline: 2px solid #5e5873;
    outline-offset: 2px;
}

/* Selected filter: full colour plus a ring, so the choice is obvious
   without relying on colour alone. */
.sdg-pick.is-active {
    opacity: 1;
    border-color: #5e5873;
    box-shadow: 0 0 0 3px rgba(94, 88, 115, 0.18);
}

/* The "all goals" button is wider and carries a label, not a number. */
.sdg-pick-all {
    width: auto;
    padding: 0 0.85rem;
    background: #f0eff5;
    color: #6e6b7b !important;
    font-size: 0.82rem;
    opacity: 1;
}

.sdg-pick-all:hover,
.sdg-pick-all:focus-visible {
    background: #e4e2ee;
    color: #5e5873 !important;
}

.sdg-pick-all.is-active {
    background: #7367f0;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 0 6px 1px rgba(115, 103, 240, 0.5);
}
/* ---------- KPI tiles ---------- */
.kpi-tile .avatar {
    width: 46px;
    height: 46px;
}

.kpi-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #5e5873;
    line-height: 1.2;
}

/* ---------- Misc ---------- */
.stat-pill {
    background: #f8f8f8;
    border-radius: 0.4rem;
    padding: 0.55rem 0.7rem;
    text-align: center;
}

.stat-pill .stat-pill-value {
    font-weight: 700;
    color: #5e5873;
    display: block;
    font-size: 1rem;
}

.stat-pill .stat-pill-label {
    font-size: 0.72rem;
    color: #b9b9c3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sdgs-footer {
    background: #fff;
    border-top: 1px solid #ebe9f1;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
}

.table-sdg-indicator td,
.table-sdg-indicator th {
    vertical-align: middle;
}

.news-card-img {
    height: 168px;
    object-fit: cover;
    background: #ebe9f1;
}

@media (max-width: 991.98px) {
    .sdgs-navbar .navbar-nav {
        padding: 0.5rem 0;
        gap: 0.15rem;
    }

    .sdgs-content .content-wrapper {
        padding: 0 1rem;
    }
}
