/* PMI HomeV2 — pathways.css */
/* Measurements: white bg, 4-col grid, card radius 8px, hover lift, icon circle, orange Learn More */

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

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

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

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

.v2-pathways__header {
    text-align: center;
    margin-bottom: 44px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.v2-pathways__heading {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.v2-pathways__sub {
    font-size: 18px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.65;
}

.v2-pathways__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.v2-pathways__card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.v2-pathways__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f97316;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.v2-pathways__card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.11);
    transform: translateY(-4px);
    border-color: #d1d5db;
}

.v2-pathways__card:hover::before { transform: scaleX(1); }

/* Card image */
.v2-pathways__card-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #1a2844;
    flex-shrink: 0;
}

.v2-pathways__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.v2-pathways__card:hover .v2-pathways__card-img { transform: scale(1.06); }

.v2-pathways__card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card body — padding when image present */
.v2-pathways__card-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* No-image variant: keep old padding on body */
.v2-pathways__card--no-image .v2-pathways__card-body {
    padding: 28px 22px;
}

.v2-pathways__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(26,143,232,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a8fe8;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 4px;
}

.v2-pathways__card:hover .v2-pathways__icon-wrap {
    background: rgba(249,115,22,0.12);
    color: #f97316;
}

.v2-pathways__card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.v2-pathways__card-desc {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}

.v2-pathways__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #f97316;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin-top: 4px;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.v2-pathways__link:hover { gap: 7px; opacity: 0.85; }
.v2-pathways__link:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; border-radius: 2px; }

@media (max-width: 1100px) { .v2-pathways__grid { gap: 16px; } }

@media (max-width: 900px) {
    .v2-pathways__grid { grid-template-columns: repeat(2, 1fr); }
    .v2-pathways { padding: 56px 0; }
}

@media (max-width: 640px) {
    .v2-pathways { padding: 48px 0; }
    .v2-pathways__heading { font-size: 24px; }
    .v2-pathways__grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 420px) {
    .v2-pathways__inner { padding: 0 16px; }
    .v2-pathways__card { padding: 22px 18px; }
}

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