/* ================================================================
   All Service Detail Pages — TekBis LLC theme alignment
   Scoped to body.service-detail-page | Primary: #0b3ac6
   Load after inner-pages-theme.css + hover-effects.css
   ================================================================ */

.service-detail-page {
    --sp-primary: #0b3ac6;
    --sp-primary-hover: #0930b0;
    --sp-surface: #ffffff;
    --sp-bg: #f8fafc;
    --sp-border: #e2e8f0;
    --sp-text: #0f172a;
    --sp-muted: #475569;
}

/* ── Hero — remove pink CDN background, white desc box ── */
.service-detail-page [class$="-hero"],
.service-detail-page section[class*="-hero"]:not([class*="blog-hero"]) {
    background-image: linear-gradient(180deg, #f8fafc 0%, rgba(11, 58, 198, 0.06) 100%) !important;
    background-color: #f8fafc !important;
}

.service-detail-page [class*="hero__wrapper--desc"],
.service-detail-page [class*="-hero__wrapper--desc"] {
    background-color: #ffffff !important;
    background-image: none !important;
}

.service-detail-page .services-hero .hero__section,
.service-detail-page .hero__section {
    background-image: linear-gradient(180deg, #f8fafc 0%, rgba(11, 58, 198, 0.06) 100%) !important;
    background-color: #f8fafc !important;
}

/* ── Excellence section ── */
.service-detail-page [class*="-excellence"],
.service-detail-page [class*="tech-excellence"] {
    background-image: none !important;
    background: linear-gradient(180deg, #f8fafc 0%, rgba(11, 58, 198, 0.04) 100%) !important;
}

.service-detail-page [class*="excellence__wrapper--txts-btn"] {
    background-color: rgba(11, 58, 198, 0.1) !important;
    background-image: none !important;
    color: var(--sp-primary) !important;
}

.service-detail-page [class*="excellence__wrapper--txts-btn"] img {
    filter: brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(4000%) hue-rotate(221deg) brightness(98%) contrast(101%) !important;
}

.service-detail-page [class*="excellence__wrapper--cards-card"],
.service-detail-page [class*="excellence__wrapper--cards"] #card1,
.service-detail-page [class*="excellence__wrapper--cards"] #card2,
.service-detail-page [class*="excellence__wrapper--cards"] #card3,
.service-detail-page [class*="excellence__wrapper--cards"] #card4,
.service-detail-page [class*="excellence__wrapper--cards"] #card5,
.service-detail-page [class*="excellence__wrapper--cards"] #card6,
.service-detail-page [class*="tech-excellence__wrapper--cards-card"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 0 !important;
    text-align: left !important;
    background: var(--sp-surface) !important;
    background-color: var(--sp-surface) !important;
    background-image: none !important;
    border: 1px solid var(--sp-border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 2px 16px rgba(7, 21, 74, 0.05) !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
}

@media (min-width: 768px) {
    .service-detail-page [class*="excellence__wrapper--cards-card"],
    .service-detail-page [class*="tech-excellence__wrapper--cards-card"] {
        flex-direction: row !important;
        align-items: flex-start !important;
        width: 48% !important;
    }
}

@media (min-width: 1024px) {
    .service-detail-page [class*="excellence__wrapper--cards-card"],
    .service-detail-page [class*="tech-excellence__wrapper--cards-card"] {
        width: 32% !important;
    }
}

.service-detail-page [class*="excellence__wrapper--cards"] #card1 .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card2 .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card3 .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card4 .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card5 .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card6 .txt,
.service-detail-page [class*="excellence__wrapper--cards-heading"],
.service-detail-page [class*="excellence__wrapper--cards-heading"].txt,
.service-detail-page [class*="tech-excellence__wrapper--cards-heading"] {
    color: var(--sp-text) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.service-detail-page [class*="excellence__wrapper--cards-desc"],
.service-detail-page [class*="tech-excellence__wrapper--cards-desc"] {
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    transform: none !important;
    color: var(--sp-muted) !important;
    background: transparent !important;
    text-align: left !important;
}

/* Excellence icons — no CSS filter (show real SVG) */
.service-detail-page [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="tech-excellence__wrapper--cards-icon"] {
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: rgba(11, 58, 198, 0.08) !important;
    background-color: rgba(11, 58, 198, 0.08) !important;
    filter: none !important;
    -webkit-filter: none !important;
    transition: background 0.25s ease !important;
}

.service-detail-page [class*="excellence__wrapper--cards-card"]:hover,
.service-detail-page [class*="excellence__wrapper--cards"] #card1:hover,
.service-detail-page [class*="excellence__wrapper--cards"] #card2:hover,
.service-detail-page [class*="excellence__wrapper--cards"] #card3:hover,
.service-detail-page [class*="excellence__wrapper--cards"] #card4:hover,
.service-detail-page [class*="excellence__wrapper--cards"] #card5:hover,
.service-detail-page [class*="excellence__wrapper--cards"] #card6:hover,
.service-detail-page [class*="tech-excellence__wrapper--cards-card"]:hover {
    background: var(--sp-primary) !important;
    background-color: var(--sp-primary) !important;
    border-color: var(--sp-primary) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(11, 58, 198, 0.3) !important;
}

.service-detail-page [class*="excellence__wrapper--cards-card"]:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards-card"]:hover [class*="heading"],
.service-detail-page [class*="excellence__wrapper--cards-card"]:hover [class*="desc"],
.service-detail-page [class*="excellence__wrapper--cards"] #card1:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card2:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card3:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card4:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card5:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card6:hover .txt,
.service-detail-page [class*="excellence__wrapper--cards"] #card1:hover [class*="desc"],
.service-detail-page [class*="excellence__wrapper--cards"] #card2:hover [class*="desc"],
.service-detail-page [class*="excellence__wrapper--cards"] #card3:hover [class*="desc"],
.service-detail-page [class*="excellence__wrapper--cards"] #card4:hover [class*="desc"],
.service-detail-page [class*="excellence__wrapper--cards"] #card5:hover [class*="desc"],
.service-detail-page [class*="excellence__wrapper--cards"] #card6:hover [class*="desc"],
.service-detail-page [class*="tech-excellence__wrapper--cards-card"]:hover [class*="heading"],
.service-detail-page [class*="tech-excellence__wrapper--cards-card"]:hover [class*="desc"] {
    color: #ffffff !important;
}

.service-detail-page [class*="excellence__wrapper--cards-card"]:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="excellence__wrapper--cards"] #card1:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="excellence__wrapper--cards"] #card2:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="excellence__wrapper--cards"] #card3:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="excellence__wrapper--cards"] #card4:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="excellence__wrapper--cards"] #card5:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="excellence__wrapper--cards"] #card6:hover [class*="excellence__wrapper--cards-icon"],
.service-detail-page [class*="tech-excellence__wrapper--cards-card"]:hover [class*="tech-excellence__wrapper--cards-icon"] {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Process section icons (wrapper div + img) */
.service-detail-page [class*="process__wrapper--cards-icon"],
.service-detail-page [class*="processs__wrapper--cards-icon"] {
    background-color: rgba(11, 58, 198, 0.08) !important;
    border-radius: 12px !important;
}

.service-detail-page [class*="process__wrapper--cards-icon"] img,
.service-detail-page [class*="processs__wrapper--cards-icon"] img {
    filter: none !important;
    -webkit-filter: none !important;
    background: transparent !important;
}

/* ── Services scroll timeline — blue, not red/pink ── */
.service-detail-page [class*="services__details--nmbr"],
.service-detail-page [class*="services-mob__slidesdiv--slide-nmbr"] {
    color: var(--sp-primary) !important;
    font-weight: 700 !important;
}

.service-detail-page [class*="services__slidesdiv"] [id^="s-"],
.service-detail-page [class*="services-mob__slidesdiv"] [id^="s-"],
.service-detail-page [class*="services-mob__slidesdiv--slide"] {
    background-color: rgba(11, 58, 198, 0.1) !important;
}

.service-detail-page [class*="services__timeline--bar"],
.service-detail-page #fill-bar {
    background-color: var(--sp-primary) !important;
}

.service-detail-page [class*="services__timeline--txts-text"] {
    color: var(--sp-text) !important;
}

/* ── Industry slider — visible text + preserve slide photos ── */
.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-container .swiper-wrapper .swiper-slide {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.82)) !important;
    min-height: 260px !important;
}

@media (min-width: 1024px) {
    .service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content,
    .service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content:hover {
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.88)) !important;
    }
}

.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content .card-heading,
.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content:hover .card-heading {
    transform: none !important;
    color: #ffffff !important;
}

.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content .card-desc,
.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content:hover .card-desc {
    opacity: 1 !important;
    visibility: visible !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content .card-icon,
.service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content:hover .card-icon {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin-bottom: 8px !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* ── Growth CTA — remove pink tint ── */
.service-detail-page [class*="-growth"] {
    background-color: transparent !important;
}

.service-detail-page [class*="growth__wrapper"] {
    background-color: var(--sp-surface) !important;
}

.service-detail-page [class*="growth__wrapper--txts"] {
    background-color: var(--sp-surface) !important;
    background-image: linear-gradient(135deg, rgba(11, 58, 198, 0.04) 0%, rgba(11, 58, 198, 0.1) 100%) !important;
}

.service-detail-page [class*="growth__wrapper--txts-tip"] {
    color: var(--sp-primary) !important;
    font-weight: 600 !important;
}

/* ── Tools & Technologies ── */
.service-detail-page [class*="toolsntech__wrapper--cards-icon"] {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.service-detail-page [class*="toolsntech__wrapper--cards-cardwrap"]:hover,
.service-detail-page [class*="toolsntech__wrapper--cards"] .databases-cardwrap:hover,
.service-detail-page [class*="toolsntech__wrapper--cards"] .framework-cardwrap:hover,
.service-detail-page [class*="toolsntech__wrapper--cards"] .figma-cardwrap:hover {
    animation: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 1.5px !important;
    border-radius: 20px !important;
    box-shadow: 0 0 0 2px var(--sp-primary) !important;
}

.service-detail-page [class*="toolsntech__wrapper--cards-list"] .techs-listitem {
    color: var(--sp-muted) !important;
}

/* ── Mobapps / process step cards — unified blue ── */
.service-detail-page [class*="mobapps__wrapper--cards"] [id^="card-"],
.service-detail-page [class*="mobapps__wrapper--cards-card"],
.service-detail-page [class*="process__wrapper--cards-card"],
.service-detail-page [class*="processs__wrapper--cards-card"] {
    border-color: rgba(11, 58, 198, 0.35) !important;
}

.service-detail-page [class*="mobapps__wrapper--cards"] [id^="number-"],
.service-detail-page [class*="mobapps__wrapper--cards-number"] {
    background-color: var(--sp-primary) !important;
    color: #ffffff !important;
}

.service-detail-page [class*="mobapps__wrapper--cards-arrow"] {
    opacity: 0 !important;
    pointer-events: none !important;
}

.service-detail-page [class*="mobapps__wrapper--cards-icon"] {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.service-detail-page [class*="mobapps__wrapper--cards-card"]::after {
    background-color: var(--sp-primary) !important;
}

/* Project desc border accents — blue instead of rainbow */
.service-detail-page .pin-section [class*="projects__wrapper--content-txts"] .project-desc-wrapper {
    border-left-color: rgba(11, 58, 198, 0.5) !important;
}

.service-detail-page .pin-section [class*="projects__wrapper--content-txts"] .sub-heading {
    color: var(--sp-primary) !important;
}

/* ── Legacy hub pages (quality-assurance, ui-ux, web-development, etc.) ── */
.service-detail-page .services-hero .hero__section .hero__container {
    background-image: linear-gradient(135deg, rgba(7, 21, 74, 0.88) 0%, rgba(11, 58, 198, 0.72) 100%), url("../storage/images/hero-bg-tech.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.service-detail-page .services-hero .hero__section .hero__container .hero-text h1 {
    color: #ffffff !important;
}

.service-detail-page .offer-section .offered-services .service:hover .service-heading,
.service-detail-page .offer-section .offered-services .service:hover .service-detail,
.service-detail-page [class*="offered-services"] .service:hover .service-heading,
.service-detail-page [class*="offered-services"] .service:hover .service-detail {
    color: #ffffff !important;
}

.service-detail-page .offer-section .offered-services .service:hover .service-icon {
    background: rgba(255, 255, 255, 0.95) !important;
    filter: none !important;
}

/* Pink slide panels — catch all template variants */
.service-detail-page [class*="uiuxprocess__slidesdiv--slide"],
.service-detail-page [class*="__slidesdiv--slide"] {
    background-color: rgba(11, 58, 198, 0.04) !important;
}

/* ================================================================
   MOBILE (max-width: 767px)
   ================================================================ */
@media (max-width: 767px) {
    /* Desktop scroll-pinned services — hide on mobile */
    .service-detail-page section[class*="services"]:not([class*="services-mob"]):not([class*="services-contact"]) {
        /* only full desktop pin sections named *-services without -mob */
    }

    .service-detail-page [class$="-services"]:not([class*="services-mob"]):not(.wd-services) {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .service-detail-page [class*="services-mob"] {
        display: block !important;
        visibility: visible !important;
    }

    .service-detail-page [class$="-hero"]:not(.wd-hero),
    .service-detail-page section[class*="-hero"]:not(.wd-hero) {
        padding-top: 96px !important;
        padding-bottom: 24px !important;
    }

    .service-detail-page [class*="hero__wrapper--desc"],
    .service-detail-page [class*="-hero__wrapper--desc"] {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .service-detail-page [class*="hero__wrapper--desc"] a,
    .service-detail-page [class*="-hero__wrapper--desc"] a,
    .service-detail-page [class*="hero__wrapper--uper-btns"] a {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-detail-page [class*="hero__wrapper--img2"] img,
    .service-detail-page [class*="-hero__wrapper--img2"] img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .service-detail-page [class*="excellence__wrapper--cards-card"],
    .service-detail-page [class*="tech-excellence__wrapper--cards-card"] {
        width: 100% !important;
        flex-direction: column !important;
    }

    .service-detail-page [class*="excellence__wrapper--cards-desc"] {
        font-size: 15px !important;
        line-height: 22px !important;
    }

    /* Pin-section projects — static layout */
    .service-detail-page .pin-section,
    .service-detail-page [class*="pin-section"] {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .service-detail-page .pin-section [class*="projects__wrapper--content-image"],
    .service-detail-page [class*="pin-section"] [class*="projects__wrapper--content-image"] {
        height: auto !important;
        min-height: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .service-detail-page .pin-section [class*="projects__wrapper--content-image"] img,
    .service-detail-page [class*="pin-section"] [class*="projects__wrapper--content-image"] img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .service-detail-page .pin-section [class*="projects__wrapper--content-txts"],
    .service-detail-page [class*="pin-section"] [class*="projects__wrapper--content-txts"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .service-detail-page .pin-section .project-desc-scroller,
    .service-detail-page .pin-section #project-desc-scroller,
    .service-detail-page [class*="pin-section"] .project-desc-scroller,
    .service-detail-page [class*="pin-section"] #project-desc-scroller {
        transform: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .service-detail-page .pin-section .project-desc-wrapper,
    .service-detail-page [class*="pin-section"] .project-desc-wrapper {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 12px !important;
        padding: 16px !important;
    }

    .service-detail-page .pin-section [class*="projects__wrapper--cta"],
    .service-detail-page [class*="pin-section"] [class*="projects__wrapper--cta"] {
        display: flex !important;
        margin-top: 20px !important;
        justify-content: center !important;
    }

    .service-detail-page [class*="toolsntech__wrapper--cards-cardwrap"] {
        width: 100% !important;
    }

    .service-detail-page [class*="mobapps__wrapper--cards"],
    .service-detail-page [class*="process__wrapper--cards"],
    .service-detail-page [class*="processs__wrapper--cards"] {
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        gap: 48px !important;
    }

    .service-detail-page [class*="mobapps__wrapper--cards-card"],
    .service-detail-page [class*="process__wrapper--cards-card"],
    .service-detail-page [class*="processs__wrapper--cards-card"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-detail-page [class*="industry__wrapper--client-slider"] .swiper-slide .card-content {
        min-height: 240px !important;
        padding: 20px 16px !important;
    }

    .service-detail-page [class*="growth__wrapper"] {
        margin: 0 16px !important;
    }
}
