/* =========================================================
   EDWUMAFIE — POPULAR SERVICES CARDS
   File: public_html/assets/css/popular-services.css
========================================================= */

#popular-services .edw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

#popular-services .edw-service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(36, 21, 13, 0.10);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(36, 21, 13, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

#popular-services .edw-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(36, 21, 13, 0.13);
}

#popular-services .edw-service-image {
    position: relative;
    width: 100%;
    height: 190px;
    min-height: 190px;
    overflow: hidden;
    background: #f3eee7;
}

#popular-services .edw-service-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

#popular-services .edw-service-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

#popular-services .edw-service-card:hover .edw-service-image img {
    transform: scale(1.035);
}

#popular-services .edw-featured-badge,
#popular-services .edw-verified-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

#popular-services .edw-featured-badge {
    left: 12px;
    color: #24150d;
    background: #f3c84b;
}

#popular-services .edw-verified-badge {
    right: 12px;
    color: #fff;
    background: #1d5c3a;
}

#popular-services .edw-service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
    min-width: 0;
}

#popular-services .edw-service-category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 20px;
    color: #1d5c3a;
    background: #edf5ef;
    font-size: 11px;
    font-weight: 700;
}

#popular-services .edw-service-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#popular-services .edw-service-content h3 a {
    color: #24150d;
    text-decoration: none;
}

#popular-services .edw-service-content h3 a:hover {
    color: #1d5c3a;
}

#popular-services .edw-service-provider,
#popular-services .edw-service-location {
    margin: 0 0 8px;
    color: #665b54;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#popular-services .edw-service-provider i,
#popular-services .edw-service-location i {
    width: 16px;
    color: #1d5c3a;
}

#popular-services .edw-service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

#popular-services .edw-service-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #24150d;
}

#popular-services .edw-price-label {
    color: #756b64;
    font-size: 11px;
}

#popular-services .edw-service-price strong {
    font-size: 16px;
    line-height: 1.35;
}

#popular-services .edw-service-arrow {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: #1d5c3a;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

#popular-services .edw-service-arrow:hover {
    color: #fff;
    background: #16472d;
    transform: translateX(2px);
}

#popular-services .edw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

#popular-services .edw-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #24150d;
    background: #fff;
    text-decoration: none;
}

#popular-services .edw-pagination-number:hover,
#popular-services .edw-pagination-number.is-active {
    border-color: #1d5c3a;
    color: #fff;
    background: #1d5c3a;
}

#popular-services .edw-pagination-summary {
    margin-top: 12px;
    text-align: center;
    color: #665b54;
    font-size: 13px;
}

@media (max-width: 900px) {
    #popular-services .edw-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 560px) {
    #popular-services .edw-services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #popular-services .edw-service-image {
        height: 185px;
        min-height: 185px;
    }

    #popular-services .edw-service-content {
        padding: 16px;
    }

    #popular-services .edw-service-content h3 {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #popular-services .edw-service-card,
    #popular-services .edw-service-image img,
    #popular-services .edw-service-arrow {
        transition: none;
    }
}
