﻿.cv-resources {
    --resource-blue: #1c65eb;
    --resource-yellow: #ffda48;
    --resource-ink: #202939;
    --resource-muted: #7b89a2;
    position: relative;
    isolation: isolate;
    padding-bottom: 40px;
    background-color: var(--resource-blue);
    background-image: linear-gradient( rgba(255, 255, 255, 0.045) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px );
    background-size: 75px 75px;
    color: #ffffff;
    font-family: "IBM Plex Sans", Arial, sans-serif;
}

    .cv-resources,
    .cv-resources * {
        box-sizing: border-box;
    }

        .cv-resources .cv-resources__container {
            width: calc(100% - 64px);
            max-width: 1490px;
            margin: 0 auto;
        }

        /* Hero */

        .cv-resources .cv-resources__hero {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
            align-items: center;
            gap: 80px;
            min-height: 370px;
        }

        .cv-resources .cv-resources__intro {
            min-width: 0;
        }

        .cv-resources .cv-resources__eyebrow {
            margin: 0 0 22px;
            color: var(--resource-yellow);
            font-size: 14px;
            font-weight: 700;
            line-height: 1.4;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .cv-resources .cv-resources__heading {
            max-width: 780px;
            margin: 0;
            color: #ffffff;
            font-family: inherit;
            font-size: clamp(36px, 3.4vw, 60px);
            font-weight: 700;
            line-height: 1.12;
            letter-spacing: -0.02em;
        }

            .cv-resources .cv-resources__heading > span {
                display: block;
                color: var(--resource-yellow);
            }

        .cv-resources .cv-resources__description {
            max-width: 790px;
            margin: 22px 0 0;
            color: rgba(255, 255, 255, 0.88);
            font-size: 18px;
            line-height: 1.65;
        }

        .cv-resources .cv-resources__illustration {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }

            .cv-resources .cv-resources__illustration img {
                display: block;
                width: 100%;
                max-width: 530px;
                height: auto;
                object-fit: contain;
            }

        /* Card grid */

        .cv-resources .cv-resources__grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: stretch;
            gap: 22px;
            width: 100%;
/*            max-width: 1024px;*/
            margin-top: 136px;
        }

        .cv-resources .cv-resource {
            display: flex;
            flex-direction: column;
            min-width: 0;
            padding: 26px 25px 20px;
            border: 1px solid rgba(226, 232, 240, 0.85);
            border-radius: 16px;
            background: #ffffff;
            color: var(--resource-ink);
            box-shadow: 0 12px 30px rgba(10, 48, 123, 0.08);
        }

        .cv-resources .cv-resource__top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .cv-resources .cv-resource__type {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            border-radius: 3px;
            background: #f2f5fa;
            color: #4778ff;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.3;
            text-transform: uppercase;
        }

        .cv-resources .cv-resource__meta {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: #75849d;
            font-size: 11px;
            line-height: 1.3;
        }

            .cv-resources .cv-resource__meta svg {
                display: block;
                flex: 0 0 19px;
                width: 19px;
                height: 19px;
            }

        .cv-resources .cv-resource__title {
            margin: 20px 0 0;
            color: var(--resource-ink);
            font-family: inherit;
            font-size: 20px;
            font-weight: 700;
            line-height: 1.3;
        }

        .cv-resources .cv-resource__description {
            min-height: 44px;
            margin: 17px 0 20px;
            color: var(--resource-muted);
            font-size: 14px;
            line-height: 1.55;
        }

        /* Preview image and yellow icon */

        .cv-resources .cv-resource__preview {
            position: relative;
            display: block;
            overflow: hidden;
            width: 100%;
            aspect-ratio: 1.64;
            margin-top: auto;
            border-radius: 12px;
            background: linear-gradient(135deg, #edf3ff, #dce8ff);
            color: var(--resource-ink);
            text-decoration: none;
        }

            .cv-resources .cv-resource__preview img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.2s ease;
            }

            .cv-resources .cv-resource__preview[href]:hover img {
                transform: scale(1.025);
            }

        .cv-resources .cv-resource__preview-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            border-radius: 13px;
            background: var(--resource-yellow);
            color: #172033;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

            .cv-resources .cv-resource__preview-icon.is-video {
                border-radius: 50%;
            }

            .cv-resources .cv-resource__preview-icon svg {
                width: 29px;
                height: 29px;
            }

        .cv-resources .cv-resource__preview[aria-disabled="true"] {
            cursor: default;
        }

        /* Bottom action */

        .cv-resources .cv-resource__button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            min-height: 50px;
            margin-top: 18px;
            padding: 12px 14px;
            border: 1px solid #4778ff;
            border-radius: 2px;
            background: #ffffff;
            color: #4778ff;
            font-family: inherit;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.4;
            text-align: center;
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .cv-resources a.cv-resource__button:hover {
            background: #4778ff;
            color: #ffffff;
        }

        .cv-resources .cv-resource__button svg {
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
        }

        .cv-resources .cv-resource__button.is-disabled {
            border-color: #d6deec;
            background: #f7f9fc;
            color: #8b96aa;
            cursor: default;
        }

        .cv-resources a:focus-visible,
        .cv-resources button:focus-visible {
            outline: 3px solid var(--resource-yellow);
            outline-offset: 4px;
        }

        /* Video popup */

        .cv-resources .cv-resource-dialog {
            width: min(960px, calc(100vw - 32px));
            max-width: none;
            max-height: calc(100dvh - 32px);
            margin: auto;
            padding: 20px;
            overflow-y: auto;
            border: 0;
            border-radius: 14px;
            background: #ffffff;
            color: var(--resource-ink);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
        }

            .cv-resources .cv-resource-dialog::backdrop {
                background: rgba(7, 17, 39, 0.78);
            }

        .cv-resources .cv-resource-dialog__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 16px;
        }

        .cv-resources .cv-resource-dialog__title {
            margin: 0;
            font-family: inherit;
            font-size: 21px;
            line-height: 1.3;
        }

        .cv-resources .cv-resource-dialog__close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 40px;
            width: 40px;
            height: 40px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: #eef2f8;
            color: #172033;
            font-size: 28px;
            cursor: pointer;
        }

        .cv-resources .cv-resource-dialog__video {
            display: block;
            width: 100%;
            max-height: 70vh;
            background: #000000;
        }

        .cv-resources .cv-resource-dialog__direct {
            display: inline-block;
            margin-top: 14px;
            color: #1c65eb;
            font-size: 14px;
            text-decoration: underline;
        }

/* Tablet */

@media (max-width: 1050px) {
    .cv-resources .cv-resources__hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 32px;
    }

    .cv-resources .cv-resources__grid {
        margin-top: 80px;
    }

    .cv-resources .cv-resource {
        padding: 22px 18px 18px;
    }
}

/* Mobile */

@media (max-width: 760px) {
    .cv-resources {
        padding: 64px 0;
        background-size: 50px 50px;
    }

        .cv-resources .cv-resources__container {
            width: calc(100% - 40px);
        }

        .cv-resources .cv-resources__hero {
            grid-template-columns: 1fr;
            gap: 40px;
            min-height: 0;
        }

        .cv-resources .cv-resources__heading {
            font-size: clamp(34px, 7vw, 48px);
        }

        .cv-resources .cv-resources__description {
            font-size: 16px;
        }

        .cv-resources .cv-resources__illustration img {
            max-width: 360px;
        }

        .cv-resources .cv-resources__grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
            margin-top: 60px;
        }
}

@media (max-width: 540px) {
    .cv-resources .cv-resources__grid {
        grid-template-columns: 1fr;
    }

    .cv-resources .cv-resource {
        padding: 25px;
    }

    .cv-resources .cv-resource__description {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-resources *,
    .cv-resources *::before,
    .cv-resources *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Fade out the yellow play icon when hovering over the thumbnail. */
.cv-resources .cv-resource__preview-icon{
    opacity: 1;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .cv-resources .cv-resource__preview:hover
    .cv-resource__preview-icon{
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-resources .cv-resource__preview-icon{
        transition: none;
    }
}