/* ── Certificate Section Styles ── */

.cert-section {
    margin: 24px 0;
    text-align: center;
}

.cert-title {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 16px 0;
}

.cert-canvas-wrap {
    margin: 0 auto 16px auto;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
}

.cert-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 44px;
}

.cert-btn:hover {
    transform: translateY(-1px);
}

.cert-btn:active {
    transform: translateY(0);
}

.cert-download {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.cert-download:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.cert-share-btn {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.cert-share-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

@media (max-width: 480px) {
    .cert-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cert-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 22px;
    }

    .cert-section {
        margin: 20px 0;
    }
}

@media (max-width: 380px) {
    .cert-btn {
        max-width: 280px;
        padding: 12px 18px;
        font-size: 13px;
    }
}
