/* Academy Education Network v0.4.2 */

#education-network {
    box-sizing: border-box;
    width: 100%;
    padding: 44px 24px 48px;
    background: #F1F5F9;
    color: #102D42;
    border-top: 1px solid #dce6eb;
}

#education-network * {
    box-sizing: border-box;
}

#education-network .dnha-pn-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

#education-network .dnha-pn-heading {
    margin: 0 0 26px;
    text-align: left;
}

#education-network .dnha-pn-heading > span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #086F65;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#education-network .dnha-pn-heading h2 {
    font-size: clamp(26px,3vw,32px);
    line-height: 1.25;
    color: #102D42;
    margin: 0 0 8px;
}

#education-network .dnha-pn-heading p {
    color: #526777;
    font-size: 16px;
    margin: 0;
}

#education-network .dnha-pn-grid {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px 24px;
    align-items: stretch;
}

#education-network .dnha-pn-card {
    display: grid;
    grid-template-rows:
        160px auto minmax(78px,auto)
        minmax(72px,1fr) minmax(48px,auto) auto;
    gap: 12px;
    min-width: 0;
    background: #fff;
    border: 1px solid #d7e3e9;
    border-radius: 14px;
    overflow: hidden;
    padding: 0 0 22px;
    margin: 0;
    box-shadow: 0 6px 20px rgba(16,45,66,.05);
}

/* Shared grid rows keep all content aligned across cards. */
@supports (grid-template-rows: subgrid) {
    #education-network .dnha-pn-card {
        grid-row: span 6;
        grid-template-rows: subgrid;
    }
}

#education-network img.dnha-pn-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 160px !important;
    max-height: 160px !important;
    min-height: 160px !important;
    object-fit: cover !important;
    object-position: center 40%;
    margin: 0 !important;
    border-radius: 0;
}

#education-network .dnha-pn-card > :not(img) {
    margin-left: 22px;
    margin-right: 22px;
}

#education-network .dnha-pn-category {
    color: #086F65;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
    padding-top: 8px;
}

#education-network .dnha-pn-card h3 {
    color: #102D42;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 0;
}

#education-network .dnha-pn-description {
    font-size: 15px;
    line-height: 1.65;
    color: #526777;
    margin-top: 0;
    margin-bottom: 0;
}

#education-network .dnha-pn-platform {
    color: #102D42;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    border-top: 1px solid #e0e9ee;
    padding-top: 12px;
}

#education-network .dnha-pn-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: end;
    gap: 12px;
    min-height: 48px;
    padding: 12px 15px;
    background: #086F65;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none !important;
}

#education-network .dnha-pn-button:hover {
    background: #102D42;
}

#education-network .dnha-pn-button:focus-visible {
    outline: 3px solid #102D42;
    outline-offset: 3px;
}

@media (max-width: 950px) {
    #education-network .dnha-pn-grid {
        grid-template-columns: minmax(0,1fr);
        grid-auto-rows: 1fr;
        gap: 20px;
        max-width: 580px;
        margin: 0 auto;
    }

    #education-network .dnha-pn-card {
        grid-row: auto;
        grid-template-rows:
            160px auto auto 1fr auto auto;
    }

    #education-network {
        padding: 32px 16px;
    }
}
