/********** Certificate Cards ************/
.cert-card-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    background: #fff;
    transition: transform .35s, box-shadow .35s, border-color .35s;
    padding: 10px;
}
.cert-card-wrapper:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(45,24,105,0.20);
    border-color: #2d1869;
}
.cert-image-container {
    position: relative;
    background: #fff;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}
.cert-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s;
}
.cert-card-wrapper:hover .cert-thumb {
    transform: scale(1.05);
}
.cert-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(45,24,105,0.78) 0%, rgba(0,141,217,0.68) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s;
}
.cert-card-wrapper:hover .cert-overlay { opacity: 1; }
.cert-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.overlay-icon { font-size: 2.6rem; color: #fff; }
.overlay-text {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.cert-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #2d1869;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 4px;
    z-index: 2;
}
.cert-caption {
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    gap: 14px;
    margin: 2px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #2d1869;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.cert-caption-left {
    flex: 1;
    min-width: 0;
}
.cert-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #212121;
    margin-bottom: 4px;
    padding: 4px 8px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}
.cert-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
    padding: 4px 8px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}
.cert-dl-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #2d1869;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background .25s, transform .25s;
}
.cert-dl-btn:hover {
    background: #008dd9;
    color: #fff;
    transform: scale(1.12);
    text-decoration: none;
}
@media (max-width: 991.98px) { .cert-thumb { height: auto; } }
@media (max-width: 767.98px) { .cert-thumb { height: auto; } }
@media (max-width: 575.98px) {
    .cert-thumb { height: auto; }
    .cert-caption { padding: 14px 16px; }
}
