/* =============================================
   Petsure Service Widget — Petona Style Grid
   ============================================= */

/* === Grid Container === */
.petsure-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.petsure-service-swiper-wrapper {
    margin-top: 25px;
}

.petsure-service-swiper-wrapper:not(:last-child) {
    margin-bottom: 25px;
}

.petsure-service-has-outside-arrows {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === Service Card (also used as <a> when linked) === */
.petsure-service-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--petsure-background);
    border-radius: var(--petsure-border-radius-lg);
    padding: 30px 20px 24px;
    position: relative;
    border: 1px solid rgba(var(--petsure-accent-rgb), 0.3);
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.35s ease;
}

/* When <a> is the card wrapper, ensure block-level behavior */
a.petsure-service-card {
    display: flex;
}

.petsure-service-card:hover {
    border-color: rgba(var(--petsure-accent-rgb), 0.5);
    box-shadow: 0 16px 48px rgba(var(--petsure-primary-rgb), 0.15);
}

/* === Header: title + arrow row === */
.petsure-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--petsure-divider);
    min-width: 0;
}

.petsure-service-title {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--petsure-primary) !important;
    margin: 0 !important;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Animated underline via ::before — for LINKED cards only */
.petsure-service-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--petsure-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.3s ease;
    pointer-events: none;
}

/* Animate underline only on linked cards (<a> wrapper) */
a.petsure-service-card:hover .petsure-service-title::before {
    transform: scaleX(1);
    background: var(--petsure-accent);
}

a.petsure-service-card:hover .petsure-service-title {
    color: var(--petsure-accent) !important;
}

/* === Arrow Button (circular) === */
.petsure-service-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--petsure-accent);
    border: 1px solid var(--petsure-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: rotate(-45deg);
}

.petsure-service-arrow i,
.petsure-service-arrow svg {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.petsure-service-card:hover .petsure-service-arrow {
    background: var(--petsure-accent);
    color: var(--petsure-white);
    transform: rotate(0);
}

/* === Service Icon (bottom-left) === */
.petsure-service-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-width: 0;
}

.petsure-service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--petsure-accent-rgb), 0.08);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: auto;
    align-self: flex-start;
}

.petsure-service-icon i {
    font-size: 28px;
    color: var(--petsure-accent);
}

.petsure-service-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--petsure-accent);
}

/* === Featured Image Hover === */
.petsure-style-featured-image .petsure-service-card:hover {
    box-shadow: 0 12px 36px rgba(var(--petsure-primary-rgb), 0.12);
}

/* === Feature Card Hover === */
.petsure-style-feature-card .petsure-service-card:hover {
    box-shadow: 0 12px 36px rgba(var(--petsure-primary-rgb), 0.12);
}

/* ============================================================ */
/*  FEATURED IMAGE STYLE                                        */
/* ============================================================ */

.petsure-service-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
}

.petsure-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.petsure-style-featured-image .petsure-service-card {
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.petsure-style-featured-image .petsure-service-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px 24px;
    flex: 1;
    min-height: 0;
}

.petsure-style-featured-image .petsure-service-header {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.petsure-style-featured-image .petsure-service-icon {
    margin-top: auto;
}

/* Image zoom on card hover */
.petsure-style-featured-image .petsure-service-card:hover .petsure-service-card-image img {
    transform: scale(1.06);
}

/* ============================================================ */
/*  FEATURE CARD STYLE (Petona)                                 */
/* ============================================================ */

.petsure-style-feature-card .petsure-service-card {
    gap: 0;
    padding: 24px 20px;
}

.petsure-style-feature-card .petsure-service-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* Icon at top (only for image/svg types) */
.petsure-style-feature-card .petsure-service-icon {
    width: 60px;
    height: 60px;
    margin-top: 0;
    align-self: flex-start;
}

.petsure-style-feature-card .petsure-service-icon i {
    font-size: 26px;
}

.petsure-style-feature-card .petsure-service-icon svg {
    width: 35px;
    height: 35px;
}

/* Content wrapper for icon + header + description */
.petsure-style-feature-card .petsure-service-card-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    min-width: 0;
}

/* Header without divider */
.petsure-style-feature-card .petsure-service-header {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    flex: 1;
}

.petsure-style-feature-card .petsure-service-title {
    font-size: 18px !important;
}

/* Description */
.petsure-service-description {
    font-size: 15px;
    color: var(--petsure-text);
    line-height: 1.6;
    margin: 0 !important;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* List items */
.petsure-service-list {
    list-style: none;
    padding: 20px 0 0 !important;
    margin: 0 !important;
    margin-top: auto !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--petsure-divider);
}

.petsure-service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px !important;
    color: var(--petsure-text) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Paw icon bullet */
.petsure-service-list li svg,
.petsure-service-list li i {
    color: var(--petsure-accent);
    line-height: 1.5;
    display: inline-flex;
    width: 12px;
    height: 12px;
    font-size: 12px;
    margin-top: 2px;
}

.petsure-service-list li svg * {
    fill: currentColor;
    stroke: currentColor;
}

/* Featured image at bottom (for feature-card) — use max-height instead of min-height to prevent overflow */
.petsure-style-feature-card .petsure-service-card-image {
    min-height: 150px;
    max-height: 450px;
    overflow: hidden;
    border-radius: var(--petsure-border-radius-lg);
    flex-shrink: 0;
    margin: 0 -20px -24px;
    width: auto;
    position: relative;
}

.petsure-style-feature-card .petsure-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.petsure-style-feature-card .petsure-service-card:hover .petsure-service-card-image img {
    transform: scale(1.06);
}

/* === CTA Grid wrapper (swiper mode) === */
.petsure-service-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* === CTA Card === */
.petsure-service-cta-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    background: var(--petsure-secondary);
    border-radius: var(--petsure-border-radius);
    padding: 30px;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
}

.petsure-service-cta-card.petsure-service-cta-single {
    flex-direction: column;
}

.petsure-service-cta-card.petsure-service-cta-single .petsure-service-cta-content {
    flex: 0;
}

.petsure-service-cta-card.petsure-service-cta-single .petsure-service-cta-image {
    flex: 1;
    margin: 0 -30px -30px -30px;
    width: auto;
    min-height: 150px;
    max-height: 450px;
    position: relative;
}

.petsure-service-cta-content {
    flex: 1;
    min-width: 0;
}

.petsure-service-cta-title {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--petsure-primary) !important;
    margin: 0 0 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(var(--petsure-primary-rgb), 0.15);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.petsure-service-cta-desc {
    font-size: 14px;
    color: var(--petsure-white);
    line-height: 1.6;
    margin: 0 0 16px;
    opacity: 0.85;
    overflow-wrap: break-word;
    word-break: break-word;
}

.petsure-service-cta-phone {
    margin-bottom: 16px;
}

.petsure-service-cta-phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--petsure-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: transparent;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

.petsure-service-cta-phone a:hover {
    color: var(--petsure-accent);
    text-decoration-color: var(--petsure-accent);
}

.petsure-cta-phone-icon i {
    font-size: 10px;
    line-height: 1;
    color: var(--petsure-accent);
}

/* CTA Button (like header-cta-btn pattern) */
.petsure-service-cta-btn-wrap .petsure-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--petsure-border-radius);
    position: relative;
    overflow: hidden;
    background: var(--petsure-accent);
    color: var(--petsure-primary);
    transition: all 0.4s ease-in-out;
    text-transform: capitalize;
    cursor: pointer;
    border: 1px solid var(--petsure-accent);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.petsure-service-cta-btn-wrap .petsure-btn:hover {
    color: var(--petsure-white);
    border-color: var(--petsure-white);
}

.petsure-service-cta-btn-wrap .petsure-btn:hover .petsure-btn-icon {
    background: var(--petsure-primary);
    color: var(--petsure-white);
}

.petsure-service-cta-btn-wrap .petsure-btn .petsure-btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    z-index: 1;
    width: 35px;
    height: 35px;
    background: var(--petsure-primary);
    color: var(--petsure-accent);
    border-radius: var(--petsure-border-radius);
    transition: all 0.4s ease-in-out;
}

.petsure-service-cta-btn-wrap .petsure-btn .petsure-pos-aware-bg {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--petsure-secondary);
    -webkit-transition: all .4s ease-in-out;
    transition: all ease-in-out .4s;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* CTA Image — flush with right/top/bottom edges */
.petsure-service-cta-image {
    flex-shrink: 0;
    min-width: 180px;
    width: 45%;
    margin: -30px -30px -30px 0;
    align-self: stretch;
    overflow: hidden;
    position: relative;
}

.petsure-service-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
}

/* === Bottom Rating (#15 Petona variant) === */
.petsure-service-bottom-rating {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--petsure-divider);
    text-align: center;
}

.petsure-service-bottom-text {
    font-size: 16px;
    color: var(--petsure-text);
    line-height: 1.7;
    margin: 0 0 20px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.petsure-service-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.petsure-service-bottom-counter {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.petsure-service-bottom-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--petsure-primary);
    line-height: 1;
}

.petsure-service-bottom-suffix {
    font-size: 20px;
    font-weight: 600;
    color: var(--petsure-accent);
}

.petsure-service-bottom-stars {
    display: flex;
    gap: 4px;
}

.petsure-service-bottom-star svg {
    width: 20px;
    height: 20px;
    fill: rgba(var(--petsure-primary-rgb), 0.15);
    transition: fill 0.2s;
    display: block;
}

.petsure-service-bottom-star.active svg {
    fill: var(--petsure-accent);
}

.petsure-service-bottom-reviews {
    font-size: 14px;
    color: var(--petsure-text);
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== Empty State ===== */
.petsure-empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: rgba(var(--petsure-accent-rgb), 0.03);
    border: 1px dashed rgba(var(--petsure-primary-rgb), 0.12);
    border-radius: var(--petsure-border-radius-lg);
    max-width: 420px;
    margin: auto;
    width: 100%;
}

.petsure-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(var(--petsure-accent-rgb), 0.08);
    border-radius: 50%;
    font-size: 32px;
    color: var(--petsure-accent);
    margin-bottom: 20px;
}

.petsure-empty-state-icon i {
    font-size: 32px;
}

.petsure-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--petsure-primary);
    margin: 0 0 8px !important;
    line-height: 1.3;
}

.petsure-empty-state-text {
    font-size: 14px;
    color: var(--petsure-text);
    opacity: 0.7;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto !important;
}

/* ============================================================ */
/*  ICON BOX STYLE                                              */
/*  Icon at top center, title + description below, like Icon Box */
/* ============================================================ */

.petsure-style-icon-box .petsure-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px 32px;
    gap: 20px;
    background: var(--petsure-background);
    border: 1px solid rgba(var(--petsure-accent-rgb), 0.15);
    border-radius: var(--petsure-border-radius-lg);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.petsure-style-icon-box .petsure-service-card:hover {
    border-color: rgba(var(--petsure-accent-rgb), 0.4);
    box-shadow: 0 12px 40px rgba(var(--petsure-primary-rgb), 0.1);
    transform: translateY(-4px);
}

.petsure-style-icon-box .petsure-service-ib-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--petsure-accent-rgb), 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.35s ease, transform 0.35s ease;
}

.petsure-style-icon-box .petsure-service-card:hover .petsure-service-ib-icon {
    background: rgba(var(--petsure-accent-rgb), 0.18);
    transform: scale(1.06);
}

.petsure-style-icon-box .petsure-service-ib-icon i {
    font-size: 34px;
    color: var(--petsure-accent);
}

.petsure-style-icon-box .petsure-service-ib-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--petsure-accent);
    color: var(--petsure-accent);
}

.petsure-style-icon-box .petsure-service-ib-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.petsure-style-icon-box .petsure-service-ib-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.petsure-style-icon-box .petsure-service-title {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--petsure-primary) !important;
    margin: 0 !important;
    line-height: 1.3;
}

.petsure-style-icon-box .petsure-service-title::before {
    display: none;
}

.petsure-style-icon-box .petsure-service-description {
    font-size: 14px;
    color: var(--petsure-text);
    line-height: 1.6;
    margin: 0 !important;
}

/* Underline effect on linked cards */
.petsure-style-icon-box a.petsure-service-card:hover .petsure-service-title {
    color: var(--petsure-accent) !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .petsure-style-icon-box .petsure-service-card {
        padding: 32px 18px 24px;
        gap: 16px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon {
        width: 68px;
        height: 68px;
        min-width: 68px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon i {
        font-size: 28px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon svg {
        width: 28px;
        height: 28px;
    }

    .petsure-style-icon-box .petsure-service-title {
        font-size: 17px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .petsure-style-icon-box .petsure-service-card {
        padding: 28px 16px 20px;
        gap: 14px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon i {
        font-size: 26px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon svg {
        width: 26px;
        height: 26px;
    }

    .petsure-style-icon-box .petsure-service-title {
        font-size: 16px !important;
    }

    .petsure-style-icon-box .petsure-service-description {
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .petsure-style-icon-box .petsure-service-card {
        padding: 24px 14px 18px;
        gap: 12px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon i {
        font-size: 24px;
    }

    .petsure-style-icon-box .petsure-service-ib-icon svg {
        width: 24px;
        height: 24px;
    }

    .petsure-style-icon-box .petsure-service-title {
        font-size: 15px !important;
    }
}

/* ============================================================ */
/*  IMAGE BOX STYLE (#15 — Petona simple-card)                 */
/* ============================================================ */

.petsure-style-image-box .petsure-service-card {
    padding: 0;
    gap: 0;
    border: none;
    border-radius: var(--petsure-border-radius-lg);
    overflow: hidden;
    background: var(--petsure-background);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.petsure-style-image-box .petsure-service-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.petsure-style-image-box .petsure-service-card-image-box-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}

.petsure-style-image-box .petsure-service-card-image-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.petsure-style-image-box .petsure-service-card:hover .petsure-service-card-image-box-img img {
    transform: scale(1.06);
}

.petsure-style-image-box .petsure-service-card-image-box-body {
    padding: 20px 18px 24px;
    text-align: center;
}

.petsure-style-image-box .petsure-service-title {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--petsure-primary) !important;
    margin: 0 !important;
    line-height: 1.3;
}

/* Underline via ::before — same animated effect for image-box (linked only) */
.petsure-style-image-box a.petsure-service-card:hover .petsure-service-title {
    color: var(--petsure-accent) !important;
}

/* No separate .petsure-service-linked needed — <a> IS the card now */

/* ============================================================ */
/*  SWIPER ARROWS                                                */
/*  Override shared .petsure-swiper-arrow for service context    */
/* ============================================================ */

/* Ensure swiper container is positioned for inside arrows */
.petsure-service-swiper {
    position: relative;
}

/* Ensure swiper container is positioned for inside arrows */
.petsure-service-swiper .petsure-swiper-dots {
    position: relative;
    bottom: 0;
}

/* Outside arrows — flex layout (no absolute) */
.petsure-service-has-outside-arrows .petsure-swiper-arrow {
    position: static;
    transform: none;
    flex-shrink: 0;
}

/* Inside arrows — positioned absolutely within the swiper */
.petsure-service-swiper .petsure-service-prev {
    left: 10px;
}

.petsure-service-swiper .petsure-service-next {
    right: 10px;
}

/* ============================================================ */
/*  RESPONSIVE                                                   */
/* ============================================================ */

/* === Tablet portrait & small desktop (768px–1024px) === */
@media (max-width: 1024px) {
    .petsure-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Cards base */
    .petsure-service-card {
        padding: 24px 16px 20px;
        gap: 24px;
    }

    .petsure-service-title {
        font-size: 18px !important;
    }

    .petsure-service-icon {
        width: 60px;
        height: 60px;
    }

    .petsure-service-icon i {
        font-size: 24px;
    }

    .petsure-service-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Default & featured-image */
    .petsure-style-featured-image .petsure-service-card-body {
        padding: 20px 16px 20px;
        gap: 14px;
    }

    /* Feature card */
    .petsure-style-feature-card .petsure-service-card {
        padding: 20px 16px;
    }

    .petsure-style-feature-card .petsure-service-icon {
        width: 52px;
        height: 52px;
    }

    .petsure-style-feature-card .petsure-service-icon i {
        font-size: 22px;
    }

    .petsure-style-feature-card .petsure-service-card-image {
        max-height: 180px;
    }

    /* Image box */
    .petsure-style-image-box .petsure-service-card-image-box-body {
        padding: 16px 14px 20px;
    }

    /* CTA */
    .petsure-service-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }

    .petsure-service-cta-title {
        font-size: 20px !important;
    }

    .petsure-service-cta-image {
        width: 100%;
        max-height: 200px;
        margin: 0 -24px -24px -24px;
        align-self: auto;
    }

    .petsure-service-cta-phone a {
        font-size: 16px;
    }

    /* Bottom rating */
    .petsure-service-bottom-num {
        font-size: 30px;
    }

    .petsure-service-bottom-suffix {
        font-size: 18px;
    }
}

/* === Mobile (480px–767px) === */
@media (max-width: 767px) {
    .petsure-service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Cards base */
    .petsure-service-card {
        padding: 20px 14px 18px;
        gap: 20px;
    }

    .petsure-service-title {
        font-size: 17px !important;
    }

    .petsure-service-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .petsure-service-icon {
        width: 54px;
        height: 54px;
    }

    .petsure-service-icon i {
        font-size: 22px;
    }

    .petsure-service-icon svg {
        width: 22px;
        height: 22px;
    }

    .petsure-service-arrow {
        width: 32px;
        height: 32px;
    }

    .petsure-service-arrow i,
    .petsure-service-arrow svg {
        font-size: 11px;
    }

    /* Featured image */
    .petsure-style-featured-image .petsure-service-card-image {
        aspect-ratio: 16 / 9;
    }

    .petsure-style-featured-image .petsure-service-card-body {
        padding: 18px 14px 20px;
        gap: 12px;
    }

    /* Feature card */
    .petsure-style-feature-card .petsure-service-card {
        padding: 18px 14px;
    }

    .petsure-style-feature-card .petsure-service-card-body {
        gap: 16px;
    }

    .petsure-style-feature-card .petsure-service-icon {
        width: 48px;
        height: 48px;
    }

    .petsure-style-feature-card .petsure-service-icon i {
        font-size: 20px;
    }

    .petsure-style-feature-card .petsure-service-card-image {
        max-height: 160px;
        border-radius: 6px;
    }

    .petsure-service-description {
        font-size: 14px;
    }

    .petsure-service-list {
        padding-top: 16px !important;
        gap: 5px;
    }

    .petsure-service-list li {
        font-size: 12px !important;
    }

    /* Image box */
    .petsure-style-image-box .petsure-service-card-image-box-img {
        aspect-ratio: 16 / 10;
    }

    .petsure-style-image-box .petsure-service-card-image-box-body {
        padding: 14px 12px 18px;
    }

    /* CTA */
    .petsure-service-cta-card {
        padding: 20px;
        gap: 16px;
    }

    .petsure-service-cta-title {
        font-size: 18px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .petsure-service-cta-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .petsure-service-cta-phone a {
        font-size: 15px;
    }

    .petsure-service-cta-btn-wrap .petsure-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .petsure-service-cta-btn-wrap .petsure-btn .petsure-btn-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .petsure-service-cta-image {
        max-height: 160px;
    }

    /* Bottom rating */
    .petsure-service-bottom-rating {
        margin-top: 20px;
        padding-top: 20px;
    }

    .petsure-service-bottom-text {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .petsure-service-bottom-num {
        font-size: 28px;
    }

    .petsure-service-bottom-suffix {
        font-size: 16px;
    }

    .petsure-service-bottom-star svg {
        width: 18px;
        height: 18px;
    }

    .petsure-service-bottom-reviews {
        font-size: 13px;
    }
}

/* === Small mobile (<480px) === */
@media (max-width: 479px) {
    .petsure-service-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .petsure-service-card {
        padding: 16px 12px 14px;
        gap: 16px;
        border-radius: calc(var(--petsure-border-radius-lg) - 2px);
    }

    .petsure-service-title {
        font-size: 16px !important;
    }

    .petsure-service-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .petsure-service-icon {
        width: 46px;
        height: 46px;
    }

    .petsure-service-icon i {
        font-size: 20px;
    }

    .petsure-service-icon svg {
        width: 20px;
        height: 20px;
    }

    .petsure-service-arrow {
        width: 28px;
        height: 28px;
    }

    .petsure-service-arrow i,
    .petsure-service-arrow svg {
        font-size: 10px;
    }

    /* Featured image */
    .petsure-style-featured-image .petsure-service-card-body {
        padding: 14px 12px 16px;
        gap: 10px;
    }

    .petsure-style-featured-image .petsure-service-card-image {
        aspect-ratio: 4 / 3;
    }

    /* Feature card */
    .petsure-style-feature-card .petsure-service-card {
        padding: 14px 12px;
    }

    .petsure-style-feature-card .petsure-service-card-body {
        gap: 14px;
    }

    .petsure-style-feature-card .petsure-service-icon {
        width: 42px;
        height: 42px;
    }

    .petsure-style-feature-card .petsure-service-icon i {
        font-size: 18px;
    }

    .petsure-style-feature-card .petsure-service-card-image {
        max-height: 140px;
        border-radius: 4px;
    }

    .petsure-service-description {
        font-size: 13px;
    }

    .petsure-service-list {
        padding-top: 14px !important;
        gap: 4px;
    }

    .petsure-service-list li {
        font-size: 11px !important;
    }

    /* Image box */
    .petsure-style-image-box .petsure-service-card-image-box-body {
        padding: 12px 10px 16px;
    }

    .petsure-style-image-box .petsure-service-title {
        font-size: 16px !important;
    }

    /* CTA */
    .petsure-service-cta-card {
        padding: 16px;
        gap: 14px;
        border-radius: 10px;
    }

    .petsure-service-cta-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .petsure-service-cta-desc {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .petsure-service-cta-phone a {
        font-size: 14px;
    }

    .petsure-service-cta-btn-wrap .petsure-btn {
        font-size: 13px;
        padding: 6px 14px;
        gap: 8px;
    }

    .petsure-service-cta-btn-wrap .petsure-btn .petsure-btn-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .petsure-service-cta-image {
        max-height: 130px;
    }

    /* Bottom rating */
    .petsure-service-bottom-rating {
        margin-top: 16px;
        padding-top: 16px;
    }

    .petsure-service-bottom-text {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .petsure-service-bottom-num {
        font-size: 24px;
    }

    .petsure-service-bottom-suffix {
        font-size: 14px;
    }

    .petsure-service-bottom-stars {
        gap: 3px;
    }

    .petsure-service-bottom-star svg {
        width: 16px;
        height: 16px;
    }

    .petsure-service-bottom-reviews {
        font-size: 12px;
    }
}