/* DBIM "Related Websites" strip. Full-bleed light band; logo cards never upscale their images beyond real size. */
.dbim-partners {
    --p-navy: #162f6a;
    --p-blue: #214aab;
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
    clear: both;
    width: var(--vw, 100vw);
    margin-left: calc(50% - var(--vw, 100vw) / 2);
    background: #ebeaea;
    border-top: 1px solid #ebeaea;
}

.dbim-partners *,
.dbim-partners *::before,
.dbim-partners *::after {
    box-sizing: border-box;
}

.dp-in {
    max-width: 1440px;
    margin: 0 auto;
    padding: 34px 16px 40px;
}

.dp-title {
    margin: 0 0 22px;
    text-align: center;
    font-size: var(--dbim-fs-p2);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--p-navy);
}

.dp-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--p-blue);
    border-radius: 2px;
}

.dp-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.dp-grid li {
    flex: 1 1 0;
    min-width: 0;
}

.dp-grid li:first-child {
    flex-grow: 1.45;
}

.dp-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #ebeaea;
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dp-card:hover {
    border-color: var(--p-blue);
    box-shadow: 0 8px 20px rgba(20, 34, 79, .12);
    transform: translateY(-2px);
}

.dp-card:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 3px;
}

/* raster logos: fit inside the card, never stretched past their pixel size */
.dp-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* MEA logo built in code: emblem + text (sharp at any size) */
.dp-mea {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-mea-emblem {
    flex: 0 0 auto;
    width: 30px;
    height: 46px;
    background-size: contain !important;
    background: url('../images/Emblem_of_India.svg') no-repeat;
}

.dp-mea-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    line-height: 1.2;
}

.dp-mea-text strong {
    font-size: var(--dbim-fs-p1);
    font-weight: 600;
    color: #162f6a;
    white-space: nowrap;
}

.dp-mea-text span {
    font-size: var(--dbim-fs-sm);
    color: #606060;
}

@media (max-width: 1099px) {

    .dp-grid li,
    .dp-grid li:first-child {
        flex: 0 1 calc(33.333% - 12px);
    }

    .dp-card {
        height: 104px;
    }
}

@media (max-width: 640px) {
    .dp-in {
        padding: 26px 10px 30px;
    }

    .dp-grid {
        gap: 12px;
    }

    .dp-grid li {
        flex: 0 1 calc(50% - 6px);
    }

    .dp-grid li:first-child {
        flex: 0 1 100%;
    }

    /* MEA logo (widest) gets its own row; the other four pair up */
    .dp-card {
        height: 92px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .dp-logo {
        max-height: 60px;
    }

    .dp-mea {
        gap: 8px;
    }

    .dp-mea-emblem {
        width: 36px;
        height: 36px;
        background-size: 136px auto;
        background-position: -50px -1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dp-card {
        transition: none;
    }

    .dp-card:hover {
        transform: none;
    }
}

html.a11y-images .dp-logo,
html.a11y-images .dp-mea-emblem {
    visibility: hidden;
}