﻿.warranty-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 3px solid #ed2027;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .warranty-card:hover {
        background-color: #f3f4f6;
        transform: translateY(-6px);
        border-color: rgba(237, 32, 39, 0.35);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
    }

.warranty-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    background-color: #ed2027;
    box-shadow: 0 4px 12px rgba(237, 32, 39, 0.3);
}

    .warranty-card__badge i {
        font-size: 17px;
    }

.warranty-card__image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.warranty-card__image {
    display: block;
    width: 200px;
    height: 250px;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.warranty-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(22, 22, 22, 0.68);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

    .warranty-card__overlay i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        margin-bottom: 10px;
        font-size: 29px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        background-color: rgba(237, 32, 39, 0.9);
        transform: scale(0.8);
        transition: transform 0.25s ease;
    }

    .warranty-card__overlay span {
        font-size: 14px;
        font-weight: 500;
    }

.warranty-card__image-container:hover .warranty-card__overlay {
    opacity: 1;
}

    .warranty-card__image-container:hover .warranty-card__overlay i {
        transform: scale(1);
    }

.warranty-card__image-container:hover .warranty-card__image {
    transform: scale(1.035);
    filter: brightness(0.88);
}

.warranty-card__body {
    position: relative;
    margin-top: 22px;
    padding: 20px 18px 0;
    border-top: 1px solid #eeeeee;
}

    .warranty-card__body::before {
        position: absolute;
        top: -1px;
        right: 50%;
        width: 45px;
        height: 2px;
        content: "";
        background-color: #ed2027;
        transform: translateX(50%);
    }

.warranty-card__title {
    min-height: 32px;
    margin: 0;
    color: #292929;
    font-size: 15px;
    font-weight: 600;
    line-height: 2;
}

@media (max-width: 575.98px) {
    .warranty-card {
        max-width: 290px;
        margin-right: auto;
        margin-left: auto;
    }
}
.warranty-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    padding-top: 13px;
    color: #777777;
    font-size: 12px;
    text-decoration: none;
    cursor: zoom-in;
    border-top: 1px dashed #dddddd;
    transition: color 0.25s ease;
}

    .warranty-card__footer:hover {
        color: #ed2027;
        text-decoration: none;
    }

    .warranty-card__footer i {
        color: #ed2027;
        font-size: 20px;
    }

.warranty-card:hover .warranty-card__footer {
    color: #333333;
}

    .warranty-card:hover .warranty-card__footer:hover {
        color: #ed2027;
    }
.warranty-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 48px;
    color: #ffffff;
    text-align: center;
    direction: rtl;
}

.warranty-section-title__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

    .warranty-section-title__content h2 {
        color: #ffffff;
        font-weight: 700;
        line-height: 1.7;
    }

    .warranty-section-title__content p {
        color: rgba(255, 255, 255, 0.72);
        font-size: 13px;
    }

.warranty-section-title__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #ffffff;
    font-size: 27px;
    border-radius: 50%;
    background-color: #ed2027;
    box-shadow: 0 6px 18px rgba(237, 32, 39, 0.35);
}

.warranty-section-title__line {
    width: 80px;
    height: 1px;
    background: linear-gradient( to left, transparent, rgba(255, 255, 255, 0.75), transparent );
}

@media (max-width: 767.98px) {
    .warranty-section-title {
        gap: 10px;
        margin-bottom: 35px;
    }

    .warranty-section-title__line {
        display: none;
    }

    .warranty-section-title__content {
        width: 100%;
        max-width: 360px;
        padding: 13px 18px;
    }

        .warranty-section-title__content h2 {
            font-size: 22px;
        }
}
