.kc-ref-grid-wrap,
.kc-ref-grid-wrap * {
    box-sizing: border-box;
}

.kc-ref-grid-wrap {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
}

.kc-ref-grid {
    --kc-cols: 3;
    display: grid;
    grid-template-columns: repeat(var(--kc-cols), minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.kc-ref-card {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    min-height: var(--kc-item-height, 230px);
    grid-column: span min(var(--kc-span, 1), var(--kc-cols));
    background-color: #061d31;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border: 1px solid rgba(215, 160, 83, .34);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transform: translate3d(0, 0, 0);
    transition: transform .42s ease, border-color .42s ease, box-shadow .42s ease, filter .42s ease, background-size .55s ease;
    will-change: transform;
}

.kc-ref-card:focus-visible {
    border-color: rgba(215, 160, 83, .95);
    box-shadow: 0 0 0 3px rgba(215, 160, 83, .28), 0 18px 50px rgba(0, 0, 0, .32);
}

.kc-ref-card:before,
.kc-ref-card:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity .42s ease, transform .42s ease, backdrop-filter .42s ease;
}

.kc-ref-card:before {
    background: linear-gradient(180deg, rgba(6, 29, 49, .14) 0%, #061d31 100%);
    opacity: .78;
}

.kc-ref-card:after {
    background: #061d31;
    opacity: .30;
}

.kc-ref-card:hover {
    border-color: rgba(215, 160, 83, .70);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.kc-ref-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px 26px;
    transition: transform .42s ease;
}

.kc-ref-pos-top-left .kc-ref-content {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.kc-ref-pos-top-center .kc-ref-content {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.kc-ref-pos-center-left .kc-ref-content {
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.kc-ref-pos-center-center .kc-ref-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.kc-ref-pos-bottom-left .kc-ref-content {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}

.kc-ref-pos-bottom-center .kc-ref-content {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.kc-ref-category,
.kc-ref-title,
.kc-ref-desc,
.kc-ref-click-note,
.kc-ref-popup-title,
.kc-ref-popup-desc,
.kc-ref-popup-text,
.kc-ref-popup-kicker {
    margin: 0;
    padding: 0;
    line-height: 1.35;
    text-decoration: none !important;
    font-style: normal;
}

.kc-ref-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    color: #d7a053;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.kc-ref-title {
    color: #ffffff;
    font-size: clamp(18px, 1.35vw, 24px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: .1px;
    margin-bottom: 8px;
}

.kc-ref-desc {
    max-width: 520px;
    color: #dce5ed;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 0;
}

.kc-ref-click-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    margin-top: 16px;
    padding: 10px 16px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .25px;
    text-transform: none;
    opacity: .98;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(6px);
    transition: color .35s ease, background .35s ease, border-color .35s ease, transform .35s ease, opacity .35s ease;
}

.kc-ref-click-note:after {
    content: none !important;
    display: none !important;
}

.kc-ref-click-note i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 11px;
    line-height: 1;
    transition: transform .35s ease;
}

.kc-ref-card:hover .kc-ref-click-note {
    color: #061d31 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    opacity: 1;
    transform: translateY(-2px);
}

.kc-ref-card:hover .kc-ref-click-note i {
    transform: translateX(4px);
}

.kc-ref-shine {
    position: absolute;
    inset: -120% auto auto -80%;
    z-index: 2;
    width: 45%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
    transform: rotate(25deg) translateX(-180%);
    pointer-events: none;
    opacity: 0;
}

.kc-ref-hover-zoom-in:hover {
    transform: translateY(-3px) scale(1.015);
}

.kc-ref-hover-zoom-in:hover:after {
    opacity: .20;
}

.kc-ref-hover-zoom-out {
    background-size: 110%;
}

.kc-ref-hover-zoom-out:hover {
    background-size: 100%;
}

.kc-ref-hover-lift:hover {
    transform: translateY(-10px);
}

.kc-ref-hover-tilt:hover {
    transform: perspective(900px) rotateX(1.8deg) rotateY(-1.8deg) translateY(-4px);
}

.kc-ref-hover-shine:hover .kc-ref-shine,
.kc-ref-hover-zoom-in:hover .kc-ref-shine,
.kc-ref-hover-lift:hover .kc-ref-shine,
.kc-ref-hover-tilt:hover .kc-ref-shine {
    opacity: 1;
    animation: kcRefShine .85s ease forwards;
}

.kc-ref-hover-overlay-up:hover .kc-ref-content {
    transform: translateY(-10px);
}

.kc-ref-hover-overlay-up:hover:before {
    opacity: .94;
    transform: translateY(-3%);
}

.kc-ref-hover-blur:hover {
    transform: scale(1.012);
    filter: saturate(1.07);
}

.kc-ref-hover-blur:hover:after {
    backdrop-filter: blur(2px);
    opacity: .36;
}

.kc-ref-hover-none:hover {
    transform: none;
    box-shadow: none;
}

.kc-ref-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(1, 12, 22, .82);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.kc-ref-popup[hidden] {
    display: none !important;
}

.kc-ref-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kc-ref-popup-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.kc-ref-popup-box {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(300px, .95fr);
    width: min(980px, 100%);
    max-width: 980px;
    max-height: min(760px, calc(100vh - 56px));
    overflow: hidden;
    background: #061d31;
    border: 1px solid rgba(215, 160, 83, .34);
    border-radius: 4px;
    box-shadow: 0 34px 100px rgba(0,0,0,.55);
    transform: translateY(18px) scale(.985);
    transition: transform .28s ease;
}

.kc-ref-popup.is-open .kc-ref-popup-box {
    transform: translateY(0) scale(1);
}

.kc-ref-popup-media {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, #071828, #0a3047);
    overflow: hidden;
}

.kc-ref-popup-media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,29,49,0) 0%, rgba(6,29,49,.35) 100%);
    pointer-events: none;
}

.kc-ref-popup-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transform: scale(1.015);
}

.kc-ref-popup-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
    overflow-y: auto;
}

.kc-ref-popup-kicker {
    margin-bottom: 8px;
    color: #d7a053;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.kc-ref-popup-title {
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.4px;
}

.kc-ref-popup-line {
    display: block;
    width: 54px;
    height: 2px;
    margin: 18px 0 22px;
    background: #d7a053;
}

.kc-ref-popup-desc {
    color: #dce5ed;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 14px;
}

.kc-ref-popup-text {
    color: #b9c7d3;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 24px;
}

.kc-ref-popup-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: auto;
    align-items: stretch;
}

.kc-ref-popup-metric {
    min-width: 0;
    max-width: 100%;
    padding: 15px 14px;
    overflow: hidden;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
}

.kc-ref-popup-metric span,
.kc-ref-popup-metric strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.kc-ref-popup-metric span {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .38px;
}

.kc-ref-popup-metric span i {
    flex: 0 0 auto;
    color: #d7a053;
    font-size: 12px;
    line-height: 1;
}

.kc-ref-popup-metric strong {
    color: #d7a053;
    font-size: clamp(12px, 1.15vw, 14px);
    font-weight: 600;
    line-height: 1.25;
}

.kc-ref-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    color: #fff !important;
    font-size: 0;
    font-weight: 300;
    line-height: 1;
    background: rgba(6, 29, 49, .72) !important;
    border: 1px solid rgba(215, 160, 83, .34) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.kc-ref-popup-close i {
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

.kc-ref-popup-close:hover,
.kc-ref-popup-close:focus {
    background: #d7a053 !important;
    border-color: #d7a053 !important;
    transform: rotate(90deg);
    outline: none;
}

body.kc-ref-popup-lock {
    overflow: hidden;
}

@keyframes kcRefShine {
    0% {
        transform: rotate(25deg) translateX(-180%);
    }
    100% {
        transform: rotate(25deg) translateX(430%);
    }
}

@media (max-width: 1024px) {
    .kc-ref-card {
        grid-column: span min(var(--kc-span, 1), var(--kc-cols));
    }

    .kc-ref-popup-box {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 44px);
        overflow-y: auto;
    }

    .kc-ref-popup-media,
    .kc-ref-popup-media img {
        min-height: 300px;
        height: 300px;
    }

    .kc-ref-popup-body {
        justify-content: flex-start;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .kc-ref-grid {
        --kc-cols: 1;
    }

    .kc-ref-card {
        grid-column: span 1 !important;
        min-height: max(210px, var(--kc-item-height, 210px));
    }

    .kc-ref-content {
        padding: 20px;
    }

    .kc-ref-title {
        font-size: 20px;
    }

    .kc-ref-desc {
        font-size: 13px;
    }

    .kc-ref-popup {
        padding: 14px;
    }

    .kc-ref-popup-media,
    .kc-ref-popup-media img {
        min-height: 220px;
        height: 220px;
    }

    .kc-ref-popup-box {
        display: flex;
        flex-direction: column;
    }

    .kc-ref-popup-body {
        padding: 22px 16px 18px;
    }

    .kc-ref-popup-title {
        font-size: 24px;
        line-height: 1.14;
    }

    .kc-ref-popup-desc {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.48;
    }

    .kc-ref-popup-text {
        font-size: 13px;
        font-weight: 400;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .kc-ref-popup-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 10px;
    }

    .kc-ref-popup-metric {
        padding: 10px 7px;
    }

    .kc-ref-popup-metric span {
        justify-content: center;
        gap: 4px;
        margin-bottom: 5px;
        font-size: 9px;
        line-height: 1.2;
        letter-spacing: .22px;
        text-align: center;
    }

    .kc-ref-popup-metric span i {
        font-size: 10px;
    }

    .kc-ref-popup-metric strong {
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }

    .kc-ref-popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}
