@import url("../design-tokens.css");

.tdi-when-check {
    background: #030606;
    color: var(--color-white);
}

.tdi-when-check__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4-5);
    margin-top: var(--space-5);
}

.tdi-when-check__item {
    position: relative;
    min-height: 165px;
    padding: 26px 24px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at top right, rgba(229, 45, 36, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.tdi-when-check__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 3px;
    height: 42px;
    background: #e52d24;
    border-radius: 0 4px 4px 0;
    opacity: .9;
}

.tdi-when-check__item:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 45, 36, 0.55);
    background:
        radial-gradient(circle at top right, rgba(229, 45, 36, 0.22), transparent 36%),
        linear-gradient(145deg, var(--color-border-subtle), rgba(255, 255, 255, 0.025));
}

.tdi-when-check__icon {
    width: 46px;
    height: 46px;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e52d24;
}

.tdi-when-check__icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tdi-when-check__title {
    margin: 0;
    font-size: var(--font-size-md);
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-white);
}

.tdi-when-check__text {
    margin: 10px 0 0;
    font-size: var(--font-size-xs);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 991px) {
    .tdi-when-check__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {

    .tdi-when-check__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tdi-when-check__item {
        min-height: auto;
        padding: var(--space-4-5);
    }

    .tdi-when-check__title {
        font-size: 17px;
    }
}
.tdi-when-check__icon img{
  width: 100%;
  height: 100%;
}