/* ALCANCE Home — canonical opportunities section.
 * Server-rendered replacement for the old Elementor card row.
 * Current identity: Rubik, #49B5E7, #F47F22, #202021.
 */

.mp-home-opportunity-section,
.mp-home-opportunity-section * {
    box-sizing: border-box;
    font-family: "Rubik", Arial, sans-serif !important;
}

.mp-home-opportunity-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.mp-home-opportunity-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.mp-home-opportunity-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 214px;
    padding: 20px;
    border: 1px solid #e3e8ef;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

/* Desktop: cards touch each other and share a single visual divider. */
@media (min-width: 1025px) {
    .mp-home-opportunity-card + .mp-home-opportunity-card {
        border-left: 0;
    }

    .mp-home-opportunity-card:first-child {
        border-radius: 5px 0 0 5px;
    }

    .mp-home-opportunity-card:last-child {
        border-radius: 0 5px 5px 0;
    }
}

/* Current visual identity: blue service icons. */
.mp-home-opportunity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 0 15px;
    border: 1px solid rgba(73, 181, 231, .30);
    border-radius: 100%;
    background: rgba(73, 181, 231, .09);
    color: #49b5e7;
}

.mp-home-opportunity-icon svg {
    width: 23px;
    height: 23px;
    display: block;
}

.mp-home-opportunity-card h3 {
    margin: 0 0 10px;
    color: #202021;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0;
}

.mp-home-opportunity-card p {
    margin: 0;
    color: #667085;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
}

.mp-home-opportunity-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 15px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f47f22;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: none;
}

.mp-home-opportunity-cta:hover,
.mp-home-opportunity-cta:focus-visible {
    color: #49b5e7;
}

.mp-home-opportunity-card--partner {
    min-height: 214px;
    padding: 22px;
    border-color: #202021;
    background: #202021;
}

/* Partner intentionally has no icon. */
.mp-home-opportunity-card--partner h3 {
    margin: 0 0 11px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.22;
}

.mp-home-opportunity-card--partner p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}

.mp-home-opportunity-cta--button {
    min-height: 38px;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid #f47f22;
    border-radius: 5px;
    background: #f47f22;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.mp-home-opportunity-cta--button:hover,
.mp-home-opportunity-cta--button:focus-visible {
    border-color: #82bd41;
    background: #82bd41;
    color: #202021;
}

/* Tablet: two-column seamless grid, with Partner spanning the final row. */
@media (max-width: 1024px) and (min-width: 768px) {
    .mp-home-opportunity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .mp-home-opportunity-card,
    .mp-home-opportunity-card--partner {
        min-height: 0;
        border-radius: 0;
    }

    .mp-home-opportunity-card:nth-child(even) {
        border-left: 0;
    }

    .mp-home-opportunity-card:nth-child(n+3) {
        border-top: 0;
    }

    .mp-home-opportunity-card:first-child {
        border-radius: 5px 0 0 0;
    }

    .mp-home-opportunity-card:nth-child(2) {
        border-radius: 0 5px 0 0;
    }

    .mp-home-opportunity-card--partner {
        grid-column: 1 / -1;
        border-left: 1px solid #202021;
        border-radius: 0 0 5px 5px;
    }
}

/* Mobile: one seamless vertical stack, separated only by borders. */
@media (max-width: 767px) {
    .mp-home-opportunity-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mp-home-opportunity-card,
    .mp-home-opportunity-card--partner {
        min-height: 0;
        padding: 18px;
        border-left-width: 1px;
        border-radius: 0;
    }

    .mp-home-opportunity-card + .mp-home-opportunity-card {
        border-top: 0;
    }

    .mp-home-opportunity-card:first-child {
        border-radius: 5px 5px 0 0;
    }

    .mp-home-opportunity-card:last-child {
        border-radius: 0 0 5px 5px;
    }

    .mp-home-opportunity-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }

    .mp-home-opportunity-card h3,
    .mp-home-opportunity-card--partner h3 {
        font-size: 14px;
    }

    .mp-home-opportunity-card p {
        font-size: 11px;
    }

    .mp-home-opportunity-cta,
    .mp-home-opportunity-cta--button {
        margin-top: 14px;
    }
}
