/* ============================================================
   Barqaror rivojlanish (BRM) — views/proacademy/sustainability.php
   ============================================================
 *
 * `SustainabilityAsset` orqali, `InnerPageAsset` dan KEYIN ulanadi.
 * Ko'k ranglar — `.ip` tokenlari; yashil (`--sdgp-green`) faqat shu
 * sahifaning urg'u rangi.
 *
 * Maqsad kartalarining ranglari BMT belgilagan rasmiy ranglar
 * (`SustainabilityPage::GOALS` bilan bir xil — test tekshiradi).
 * Inline `style` ishlatilmaydi (CSP), shuning uchun har maqsad — o'z klassi.
 */

.sdgp {
    --sdgp-green: #3fa34d;
    --sdgp-green-700: #2f7d3a;
    --sdgp-navy: #0b2a66;
    --sdgp-gap: 28px;
    padding-bottom: 56px;
}

.sdgp-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.sdgp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sdgp-bar {
    display: block;
    width: 56px;
    height: 5px;
    margin-top: 14px;
    border-radius: 3px;
    background: var(--sdgp-green);
}

.sdgp-h2 {
    margin: 0;
    color: var(--ip-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.sdgp-hero {
    position: relative;
    display: flex;
    align-items: center;
    /* Sayt header'i `position: fixed` va hero ustida turadi (`page-hero.css` bilan bir xil) */
    min-height: 300px;
    padding: 118px 0 42px;
    background:
        /* yuqorida — oq menyu yozuvlari bino fonida ham o'qilsin */
        linear-gradient(180deg, rgba(10, 42, 107, .8) 0, rgba(10, 42, 107, 0) 120px),
        linear-gradient(90deg, #0a2a6b 0%, rgba(10, 42, 107, .94) 30%, rgba(10, 42, 107, .55) 52%, rgba(10, 42, 107, 0) 72%),
        url("../images/header_build.png") right center / cover no-repeat,
        #0a2a6b;
    color: #fff;
}

.sdgp-hero__title {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0;
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
}

.sdgp-hero__leaf {
    display: inline-flex;
    color: #7ed36f;
}

.sdgp-hero__sub {
    max-width: 520px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.45;
}

.sdgp-hero .sdgp-bar {
    width: 76px;
    margin-top: 18px;
    background: #4cc25d;
}

/* ── Kirish va tezkor kartalar ────────────────────────────────────── */

.sdgp-intro {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(260px, 360px) minmax(0, 1fr);
    gap: var(--sdgp-gap);
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--ip-line);
}

.sdgp-intro__text {
    margin: 0;
    padding-left: var(--sdgp-gap);
    border-left: 1px solid var(--ip-line);
    color: var(--ip-text);
    font-size: 14.5px;
    line-height: 1.6;
}

.sdgp-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdgp-quick__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 96px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ip-shadow);
    color: var(--ip-ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.sdgp-quick__card:hover,
.sdgp-quick__card:focus-visible {
    color: var(--ip-ink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 27, 61, .12);
}

.sdgp-quick__img {
    position: absolute;
    top: 0;
    right: 0;
    width: 56%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 50%);
    mask-image: linear-gradient(90deg, transparent 0, #000 50%);
}

.sdgp-quick__icon,
.sdgp-quick__title,
.sdgp-quick__arrow {
    position: relative;
    z-index: 1;
}

.sdgp-quick__icon {
    display: flex;
    color: var(--ip-primary);
}

.sdgp-quick__title {
    max-width: 66%;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.sdgp-quick__arrow {
    display: flex;
    margin-top: auto;
    color: var(--ip-ink);
}

/* ── Maqsadlar ────────────────────────────────────────────────────── */

.sdgp-goals {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(250px, 290px);
    gap: var(--sdgp-gap);
    align-items: start;
    padding: 32px 0;
}

.sdgp-goals__text {
    margin: 22px 0 26px;
    color: var(--ip-text);
    font-size: 15px;
    line-height: 1.6;
}

.sdgp-btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 11px 24px;
    border: 1.5px solid var(--ip-primary);
    border-radius: 8px;
    background: #fff;
    color: var(--ip-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.sdgp-btn:hover,
.sdgp-btn:focus-visible {
    background: var(--ip-primary);
    color: #fff;
    text-decoration: none;
}

.sdgp-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdgp-tile {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 6px;
    height: 100%;
    min-height: 108px;
    padding: 8px 8px 10px;
    border-radius: 6px;
    background: var(--sdgp-tile, #19486A);
    color: #fff;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.sdgp-tile:hover,
.sdgp-tile:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 27, 61, .22);
}

.sdgp-tile:focus-visible {
    outline: 3px solid var(--ip-ink);
    outline-offset: 2px;
}

.sdgp-tile__num {
    grid-row: 1 / 3;
    font-size: 27px;
    letter-spacing: -.02em;
    font-weight: 700;
    line-height: 1;
}

.sdgp-tile__title {
    align-self: center;
    min-width: 0;
    padding-top: 4px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.sdgp-tile__icon {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    display: flex;
    justify-content: center;
}

.sdgp-tile__icon svg {
    width: 44px;
    height: 44px;
}

.sdgp-tile--1 { --sdgp-tile: #E5243B; }
.sdgp-tile--2 { --sdgp-tile: #DDA63A; }
.sdgp-tile--3 { --sdgp-tile: #4C9F38; }
.sdgp-tile--4 { --sdgp-tile: #C5192D; }
.sdgp-tile--5 { --sdgp-tile: #FF3A21; }
.sdgp-tile--6 { --sdgp-tile: #26BDE2; }
.sdgp-tile--7 { --sdgp-tile: #FCC30B; }
.sdgp-tile--8 { --sdgp-tile: #A21942; }
.sdgp-tile--9 { --sdgp-tile: #FD6925; }
.sdgp-tile--10 { --sdgp-tile: #DD1367; }
.sdgp-tile--11 { --sdgp-tile: #FD9D24; }
.sdgp-tile--12 { --sdgp-tile: #BF8B2E; }
.sdgp-tile--13 { --sdgp-tile: #3F7E44; }
.sdgp-tile--14 { --sdgp-tile: #0A97D9; }
.sdgp-tile--15 { --sdgp-tile: #56C02B; }
.sdgp-tile--16 { --sdgp-tile: #00689D; }
.sdgp-tile--17 { --sdgp-tile: #19486A; }

/* 18-katak: maqsadlar belgisi */
.sdgp-tile--logo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ip-line);
    background: #fff;
    color: var(--ip-ink);
    text-align: center;
}

.sdgp-tile--logo:hover,
.sdgp-tile--logo:focus-visible {
    color: var(--ip-ink);
}

.sdgp-tile__logo-text {
    color: #0a97d9;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.15;
    text-transform: uppercase;
}

/* Yon panel: siyosatlar va hisobotlar */
.sdgp-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sdgp-panel {
    padding: 18px 20px 10px;
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ip-shadow);
    scroll-margin-top: 100px;
}

.sdgp-panel__head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    color: var(--ip-primary);
}

.sdgp-panel__title {
    margin: 0;
    color: var(--ip-ink);
    font-size: 20px;
    font-weight: 700;
}

.sdgp-doclist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdgp-doclist li + li {
    border-top: 1px solid var(--ip-line);
}

.sdgp-doc {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    color: var(--ip-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.sdgp-doc:hover,
.sdgp-doc:focus-visible {
    color: var(--ip-primary);
    text-decoration: none;
}

.sdgp-doc__icon {
    display: flex;
    color: var(--ip-primary);
}

.sdgp-doc--report .sdgp-doc__icon {
    color: #d9342b;
}

.sdgp-doc__go {
    display: flex;
    color: var(--ip-primary);
}

.sdgp-panel__empty {
    margin: 6px 0 12px;
    color: var(--ip-muted);
    font-size: 14px;
}

/* ── Yangiliklar ──────────────────────────────────────────────────── */

.sdgp-news__head {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}

.sdgp-news__line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--ip-line);
}

.sdgp-news__all {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--ip-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sdgp-news__all:hover,
.sdgp-news__all:focus-visible {
    color: var(--ip-primary-600);
    text-decoration: underline;
}

.sdgp-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: 24px;
    align-items: start;
}

.sdgp-ncard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ip-shadow);
    color: var(--ip-ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.sdgp-ncard:hover,
.sdgp-ncard:focus-visible {
    color: var(--ip-ink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 27, 61, .12);
}

.sdgp-ncard__media {
    position: relative;
    aspect-ratio: 16 / 7.5;
    overflow: hidden;
    background: var(--ip-bg);
}

.sdgp-ncard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdgp-ncard__badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--ip-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.sdgp-ncard__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 6px 12px;
    align-items: end;
    padding: 14px 16px 16px;
}

.sdgp-ncard__date {
    display: flex;
    grid-column: 1 / -1;
    gap: 6px;
    align-items: center;
    color: var(--ip-muted);
    font-size: 12.5px;
}

.sdgp-ncard__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sdgp-ncard__go {
    display: flex;
    color: var(--ip-ink);
}

.sdgp-news__empty {
    grid-column: 1 / 4;
    align-self: center;
    margin: 0;
    color: var(--ip-muted);
}

/* Yashil banner */
.sdgp-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: 200px;
    padding: 24px 30px;
    overflow: hidden;
    border-radius: 12px;
    background:
        radial-gradient(120% 140% at 85% 90%, #3e8f2f 0%, rgba(62, 143, 47, 0) 55%),
        linear-gradient(120deg, #0f5a2a 0%, #1f7a35 55%, #2f8f3a 100%);
    color: #fff;
}

.sdgp-promo__img {
    position: absolute;
    right: -10px;
    bottom: -14px;
    width: 34%;
    max-width: 210px;
    height: auto;
    pointer-events: none;
}

.sdgp-promo__head {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 74%;
}

.sdgp-promo__leaf {
    display: flex;
    flex: 0 0 auto;
    color: #9fe08f;
}

.sdgp-promo__title {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.sdgp-promo__text {
    position: relative;
    max-width: 68%;
    margin: 12px 0 18px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.5;
}

.sdgp-promo__btn {
    position: relative;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    align-self: flex-start;
    padding: 8px 18px;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.sdgp-promo__btn:hover,
.sdgp-promo__btn:focus-visible {
    background: #fff;
    color: #1f7a35;
    text-decoration: none;
}

/* ── Moslashuvchanlik ─────────────────────────────────────────────── */

@media (max-width: 1399.98px) {
    .sdgp-intro {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }

    .sdgp-quick {
        grid-column: 1 / -1;
    }

    .sdgp-goals {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    .sdgp-aside {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdgp-news__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sdgp-promo {
        grid-column: 1 / -1;
    }

    .sdgp-promo__head,
    .sdgp-promo__text {
        max-width: 70%;
    }
}

@media (max-width: 1199.98px) {
    /* Matn kartalar ustida — kartalar to'liq kenglikda, nomlar sig'adi */
    .sdgp-goals {
        grid-template-columns: minmax(0, 1fr);
    }

    .sdgp-goals__text {
        max-width: 760px;
    }
}

@media (max-width: 991.98px) {
    .sdgp-hero__title {
        font-size: 34px;
    }

    .sdgp-hero {
        background:
            linear-gradient(90deg, rgba(10, 42, 107, .95) 0%, rgba(10, 42, 107, .8) 60%, rgba(10, 42, 107, .5) 100%),
            url("../images/header_build.png") 70% center / cover no-repeat,
            #0a2a6b;
    }

    .sdgp-intro,
    .sdgp-goals {
        grid-template-columns: minmax(0, 1fr);
    }

    .sdgp-intro__text {
        padding-left: 0;
        border-left: 0;
    }

    .sdgp-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdgp-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sdgp-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdgp-news__empty {
        grid-column: 1 / -1;
    }
}

@media (max-width: 599.98px) {
    .sdgp-wrap {
        padding: 0 16px;
    }

    .sdgp-hero {
        min-height: 180px;
    }

    .sdgp-hero__title {
        font-size: 28px;
    }

    .sdgp-hero__sub {
        font-size: 15.5px;
    }

    .sdgp-h2 {
        font-size: 23px;
    }

    .sdgp-aside,
    .sdgp-news__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sdgp-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sdgp-tile {
        min-height: 96px;
        padding: 6px 7px 8px;
    }

    .sdgp-tile__num {
        font-size: 24px;
    }

    .sdgp-tile__title {
        font-size: 9.5px;
    }

    .sdgp-tile__icon svg {
        width: 36px;
        height: 36px;
    }

    .sdgp-news__head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sdgp-news__line {
        display: none;
    }

    .sdgp-promo__head,
    .sdgp-promo__text {
        max-width: 100%;
    }

    .sdgp-promo__img {
        position: static;
        align-self: flex-end;
        width: 55%;
        margin: -10px -20px -24px 0;
    }
}

/* ── BMT'ning rasmiy ikonkalari (`images/sustainability/sdg/240|480`) ──
 * Rasm o'zi raqam, nom va piktogrammani o'z ichiga oladi — katak kvadrat,
 * ichki bo'shliqsiz. Fayl bo'lmasa — yuqoridagi chizilgan katak.
 */
.sdgp-tile--img {
    display: block;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
}

.sdgp-tile--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdgp-tile--logo {
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.sdgp .sdgp-chip--img {
    width: 34px;
    min-width: 0;
    height: 34px;
    padding: 0;
    overflow: hidden;
    background: none;
}

.sdgp .sdgp-chip--img img {
    display: block;
    width: 100%;
    height: 100%;
}

.sdgp .sdgp-card .sdgp-chip--img {
    width: 30px;
    height: 30px;
}

.sdgp .sdgp-panel .sdgp-chip--img {
    width: 40px;
    height: 40px;
}

.sdgp .sdgp-goallist .sdgp-chip--img,
.sdgp .sdgp-pager .sdgp-chip--img {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
}

.sdgp .sdgp-chip--img.is-active {
    box-shadow: 0 0 0 3px var(--ip-ink);
}

/* Maqsad sahifasi sarlavhasidagi katta ikonka */
.sdgp-goalhero__img {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, .75);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

@media (max-width: 599.98px) {
    .sdgp-goalhero__img {
        width: 84px;
        height: 84px;
    }
}

/* ── Havola ranglari: shablonning global `a:visited` qoidasidan himoya ──
 *
 * `gorom/css/style.css`: `a:hover, a:focus, a:visited { color: #2962ff }`
 * (aniqlik 0,1,1) oddiy `.sdgp-tile` (0,1,0) dan ustun turadi — bosib
 * ko'rilgan maqsad kartasining yozuvi ko'k bo'lib qolardi. `.sdgp` ichida
 * (0,2,x) bilan qayta beriladi.
 */
.sdgp a.sdgp-tile,
.sdgp a.sdgp-tile:visited,
.sdgp a.sdgp-tile:hover,
.sdgp a.sdgp-tile:focus,
.sdgp a.sdgp-chip,
.sdgp a.sdgp-chip:visited,
.sdgp a.sdgp-chip:hover,
.sdgp a.sdgp-chip:focus,
.sdgp a.sdgp-promo__btn,
.sdgp a.sdgp-promo__btn:visited,
.sdgp a.sdgp-btn--solid,
.sdgp a.sdgp-btn--solid:visited,
.sdgp a.sdgp-btn--solid:hover,
.sdgp a.sdgp-btn--solid:focus,
.sdgp .sdgp-crumbs a,
.sdgp .sdgp-crumbs a:visited {
    color: #fff;
}

.sdgp a.sdgp-tile--logo,
.sdgp a.sdgp-tile--logo:visited,
.sdgp a.sdgp-tile--logo:hover,
.sdgp a.sdgp-tile--logo:focus,
.sdgp a.sdgp-quick__card,
.sdgp a.sdgp-quick__card:visited,
.sdgp a.sdgp-quick__card:hover,
.sdgp a.sdgp-quick__card:focus,
.sdgp a.sdgp-ncard,
.sdgp a.sdgp-ncard:visited,
.sdgp a.sdgp-ncard:hover,
.sdgp a.sdgp-ncard:focus,
.sdgp a.sdgp-doc,
.sdgp a.sdgp-doc:visited,
.sdgp .sdgp-card__title a,
.sdgp .sdgp-card__title a:visited,
.sdgp .sdgp-goallist a,
.sdgp .sdgp-goallist a:visited,
.sdgp a.sdgp-pager__link,
.sdgp a.sdgp-pager__link:visited,
.sdgp a.sdgp-panel__link,
.sdgp a.sdgp-panel__link:visited,
.sdgp a.sdgp-sectionnav__link,
.sdgp a.sdgp-sectionnav__link:visited {
    color: var(--ip-ink);
}

.sdgp a.sdgp-doc:hover,
.sdgp a.sdgp-doc:focus,
.sdgp .sdgp-card__title a:hover,
.sdgp .sdgp-card__title a:focus,
.sdgp .sdgp-goallist a:hover,
.sdgp .sdgp-goallist a:focus,
.sdgp a.sdgp-pager__link:hover,
.sdgp a.sdgp-pager__link:focus,
.sdgp a.sdgp-panel__link:hover,
.sdgp a.sdgp-panel__link:focus,
.sdgp a.sdgp-sectionnav__link:hover,
.sdgp a.sdgp-sectionnav__link:focus,
.sdgp a.sdgp-btn,
.sdgp a.sdgp-btn:visited,
.sdgp a.sdgp-news__all,
.sdgp a.sdgp-news__all:visited {
    color: var(--ip-primary);
}

.sdgp a.sdgp-btn:hover,
.sdgp a.sdgp-btn:focus-visible,
.sdgp a.sdgp-sectionnav__link.is-active,
.sdgp a.sdgp-sectionnav__link.is-active:visited,
.sdgp a.sdgp-promo__btn:hover,
.sdgp a.sdgp-promo__btn:focus-visible {
    color: #fff;
}

.sdgp a.sdgp-promo__btn:hover,
.sdgp a.sdgp-promo__btn:focus-visible {
    color: #1f7a35;
}

/* ── Ichki sahifalar: hero ─────────────────────────────────────────── */

.sdgp-hero--inner {
    min-height: 280px;
}

.sdgp-hero--inner .sdgp-hero__title {
    font-size: 38px;
}

/* Uzun sarlavha: matn bilan barg bir qatorda oqadi, o'ng chetga qochmaydi */
.sdgp-hero--inner:not(.sdgp-hero--goal) .sdgp-hero__title {
    display: block;
    max-width: 1100px;
    font-size: 34px;
}

.sdgp-hero--inner:not(.sdgp-hero--goal) .sdgp-hero__leaf {
    margin-left: 10px;
    vertical-align: -4px;
}

.sdgp-crumbs li:last-child {
    min-width: 0;
    max-width: 60ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sdgp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 13.5px;
    list-style: none;
}

.sdgp-crumbs li + li::before {
    content: "›";
    margin-right: 6px;
    opacity: .7;
}

.sdgp-crumbs a {
    opacity: .85;
    text-decoration: none;
}

.sdgp-crumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Maqsad sahifasi — maqsad rangida */
.sdgp-hero--goal {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) 120px),
        linear-gradient(110deg, var(--sdgp-tile) 0%, var(--sdgp-tile) 55%, rgba(255, 255, 255, .12) 100%),
        var(--sdgp-tile);
}

.sdgp-goalhero__num {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.sdgp-goalhero__icon {
    display: inline-flex;
    padding: 0 6px;
    border-right: 2px solid rgba(255, 255, 255, .45);
    border-left: 2px solid rgba(255, 255, 255, .45);
}

.sdgp-hero--goal .sdgp-hero__sub {
    max-width: 760px;
}

.sdgp-hero--goal .sdgp-bar {
    background: #fff;
}

/* ── Ichki sahifalar: tuzilma ──────────────────────────────────────── */

.sdgp-page {
    padding-top: 28px;
}

.sdgp-narrow {
    max-width: 880px;
}

.sdgp-mt {
    margin-top: 32px !important;
}

.sdgp-h2--sm {
    margin-bottom: 16px;
    font-size: 22px;
}

.sdgp-empty {
    margin: 8px 0 24px;
    padding: 22px 24px;
    border: 1px dashed var(--ip-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ip-muted);
    font-size: 15px;
}

.sdgp-sectionnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.sdgp-sectionnav__link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid var(--ip-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

.sdgp-sectionnav__link:hover {
    border-color: var(--ip-primary);
    text-decoration: none;
}

.sdgp-sectionnav__link.is-active {
    border-color: var(--ip-primary);
    background: var(--ip-primary);
}

/* Material kartalari */
.sdgp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sdgp-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sdgp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ip-shadow);
    transition: transform .15s, box-shadow .15s;
}

.sdgp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 27, 61, .12);
}

.sdgp-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ip-bg);
}

.sdgp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdgp-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}

.sdgp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.sdgp-card__pdf {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: #d9342b;
    font-size: 12.5px;
    font-weight: 600;
}

.sdgp-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.sdgp-card__title a {
    text-decoration: none;
}

/* Butun karta bosiladigan bo'lsin — sarlavha havolasi kartani qoplaydi */
.sdgp-card {
    position: relative;
}

.sdgp-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.sdgp-card__summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ip-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Maqsad belgilari */
.sdgp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.sdgp-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--sdgp-tile, #19486A);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

a.sdgp-chip:hover,
a.sdgp-chip:focus-visible {
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(15, 27, 61, .18);
}

.sdgp-chip.is-active {
    box-shadow: 0 0 0 3px var(--ip-ink);
}

.sdgp-panel .sdgp-chips {
    gap: 8px;
}

.sdgp-panel .sdgp-chip {
    min-width: 36px;
    height: 36px;
}

/* Material / maqsad sahifasi */
.sdgp-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 32px;
    align-items: start;
}

.sdgp-article__main {
    min-width: 0;
}

.sdgp-article__image {
    display: block;
    width: 100%;
    max-height: 460px;
    margin-bottom: 22px;
    border-radius: 12px;
    object-fit: cover;
}

.sdgp-article__lead {
    margin: 0 0 20px;
    color: var(--ip-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.sdgp-prose {
    padding: 24px 28px;
    border: 1px solid var(--ip-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ip-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.sdgp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.sdgp-prose > :first-child {
    margin-top: 0;
}

.sdgp-prose > :last-child {
    margin-bottom: 0;
}

.sdgp-article__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 110px;
}

.sdgp-panel__title--sm {
    margin-bottom: 14px;
    font-size: 17px;
}

.sdgp-panel__link {
    text-decoration: none;
}

.sdgp-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    margin: 4px 0 16px;
    font-size: 14px;
}

.sdgp-meta dt {
    color: var(--ip-muted);
    font-weight: 500;
}

.sdgp-meta dd {
    margin: 0;
    color: var(--ip-ink);
    font-weight: 600;
}

.sdgp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

.sdgp-btn--solid {
    border-color: var(--ip-primary);
    background: var(--ip-primary);
}

.sdgp-btn--solid:hover,
.sdgp-btn--solid:focus-visible {
    border-color: var(--ip-primary-600);
    background: var(--ip-primary-600);
}

.sdgp-actions .sdgp-btn,
.sdgp-btn--block {
    justify-content: center;
    width: 100%;
}

.sdgp-btn--block {
    margin-bottom: 14px;
}

.sdgp-goallist {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.sdgp-goallist li + li {
    margin-top: 8px;
}

.sdgp-goallist a {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.sdgp-pager {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0 8px;
    border-top: 1px solid var(--ip-line);
}

.sdgp-pager__link {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.sdgp-pager__link--next {
    justify-content: flex-end;
    text-align: right;
}

.sdgp-related {
    margin-top: 40px;
}

@media (max-width: 1199.98px) {
    .sdgp-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sdgp-article {
        grid-template-columns: minmax(0, 1fr);
    }

    .sdgp-article__aside {
        position: static;
    }

    .sdgp-hero--inner .sdgp-hero__title {
        font-size: 30px;
    }

    .sdgp-goalhero__num {
        font-size: 48px;
    }
}

@media (max-width: 599.98px) {
    .sdgp-cards,
    .sdgp-cards--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .sdgp-hero--inner .sdgp-hero__title {
        flex-wrap: wrap;
        font-size: 25px;
    }

    .sdgp-prose {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sdgp-quick__card,
    .sdgp-tile,
    .sdgp-ncard,
    .sdgp-card {
        transition: none;
    }

    .sdgp-quick__card:hover,
    .sdgp-tile:hover,
    .sdgp-ncard:hover,
    .sdgp-card:hover {
        transform: none;
    }
}
