:root {
    --sdgs-primary: #148957;
    --sdgs-primary-light: #30c27c;
    --sdgs-primary-dark: #0a5a39;
    --sdgs-bg: #f4f7f1;
    --text-dark: #0f1c2d;
    --text-muted: #5a6475;
    --border-light: rgba(15, 28, 45, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--sdgs-bg);
    color: var(--text-dark);
}

.sdgs-hero {
    background: linear-gradient(135deg, var(--sdgs-primary-dark), var(--sdgs-primary));
    color: #fff;
    padding: 60px 0;
}

.sdgs-hero__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

.sdgs-hero__icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.sdgs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
}

.sdgs-hero__meta {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.sdgs-hero__meta div {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 12px;
}

.sdgs-hero__meta span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.sdgs-hero__meta strong {
    font-size: 1.2rem;
}

.sdgs-main {
    padding: 40px 0 60px;
}

.sdgs-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.sdgs-content-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-block {
    background: #fff;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-header__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sdgs-primary), var(--sdgs-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.section-header__text h2 {
    margin: 0;
    font-size: 1.75rem;
}

.sdgs-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
}

.form-helper {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.form-actions {
    display: flex;
    align-items: flex-end;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sdgs-primary), var(--sdgs-primary-light));
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.summary-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--sdgs-bg);
    border: 1px solid var(--border-light);
}

.summary-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-card strong {
    font-size: 1.5rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-meta-card {
    background: var(--sdgs-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
}

.detail-meta-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-meta-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.2rem;
}

.targets-table h3 {
    margin-top: 0;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 12px;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-wrapper th,
.table-wrapper td {
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    text-align: left;
}

.indicator-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.indicator-card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.indicator-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.indicator-card p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.recommendation-html {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.recommendation-html ul,
.recommendation-html ol {
    padding-left: 20px;
}
.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.goal-card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.goal-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.goal-card h3 {
    margin: 8px 0 0;
    font-size: 1.1rem;
}

.goal-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sdgs-primary);
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(20, 137, 87, 0.12);
    color: var(--sdgs-primary);
    font-weight: 600;
}

.goal-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.sdgs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #fff;
    border-radius: 0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-card__header i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sdgs-primary), var(--sdgs-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-card__content ul {
    padding-left: 18px;
    margin: 12px 0 0;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 992px) {
    .sdgs-wrapper {
        grid-template-columns: 1fr;
    }

    .sdgs-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sdgs-hero__icon {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .content-block {
        padding: 24px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }
}

