.han-search-widget,
.han-search-widget * {
    box-sizing: border-box;
}

.han-search-widget {
    width: 100%;
    background: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.han-search-inner {
    width: 100%;
    margin: 0 auto;
}

.han-search-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 34px;
}

.han-search-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.han-search-description {
    margin: 12px auto 0;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.han-search-term {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 10px;
    font-size: 14px;
    line-height: 1.4;
}

.han-search-term strong {
    color: #111827;
    font-weight: 600;
}

.han-search-term em {
    font-style: normal;
    color: #ffffff;
    background: #111111;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

.han-search-grid {
    display: grid;
    width: 100%;
}

.han-search-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(17, 17, 17, 0.08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.han-search-card:hover {
    transform: translateY(-6px);
    border-color: rgba(215, 25, 32, 0.25);
    box-shadow: 0 22px 50px rgba(17, 17, 17, 0.10);
}

.han-search-thumb {
    display: block;
    width: calc(100% - 24px);
    margin: 12px 12px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    color: #d71920;
}

.han-search-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.han-search-card:hover .han-search-thumb img {
    transform: scale(1.045);
}

.han-search-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(215, 25, 32, .12), transparent 35%), #f6f7f9;
}

.han-search-card-body {
    padding: 22px 24px 24px;
}

.han-search-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 14px;
}

.han-search-card-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.32;
    font-weight: 600;
    letter-spacing: -0.025em;
}

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

.han-search-card-title a:hover {
    color: #d71920;
}

.han-search-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.han-search-excerpt {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.han-search-button {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.han-search-button:hover {
    transform: translateX(3px);
}

.han-search-empty {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 24px;
    padding: 44px 28px;
    box-shadow: 0 20px 50px rgba(17, 17, 17, .07);
}

.han-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.han-search-empty h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 600;
}

.han-search-empty p {
    margin: 0 auto;
    max-width: 500px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.75;
}

.han-empty-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 440px;
    margin: 24px auto 0;
    background: #f5f5f5;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    padding: 6px;
}

.han-empty-search-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 12px;
    color: #111827;
    font-size: 14px;
    box-shadow: none !important;
}

.han-empty-search-form button {
    border: 0;
    outline: 0;
    min-width: 78px;
    height: 44px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}

.han-empty-search-form button:hover {
    transform: translateY(-1px);
    background: #d71920;
}

.elementor-editor-active .han-search-widget,
.elementor-editor-preview .han-search-widget {
    min-height: 120px;
}

@media (max-width: 767px) {
    .han-search-widget {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .han-search-header {
        margin-bottom: 24px;
    }

    .han-search-card-body {
        padding: 20px;
    }

    .han-search-thumb {
        width: calc(100% - 20px);
        margin: 10px 10px 0;
    }

    .han-search-card-title {
        font-size: 19px;
    }

    .han-search-empty {
        padding: 34px 18px;
        border-radius: 20px;
    }

    .han-empty-search-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        padding: 10px;
    }

    .han-empty-search-form input,
    .han-empty-search-form button {
        width: 100%;
        border-radius: 14px;
    }
}
