/* ==========================================================
   DOE NETWORK - MONTHLY FEATURED CASES
   Inspired by the card-style Featured Cases section in the
   Sep. 6 homepage concept.
   ========================================================== */

.dn-featured {
    box-sizing: border-box;
    width: min(820px, calc(100% - 28px));
    margin: 22px auto 28px;
    font-family: "Open Sans", Arial, sans-serif;
    color: #172536;
}

.dn-featured-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}

.dn-featured-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dn-featured-kicker {
    width: 24px;
    height: 3px;
    background: #C79600;
    border-radius: 2px;
}

.dn-featured .dn-featured-heading h2 {
    margin: 0 !important;
    color: #172536 !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.dn-featured-more,
.dn-featured-more:link,
.dn-featured-more:visited {
    color: #123B5D !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.dn-featured-more:hover,
.dn-featured-more:focus {
    color: #147CA6 !important;
    text-decoration: underline !important;
    text-decoration-color: #C79600 !important;
    text-underline-offset: 4px;
}

.dn-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dn-case-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #D7E0E5;
    border-radius: 7px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(23, 37, 54, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dn-case-card:hover {
    transform: translateY(-3px);
    border-color: #B9CDD6;
    box-shadow: 0 9px 22px rgba(23, 37, 54, .16);
}

.dn-case-photo-link,
.dn-case-photo-link:link,
.dn-case-photo-link:visited {
    display: block;
    text-decoration: none !important;
}

.dn-case-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 160px;
    background: #EAF1F4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dn-case-photo img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain;
    object-position: center center;
    transition: transform .25s ease;
}

.dn-case-card:hover .dn-case-photo img {
    transform: scale(1.025);
}

.dn-case-badge {
    position: absolute;
    left: 7px;
    bottom: 0;
    z-index: 2;
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px 4px 0 0;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.dn-case-badge-missing {
    background: #0C5B82;
}

.dn-case-badge-uid {
    background: #B78214;
}

.dn-case-body {
    padding: 10px 11px 11px;
}

.dn-case-body h3 {
    margin: 0 0 4px !important;
    color: #172536 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
}

.dn-case-body h3 a,
.dn-case-body h3 a:link,
.dn-case-body h3 a:visited {
    color: #172536 !important;
    text-decoration: none !important;
}

.dn-case-body h3 a:hover,
.dn-case-body h3 a:focus {
    color: #147CA6 !important;
    text-decoration: none !important;
}

.dn-case-number {
    margin: 0 0 6px !important;
    color: #667784 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.dn-case-details {
    margin: 0 0 8px;
}

.dn-case-details > div {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 5px;
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.35;
}

.dn-case-details dt {
    margin: 0;
    color: #52636E;
    font-weight: 600;
}

.dn-case-details dd {
    min-width: 0;
    margin: 0;
    color: #172536;
    overflow-wrap: anywhere;
}

.dn-case-button,
.dn-case-button:link,
.dn-case-button:visited {
    display: flex !important;
    width: 100% !important;
    min-height: 30px;
    box-sizing: border-box !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 5px 8px !important;
    border: 1px solid #0C5B82 !important;
    border-radius: 4px;
    background: #123B5D !important;
    color: #FFFFFF !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    text-decoration: none !important;
}

.dn-case-button:hover,
.dn-case-button:focus {
    border-color: #0F6385 !important;
    background: #147CA6 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.dn-case-button:focus,
.dn-featured-more:focus {
    outline: 2px solid #C79600;
    outline-offset: 2px;
}

.dn-featured-unavailable {
    padding: 20px;
    border: 1px solid #D7E0E5;
    border-radius: 6px;
    background: #F7FAFB;
    color: #52636E;
    text-align: center;
}

@media (max-width: 900px) {
    .dn-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dn-featured {
        width: min(100% - 24px, 1180px);
        margin-top: 28px;
    }

    .dn-featured-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .dn-featured-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dn-case-photo {
        height: 210px;
    }
}
