.actl-template-qualifications {
    --actlq-accent: #1f557a;
    --actlq-soft: #eef7fa;
    --actlq-line: #cfe3eb;
    --actlq-card-bg: #ffffff;
    --actlq-border: #e4eef2;
    --actlq-title: #203444;
    --actlq-text: #6d7b86;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: 18px 0 8px;
    box-sizing: border-box;
}

.actl-template-qualifications *,
.actl-template-qualifications *::before,
.actl-template-qualifications *::after {
    box-sizing: border-box;
}

.actlq-header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.actlq-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--actlq-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.actlq-eyebrow::before,
.actlq-eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--actlq-accent);
    opacity: .55;
}

.actl-template-qualifications .actlq-heading {
    margin: 0;
    color: var(--actlq-title);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.28;
    text-align: center;
}

.actlq-intro {
    max-width: 650px;
    margin: 14px auto 0;
    color: var(--actlq-text);
    font-size: 15px;
    line-height: 1.95;
    text-align: center;
}

.actlq-track-wrap {
    position: relative;
    width: 100%;
    padding-top: 18px;
}

.actlq-track {
    position: absolute;
    top: 35px;
    right: 7%;
    left: 7%;
    height: 2px;
    border-radius: 999px;
    background: var(--actlq-line);
}

.actlq-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.actlq-item {
    position: relative;
    min-width: 0;
    text-align: center;
}

.actlq-node {
    display: block;
    width: 16px;
    height: 16px;
    margin: 9px auto 12px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--actlq-accent);
    box-shadow: 0 0 0 2px var(--actlq-line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.actlq-item:hover .actlq-node,
.actlq-item:focus-within .actlq-node {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px var(--actlq-line);
}

.actl-template-qualifications .actlq-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 34px;
    margin: 0 auto 14px;
    padding: 5px 14px;
    border: 1px solid color-mix(in srgb, var(--actlq-accent) 18%, transparent);
    border-radius: 999px;
    background: var(--actlq-soft);
    color: var(--actlq-accent);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.actl-template-qualifications .actlq-card {
    display: block;
    min-height: 170px;
    padding: 24px 20px;
    border: 1px solid var(--actlq-border);
    border-radius: 18px;
    background: var(--actlq-card-bg);
    box-shadow: 0 12px 35px rgba(31, 85, 122, .07);
    color: inherit;
    text-decoration: none;
    text-align: start;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.actlq-item:hover .actlq-card,
.actlq-item:focus-within .actlq-card {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--actlq-accent) 28%, var(--actlq-border));
    box-shadow: 0 16px 42px rgba(31, 85, 122, .12);
}

.actlq-card-title {
    margin: 0;
    color: var(--actlq-title);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.55;
}

.actlq-card-title a {
    color: inherit;
    text-decoration: none;
}

.actlq-card-title a:hover,
.actlq-card-title a:focus {
    color: var(--actlq-accent);
}

.actlq-card-description {
    margin-top: 10px;
    color: var(--actlq-text);
    font-size: 14px;
    line-height: 1.85;
}

.actlq-actions {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.actlq-cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 24px;
    border: 1px solid var(--actlq-accent);
    border-radius: 999px;
    background: var(--actlq-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(31, 85, 122, .14);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.actlq-cv-button:hover,
.actlq-cv-button:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 85, 122, .19);
}

.actlq-cv-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 16px;
    line-height: 1;
}

.actl-template-qualifications[dir="ltr"] .actlq-card {
    text-align: left;
}

.actl-template-qualifications[dir="rtl"] .actlq-card {
    text-align: right;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    .actl-template-qualifications .actlq-year {
        border-color: var(--actlq-line);
    }

    .actlq-item:hover .actlq-card,
    .actlq-item:focus-within .actlq-card {
        border-color: var(--actlq-line);
    }
}

@media (max-width: 1024px) {
    .actl-template-qualifications {
        max-width: 860px;
        padding-inline: 12px;
    }

    .actlq-header {
        margin-bottom: 34px;
    }

    .actlq-track {
        display: none;
    }

    .actlq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .actlq-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "node year"
            "card card";
        align-items: center;
        gap: 0 10px;
        text-align: start;
    }

    .actlq-node {
        grid-area: node;
        margin: 0;
    }

    .actl-template-qualifications .actlq-year {
        grid-area: year;
        justify-self: start;
        margin: 0 0 12px;
    }

    .actl-template-qualifications .actlq-card {
        grid-area: card;
        min-height: 150px;
    }
}

@media (max-width: 767px) {
    .actl-template-qualifications {
        padding: 8px 8px 4px;
    }

    .actlq-header {
        margin-bottom: 28px;
        text-align: start;
    }

    .actlq-eyebrow {
        justify-content: flex-start;
        font-size: 12px;
    }

    .actlq-eyebrow::after {
        display: none;
    }

    .actl-template-qualifications .actlq-heading,
    .actlq-intro {
        text-align: start;
    }

    .actl-template-qualifications .actlq-heading {
        font-size: clamp(25px, 8vw, 34px);
    }

    .actlq-intro {
        margin-inline: 0;
        font-size: 14px;
        line-height: 1.85;
    }

    .actlq-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .actlq-item {
        position: relative;
        padding-inline-start: 30px;
        display: block;
    }

    .actlq-item::before {
        content: "";
        position: absolute;
        top: 16px;
        bottom: -18px;
        inset-inline-start: 7px;
        width: 2px;
        background: var(--actlq-line);
    }

    .actlq-item:last-child::before {
        bottom: calc(100% - 18px);
    }

    .actlq-node {
        position: absolute;
        top: 9px;
        inset-inline-start: 0;
        margin: 0;
        z-index: 2;
    }

    .actl-template-qualifications .actlq-year {
        margin: 0 0 10px;
    }

    .actl-template-qualifications .actlq-card {
        min-height: 0;
        padding: 20px 18px;
        border-radius: 15px;
    }

    .actlq-card-title {
        font-size: 17px;
    }

    .actlq-card-description {
        font-size: 13px;
        line-height: 1.8;
    }

    .actlq-actions {
        justify-content: stretch;
        margin-top: 26px;
    }

    .actlq-cv-button {
        width: 100%;
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .actlq-node,
    .actl-template-qualifications .actlq-card,
    .actlq-cv-button {
        transition: none;
    }
}
