.cert-section {
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-inner {
    width: 100%;
}

.cert-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cert-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 16px;
    opacity: 0.8;
}

.cert-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 4px;
}

.cert-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--mid);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cert-content-wrapper {
    position: relative;
    width: 100%;
}

.corkboard {
    position: relative;
    width: 100%;
}

.corkboard::before,
.corkboard::after {
    display: none;
}

/* ── Modern Cert Grid ─────────────────────────────────── */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cert-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 24px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
}

.cert-card.cert-card-in-progress {
    padding-bottom: 62px;
}

.cert-expected {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--mid);
    opacity: 0.9;
    white-space: nowrap;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
}

.cert-card:hover {
    transform: translateY(-8px);
    background: var(--bg);
    border-color: var(--line-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cert-badge-wrap {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-badge-wrap {
    transform: scale(1.05);
}

.cert-badge {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.cert-badge.essentials-badge {
    width: 250px;
    height: 250px;
}

.cert-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.cert-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.cert-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
}

.cert-status {
    font-size: 0.75rem;
    font-weight: 600;
    /* letter-spacing; */
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cert-status.in-progress {
    background: rgba(255, 193, 7, 0.12);
    color: #ffca28;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.cert-status.completed {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.12);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cert-launch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mid);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.cert-launch-btn:hover {
    /* border-color: var(--accent); */
    color: var(--accent);
    transform: translateY(-2px);
}

.cert-launch-btn svg {
    width: 13px;
    height: 13px;
}

.cert-card:hover .cert-status {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .cert-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cert-sub {
        margin-bottom: 48px;
    }

    .cert-grid {
        gap: 16px;
    }

    .cert-card {
        flex: 0 0 calc((100% - 16px) / 2);
        width: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
        padding: 32px 20px;
        gap: 16px;
    }

    .cert-card-name {
        font-size: 0.9rem;
    }

    .cert-status {
        letter-spacing: 0.08em;
        padding: 6px 12px;
    }

    .cert-card.cert-card-in-progress {
        padding-bottom: 54px;
    }

    .cert-expected {
        right: 12px;
        /* bottom: 12px; */
        font-size: 0.62rem;
    }

    .cert-badge-wrap {
        width: 110px;
        height: 110px;
    }

    .cert-badge.essentials-badge {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 640px) {
    .cert-grid {
        gap: 14px;
    }

    .cert-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 34px 22px;
    }

    .cert-card.cert-card-in-progress {
        padding-bottom: 56px;
    }

    .cert-expected {
        right: 12px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cert-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .cert-sub {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }

    .cert-grid {
        gap: 16px;
    }

    .cert-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 36px 24px;
    }

    .cert-card.cert-card-in-progress {
        padding-bottom: 56px;
    }

    .cert-expected {
        right: 12px;
        bottom: 10px;
    }

    .cert-badge-wrap {
        width: 140px;
        height: 140px;
        max-width: 100%;
    }

    .cert-badge.essentials-badge {
        width: 230px;
        height: 230px;
        /* max-width: 100%; */
    }
}
