/* ==========================================================================
   Anmol Digital — Shared Cards Compact Final V1
   Service Card + Partner Card + Testimonial Card
   ========================================================================== */

/* ==========================================================================
   FULL SERVICE CARD
   ========================================================================== */

.service-detail-card {
    position: relative;
    min-width: 0;
    min-height: 320px;
    padding: clamp(20px, 2.5vw, 28px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 0, 0, .035),
            transparent 29%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f3
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 15px 38px rgba(0, 0, 0, .055);
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.service-detail-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -96px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 50%;
    pointer-events: none;
}

.service-detail-card:hover {
    border-color: rgba(0, 0, 0, .17);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 21px 48px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

.service-detail-card > * {
    position: relative;
    z-index: 1;
}

.service-detail-card__top {
    min-height: 48px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.service-detail-card__number {
    padding-top: 3px;
    color: #838383;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .12em;
}

.service-detail-card__top > [class*="icon"] {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #202020,
            #080808
        );
    color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .10) inset,
        0 10px 22px rgba(0, 0, 0, .14);
}

.service-detail-card__top > [class*="icon"] img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: none !important;
}

.service-detail-card__content {
    min-width: 0;
}

.service-detail-card__content h3 {
    max-width: 640px;
    margin: 0;
    color: #111111;
    font-size: clamp(27px, 2.8vw, 39px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.052em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.service-detail-card__summary {
    max-width: 680px;
    margin: 13px 0 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.65;
}

.service-detail-card__description {
    max-height: 144px;
    margin-top: 15px;
    padding-right: 6px;
    overflow: auto;
    color: #707070;
    font-size: 12.5px;
    line-height: 1.65;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(0, 0, 0, .18)
        transparent;
}

.service-detail-card__description::-webkit-scrollbar {
    width: 5px;
}

.service-detail-card__description::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
}

.service-detail-card__description p {
    margin: 0 0 10px;
}

.service-detail-card__description > :last-child {
    margin-bottom: 0;
}

.service-detail-card__footer {
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .09);
}

.service-detail-card__footer .text-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111111;
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1.3;
    text-decoration: none;
}

.service-detail-card__footer .text-link i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 8px;
    transition: transform 180ms ease;
}

.service-detail-card__footer .text-link:hover i,
.service-detail-card__footer .text-link:focus-visible i {
    transform: translateX(3px);
}

/* ==========================================================================
   PARTNER CARD
   ========================================================================== */

.partner-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f4f0
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 12px 28px rgba(0, 0, 0, .045);
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.partner-card:hover {
    border-color: rgba(0, 0, 0, .17);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 18px 40px rgba(0, 0, 0, .075);
    transform: translateY(-3px);
}

.partner-card__link {
    position: relative;
    min-height: 156px;
    padding: 13px;
    display: grid;
    grid-template-rows: 92px minmax(32px, auto);
    align-items: center;
    gap: 8px;
    color: #111111;
    text-decoration: none;
}

.partner-card__logo {
    width: 100%;
    height: 92px;
    padding: 13px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eeeeea
        );
}

.partner-card__logo img {
    width: auto;
    max-width: 88%;
    max-height: 56px;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 200ms ease;
}

.partner-card:hover .partner-card__logo img {
    transform: scale(1.035);
}

.partner-card__logo span {
    max-width: 100%;
    color: #111111;
    font-size: 18px;
    font-weight: 860;
    line-height: 1.1;
    letter-spacing: -.035em;
    text-align: center;
    overflow-wrap: anywhere;
}

.partner-card h3 {
    min-width: 0;
    min-height: 32px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #222222;
    font-size: 11.5px;
    font-weight: 780;
    line-height: 1.4;
    text-align: center;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.partner-card__external {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #555555;
    font-size: 8px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .07);
}

/* ==========================================================================
   TESTIMONIAL CARD — SHARED BASE
   ========================================================================== */

.testimonial-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.testimonial-card__quote {
    color: rgba(0, 0, 0, .13);
    font-size: 31px;
    line-height: 1;
}

.testimonial-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #111111;
    font-size: 10px;
    line-height: 1;
}

.testimonial-card blockquote {
    min-width: 0;
    margin: 0;
}

.testimonial-card blockquote p {
    margin: 0;
    overflow-wrap: anywhere;
}

.testimonial-card__client {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.testimonial-card__client img,
.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50%;
    object-fit: cover;
    background:
        linear-gradient(
            180deg,
            #202020,
            #080808
        );
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .12);
}

.testimonial-card__avatar {
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 850;
}

.testimonial-card__client > div {
    min-width: 0;
}

.testimonial-card__client cite {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.testimonial-card__client span {
    display: block;
    min-width: 0;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Light testimonial page cards */

.testimonials-page .testimonial-card--page {
    min-height: 286px !important;
    padding: clamp(20px, 2.5vw, 28px) !important;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px !important;
    border-radius: 18px !important;
}

.testimonials-page
    .testimonial-card--page .testimonial-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.testimonials-page
    .testimonial-card--page blockquote p {
    color: #343434;
    font-size: clamp(14.5px, 1.15vw, 16.5px);
    font-weight: 510;
    line-height: 1.7;
}

.testimonials-page
    .testimonial-card--page .testimonial-card__client {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, .09);
}

.testimonials-page
    .testimonial-card--page .testimonial-card__client cite {
    color: #111111;
}

.testimonials-page
    .testimonial-card--page .testimonial-card__client span {
    color: #757575;
}

/* Homepage dark testimonial cards */

.testimonials-section .testimonial-card {
    min-height: 270px !important;
    padding: 20px !important;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 13px !important;
    border: 1px solid rgba(255, 255, 255, .11) !important;
    border-radius: 17px !important;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .075),
            rgba(255, 255, 255, .025)
        ) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .04) inset,
        0 16px 38px rgba(0, 0, 0, .18) !important;
}

.testimonials-section .testimonial-card__quote {
    color: rgba(255, 255, 255, .18);
}

.testimonials-section .testimonial-card__rating {
    color: #ffffff;
}

.testimonials-section .testimonial-card blockquote p {
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.68;
}

.testimonials-section .testimonial-card__client {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.testimonials-section .testimonial-card__client img,
.testimonials-section .testimonial-card__avatar {
    border-color: rgba(255, 255, 255, .12);
}

.testimonials-section .testimonial-card__client cite {
    color: #ffffff;
}

.testimonials-section .testimonial-card__client span {
    color: rgba(255, 255, 255, .49);
}

/* Continuous testimonial runner compatibility */

.testimonial-flow__card.testimonial-card {
    flex: 0 0 clamp(300px, 29vw, 380px);
    min-height: 270px !important;
}

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

@media (max-width: 720px) {
    .service-detail-card {
        min-height: 294px;
    }

    .testimonials-page .testimonial-card--page {
        min-height: 260px !important;
    }
}

@media (max-width: 560px) {
    .service-detail-card {
        min-height: 280px;
        padding: 18px 16px;
        gap: 16px;
        border-radius: 17px;
    }

    .service-detail-card__top {
        min-height: 44px;
    }

    .service-detail-card__top > [class*="icon"] {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 12px;
    }

    .service-detail-card__content h3 {
        font-size: clamp(25px, 8vw, 31px);
    }

    .service-detail-card__summary {
        margin-top: 11px;
        font-size: 13.5px;
    }

    .service-detail-card__description {
        max-height: 125px;
        margin-top: 12px;
        font-size: 12px;
    }

    .service-detail-card__footer {
        padding-top: 12px;
    }

    .partner-card {
        border-radius: 14px;
    }

    .partner-card__link {
        min-height: 138px;
        padding: 10px;
        grid-template-rows: 78px minmax(32px, auto);
        gap: 7px;
    }

    .partner-card__logo {
        height: 78px;
        padding: 10px;
        border-radius: 10px;
    }

    .partner-card__logo img {
        max-height: 47px;
    }

    .partner-card h3 {
        font-size: 10.5px;
    }

    .partner-card__external {
        top: 7px;
        right: 7px;
        width: 24px;
        height: 24px;
    }

    .testimonials-page .testimonial-card--page,
    .testimonials-section .testimonial-card {
        min-height: auto !important;
        padding: 18px 16px !important;
        gap: 15px !important;
        border-radius: 17px !important;
    }

    .testimonial-card__quote {
        font-size: 27px;
    }

    .testimonial-card blockquote p,
    .testimonials-section .testimonial-card blockquote p {
        font-size: 14px;
        line-height: 1.65;
    }

    .testimonial-card__client img,
    .testimonial-card__avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .testimonial-flow__card.testimonial-card {
        flex-basis: calc(100vw - 40px);
        min-height: 250px !important;
    }
}

@media (max-width: 360px) {
    .testimonial-flow__card.testimonial-card {
        flex-basis: calc(100vw - 30px);
    }
}

@media (hover: none) {
    .service-detail-card:hover,
    .partner-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-detail-card,
    .partner-card,
    .partner-card__logo img,
    .service-detail-card__footer .text-link i {
        transition: none !important;
        transform: none !important;
    }
}
