/* PMI HomeV2 — certifications.css */
/* Measurements: white bg, 3-col grid, watermark ghost text, card radius 8px, border 1px, orange label */

.v2-certs, .v2-certs *, .v2-certs *::before, .v2-certs *::after { box-sizing: border-box; margin: 0; padding: 0; }

.elementor-widget-pmiv2_certifications .elementor-widget-container { padding: 0 !important; margin: 0 !important; }
.elementor-section:has(.v2-certs), .e-con:has(.v2-certs) {
    padding: 0 !important;
    --padding-top: 0 !important; --padding-bottom: 0 !important;
    --padding-left: 0 !important; --padding-right: 0 !important;
}

.v2-certs {
    background: #f8fafc;
    font-family: 'DM Sans', sans-serif;
    padding: 72px 0;
}

.v2-certs__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.v2-certs__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.v2-certs__header-left { display: flex; flex-direction: column; gap: 6px; }

.v2-certs__label {
    font-size: 10px;
    font-weight: 700;
    color: #f97316;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.v2-certs__heading {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.v2-certs__sub {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.65;
    max-width: 520px;
}

.v2-certs__view-all {
    font-size: 12px;
    font-weight: 600;
    color: #1a2844;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.v2-certs__view-all:hover { color: #f97316; border-bottom-color: #f97316; }
.v2-certs__view-all:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

.v2-certs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.v2-certs__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.v2-certs__card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}


/* Card image */
.v2-certs__card-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}
.v2-certs__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.v2-certs__card:hover .v2-certs__card-img { transform: scale(1.05); }

.v2-certs__watermark {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    font-size: 90px;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.v2-certs__card:hover .v2-certs__watermark { color: rgba(249,115,22,0.06); }

.v2-certs__card-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.v2-certs__card-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.v2-certs__card-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
}

.v2-certs__card-desc {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 4px;
}

.v2-certs__btn {
    margin-top: auto;
    width: 100%;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    position: relative;
    z-index: 2;
}

.v2-certs__btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    transform: translateY(-1px);
}

.v2-certs__btn:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

@media (max-width: 900px) {
    .v2-certs__grid { grid-template-columns: repeat(2, 1fr); }
    .v2-certs__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .v2-certs { padding: 48px 0; }
    .v2-certs__grid { grid-template-columns: 1fr; }
    .v2-certs__heading { font-size: 22px; }
}

@media (max-width: 420px) { .v2-certs__inner { padding: 0 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
