/* ==================== WHY DR TECH? ==================== */
.dt-why {
    --dt-orange: #ff7a00;
    --dt-ink: #1a1a1a;
    --dt-muted: #6b6b6b;
    --dt-line: #ececec;
    --dt-ease: cubic-bezier(0.22, 1, 0.36, 1);

    max-width: 1320px;
    margin: 64px auto 0;
    padding: 0 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dt-why__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dt-why__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-why__grid > li {
    display: flex;
}

.dt-why__card > * {
    min-width: 0;
}

/* ---------- Card ---------- */
.dt-why__card {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 22px 22px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.35s var(--dt-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Orange bar that grows along the top edge on hover */
.dt-why__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dt-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--dt-ease);
}

.dt-why__card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.35);
}

.dt-why__card:hover::before {
    transform: scaleX(1);
}

/* Big faint number in the corner */
.dt-why__num {
    position: absolute;
    right: 14px;
    bottom: -8px;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: #f4f4f5;
    pointer-events: none;
    transition: color 0.35s ease;
}

.dt-why__card:hover .dt-why__num {
    color: #fff1e4;
}

.dt-why__icon {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff4ea;
    color: var(--dt-orange);
    transition: background 0.3s ease, color 0.3s ease, transform 0.45s var(--dt-ease);
}

.dt-why__icon svg {
    width: 26px;
    height: 26px;
}

.dt-why__card:hover .dt-why__icon {
    background: var(--dt-orange);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.dt-why__body {
    position: relative;   /* above the corner number */
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dt-why__link {
    margin-top: auto;     /* line links up along the bottom of each card */
}

.dt-why__title {
    margin: 2px 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dt-ink);
}

.dt-why__text {
    margin: 0 0 12px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--dt-muted);
}

.dt-why__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--dt-orange);
    text-decoration: none;
}

.dt-why__link i {
    font-size: 0.65rem;
    transition: transform 0.25s var(--dt-ease);
}

.dt-why__link:hover {
    color: #e66a00;
    text-decoration: none;
}

.dt-why__link:hover i {
    transform: translateX(4px);
}

.dt-why__link:focus-visible {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Laptop / tablet: 2 × 2 ---------- */
@media (max-width: 1199.98px) {
    .dt-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dt-why {
        margin-top: 56px;
    }
}

/* ---------- Mobile: one card per row ---------- */
@media (max-width: 575.98px) {
    .dt-why {
        margin-top: 44px;
        padding: 0 16px;
    }

    .dt-why__head {
        margin-bottom: 14px;
    }

    .dt-why__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dt-why__card {
        gap: 14px;
        padding: 18px 16px;
        border-radius: 14px;
    }

    .dt-why__card:hover {
        transform: none;
        box-shadow: none;
    }

    .dt-why__icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .dt-why__icon svg {
        width: 23px;
        height: 23px;
    }

    .dt-why__num {
        font-size: 3.2rem;
    }
}
