body {
    scroll-behavior: smooth;
}
.hero {
    background: linear-gradient(120deg, #0d6efd, #198754);
    color: white;
    padding: 100px 0;
}
.sdg-card {
    transition: transform .2s, box-shadow .2s;
}
.sdg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.sdg-unida {
    border: 2px solid #198754;
}
footer {
    background: #f8f9fa;
}

.sdg-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;  
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
}

.sdg-tile {
    transition: transform .25s ease, box-shadow .25s ease;
}

.sdg-tile:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.sdg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}


.sdg-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 12px 14px;
    color: #fff;
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 4px;
}
.sdg-number {
    font-size: 28px;
    font-weight: 800;
}

.sdg-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* SDG official colors */
.bg-sdg-1  { background:#e5243b; }
.bg-sdg-2  { background:#dda63a; }
.bg-sdg-4  { background:#c5192d; }
.bg-sdg-17 { background:#19486a; }

/* Responsive tweak */
@media (max-width: 576px) {
    .sdg-tile {
        height: 220px;
    }
}
/* =======================
   RESULT LAYOUT
======================= */

.result-layout {
    display: grid;
    grid-template-columns: 3fr 1.4fr;
    gap: 24px;
    margin-top: 20px;
}

/* =======================
   SDG GRID
======================= */

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.sdg-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}

.sdg-card:hover {
    transform: scale(1.05);
}

.sdg-card img {
    width: 100%;
    max-width: 120px;
    margin-bottom: 8px;
}

.sdg-confidence {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

/* =======================
   SDG UNIDA PANEL
======================= */

.unida-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.unida-panel h4 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

.unida-badge {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.unida-badge img {
    width: 48px;
    margin-right: 10px;
}

.unida-score {
    font-weight: bold;
    font-size: 14px;
}
